Skip to content

Commit 97503a3

Browse files
committed
refactor: ♻️ 升级依赖、移除 pdf 预览和修复打包类型警告问题
1 parent 726181f commit 97503a3

File tree

5 files changed

+24
-590
lines changed

5 files changed

+24
-590
lines changed

package.json

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -46,54 +46,53 @@
4646
]
4747
},
4848
"dependencies": {
49-
"@element-plus/icons-vue": "^2.3.1",
50-
"@stomp/stompjs": "^7.1.1",
49+
"@element-plus/icons-vue": "^2.3.2",
50+
"@stomp/stompjs": "^7.2.0",
5151
"@vueuse/core": "^12.8.2",
52-
"@wangeditor-next/editor": "^5.6.42",
52+
"@wangeditor-next/editor": "^5.6.45",
5353
"@wangeditor-next/editor-for-vue": "^5.1.14",
5454
"animate.css": "^4.1.1",
55-
"axios": "^1.11.0",
56-
"codemirror": "^5.65.19",
55+
"axios": "^1.12.2",
56+
"codemirror": "^5.65.20",
5757
"codemirror-editor-vue3": "^2.8.0",
5858
"default-passive-events": "^2.0.0",
5959
"echarts": "^5.6.0",
60-
"element-plus": "^2.10.5",
60+
"element-plus": "^2.11.2",
6161
"exceljs": "^4.4.0",
6262
"lodash-es": "^4.17.21",
6363
"nprogress": "^0.2.0",
6464
"path-browserify": "^1.0.1",
65-
"path-to-regexp": "^8.2.0",
65+
"path-to-regexp": "^8.3.0",
6666
"pinia": "^3.0.3",
6767
"qs": "^6.14.0",
6868
"sortablejs": "^1.15.6",
69-
"vue": "^3.5.18",
69+
"vue": "^3.5.21",
7070
"vue-draggable-plus": "^0.6.0",
71-
"vue-i18n": "^11.1.11",
72-
"vue-pdf-embed": "^2.1.3",
71+
"vue-i18n": "^11.1.12",
7372
"vue-router": "^4.5.1",
7473
"vxe-table": "~4.6.25"
7574
},
7675
"devDependencies": {
7776
"@commitlint/cli": "^19.8.1",
7877
"@commitlint/config-conventional": "^19.8.1",
79-
"@eslint/js": "^9.32.0",
78+
"@eslint/js": "^9.35.0",
8079
"@iconify/utils": "^2.3.0",
8180
"@types/codemirror": "^5.60.16",
8281
"@types/lodash-es": "^4.17.12",
83-
"@types/node": "^22.17.0",
82+
"@types/node": "^22.18.4",
8483
"@types/nprogress": "^0.2.3",
8584
"@types/path-browserify": "^1.0.3",
8685
"@types/qs": "^6.14.0",
8786
"@types/sortablejs": "^1.15.8",
88-
"@typescript-eslint/eslint-plugin": "^8.38.0",
89-
"@typescript-eslint/parser": "^8.38.0",
87+
"@typescript-eslint/eslint-plugin": "^8.44.0",
88+
"@typescript-eslint/parser": "^8.44.0",
9089
"@vitejs/plugin-vue": "^6.0.1",
9190
"autoprefixer": "^10.4.21",
9291
"commitizen": "^4.3.1",
9392
"cz-git": "^1.12.0",
94-
"eslint": "^9.32.0",
93+
"eslint": "^9.35.0",
9594
"eslint-config-prettier": "^10.1.8",
96-
"eslint-plugin-prettier": "^5.5.3",
95+
"eslint-plugin-prettier": "^5.5.4",
9796
"eslint-plugin-vue": "^10.4.0",
9897
"globals": "^15.15.0",
9998
"husky": "^9.1.7",
@@ -102,22 +101,22 @@
102101
"postcss-html": "^1.8.0",
103102
"postcss-scss": "^4.0.9",
104103
"prettier": "^3.6.2",
105-
"sass": "^1.89.2",
106-
"stylelint": "^16.23.0",
104+
"sass": "^1.92.1",
105+
"stylelint": "^16.24.0",
107106
"stylelint-config-html": "^1.1.0",
108107
"stylelint-config-recess-order": "^6.1.0",
109108
"stylelint-config-recommended": "^15.0.0",
110109
"stylelint-config-recommended-scss": "^14.1.0",
111110
"stylelint-config-recommended-vue": "^1.6.1",
112111
"stylelint-prettier": "^5.0.3",
113-
"terser": "^5.43.1",
112+
"terser": "^5.44.0",
114113
"typescript": "^5.9.2",
115-
"typescript-eslint": "^8.38.0",
116-
"unocss": "^66.4.0",
114+
"typescript-eslint": "^8.44.0",
115+
"unocss": "^66.5.1",
117116
"unplugin-auto-import": "^19.3.0",
118117
"unplugin-vue-components": "^28.8.0",
119-
"vite": "^7.0.6",
120-
"vite-plugin-mock-dev-server": "^1.9.1",
118+
"vite": "^7.1.5",
119+
"vite-plugin-mock-dev-server": "^1.9.3",
121120
"vue-eslint-parser": "^10.2.0",
122121
"vue-tsc": "^2.2.12"
123122
},

src/composables/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export { useStomp } from "./websocket/useStomp";
2-
export { useDictSync } from "./websocket/useDictSync";
2+
export { useDictSync, DictMessage } from "./websocket/useDictSync";
33
export { useOnlineCount } from "./websocket/useOnlineCount";
44

55
export { useLayout } from "./layout/useLayout";

src/composables/websocket/useDictSync.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { ref } from "vue";
21
import { useDictStoreHook } from "@/store/modules/dict-store";
32
import { useStomp } from "./useStomp";
43
import type { IMessage } from "@stomp/stompjs";

src/store/modules/settings-store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const useSettingsStore = defineStore("setting", () => {
7171
// 监听主题变化,自动应用样式
7272
watch(
7373
[theme, themeColor],
74-
([newTheme, newThemeColor]) => {
74+
([newTheme, newThemeColor]: [ThemeMode, string]) => {
7575
toggleDarkMode(newTheme === ThemeMode.DARK);
7676
const colors = generateThemeColors(newThemeColor, newTheme);
7777
applyTheme(colors);

0 commit comments

Comments
 (0)