From 3418f44be4965b86f09326d1d0887d04ff5c71b0 Mon Sep 17 00:00:00 2001
From: xiaoxian521 <1923740402@qq.com>
Date: Wed, 5 Jan 2022 14:17:06 +0800
Subject: [PATCH] release: update 2.8.0
---
.vscode/extensions.json | 11 ++
.vscode/settings.json | 27 +++--
...ode-snippets => vue3.0.code-snippets.json} | 0
.vscode/vue3.2+.setup-snippets.json | 17 +++
.vscode/vue3.2.setup-snippets | 20 ----
index.html | 104 +++---------------
mock/asyncRoutes.ts | 12 +-
package.json | 6 +-
pnpm-lock.yaml | 27 ++---
public/serverConfig.json | 6 +-
src/layout/components/appMain.vue | 20 ++--
src/layout/components/navbar.vue | 35 +++---
src/layout/components/screenfull/index.vue | 4 +-
src/layout/components/setting/index.vue | 95 ++++++++--------
src/layout/components/sidebar/breadCrumb.vue | 2 +-
src/layout/components/sidebar/horizontal.vue | 34 +++---
src/layout/components/sidebar/sidebarItem.vue | 84 +++++++++-----
src/layout/components/sidebar/vertical.vue | 6 +-
src/layout/components/tag/index.scss | 1 -
src/layout/components/tag/index.vue | 50 +++++----
src/layout/index.vue | 18 ++-
src/layout/types.ts | 4 +-
src/plugins/element-plus/index.ts | 22 +++-
src/plugins/i18n/config.ts | 98 ++---------------
src/plugins/i18n/en/buttons.ts | 21 ++++
src/plugins/i18n/en/menus.ts | 38 +++++++
src/plugins/i18n/index.ts | 55 +++++++--
src/plugins/i18n/zh-CN/buttons.ts | 21 ++++
src/plugins/i18n/zh-CN/menus.ts | 38 +++++++
src/router/index.ts | 3 +-
src/router/modules/error.ts | 7 +-
src/router/modules/externalLink.ts | 5 +-
src/router/modules/home.ts | 4 +-
src/router/modules/remaining.ts | 5 +-
src/router/utils.ts | 6 +-
src/store/modules/app.ts | 18 +--
src/store/modules/epTheme.ts | 9 +-
src/store/modules/multiTags.ts | 8 +-
src/store/modules/user.ts | 4 +-
src/utils/storage/responsive.ts | 12 +-
types/global.d.ts | 4 +
41 files changed, 543 insertions(+), 418 deletions(-)
create mode 100644 .vscode/extensions.json
rename .vscode/{vue3.0.code-snippets => vue3.0.code-snippets.json} (100%)
create mode 100644 .vscode/vue3.2+.setup-snippets.json
delete mode 100644 .vscode/vue3.2.setup-snippets
create mode 100644 src/plugins/i18n/en/buttons.ts
create mode 100644 src/plugins/i18n/en/menus.ts
create mode 100644 src/plugins/i18n/zh-CN/buttons.ts
create mode 100644 src/plugins/i18n/zh-CN/menus.ts
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
new file mode 100644
index 000000000..30e116cf6
--- /dev/null
+++ b/.vscode/extensions.json
@@ -0,0 +1,11 @@
+{
+ "recommendations": [
+ "stylelint.vscode-stylelint",
+ "dbaeumer.vscode-eslint",
+ "esbenp.prettier-vscode",
+ "johnsoncodehk.volar",
+ "lokalise.i18n-ally",
+ "mikestead.dotenv",
+ "antfu.iconify"
+ ]
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 73b2b9a1b..b4e6050c8 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,11 +1,14 @@
{
- // You should install these plugins:
- // ESLint
- // Prettier - Code formatter
- // stylelint
- // vscode-icons
- // TypeScript Vue Plugin (Volar)
- // Vue Language Features (Volar)
+ /** 你需要安装这些插件,以便带来更好的提示体验
+ * ESLint
+ * Prettier - Code formatter
+ * stylelint
+ * vscode-icons
+ * i18n Ally
+ * Iconify IntelliSense
+ * TypeScript Vue Plugin (Volar)
+ * Vue Language Features (Volar)
+ */
"terminal.integrated.rendererType": "dom",
"editor.formatOnType": true,
"editor.formatOnSave": true,
@@ -45,5 +48,13 @@
},
"volar.tsPlugin": true,
"typescript.tsdk": "node_modules/typescript/lib",
- "i18n-ally.localesPaths": ["src/plugins/i18n"]
+ "i18n-ally.localesPaths": ["src/plugins/i18n"],
+ "i18n-ally.keystyle": "nested",
+ "i18n-ally.sortKeys": true,
+ "i18n-ally.namespace": true,
+ "i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
+ "i18n-ally.enabledParsers": ["ts"],
+ "i18n-ally.sourceLanguage": "en",
+ "i18n-ally.displayLanguage": "zh-CN",
+ "i18n-ally.enabledFrameworks": ["vue", "react"]
}
diff --git a/.vscode/vue3.0.code-snippets b/.vscode/vue3.0.code-snippets.json
similarity index 100%
rename from .vscode/vue3.0.code-snippets
rename to .vscode/vue3.0.code-snippets.json
diff --git a/.vscode/vue3.2+.setup-snippets.json b/.vscode/vue3.2+.setup-snippets.json
new file mode 100644
index 000000000..fa637f574
--- /dev/null
+++ b/.vscode/vue3.2+.setup-snippets.json
@@ -0,0 +1,17 @@
+{
+ "Vue3.2+快速生成模板": {
+ "prefix": "Vue3.2+",
+ "body": [
+ "\n",
+ "",
+ "\t
Pure-Admin
- -Loading