Skip to content

Commit 440ce05

Browse files
committed
Merge branch 'main' into pages
2 parents e72ac8a + e08626d commit 440ce05

File tree

165 files changed

+2887
-2623
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+2887
-2623
lines changed

Diff for: build/optimize.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ const include = [
5757

5858
/**
5959
* 在预构建中强制排除的依赖项
60-
* 温馨提示:所有以 `@iconify-icons/` 开头引入的的本地图标模块,都应该加入到下面的 `exclude` 里,因为平台推荐的使用方式是哪里需要哪里引入而且都是单个的引入,不需要预构建,直接让浏览器加载就好
60+
* 温馨提示:平台推荐的使用方式是哪里需要哪里引入而且都是单个的引入,不需要预构建,直接让浏览器加载就好
6161
*/
62-
const exclude = ["@iconify-icons/ep", "@iconify-icons/ri"];
62+
const exclude = ["@iconify/json"];
6363

6464
export { include, exclude };

Diff for: build/plugins.ts

+8
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import vue from "@vitejs/plugin-vue";
33
import { pathResolve } from "./utils";
44
import { viteBuildInfo } from "./info";
55
import svgLoader from "vite-svg-loader";
6+
import Icons from "unplugin-icons/vite";
67
import type { PluginOption } from "vite";
78
import vueJsx from "@vitejs/plugin-vue-jsx";
9+
import tailwindcss from "@tailwindcss/vite";
810
import { configCompressPlugin } from "./compress";
911
import removeNoMatch from "vite-plugin-router-warn";
1012
import { visualizer } from "rollup-plugin-visualizer";
@@ -19,6 +21,7 @@ export function getPluginsList(
1921
): PluginOption[] {
2022
const lifecycle = process.env.npm_lifecycle_event;
2123
return [
24+
tailwindcss(),
2225
vue({
2326
template: {
2427
compilerOptions: {
@@ -57,6 +60,11 @@ export function getPluginsList(
5760
}),
5861
// svg组件化支持
5962
svgLoader(),
63+
// 自动按需加载图标
64+
Icons({
65+
compiler: "vue3",
66+
scale: 1
67+
}),
6068
VITE_CDN ? cdn : null,
6169
configCompressPlugin(VITE_COMPRESSION),
6270
// 线上环境删除console

Diff for: eslint.config.js

+21-32
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
import js from "@eslint/js";
2+
import tseslint from "typescript-eslint";
23
import pluginVue from "eslint-plugin-vue";
34
import * as parserVue from "vue-eslint-parser";
45
import configPrettier from "eslint-config-prettier";
56
import pluginPrettier from "eslint-plugin-prettier";
6-
import { defineFlatConfig } from "eslint-define-config";
7-
import * as parserTypeScript from "@typescript-eslint/parser";
8-
import pluginTypeScript from "@typescript-eslint/eslint-plugin";
7+
import { defineConfig, globalIgnores } from "eslint/config";
98

10-
export default defineFlatConfig([
9+
export default defineConfig([
10+
globalIgnores([
11+
"**/.*",
12+
"dist/*",
13+
"*.d.ts",
14+
"public/*",
15+
"src/assets/**",
16+
"src/**/iconfont/**"
17+
]),
1118
{
1219
...js.configs.recommended,
13-
ignores: [
14-
"**/.*",
15-
"dist/*",
16-
"*.d.ts",
17-
"public/*",
18-
"src/assets/**",
19-
"src/**/iconfont/**"
20-
],
2120
languageOptions: {
2221
globals: {
23-
// index.d.ts
22+
// types/index.d.ts
2423
RefType: "readonly",
2524
EmitType: "readonly",
2625
TargetContext: "readonly",
@@ -73,21 +72,10 @@ export default defineFlatConfig([
7372
]
7473
}
7574
},
76-
{
75+
...tseslint.config({
76+
extends: [...tseslint.configs.recommended],
7777
files: ["**/*.?([cm])ts", "**/*.?([cm])tsx"],
78-
languageOptions: {
79-
parser: parserTypeScript,
80-
parserOptions: {
81-
sourceType: "module",
82-
warnOnUnsupportedTypeScriptVersion: false
83-
}
84-
},
85-
plugins: {
86-
"@typescript-eslint": pluginTypeScript
87-
},
8878
rules: {
89-
...pluginTypeScript.configs.strict.rules,
90-
"@typescript-eslint/ban-types": "off",
9179
"@typescript-eslint/no-redeclare": "error",
9280
"@typescript-eslint/ban-ts-comment": "off",
9381
"@typescript-eslint/no-explicit-any": "off",
@@ -114,20 +102,20 @@ export default defineFlatConfig([
114102
}
115103
]
116104
}
117-
},
105+
}),
118106
{
119107
files: ["**/*.d.ts"],
120108
rules: {
121109
"eslint-comments/no-unlimited-disable": "off",
122110
"import/no-duplicates": "off",
111+
"no-restricted-syntax": "off",
123112
"unused-imports/no-unused-vars": "off"
124113
}
125114
},
126115
{
127116
files: ["**/*.?([cm])js"],
128117
rules: {
129-
"@typescript-eslint/no-require-imports": "off",
130-
"@typescript-eslint/no-var-requires": "off"
118+
"@typescript-eslint/no-require-imports": "off"
131119
}
132120
},
133121
{
@@ -148,18 +136,19 @@ export default defineFlatConfig([
148136
jsx: true
149137
},
150138
extraFileExtensions: [".vue"],
151-
parser: "@typescript-eslint/parser",
139+
parser: tseslint.parser,
152140
sourceType: "module"
153141
}
154142
},
155143
plugins: {
144+
"@typescript-eslint": tseslint.plugin,
156145
vue: pluginVue
157146
},
158147
processor: pluginVue.processors[".vue"],
159148
rules: {
160149
...pluginVue.configs.base.rules,
161-
...pluginVue.configs["vue3-essential"].rules,
162-
...pluginVue.configs["vue3-recommended"].rules,
150+
...pluginVue.configs.essential.rules,
151+
...pluginVue.configs.recommended.rules,
163152
"no-undef": "off",
164153
"no-unused-vars": "off",
165154
"vue/no-v-html": "off",

Diff for: mock/mine.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default defineFakeRoute([
2525
url: "/mine-logs",
2626
method: "get",
2727
response: () => {
28-
let list = [
28+
const list = [
2929
{
3030
id: 1,
3131
ip: faker.internet.ipv4(),

Diff for: package.json

+44-50
Original file line numberDiff line numberDiff line change
@@ -54,25 +54,25 @@
5454
"@logicflow/extension": "^1.2.28",
5555
"@pureadmin/descriptions": "^1.2.1",
5656
"@pureadmin/table": "^3.2.1",
57-
"@pureadmin/utils": "^2.5.0",
57+
"@pureadmin/utils": "^2.6.0",
5858
"@vue-flow/background": "^1.3.2",
59-
"@vue-flow/core": "^1.42.1",
60-
"@vueuse/core": "^12.5.0",
61-
"@vueuse/motion": "^2.2.6",
59+
"@vue-flow/core": "^1.42.5",
60+
"@vueuse/core": "^13.1.0",
61+
"@vueuse/motion": "^3.0.3",
6262
"@wangeditor/editor": "^5.1.23",
6363
"@wangeditor/editor-for-vue": "^5.1.12",
6464
"@zxcvbn-ts/core": "^3.0.4",
6565
"animate.css": "^4.1.1",
66-
"axios": "^1.7.9",
66+
"axios": "^1.8.4",
6767
"china-area-data": "^5.0.1",
68-
"codemirror": "^5.65.18",
68+
"codemirror": "^5.65.19",
6969
"codemirror-editor-vue3": "^2.8.0",
7070
"cropperjs": "^1.6.2",
7171
"dayjs": "^1.11.13",
7272
"deep-chat": "^2.1.1",
7373
"echarts": "^5.6.0",
7474
"el-table-infinite-scroll": "^3.0.6",
75-
"element-plus": "^2.9.4",
75+
"element-plus": "^2.9.7",
7676
"highlight.js": "^11.11.1",
7777
"intro.js": "^7.2.0",
7878
"js-cookie": "^3.0.5",
@@ -85,96 +85,94 @@
8585
"path-browserify": "^1.0.1",
8686
"pinia": "^3.0.1",
8787
"pinyin-pro": "^3.26.0",
88-
"plus-pro-components": "^0.1.20",
88+
"plus-pro-components": "^0.1.22",
8989
"qrcode": "^1.5.4",
9090
"qs": "^6.14.0",
9191
"responsive-storage": "^2.2.0",
9292
"sortablejs": "^1.15.6",
93-
"swiper": "^11.2.3",
93+
"swiper": "^11.2.6",
9494
"typeit": "^8.8.7",
9595
"v-contextmenu": "^3.2.0",
9696
"v3-infinite-loading": "^1.3.2",
9797
"vditor": "^3.10.9",
9898
"version-rocket": "^1.7.4",
9999
"vue": "^3.5.13",
100-
"vue-i18n": "^11.1.1",
100+
"vue-i18n": "^11.1.3",
101101
"vue-json-pretty": "^2.4.0",
102102
"vue-pdf-embed": "^2.1.2",
103103
"vue-router": "^4.5.0",
104-
"vue-tippy": "^6.6.0",
105-
"vue-types": "^5.1.3",
104+
"vue-tippy": "^6.7.0",
105+
"vue-types": "^6.0.0",
106106
"vue-virtual-scroller": "2.0.0-beta.8",
107107
"vue-waterfall-plugin-next": "^2.6.5",
108108
"vue3-danmaku": "^1.6.1",
109109
"vue3-puzzle-vcode": "^1.1.7",
110110
"vuedraggable": "^4.1.0",
111111
"vxe-table": "4.6.25",
112-
"wavesurfer.js": "^7.9.1",
113-
"xgplayer": "^3.0.20",
112+
"wavesurfer.js": "^7.9.4",
113+
"xgplayer": "^3.0.21",
114114
"xlsx": "^0.18.5"
115115
},
116116
"devDependencies": {
117-
"@commitlint/cli": "^19.7.1",
118-
"@commitlint/config-conventional": "^19.7.1",
119-
"@commitlint/types": "^19.5.0",
120-
"@eslint/js": "^9.20.0",
121-
"@faker-js/faker": "^9.5.0",
122-
"@iconify-icons/ep": "^1.2.12",
123-
"@iconify-icons/ri": "^1.2.10",
117+
"@commitlint/cli": "^19.8.0",
118+
"@commitlint/config-conventional": "^19.8.0",
119+
"@commitlint/types": "^19.8.0",
120+
"@eslint/js": "^9.24.0",
121+
"@faker-js/faker": "^9.6.0",
122+
"@iconify/json": "^2.2.324",
124123
"@iconify/vue": "4.2.0",
125-
"@intlify/unplugin-vue-i18n": "^6.0.3",
124+
"@intlify/unplugin-vue-i18n": "^6.0.5",
125+
"@tailwindcss/vite": "^4.1.3",
126126
"@types/codemirror": "^5.60.15",
127127
"@types/dagre": "^0.7.52",
128128
"@types/intro.js": "^5.1.5",
129129
"@types/js-cookie": "^3.0.6",
130-
"@types/node": "^20.17.19",
130+
"@types/node": "^20.17.30",
131131
"@types/nprogress": "^0.2.3",
132132
"@types/path-browserify": "^1.0.3",
133133
"@types/qrcode": "^1.5.5",
134134
"@types/qs": "^6.9.18",
135135
"@types/sortablejs": "^1.15.8",
136-
"@typescript-eslint/eslint-plugin": "^8.24.0",
137-
"@typescript-eslint/parser": "^8.24.0",
138-
"@vitejs/plugin-vue": "^5.2.1",
139-
"@vitejs/plugin-vue-jsx": "^4.1.1",
140-
"autoprefixer": "^10.4.20",
136+
"@vitejs/plugin-vue": "^5.2.3",
137+
"@vitejs/plugin-vue-jsx": "^4.1.2",
141138
"boxen": "^8.0.1",
142-
"code-inspector-plugin": "^0.20.0",
139+
"code-inspector-plugin": "^0.20.7",
143140
"cssnano": "^7.0.6",
144141
"dagre": "^0.8.5",
145-
"eslint": "^9.20.1",
146-
"eslint-config-prettier": "^10.0.1",
147-
"eslint-define-config": "^2.1.0",
148-
"eslint-plugin-prettier": "^5.2.3",
149-
"eslint-plugin-vue": "^9.32.0",
142+
"eslint": "^9.24.0",
143+
"eslint-config-prettier": "^10.1.1",
144+
"eslint-plugin-prettier": "^5.2.6",
145+
"eslint-plugin-vue": "^10.0.0",
150146
"gradient-string": "^3.0.0",
151147
"husky": "^9.1.7",
152-
"lint-staged": "^15.4.3",
153-
"postcss": "^8.5.2",
148+
"lint-staged": "^15.5.0",
149+
"postcss": "^8.5.3",
154150
"postcss-html": "^1.8.0",
155-
"postcss-import": "^16.1.0",
151+
"postcss-load-config": "^6.0.1",
156152
"postcss-scss": "^4.0.9",
157-
"prettier": "^3.5.1",
153+
"prettier": "^3.5.3",
158154
"rimraf": "^6.0.1",
159155
"rollup-plugin-visualizer": "^5.14.0",
160-
"sass": "^1.85.0",
161-
"stylelint": "^16.14.1",
156+
"sass": "^1.86.3",
157+
"stylelint": "^16.18.0",
162158
"stylelint-config-recess-order": "^6.0.0",
163159
"stylelint-config-recommended-vue": "^1.6.0",
164160
"stylelint-config-standard-scss": "^14.0.0",
165161
"stylelint-prettier": "^5.0.3",
166162
"svgo": "^3.3.2",
167-
"tailwindcss": "3.4.17",
168-
"typescript": "^5.7.3",
169-
"vite": "^6.1.0",
163+
"tailwindcss": "^4.1.3",
164+
"typescript": "^5.8.3",
165+
"typescript-eslint": "^8.29.1",
166+
"unplugin-icons": "^22.1.0",
167+
"vite": "^6.2.5",
170168
"vite-plugin-cdn-import": "^1.0.1",
171169
"vite-plugin-compression": "^0.5.1",
172170
"vite-plugin-fake-server": "^2.2.0",
173171
"vite-plugin-remove-console": "^2.2.0",
174172
"vite-plugin-router-warn": "^1.0.0",
175173
"vite-svg-loader": "^5.1.0",
176-
"vue-eslint-parser": "^9.4.3",
177-
"vue-tsc": "^2.2.0"
174+
"vue-eslint-parser": "^10.1.3",
175+
"vue-tsc": "^2.2.8"
178176
},
179177
"engines": {
180178
"node": "^18.18.0 || ^20.9.0 || >=22.0.0",
@@ -184,6 +182,7 @@
184182
"allowedDeprecatedVersions": {
185183
"are-we-there-yet": "*",
186184
"sourcemap-codec": "*",
185+
"lodash.isequal": "*",
187186
"domexception": "*",
188187
"w3c-hr-time": "*",
189188
"inflight": "*",
@@ -194,11 +193,6 @@
194193
"abab": "*",
195194
"glob": "*"
196195
},
197-
"peerDependencyRules": {
198-
"allowedVersions": {
199-
"eslint": "9"
200-
}
201-
},
202196
"onlyBuiltDependencies": [
203197
"@parcel/watcher",
204198
"core-js",

0 commit comments

Comments
 (0)