From b4ff6fcd38a5b89240c980f03679de9506f5b7ab Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Sun, 26 Nov 2023 23:58:21 +0800 Subject: [PATCH 001/258] =?UTF-8?q?refactor:=20:recycle:=20=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E7=B1=BB=E5=9E=8B=E5=A3=B0=E6=98=8E=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E8=87=B3=20`src/typings`=20=E5=92=8C=20`elem?= =?UTF-8?q?ent-plus`=20=E4=BF=9D=E6=8C=81=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {types => src/typings}/auto-imports.d.ts | 0 {types => src/typings}/components.d.ts | 0 {types => src/typings}/env.d.ts | 0 {types => src/typings}/global.d.ts | 0 {types => src/typings}/router.d.ts | 0 {types => src/typings}/shims-vue.d.ts | 0 tsconfig.json | 2 +- vite.config.ts | 4 ++-- 8 files changed, 3 insertions(+), 3 deletions(-) rename {types => src/typings}/auto-imports.d.ts (100%) rename {types => src/typings}/components.d.ts (100%) rename {types => src/typings}/env.d.ts (100%) rename {types => src/typings}/global.d.ts (100%) rename {types => src/typings}/router.d.ts (100%) rename {types => src/typings}/shims-vue.d.ts (100%) diff --git a/types/auto-imports.d.ts b/src/typings/auto-imports.d.ts similarity index 100% rename from types/auto-imports.d.ts rename to src/typings/auto-imports.d.ts diff --git a/types/components.d.ts b/src/typings/components.d.ts similarity index 100% rename from types/components.d.ts rename to src/typings/components.d.ts diff --git a/types/env.d.ts b/src/typings/env.d.ts similarity index 100% rename from types/env.d.ts rename to src/typings/env.d.ts diff --git a/types/global.d.ts b/src/typings/global.d.ts similarity index 100% rename from types/global.d.ts rename to src/typings/global.d.ts diff --git a/types/router.d.ts b/src/typings/router.d.ts similarity index 100% rename from types/router.d.ts rename to src/typings/router.d.ts diff --git a/types/shims-vue.d.ts b/src/typings/shims-vue.d.ts similarity index 100% rename from types/shims-vue.d.ts rename to src/typings/shims-vue.d.ts diff --git a/tsconfig.json b/tsconfig.json index 6164b063..6d1e993c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -27,7 +27,7 @@ "include": [ "src/**/*.ts", "src/**/*.vue", - "types/**/*.d.ts", + "src/typings/**/*.d.ts", "mock/**/*.ts", "vite.config.ts" ], diff --git a/vite.config.ts b/vite.config.ts index 139e03b3..75851bee 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -81,7 +81,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { vueTemplate: true, // 配置文件生成位置(false:关闭自动生成) dts: false, - // dts: "types/auto-imports.d.ts", + // dts: "src/typings/auto-imports.d.ts", }), Components({ @@ -95,7 +95,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { dirs: ["src/components", "src/**/components"], // 配置文件位置 (false:关闭自动生成) dts: false, - // dts: "types/components.d.ts", + // dts: "src/typings/components.d.ts", }), Icons({ -- Gitee From 639cea45f7c07bcfccfa6c82f3cefa968820ba6e Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Sat, 2 Dec 2023 14:40:04 +0800 Subject: [PATCH 002/258] =?UTF-8?q?fix:=20:bug:=20=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BC=B9=E7=AA=97=E6=97=A0=E6=B3=95=E6=89=93?= =?UTF-8?q?=E5=BC=80=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/dict/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index 63ed6c1a..5740dce3 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -149,10 +149,10 @@ function handleDelete(dictTypeId?: number) { }); } -const dictDataDialog = { +const dictDataDialog = reactive({ title: "", visible: false, -}; +}); const selectedDictType = reactive({ typeCode: "", typeName: "" }); // 当前选中的字典类型 -- Gitee From b8ebd926f5f9ad17c28cf8c482a0d60976cf91c7 Mon Sep 17 00:00:00 2001 From: yangzhiwen <1163139003@qq.com> Date: Tue, 12 Dec 2023 22:48:03 +0800 Subject: [PATCH 003/258] =?UTF-8?q?build:=20:package:=20=E5=B0=86=E6=89=93?= =?UTF-8?q?=E5=8C=85=E5=90=8E=E7=9A=84=E6=96=87=E4=BB=B6=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 75851bee..6696f5ff 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -192,6 +192,33 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { comments: false, // 删除注释 }, }, + rollupOptions: { + output: { + // manualChunks: { + // "vue-i18n": ["vue-i18n"], + // }, + // 用于从入口点创建的块的打包输出格式[name]表示文件名,[hash]表示该文件内容hash值 + entryFileNames: "js/[name].[hash].js", + // 用于命名代码拆分时创建的共享块的输出命名 + chunkFileNames: "js/[name].[hash].js", + // 用于输出静态资源的命名,[ext]表示文件扩展名 + assetFileNames: (assetInfo: any) => { + const info = assetInfo.name.split("."); + let extType = info[info.length - 1]; + // console.log('文件信息', assetInfo.name) + if ( + /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/i.test(assetInfo.name) + ) { + extType = "media"; + } else if (/\.(png|jpe?g|gif|svg)(\?.*)?$/.test(assetInfo.name)) { + extType = "img"; + } else if (/\.(woff2?|eot|ttf|otf)(\?.*)?$/i.test(assetInfo.name)) { + extType = "fonts"; + } + return `${extType}/[name].[hash].[ext]`; + }, + }, + }, }, }; }); -- Gitee From 7861d5b62457a7cfc4afe019e2d02c42b50484dd Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Tue, 12 Dec 2023 23:33:31 +0800 Subject: [PATCH 004/258] =?UTF-8?q?build:=20:package:=20=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=E5=8D=87=E7=BA=A7=202.7.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/settings.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a71aeed8..0202bc8b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue3-element-admin", - "version": "2.7.0", + "version": "2.7.1", "private": true, "scripts": { "preinstall": "npx only-allow pnpm", diff --git a/src/settings.ts b/src/settings.ts index 7fd27c68..23e2de92 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -1,6 +1,6 @@ const defaultSettings: AppSettings = { title: "vue3-element-admin", - version: "v2.7.0", + version: "v2.7.1", showSettings: true, tagsView: true, fixedHeader: false, -- Gitee From 7cd5582e13d5b40da128c279e6e6798faf3d9a90 Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Sun, 24 Dec 2023 22:06:00 +0800 Subject: [PATCH 005/258] =?UTF-8?q?build:=20:package:=20=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=89=88=E6=9C=AC=E5=8F=B7=E5=92=8C=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E4=BE=9D=E8=B5=96=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 49 ++++++++++++++++++++++++------------------------- src/settings.ts | 2 +- 2 files changed, 25 insertions(+), 26 deletions(-) diff --git a/package.json b/package.json index 0202bc8b..8573c7a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue3-element-admin", - "version": "2.7.1", + "version": "2.7.2", "private": true, "scripts": { "preinstall": "npx only-allow pnpm", @@ -40,14 +40,14 @@ ] }, "dependencies": { - "@element-plus/icons-vue": "^2.1.0", - "@vitejs/plugin-vue": "^4.4.0", - "@vueuse/core": "^10.5.0", + "@element-plus/icons-vue": "^2.3.1", + "@vitejs/plugin-vue": "^4.5.2", + "@vueuse/core": "^10.7.0", "@wangeditor/editor": "^5.1.23", "@wangeditor/editor-for-vue": "5.1.10", - "axios": "^1.6.0", + "axios": "^1.6.2", "echarts": "^5.4.3", - "element-plus": "^2.4.2", + "element-plus": "^2.4.4", "lodash-es": "^4.17.21", "mockjs": "^1.1.0", "net": "^1.0.2", @@ -57,60 +57,59 @@ "pinia": "^2.1.7", "screenfull": "^6.0.2", "sockjs-client": "1.6.1", - "sortablejs": "^1.15.0", + "sortablejs": "^1.15.1", "stompjs": "^2.3.3", - "terser": "^5.24.0", - "vue": "^3.3.8", + "terser": "^5.26.0", + "vue": "^3.3.13", "vue-i18n": "9.2.2", "vue-router": "^4.2.5", - "xlsx": "^0.18.5", - "dayjs": "^1.11.10" + "xlsx": "^0.18.5" }, "devDependencies": { "@commitlint/cli": "^17.8.1", "@commitlint/config-conventional": "^17.8.1", - "@iconify-json/ep": "^1.1.12", - "@types/lodash": "^4.14.201", + "@iconify-json/ep": "^1.1.14", + "@types/lodash": "^4.14.202", "@types/nprogress": "^0.2.3", "@types/path-browserify": "^1.0.2", "@types/sockjs-client": "^1.5.4", - "@types/sortablejs": "^1.15.5", - "@types/stompjs": "^2.3.8", + "@types/sortablejs": "^1.15.7", + "@types/stompjs": "^2.3.9", "@typescript-eslint/eslint-plugin": "^5.62.0", "@typescript-eslint/parser": "^5.62.0", - "@vitejs/plugin-vue-jsx": "^3.0.2", + "@vitejs/plugin-vue-jsx": "^3.1.0", "autoprefixer": "^10.4.16", "commitizen": "^4.3.0", - "cz-git": "^1.7.1", - "eslint": "^8.53.0", + "cz-git": "^1.8.0", + "eslint": "^8.56.0", "eslint-config-prettier": "^8.10.0", - "eslint-plugin-import": "^2.29.0", + "eslint-plugin-import": "^2.29.1", "eslint-plugin-prettier": "^4.2.1", - "eslint-plugin-vue": "^9.18.1", + "eslint-plugin-vue": "^9.19.2", "fast-glob": "^3.3.2", "husky": "^8.0.3", "lint-staged": "^13.3.0", - "postcss": "^8.4.31", + "postcss": "^8.4.32", "postcss-html": "^1.5.0", "postcss-scss": "^4.0.9", "prettier": "^2.8.8", "sass": "^1.69.5", "stylelint": "^15.11.0", "stylelint-config-html": "^1.1.0", - "stylelint-config-recess-order": "^4.3.0", + "stylelint-config-recess-order": "^4.4.0", "stylelint-config-recommended-scss": "^13.1.0", "stylelint-config-recommended-vue": "^1.5.0", "stylelint-config-standard": "^34.0.0", "stylelint-config-standard-scss": "^11.1.0", - "typescript": "^5.2.2", + "typescript": "^5.3.3", "unocss": "^0.51.13", "unplugin-auto-import": "^0.15.3", "unplugin-icons": "^0.16.6", "unplugin-vue-components": "^0.24.1", - "vite": "^4.5.0", + "vite": "^4.5.1", "vite-plugin-mock": "^3.0.0", "vite-plugin-svg-icons": "^2.0.1", - "vue-tsc": "^1.8.22" + "vue-tsc": "^1.8.26" }, "repository": "https://gitee.com/youlaiorg/vue3-element-admin.git", "author": "有来开源组织", diff --git a/src/settings.ts b/src/settings.ts index 23e2de92..930ffe34 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -1,6 +1,6 @@ const defaultSettings: AppSettings = { title: "vue3-element-admin", - version: "v2.7.1", + version: "v2.7.2", showSettings: true, tagsView: true, fixedHeader: false, -- Gitee From c82b055fe89e0c42915f5588eb33923233cf6af7 Mon Sep 17 00:00:00 2001 From: hxr <1490493387@qq.com> Date: Wed, 27 Dec 2023 23:03:45 +0800 Subject: [PATCH 006/258] =?UTF-8?q?build:=20:package:=20=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=20Vite=205=20=EF=BC=8C=E8=A6=81=E6=B1=82=20node=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E2=89=A5=2018?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- package.json | 16 ++++++++-------- src/settings.ts | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 1ce80183..084ce7a7 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@