This commit is contained in:
AceDataCloud committed 2021-08-28 00:52:39 +08:00
1 parent 59728e46b3
commit 69fdb3a933
6 files changed
+126 -4

No files matched your search

+1
View File
@@ -13,6 +13,7 @@
"eslint-plugin-vue": "^7.17.0",
"prettier": "^2.3.2",
"vue": "^3.2.6",
"vue-i18n": "^9.1.7",
"vue-router": "^4.0.11",
"vuex": "^4.0.2"
},
+16
View File
@@ -0,0 +1,16 @@
export default {
message: {
copied: 'Copied'
},
menu: {
home: 'Home',
editor: 'Editor'
},
option: {
theme: 'Theme',
highlight: 'Code Highlight Theme',
bold: 'Bold',
italic: 'Italic',
strikeout: 'Strikeout'
}
};
+22
View File
@@ -0,0 +1,22 @@
import enLang from './en/index';
import zhLang from './zh/index';
import enLocale from 'element-plus/lib/locale/lang/en';
import zhLocale from 'element-plus/lib/locale/lang/zh-cn';
import { createI18n } from 'vue-i18n';
const i18n = createI18n({
locale: zhLocale.name,
fallbackLocale: enLocale.name,
messages: {
[enLocale.name]: {
el: enLocale.el,
...enLang
},
[zhLocale.name]: {
el: zhLocale.el,
...zhLang
}
}
});
export default i18n;
+16
View File
@@ -0,0 +1,16 @@
export default {
message: {
copied: '复制成功'
},
menu: {
home: '首页',
editor: '编辑器'
},
option: {
theme: '主题',
highlight: '代码高亮',
bold: '粗体',
italic: '斜体',
strikeout: '删除线'
}
};
+3 -2
View File
@@ -1,9 +1,10 @@
import { createApp } from 'vue';
import App from './App.vue';
import './style.css';
import router from './router/index';
import store from './store/index';
import ElementPlus from 'element-plus';
import i18n from './i18n/index';
import './style.css';
import 'element-plus/dist/index.css';
createApp(App).use(router).use(store).use(ElementPlus).mount('#app');
createApp(App).use(router).use(store).use(ElementPlus).use(i18n).mount('#app');
+68 -2
View File
@@ -96,6 +96,62 @@
resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.0.tgz#87de7af9c231826fdd68ac7258f77c429e0e5fcf"
integrity sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w==
"@intlify/core-base@9.1.7":
version "9.1.7"
resolved "https://registry.yarnpkg.com/@intlify/core-base/-/core-base-9.1.7.tgz#a454a492683690bc3d0abab82605ab5a23645bd0"
integrity sha512-q1W2j81xbHyfKrNcca/CeJyf0Bcx4u9UDu05l7AaiJbqOseTme2o2I3wp1hDDCtmC7k7HgX0sAygyHNJH9swuQ==
dependencies:
"@intlify/devtools-if" "9.1.7"
"@intlify/message-compiler" "9.1.7"
"@intlify/message-resolver" "9.1.7"
"@intlify/runtime" "9.1.7"
"@intlify/shared" "9.1.7"
"@intlify/vue-devtools" "9.1.7"
"@intlify/devtools-if@9.1.7":
version "9.1.7"
resolved "https://registry.yarnpkg.com/@intlify/devtools-if/-/devtools-if-9.1.7.tgz#a5df0f33e06c3ead3e53b7f4d4b10a2d52309361"
integrity sha512-/DcN5FUySSkQhDqx5y1RvxfuCXO3Ot/dUEIOs472qbM7Hyb2qif+eXCnwHBzlI4+wEfQVT6L0PiM1a7Er/ro9g==
dependencies:
"@intlify/shared" "9.1.7"
"@intlify/message-compiler@9.1.7":
version "9.1.7"
resolved "https://registry.yarnpkg.com/@intlify/message-compiler/-/message-compiler-9.1.7.tgz#4663fcc2a190f3cc6970e12565c8d6f22beeb719"
integrity sha512-JZNkAhr3O7tnbdbRBcpYfqr/Ai26WTzX0K/lV8Y1KVdOIj/dGiamaffdWUdFiDXUnbJRNbPiOaKxy7Pwip3KxQ==
dependencies:
"@intlify/message-resolver" "9.1.7"
"@intlify/shared" "9.1.7"
source-map "0.6.1"
"@intlify/message-resolver@9.1.7":
version "9.1.7"
resolved "https://registry.yarnpkg.com/@intlify/message-resolver/-/message-resolver-9.1.7.tgz#a95d13866c8de85784358039c8845668152e4162"
integrity sha512-WTK+OaXJYjyquLGhuCyDvU2WHkG+kXzXeHagmVFHn+s118Jf2143zzkLLUrapP5CtZ/csuyjmYg7b3xQRQAmvw==
"@intlify/runtime@9.1.7":
version "9.1.7"
resolved "https://registry.yarnpkg.com/@intlify/runtime/-/runtime-9.1.7.tgz#67e0d6b2fd85a5b0b301a151c2f436f93154c3c6"
integrity sha512-QURPSlzhOVnRwS2XMGpCDsDkP42kfVBh94aAORxh/gVGzdgJip2vagrIFij/J69aEqdB476WJkMhVjP8VSHmiA==
dependencies:
"@intlify/message-compiler" "9.1.7"
"@intlify/message-resolver" "9.1.7"
"@intlify/shared" "9.1.7"
"@intlify/shared@9.1.7":
version "9.1.7"
resolved "https://registry.yarnpkg.com/@intlify/shared/-/shared-9.1.7.tgz#e7d8bc90cb59dc17dd7b4c85a73db16fcb7891fc"
integrity sha512-zt0zlUdalumvT9AjQNxPXA36UgOndUyvBMplh8uRZU0fhWHAwhnJTcf0NaG9Qvr8I1n3HPSs96+kLb/YdwTavQ==
"@intlify/vue-devtools@9.1.7":
version "9.1.7"
resolved "https://registry.yarnpkg.com/@intlify/vue-devtools/-/vue-devtools-9.1.7.tgz#b08d39bb5f21ba9b1954eab9466e9408129425a7"
integrity sha512-DI5Wc0aOiohtBUGUkKAcryCWbbuaO4/PK4Pa/LaNCsFNxbtgR5qkIDmhBv9xVPYGTUhySXxaDDAMvOpBjhPJjw==
dependencies:
"@intlify/message-resolver" "9.1.7"
"@intlify/runtime" "9.1.7"
"@intlify/shared" "9.1.7"
"@nodelib/fs.scandir@2.1.5":
version "2.1.5"
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
@@ -241,7 +297,7 @@
"@vue/compiler-dom" "3.2.6"
"@vue/shared" "3.2.6"
"@vue/devtools-api@^6.0.0-beta.11", "@vue/devtools-api@^6.0.0-beta.14":
"@vue/devtools-api@^6.0.0-beta.11", "@vue/devtools-api@^6.0.0-beta.14", "@vue/devtools-api@^6.0.0-beta.7":
version "6.0.0-beta.15"
resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.0.0-beta.15.tgz#ad7cb384e062f165bcf9c83732125bffbc2ad83d"
integrity sha512-quBx4Jjpexo6KDiNUGFr/zF/2A4srKM9S9v2uHgMXSU//hjgq1eGzqkIFql8T9gfX5ZaVOUzYBP3jIdIR3PKIA==
@@ -1941,7 +1997,7 @@ source-map-js@^0.6.2:
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-0.6.2.tgz#0bb5de631b41cfbda6cfba8bd05a80efdfd2385e"
integrity sha512-/3GptzWzu0+0MBQFrDKzw/DvvMTUORvgY6k6jd/VS6iCR4RDTKWH6v6WPwQoUO8667uQEf9Oe38DxAYWY5F/Ug==
source-map@^0.6.1:
source-map@0.6.1, source-map@^0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
@@ -2277,6 +2333,16 @@ vue-eslint-parser@^7.10.0:
lodash "^4.17.21"
semver "^6.3.0"
vue-i18n@^9.1.7:
version "9.1.7"
resolved "https://registry.yarnpkg.com/vue-i18n/-/vue-i18n-9.1.7.tgz#6f28dd2135197066508e2e65ab204a019750d773"
integrity sha512-ujuuDanoHqtEd4GejWrbG/fXE9nrP51ElsEGxp0WBHfv+/ki0/wyUqkO+4fLikki2obGtXdviTPH0VNpas5K6g==
dependencies:
"@intlify/core-base" "9.1.7"
"@intlify/shared" "9.1.7"
"@intlify/vue-devtools" "9.1.7"
"@vue/devtools-api" "^6.0.0-beta.7"
vue-router@^4.0.11:
version "4.0.11"
resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-4.0.11.tgz#cd649a0941c635281763a20965b599643ddc68ed"