From 7aeb30bd07a3e2c2c895c36d099f446367cf566e Mon Sep 17 00:00:00 2001
From: pan <1029559041@qq.com>
Date: Mon, 13 Jul 2020 18:50:45 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83-=E5=B8=90?=
=?UTF-8?q?=E5=8F=B7=E5=AE=89=E5=85=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/account/register.vue | 6 +-
components/center/collect.vue | 2 +-
components/center/myupload.vue | 2 +-
components/center/security.vue | 42 +++++-
nuxt.config.js | 218 ++++++++++++++++++--------------
pages/index/center.vue | 5 +-
pages/index/document.vue | 6 +-
pages/index/note.vue | 6 +-
pages/index/upload.vue | 23 ++--
9 files changed, 192 insertions(+), 118 deletions(-)
diff --git a/components/account/register.vue b/components/account/register.vue
index 2e7dd49..3c943f8 100644
--- a/components/account/register.vue
+++ b/components/account/register.vue
@@ -17,7 +17,9 @@
diff --git a/components/center/collect.vue b/components/center/collect.vue
index 604df33..5c53fb2 100644
--- a/components/center/collect.vue
+++ b/components/center/collect.vue
@@ -2,7 +2,7 @@
我的收藏
-
diff --git a/nuxt.config.js b/nuxt.config.js
index ace9380..95c1574 100644
--- a/nuxt.config.js
+++ b/nuxt.config.js
@@ -85,111 +85,143 @@ export default {
vueI18n: {
fallbackLocale: 'zhCN',
messages: {
- zhCN: {
- app_name:'云笔记',
- choose_lang:'选择语言',
- menus:{
- document:'文档',
- note:'笔记列表',
- center:'个人中心',
- upload:'本地上传论文'
+ "zhCN": {
+ "account": {
+ "form": {
+ "confirmPwd": "确认密码",
+ "input_confirmPwd": "请确认{confirmPwd}",
+ "input_password": "请输入{password}",
+ "input_user": "请输入{user}",
+ "password": "密码",
+ "user": "帐号",
+ "valid_account": "帐号密码正确"
+ },
+ "login": "登录",
+ "register": "注册"
},
- zhCN: '简体中文',
- en: '英文',
- user: '帐号',
- upload:{
- form:{
- type:'论文类型',
- input_type:'请输入{type}',
- author:'论文作者',
- input_author:'请输入{author}',
- profession:'学科专业',
- input_profession:'请输入{profession}',
- school:'学校',
- input_school:'请输入{school}',
- year:'学位年度',
- input_year:'请输入{year}',
- summary:'摘要',
- input_summary:'请输入{summary}',
- tag:'论文标签',
- content:'论文',
- upload:'点击上传',
- upload_tip:'只能上传txt',
- remove:'确定移除{file}'
+ "app_name": "云笔记",
+ "center": {
+ "collect": {
+ "name": "我的收藏"
+ },
+ "myupload": {
+ "name": "我的上传"
+ },
+ "security": {
+ "confirmpwd": "确认新密码",
+ "input_confirmpwd": "请确认{newpwd}",
+ "input_newpwd": "请输入{newpwd}",
+ "input_oldpwd": "请输入{oldpwd}",
+ "name": "帐号安全",
+ "newpwd": "新密码",
+ "oldpwd": "原密码"
}
},
- account:{
- login:'登录',
- register:'注册',
- form:{
- user:'帐号',
- input_user:'请输入{user}',
- password:'密码',
- input_password:'请输入{password}',
- confirmPwd:'确认密码',
- input_confirmPwd:'请确认{confirmPwd}',
- valid_account:'帐号密码正确'
+ "choose_lang": "选择语言",
+ "en": "英文",
+ "error_404": "页面不存在",
+ "error_500": "发生严重异常,请联系管理员",
+ "logout": "注销登录",
+ "menus": {
+ "center": "个人中心",
+ "document": "文档",
+ "note": "笔记列表",
+ "upload": "本地上传论文"
+ },
+ "submit": "提交",
+ "unknown_error": "未知错误",
+ "upload": {
+ "form": {
+ "author": "论文作者",
+ "content": "论文",
+ "input_author": "请输入{author}",
+ "input_profession": "请输入{profession}",
+ "input_school": "请输入{school}",
+ "input_summary": "请输入{summary}",
+ "input_type": "请输入{type}",
+ "input_year": "请输入{year}",
+ "profession": "学科专业",
+ "remove": "确定移除{file}",
+ "school": "学校",
+ "summary": "摘要",
+ "tag": "论文标签",
+ "type": "论文类型",
+ "upload": "点击上传",
+ "upload_tip": "只能上传txt",
+ "year": "学位年度"
}
},
- logout:'注销登录',
- error_404:'页面不存在',
- error_500:'发生严重异常,请联系管理员',
- unknown_error:'未知错误',
- center:{
- collect:{
- name:'我的收藏'
+ "user": "帐号",
+ "zhCN": "简体中文"
+ },
+ "en": {
+ "account": {
+ "form": {
+ "confirmPwd": "确认密码",
+ "input_confirmPwd": "请确认{confirmPwd}",
+ "input_password": "请输入{password}",
+ "input_user": "请输入{user}",
+ "password": "密码",
+ "user": "帐号",
+ "valid_account": "帐号密码正确"
},
- myupload:{
- name:'我的上传'
+ "login": "登录",
+ "register": "注册"
+ },
+ "app_name": "cloudnote",
+ "center": {
+ "collect": {
+ "name": "我的收藏"
+ },
+ "myupload": {
+ "name": "我的上传"
},
- security:{
- name:'帐号安全'
+ "security": {
+ "confirmpwd": "",
+ "input_confirmpwd": "",
+ "input_newpwd": "",
+ "input_oldpwd": "",
+ "name": "帐号安全",
+ "newpwd": "",
+ "oldpwd": ""
}
},
- submit:'提交'
- },
- en: {
- app_name:'cloudnote',
- choose_lang:'language',
- menus:{
- document:'document',
- note:'note list',
- center:'个人中心',
- upload:'本地上传论文'
+ "choose_lang": "language",
+ "en": "english",
+ "error_404": "页面不存在",
+ "error_500": "发生严重异常,请联系管理员",
+ "logout": "注销登录",
+ "menus": {
+ "center": "个人中心",
+ "document": "document",
+ "note": "note list",
+ "upload": "本地上传论文"
},
- zhCN: 'Simplified Chinese',
- en: 'english',
- user: '帐号',
- upload:{
- form:{
- type:'论文类型',
- input_type:'请输入{type}',
- author:'论文作者',
- input_author:'请输入{author}',
- profession:'学科专业',
- input_profession:'请输入{profession}',
- school:'学校',
- input_school:'请输入{school}',
- year:'学位年度',
- input_year:'请输入{year}',
- summary:'摘要',
- input_summary:'请输入{summary}',
- tag:'论文标签',
- content:'论文'
+ "submit": "提交",
+ "unknown_error": "未知错误",
+ "upload": {
+ "form": {
+ "author": "论文作者",
+ "content": "论文",
+ "input_author": "请输入{author}",
+ "input_profession": "请输入{profession}",
+ "input_school": "请输入{school}",
+ "input_summary": "请输入{summary}",
+ "input_type": "请输入{type}",
+ "input_year": "请输入{year}",
+ "profession": "学科专业",
+ "remove": "确定移除{file}",
+ "school": "学校",
+ "summary": "摘要",
+ "tag": "论文标签",
+ "type": "论文类型",
+ "upload": "点击上传",
+ "upload_tip": "只能上传txt",
+ "year": "学位年度"
}
},
- account:{
- login:'登录',
- register:'注册',
- form:{
- user:'帐号',
- input_user:'请输入{user}',
- password:'密码',
- input_password:'请输入{password}',
- confirmPwd:'确认密码',
- input_confirmPwd:'请确认{confirmPwd}'
- }
- }
+ "user": "帐号",
+ "zhCN": "Simplified Chinese"
}
}
}
diff --git a/pages/index/center.vue b/pages/index/center.vue
index 9f63704..028b7b3 100644
--- a/pages/index/center.vue
+++ b/pages/index/center.vue
@@ -16,8 +16,9 @@
import Security from '~/components/center/security.vue'
import Collect from '~/components/center/collect.vue'
import Myupload from '~/components/center/myupload.vue'
+ import Vue from 'vue'
- export default {
+ export default Vue.extend({
name: 'center',
components: { Myupload, Collect, Security },
data(){
@@ -25,6 +26,6 @@
activeName:'Security'
}
}
- }
+ })
diff --git a/pages/index/document.vue b/pages/index/document.vue
index 95a660d..d928252 100644
--- a/pages/index/document.vue
+++ b/pages/index/document.vue
@@ -3,7 +3,9 @@
diff --git a/pages/index/note.vue b/pages/index/note.vue
index 4aa1520..613ff08 100644
--- a/pages/index/note.vue
+++ b/pages/index/note.vue
@@ -3,7 +3,9 @@
diff --git a/pages/index/upload.vue b/pages/index/upload.vue
index d642072..16d2e0b 100644
--- a/pages/index/upload.vue
+++ b/pages/index/upload.vue
@@ -77,8 +77,10 @@
-