Skip to content

Commit d5d1490

Browse files
committed
release: update 6.0.0
1 parent 42ef2f9 commit d5d1490

Some content is hidden

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

82 files changed

+2566
-2365
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v22.12.0
1+
v22.14.0

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 6.0.0 (2025-04-25)
2+
3+
https://github.com/pure-admin/vue-pure-admin/releases/tag/v6.0.0
4+
15
# 5.9.0 (2024-12-11)
26

37
https://github.com/pure-admin/vue-pure-admin/releases/tag/v5.9.0

build/optimize.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const include = [
2222

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

2929
export { include, exclude };

build/plugins.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ import { cdn } from "./cdn";
22
import vue from "@vitejs/plugin-vue";
33
import { viteBuildInfo } from "./info";
44
import svgLoader from "vite-svg-loader";
5+
import Icons from "unplugin-icons/vite";
56
import type { PluginOption } from "vite";
67
import vueJsx from "@vitejs/plugin-vue-jsx";
8+
import tailwindcss from "@tailwindcss/vite";
79
import { configCompressPlugin } from "./compress";
810
import electron from "vite-plugin-electron/simple";
911
import removeNoMatch from "vite-plugin-router-warn";
@@ -24,6 +26,7 @@ export function getPluginsList(
2426
const lifecycle = process.env.npm_lifecycle_event;
2527
const sourcemap = isServe || !!process.env.VSCODE_DEBUG;
2628
return [
29+
tailwindcss(),
2730
vue(),
2831
// jsx、tsx语法支持
2932
vueJsx(),
@@ -53,6 +56,11 @@ export function getPluginsList(
5356
}),
5457
// svg组件化支持
5558
svgLoader(),
59+
// 自动按需加载图标
60+
Icons({
61+
compiler: "vue3",
62+
scale: 1
63+
}),
5664
VITE_CDN ? cdn : null,
5765
configCompressPlugin(VITE_COMPRESSION),
5866
// 线上环境删除console

eslint.config.js

Lines changed: 21 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +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-
"release/*",
17-
"*.d.ts",
18-
"public/*",
19-
"src/assets/**",
20-
"dist-electron/*",
21-
"src/**/iconfont/**"
22-
],
2320
languageOptions: {
2421
globals: {
25-
// index.d.ts
22+
// types/index.d.ts
2623
RefType: "readonly",
2724
EmitType: "readonly",
2825
TargetContext: "readonly",
@@ -75,21 +72,10 @@ export default defineFlatConfig([
7572
]
7673
}
7774
},
78-
{
75+
...tseslint.config({
76+
extends: [...tseslint.configs.recommended],
7977
files: ["**/*.?([cm])ts", "**/*.?([cm])tsx"],
80-
languageOptions: {
81-
parser: parserTypeScript,
82-
parserOptions: {
83-
sourceType: "module",
84-
warnOnUnsupportedTypeScriptVersion: false
85-
}
86-
},
87-
plugins: {
88-
"@typescript-eslint": pluginTypeScript
89-
},
9078
rules: {
91-
...pluginTypeScript.configs.strict.rules,
92-
"@typescript-eslint/ban-types": "off",
9379
"@typescript-eslint/no-redeclare": "error",
9480
"@typescript-eslint/ban-ts-comment": "off",
9581
"@typescript-eslint/no-explicit-any": "off",
@@ -116,20 +102,20 @@ export default defineFlatConfig([
116102
}
117103
]
118104
}
119-
},
105+
}),
120106
{
121107
files: ["**/*.d.ts"],
122108
rules: {
123109
"eslint-comments/no-unlimited-disable": "off",
124110
"import/no-duplicates": "off",
111+
"no-restricted-syntax": "off",
125112
"unused-imports/no-unused-vars": "off"
126113
}
127114
},
128115
{
129116
files: ["**/*.?([cm])js"],
130117
rules: {
131-
"@typescript-eslint/no-require-imports": "off",
132-
"@typescript-eslint/no-var-requires": "off"
118+
"@typescript-eslint/no-require-imports": "off"
133119
}
134120
},
135121
{
@@ -150,18 +136,19 @@ export default defineFlatConfig([
150136
jsx: true
151137
},
152138
extraFileExtensions: [".vue"],
153-
parser: "@typescript-eslint/parser",
139+
parser: tseslint.parser,
154140
sourceType: "module"
155141
}
156142
},
157143
plugins: {
144+
"@typescript-eslint": tseslint.plugin,
158145
vue: pluginVue
159146
},
160147
processor: pluginVue.processors[".vue"],
161148
rules: {
162149
...pluginVue.configs.base.rules,
163-
...pluginVue.configs["vue3-essential"].rules,
164-
...pluginVue.configs["vue3-recommended"].rules,
150+
...pluginVue.configs.essential.rules,
151+
...pluginVue.configs.recommended.rules,
165152
"no-undef": "off",
166153
"no-unused-vars": "off",
167154
"vue/no-v-html": "off",

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<title>electron-pure-admin</title>
1616
<link rel="icon" href="/favicon.ico" />
1717
<script>
18-
window.process = {};
1918
// 关闭SECURITY警告 https://www.electronjs.org/zh/docs/latest/tutorial/security#%E9%9A%94%E7%A6%BB%E4%B8%8D%E5%8F%97%E4%BF%A1%E4%BB%BB%E7%9A%84%E5%86%85%E5%AE%B9
2019
window["ELECTRON_DISABLE_SECURITY_WARNINGS"] = true;
2120
</script>

package.json

Lines changed: 51 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "electron-pure-admin",
3-
"version": "5.9.0",
3+
"version": "6.0.0",
44
"description": "electron-pure-admin",
55
"private": true,
66
"type": "module",
@@ -55,95 +55,93 @@
5555
"dependencies": {
5656
"@pureadmin/descriptions": "^1.2.1",
5757
"@pureadmin/table": "^3.2.1",
58-
"@pureadmin/utils": "^2.5.0",
59-
"@vueuse/core": "^12.0.0",
60-
"@vueuse/motion": "^2.2.6",
58+
"@pureadmin/utils": "^2.6.0",
59+
"@vueuse/core": "^13.1.0",
60+
"@vueuse/motion": "^3.0.3",
6161
"animate.css": "^4.1.1",
62-
"axios": "^1.7.9",
62+
"axios": "^1.9.0",
6363
"dayjs": "^1.11.13",
64-
"echarts": "^5.5.1",
65-
"element-plus": "^2.9.0",
64+
"echarts": "^5.6.0",
65+
"element-plus": "^2.9.8",
6666
"js-cookie": "^3.0.5",
6767
"localforage": "^1.10.0",
6868
"mitt": "^3.0.1",
6969
"nprogress": "^0.2.0",
7070
"path-browserify": "^1.0.1",
71-
"pinia": "^2.3.0",
71+
"pinia": "^3.0.2",
7272
"pinyin-pro": "^3.26.0",
73-
"qs": "^6.13.1",
73+
"qs": "^6.14.0",
7474
"responsive-storage": "^2.2.0",
7575
"sortablejs": "^1.15.6",
7676
"vue": "^3.5.13",
7777
"vue-router": "^4.5.0",
78-
"vue-tippy": "^6.5.0",
79-
"vue-types": "^5.1.3"
78+
"vue-tippy": "^6.7.0",
79+
"vue-types": "^6.0.0"
8080
},
8181
"devDependencies": {
82-
"@commitlint/cli": "^19.6.0",
83-
"@commitlint/config-conventional": "^19.6.0",
84-
"@commitlint/types": "^19.5.0",
85-
"@eslint/js": "^9.16.0",
86-
"@faker-js/faker": "^9.3.0",
87-
"@iconify-icons/ep": "^1.2.12",
88-
"@iconify-icons/ri": "^1.2.10",
89-
"@iconify/vue": "^4.2.0",
82+
"@commitlint/cli": "^19.8.0",
83+
"@commitlint/config-conventional": "^19.8.0",
84+
"@commitlint/types": "^19.8.0",
85+
"@eslint/js": "^9.25.1",
86+
"@faker-js/faker": "^9.7.0",
87+
"@iconify/json": "^2.2.331",
88+
"@iconify/vue": "4.2.0",
89+
"@tailwindcss/vite": "^4.1.4",
9090
"@types/args": "^5.0.3",
9191
"@types/js-cookie": "^3.0.6",
92-
"@types/node": "^20.17.9",
92+
"@types/node": "^20.17.30",
9393
"@types/nprogress": "^0.2.3",
9494
"@types/path-browserify": "^1.0.3",
95-
"@types/qs": "^6.9.17",
95+
"@types/qs": "^6.9.18",
9696
"@types/sortablejs": "^1.15.8",
97-
"@typescript-eslint/eslint-plugin": "^8.18.0",
98-
"@typescript-eslint/parser": "^8.18.0",
99-
"@vitejs/plugin-vue": "^5.2.1",
100-
"@vitejs/plugin-vue-jsx": "^4.1.1",
97+
"@vitejs/plugin-vue": "^5.2.3",
98+
"@vitejs/plugin-vue-jsx": "^4.1.2",
10199
"args": "^5.0.3",
102-
"autoprefixer": "^10.4.20",
103100
"boxen": "^8.0.1",
104-
"code-inspector-plugin": "^0.18.2",
101+
"code-inspector-plugin": "^0.20.10",
105102
"cross-env": "^7.0.3",
106103
"cssnano": "^7.0.6",
107-
"electron": "^33.2.1",
108-
"electron-builder": "^25.1.8",
109-
"eslint": "^9.16.0",
110-
"eslint-config-prettier": "^9.1.0",
111-
"eslint-define-config": "^2.1.0",
112-
"eslint-plugin-prettier": "^5.2.1",
113-
"eslint-plugin-vue": "^9.32.0",
114-
"esno": "^4.7.0",
104+
"electron": "^35.2.1",
105+
"electron-builder": "25.1.8",
106+
"eslint": "^9.25.1",
107+
"eslint-config-prettier": "^10.1.2",
108+
"eslint-plugin-prettier": "^5.2.6",
109+
"eslint-plugin-vue": "^10.0.0",
110+
"esno": "^4.8.0",
115111
"gradient-string": "^3.0.0",
116112
"husky": "^9.1.7",
117113
"icon-gen": "^5.0.0",
118114
"jimp": "0.22.12",
119-
"lint-staged": "^15.2.10",
120-
"postcss": "^8.4.49",
121-
"postcss-html": "^1.7.0",
122-
"postcss-import": "^16.1.0",
115+
"lint-staged": "^15.5.1",
116+
"postcss": "^8.5.3",
117+
"postcss-html": "^1.8.0",
118+
"postcss-load-config": "^6.0.1",
123119
"postcss-scss": "^4.0.9",
124-
"prettier": "^3.4.2",
120+
"prettier": "^3.5.3",
125121
"rimraf": "^6.0.1",
126-
"rollup-plugin-visualizer": "^5.12.0",
127-
"sass": "^1.82.0",
128-
"stylelint": "^16.11.0",
129-
"stylelint-config-recess-order": "^5.1.1",
130-
"stylelint-config-recommended-vue": "^1.5.0",
131-
"stylelint-config-standard-scss": "^13.1.0",
132-
"stylelint-prettier": "^5.0.2",
122+
"rollup-plugin-visualizer": "^5.14.0",
123+
"sass": "^1.87.0",
124+
"stylelint": "^16.19.0",
125+
"stylelint-config-recess-order": "^6.0.0",
126+
"stylelint-config-recommended-vue": "^1.6.0",
127+
"stylelint-config-standard-scss": "^14.0.0",
128+
"stylelint-prettier": "^5.0.3",
133129
"svgo": "^3.3.2",
134-
"tailwindcss": "^3.4.16",
135-
"typescript": "5.6.3",
136-
"vite": "^6.0.3",
130+
"tailwindcss": "^4.1.4",
131+
"typescript": "^5.8.3",
132+
"typescript-eslint": "^8.31.0",
133+
"unplugin-icons": "^22.1.0",
134+
"vite": "^6.3.3",
137135
"vite-plugin-cdn-import": "^1.0.1",
138136
"vite-plugin-compression": "^0.5.1",
139137
"vite-plugin-electron": "^0.29.0",
140138
"vite-plugin-electron-renderer": "^0.14.6",
141-
"vite-plugin-fake-server": "^2.1.4",
139+
"vite-plugin-fake-server": "^2.2.0",
142140
"vite-plugin-remove-console": "^2.2.0",
143141
"vite-plugin-router-warn": "^1.0.0",
144142
"vite-svg-loader": "^5.1.0",
145-
"vue-eslint-parser": "^9.4.3",
146-
"vue-tsc": "^2.1.10"
143+
"vue-eslint-parser": "^10.1.3",
144+
"vue-tsc": "^2.2.10"
147145
},
148146
"engines": {
149147
"node": "^18.18.0 || ^20.9.0 || >=22.0.0"

postcss.config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
/** @type {import('postcss-load-config').Config} */
44
export default {
55
plugins: {
6-
"postcss-import": {},
7-
"tailwindcss/nesting": {},
8-
tailwindcss: {},
9-
autoprefixer: {},
106
...(process.env.NODE_ENV === "production" ? { cssnano: {} } : {})
117
}
128
};

public/platform-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"Version": "5.9.0",
2+
"Version": "6.0.0",
33
"Title": "PureAdmin",
44
"FixedHeader": true,
55
"HiddenSideBar": false,

src/assets/iconfont/iconfont.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)