Skip to content

Commit e25f4bc

Browse files
committed
release: update 5.4.0
1 parent 270df1b commit e25f4bc

44 files changed

Lines changed: 1013 additions & 903 deletions

Some content is hidden

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

.eslintignore

Lines changed: 0 additions & 11 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 120 deletions
This file was deleted.

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.11.1
1+
v20.12.2

eslint.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ import pluginTypeScript from "@typescript-eslint/eslint-plugin";
1010
export default defineFlatConfig([
1111
{
1212
...js.configs.recommended,
13-
ignores: ["src/assets/**", "src/**/iconfont/**"],
13+
ignores: [
14+
"**/.*",
15+
"dist/*",
16+
"*.d.ts",
17+
"public/*",
18+
"src/assets/**",
19+
"src/**/iconfont/**"
20+
],
1421
languageOptions: {
1522
globals: {
1623
// index.d.ts

mock/login.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ export default defineFakeRoute([
1010
return {
1111
success: true,
1212
data: {
13+
avatar: "https://avatars.githubusercontent.com/u/44761321",
1314
username: "admin",
15+
nickname: "小铭",
1416
// 一个用户可能有多个角色
1517
roles: ["admin"],
1618
accessToken: "eyJhbGciOiJIUzUxMiJ9.admin",
@@ -22,8 +24,9 @@ export default defineFakeRoute([
2224
return {
2325
success: true,
2426
data: {
27+
avatar: "https://avatars.githubusercontent.com/u/52823142",
2528
username: "common",
26-
// 一个用户可能有多个角色
29+
nickname: "小林",
2730
roles: ["common"],
2831
accessToken: "eyJhbGciOiJIUzUxMiJ9.common",
2932
refreshToken: "eyJhbGciOiJIUzUxMiJ9.commonRefresh",

package.json

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pure-admin-thin",
3-
"version": "5.3.0",
3+
"version": "5.4.0",
44
"private": true,
55
"type": "module",
66
"scripts": {
@@ -13,7 +13,6 @@
1313
"preview:build": "pnpm build && vite preview",
1414
"typecheck": "tsc --noEmit && vue-tsc --noEmit --skipLibCheck",
1515
"svgo": "svgo -f . -r",
16-
"cloc": "NODE_OPTIONS=--max-old-space-size=4096 cloc . --exclude-dir=node_modules --exclude-lang=YAML",
1716
"clean:cache": "rimraf .eslintcache && rimraf pnpm-lock.yaml && rimraf node_modules && pnpm store prune && pnpm install",
1817
"lint:eslint": "eslint --cache --max-warnings 0 \"{src,mock,build}/**/*.{vue,js,ts,tsx}\" --fix",
1918
"lint:prettier": "prettier --write \"src/**/*.{js,ts,json,tsx,css,scss,vue,html,md}\"",
@@ -57,51 +56,50 @@
5756
"axios": "^1.6.8",
5857
"dayjs": "^1.11.10",
5958
"echarts": "^5.5.0",
60-
"element-plus": "^2.6.2",
59+
"element-plus": "^2.7.1",
6160
"js-cookie": "^3.0.5",
6261
"localforage": "^1.10.0",
6362
"mitt": "^3.0.1",
6463
"nprogress": "^0.2.0",
6564
"path": "^0.12.7",
6665
"pinia": "^2.1.7",
67-
"pinyin-pro": "^3.19.6",
68-
"qs": "^6.12.0",
66+
"pinyin-pro": "^3.20.2",
67+
"qs": "^6.12.1",
6968
"responsive-storage": "^2.2.0",
7069
"sortablejs": "^1.15.2",
71-
"vue": "^3.4.21",
72-
"vue-router": "^4.3.0",
70+
"vue": "^3.4.23",
71+
"vue-router": "^4.3.2",
7372
"vue-tippy": "^6.4.1",
7473
"vue-types": "^5.1.1"
7574
},
7675
"devDependencies": {
77-
"@commitlint/cli": "^19.2.1",
78-
"@commitlint/config-conventional": "^19.1.0",
76+
"@commitlint/cli": "^19.2.2",
77+
"@commitlint/config-conventional": "^19.2.2",
7978
"@commitlint/types": "^19.0.3",
80-
"@eslint/js": "^8.57.0",
79+
"@eslint/js": "^9.1.1",
8180
"@faker-js/faker": "^8.4.1",
8281
"@iconify-icons/ep": "^1.2.12",
8382
"@iconify-icons/ri": "^1.2.10",
84-
"@iconify/vue": "^4.1.1",
83+
"@iconify/vue": "^4.1.2",
8584
"@pureadmin/theme": "^3.2.0",
86-
"@types/gradient-string": "^1.1.5",
85+
"@types/gradient-string": "^1.1.6",
8786
"@types/js-cookie": "^3.0.6",
88-
"@types/node": "^20.11.30",
87+
"@types/node": "^20.12.7",
8988
"@types/nprogress": "^0.2.3",
90-
"@types/qs": "^6.9.14",
89+
"@types/qs": "^6.9.15",
9190
"@types/sortablejs": "^1.15.8",
92-
"@typescript-eslint/eslint-plugin": "^7.4.0",
93-
"@typescript-eslint/parser": "^7.4.0",
91+
"@typescript-eslint/eslint-plugin": "^7.7.0",
92+
"@typescript-eslint/parser": "^7.7.0",
9493
"@vitejs/plugin-vue": "^5.0.4",
9594
"@vitejs/plugin-vue-jsx": "^3.1.0",
9695
"autoprefixer": "^10.4.19",
9796
"boxen": "^7.1.1",
98-
"cloc": "^2.11.0",
9997
"cssnano": "^6.1.2",
100-
"eslint": "^8.57.0",
98+
"eslint": "^9.1.0",
10199
"eslint-config-prettier": "^9.1.0",
102100
"eslint-define-config": "^2.1.0",
103101
"eslint-plugin-prettier": "^5.1.3",
104-
"eslint-plugin-vue": "^9.24.0",
102+
"eslint-plugin-vue": "^9.25.0",
105103
"gradient-string": "^2.0.2",
106104
"husky": "^9.0.11",
107105
"lint-staged": "^15.2.2",
@@ -112,16 +110,16 @@
112110
"prettier": "^3.2.5",
113111
"rimraf": "^5.0.5",
114112
"rollup-plugin-visualizer": "^5.12.0",
115-
"sass": "^1.72.0",
113+
"sass": "^1.75.0",
116114
"stylelint": "^16.3.1",
117-
"stylelint-config-recess-order": "^5.0.0",
115+
"stylelint-config-recess-order": "^5.0.1",
118116
"stylelint-config-recommended-vue": "^1.5.0",
119-
"stylelint-config-standard-scss": "^13.0.0",
117+
"stylelint-config-standard-scss": "^13.1.0",
120118
"stylelint-prettier": "^5.0.0",
121119
"svgo": "^3.2.0",
122120
"tailwindcss": "^3.4.3",
123-
"typescript": "^5.4.3",
124-
"vite": "^5.2.6",
121+
"typescript": "^5.4.5",
122+
"vite": "^5.2.10",
125123
"vite-plugin-cdn-import": "^0.3.5",
126124
"vite-plugin-compression": "^0.5.1",
127125
"vite-plugin-fake-server": "^2.1.1",
@@ -143,6 +141,11 @@
143141
"w3c-hr-time": "*",
144142
"stable": "*",
145143
"abab": "*"
144+
},
145+
"peerDependencyRules": {
146+
"allowedVersions": {
147+
"eslint": "9"
148+
}
146149
}
147150
}
148151
}

0 commit comments

Comments
 (0)