From a9357aa1a69b27ed645dc9bb6055a914dd3d6de1 Mon Sep 17 00:00:00 2001
From: xiaoxian521 <1923740402@qq.com>
Date: Wed, 10 Nov 2021 22:12:47 +0800
Subject: [PATCH] =?UTF-8?q?index=20on=20main:=20f96885b=20perf:=20?=
=?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env | 2 +-
.env.development | 2 +-
.gitignore | 7 +-
.husky/common.sh | 2 +-
.markdownlint.json | 11 +
.prettierrc.js | 4 +-
.vscode/settings.json | 51 +
.vscode/vue3.0.code-snippets | 22 +
.vscode/vue3.2.setup-snippets | 20 +
README.en-US.md | 14 +-
README.md | 10 +-
index.html | 37 +-
mock/asyncRoutes.ts | 3 +-
package.json | 109 +-
pnpm-lock.yaml | 6529 +++++++++++++++++
public/favicon.ico | Bin 67646 -> 1270 bytes
public/serverConfig.json | 17 +-
src/App.vue | 8 +-
src/api/routes.ts | 2 +-
src/assets/401.gif | Bin 164227 -> 696373 bytes
src/assets/bg.png | Bin 1135895 -> 0 bytes
src/assets/car.png | Bin 0 -> 1480 bytes
src/assets/iconfont/iconfont.css | 26 +-
src/assets/iconfont/iconfont.js | 44 +-
src/assets/iconfont/iconfont.json | 38 +-
src/assets/iconfont/iconfont.ttf | Bin 6884 -> 5324 bytes
src/assets/iconfont/iconfont.woff | Bin 4272 -> 3220 bytes
src/assets/iconfont/iconfont.woff2 | Bin 3592 -> 2668 bytes
src/assets/login.png | Bin 10147 -> 0 bytes
src/assets/login/avatar.svg | 1 +
src/assets/login/bg.png | Bin 0 -> 17468 bytes
src/assets/login/illustration0.svg | 1 +
src/assets/login/illustration1.svg | 1 +
src/assets/login/illustration2.svg | 1 +
src/assets/login/illustration3.svg | 1 +
src/assets/login/illustration4.svg | 1 +
src/assets/login/illustration5.svg | 1 +
src/assets/login/illustration6.svg | 1 +
src/assets/svg/back_top.svg | 1 +
src/components/ReInfo/index.vue | 195 -
src/layout/components/appMain.vue | 148 +-
src/layout/components/navbar.vue | 26 +-
src/layout/components/panel/index.vue | 25 +-
src/layout/components/setting/index.vue | 416 +-
src/layout/components/sidebar/hamBurger.vue | 6 +-
src/layout/components/sidebar/horizontal.vue | 25 +-
src/layout/components/sidebar/logo.vue | 25 +-
src/layout/components/sidebar/sidebarItem.vue | 111 +-
src/layout/components/sidebar/vertical.vue | 2 +
src/layout/components/tag/index.vue | 18 +-
src/layout/index.vue | 159 +-
src/layout/theme/auroraGreen-vars.scss | 12 +
src/layout/theme/default-vars.scss | 24 +
src/layout/theme/dusk-vars.scss | 12 +
src/layout/theme/light-vars.scss | 11 +
src/layout/theme/mingQing-vars.scss | 12 +
src/layout/theme/pink-vars.scss | 12 +
src/layout/theme/saucePurple-vars.scss | 12 +
src/layout/theme/volcano-vars.scss | 12 +
src/layout/theme/yellow-vars.scss | 12 +
src/layout/types.ts | 7 +
src/main.ts | 4 +-
src/plugins/element-plus/index.ts | 44 +-
src/plugins/i18n/config.ts | 75 +-
src/plugins/i18n/index.ts | 1 +
src/plugins/vxe-table/index.ts | 119 -
src/router/index.ts | 11 +-
src/router/modules/error.ts | 2 +-
src/router/modules/externalLink.ts | 25 +
src/router/modules/home.ts | 2 +-
src/router/modules/remaining.ts | 12 +-
src/store/modules/app.ts | 5 +-
src/style/element-plus.scss | 4 -
src/style/index.scss | 14 -
src/style/login.css | 227 +
src/style/sidebar.scss | 322 +-
src/utils/http/core.ts | 28 +-
src/utils/storage/responsive.ts | 13 +-
src/views/login.vue | 182 +-
src/views/permission/button/index.vue | 2 +-
src/views/permission/page/index.vue | 4 +-
src/views/register.vue | 17 -
types/global.d.ts | 4 +
vite.config.ts | 80 +-
yarn.lock | 4583 ------------
85 files changed, 8325 insertions(+), 5704 deletions(-)
create mode 100644 .markdownlint.json
create mode 100644 .vscode/settings.json
create mode 100644 .vscode/vue3.0.code-snippets
create mode 100644 .vscode/vue3.2.setup-snippets
create mode 100644 pnpm-lock.yaml
delete mode 100644 src/assets/bg.png
create mode 100644 src/assets/car.png
delete mode 100644 src/assets/login.png
create mode 100644 src/assets/login/avatar.svg
create mode 100644 src/assets/login/bg.png
create mode 100644 src/assets/login/illustration0.svg
create mode 100644 src/assets/login/illustration1.svg
create mode 100644 src/assets/login/illustration2.svg
create mode 100644 src/assets/login/illustration3.svg
create mode 100644 src/assets/login/illustration4.svg
create mode 100644 src/assets/login/illustration5.svg
create mode 100644 src/assets/login/illustration6.svg
create mode 100644 src/assets/svg/back_top.svg
delete mode 100644 src/components/ReInfo/index.vue
create mode 100644 src/layout/theme/auroraGreen-vars.scss
create mode 100644 src/layout/theme/default-vars.scss
create mode 100644 src/layout/theme/dusk-vars.scss
create mode 100644 src/layout/theme/light-vars.scss
create mode 100644 src/layout/theme/mingQing-vars.scss
create mode 100644 src/layout/theme/pink-vars.scss
create mode 100644 src/layout/theme/saucePurple-vars.scss
create mode 100644 src/layout/theme/volcano-vars.scss
create mode 100644 src/layout/theme/yellow-vars.scss
delete mode 100644 src/plugins/vxe-table/index.ts
create mode 100644 src/router/modules/externalLink.ts
create mode 100644 src/style/login.css
delete mode 100644 src/views/register.vue
delete mode 100644 yarn.lock
diff --git a/.env b/.env
index 562258a..d9f3a78 100644
--- a/.env
+++ b/.env
@@ -3,7 +3,7 @@ VITE_PORT = 8848
# title
VITE_TITLE = vue-pure-admin
# version
-VITE_VERSION = 2.1.0
+VITE_VERSION = 2.6.0
# open
VITE_OPEN = false
diff --git a/.env.development b/.env.development
index 562258a..d9f3a78 100644
--- a/.env.development
+++ b/.env.development
@@ -3,7 +3,7 @@ VITE_PORT = 8848
# title
VITE_TITLE = vue-pure-admin
# version
-VITE_VERSION = 2.1.0
+VITE_VERSION = 2.6.0
# open
VITE_OPEN = false
diff --git a/.gitignore b/.gitignore
index 139565d..653107a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,9 +5,10 @@ dist-ssr
*.local
.eslintcache
+yarn.lock
npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
+.pnpm-error.log*
+.pnpm-debug.log
tests/**/coverage/
# Editor directories and files
@@ -15,4 +16,4 @@ tests/**/coverage/
*.suo
*.ntvs*
*.njsproj
-*.sln
\ No newline at end of file
+*.sln
diff --git a/.husky/common.sh b/.husky/common.sh
index 9d5129b..5f0540b 100644
--- a/.husky/common.sh
+++ b/.husky/common.sh
@@ -3,7 +3,7 @@ command_exists () {
command -v "$1" >/dev/null 2>&1
}
-# Workaround for Windows 10, Git Bash and Yarn
+# Workaround for Windows 10, Git Bash and Pnpm
if command_exists winpty && test -t 1; then
exec < /dev/tty
fi
diff --git a/.markdownlint.json b/.markdownlint.json
new file mode 100644
index 0000000..d628d44
--- /dev/null
+++ b/.markdownlint.json
@@ -0,0 +1,11 @@
+{
+ "default": true,
+ "MD003": false,
+ "MD033": false,
+ "MD013": false,
+ "MD001": false,
+ "MD025": false,
+ "MD024": false,
+ "MD007": { "indent": 4 },
+ "no-hard-tabs": false
+}
diff --git a/.prettierrc.js b/.prettierrc.js
index 07a5dad..a902913 100644
--- a/.prettierrc.js
+++ b/.prettierrc.js
@@ -2,6 +2,6 @@ module.exports = {
bracketSpacing: true,
jsxBracketSameLine: true,
singleQuote: false,
- arrowParens: "avoid",
- trailingComma: "none"
+ arrowParens: 'avoid',
+ trailingComma: 'none'
};
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..834784d
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,51 @@
+{
+ // You should install these plugins:
+ // ESLint
+ // Prettier - Code formatter
+ // stylelint
+ // vscode-icons
+ // TypeScript Vue Plugin (Volar)
+ // Vue Language Features (Volar)
+ "terminal.integrated.rendererType": "dom",
+ "editor.formatOnType": true,
+ "editor.formatOnSave": true,
+ "javascript.updateImportsOnFileMove.enabled": "always",
+ "[vue]": {
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
+ },
+ "[javascript]": {
+ "editor.defaultFormatter": "vscode.typescript-language-features"
+ },
+ "editor.tabSize": 2,
+ "editor.formatOnPaste": true,
+ "files.autoSave": "afterDelay",
+ "git.confirmSync": false,
+ "workbench.startupEditor": "newUntitledFile",
+ "editor.suggestSelection": "first",
+ "editor.acceptSuggestionOnCommitCharacter": false,
+ "css.lint.propertyIgnoredDueToDisplay": "ignore",
+ // Prevent inline styles from being automatically formatted to all lowercase
+ "editor.quickSuggestions": {
+ "other": true,
+ "comments": true,
+ "strings": true
+ },
+ // Automatically fix some syntax errors of ts
+ "tslint.autoFixOnSave": true,
+ "files.associations": {
+ // Specifies the location of snippets in the suggestion widget
+ "editor.snippetSuggestions": "top"
+ },
+ "[css]": {
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
+ },
+ "cSpell.userWords": ["sourcemap", "vite"],
+ "editor.codeActionsOnSave": {
+ "source.fixAll.eslint": true
+ },
+ "volar.tsPlugin": true,
+ "typescript.tsdk": "node_modules/typescript/lib",
+ "i18n-ally.localesPaths": [
+ "src/plugins/i18n"
+ ]
+}
diff --git a/.vscode/vue3.0.code-snippets b/.vscode/vue3.0.code-snippets
new file mode 100644
index 0000000..fdab05b
--- /dev/null
+++ b/.vscode/vue3.0.code-snippets
@@ -0,0 +1,22 @@
+{
+ "Vue3.0快速生成模板": {
+ "prefix": "Vue3.0",
+ "body": [
+ "",
+ "\t
Pure-Admin
+