Skip to content

Commit 13a36c0

Browse files
committedDec 15, 2024
release: update 5.9.0
1 parent 85e5074 commit 13a36c0

File tree

24 files changed

+2407
-3109
lines changed

24 files changed

+2407
-3109
lines changed
 

‎.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.15.0
1+
v22.12.0

‎README.en-US.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ The simplified version is based on the shelf extracted from [vue-pure-admin](htt
1010

1111
## `js` version
1212

13-
[Click me to view js version](https://pure-admin.github.io/pure-admin-doc/pages/js/)
13+
[Click me to view js version](https://pure-admin.cn/pages/js/)
1414

1515
## `max` version
1616

17-
[Click me to view the max version](https://github.com/pure-admin/vue-pure-admin-max)
17+
[Click me to view the max version](https://pure-admin.cn/pages/max/)
1818

1919
## Supporting video
2020

@@ -23,12 +23,12 @@ The simplified version is based on the shelf extracted from [vue-pure-admin](htt
2323

2424
## Nanny-level documents
2525

26-
[Click me to view vue-pure-admin documentation](https://pure-admin.github.io/pure-admin-doc)
26+
[Click me to view vue-pure-admin documentation](https://pure-admin.cn/)
2727
[Click me to view @pureadmin/utils documentation](https://pure-admin-utils.netlify.app)
2828

2929
## Quality service, software outsourcing, sponsorship support
3030

31-
[Click me to view details](https://pure-admin.github.io/pure-admin-doc/pages/service/)
31+
[Click me to view details](https://pure-admin.cn/pages/service/)
3232

3333
## Preview
3434

‎README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
## `js` 版本
1616

17-
[点我查看 js 版本](https://pure-admin.github.io/pure-admin-doc/pages/js/)
17+
[点我查看 js 版本](https://pure-admin.cn/pages/js/)
1818

1919
## `max` 版本
2020

21-
[点我查看 max 版本](https://github.com/pure-admin/vue-pure-admin-max)
21+
[点我查看 max 版本](https://pure-admin.cn/pages/max/)
2222

2323
## 配套视频
2424

@@ -27,12 +27,12 @@
2727

2828
## 配套保姆级文档
2929

30-
[点我查看 vue-pure-admin 文档](https://pure-admin.github.io/pure-admin-doc)
30+
[点我查看 vue-pure-admin 文档](https://pure-admin.cn/)
3131
[点我查看 @pureadmin/utils 文档](https://pure-admin-utils.netlify.app)
3232

3333
## 优质服务、软件外包、赞助支持
3434

35-
[点我查看详情](https://pure-admin.github.io/pure-admin-doc/pages/service/)
35+
[点我查看详情](https://pure-admin.cn/pages/service/)
3636

3737
## 预览
3838

‎build/info.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import type { Plugin } from "vite";
2+
import gradient from "gradient-string";
23
import { getPackageSize } from "./utils";
34
import dayjs, { type Dayjs } from "dayjs";
45
import duration from "dayjs/plugin/duration";
5-
import gradientString from "gradient-string";
66
import boxen, { type Options as BoxenOptions } from "boxen";
77
dayjs.extend(duration);
88

9-
const welcomeMessage = gradientString("cyan", "magenta").multiline(
10-
`您好! 欢迎使用 pure-admin 开源项目\n我们为您精心准备了下面两个贴心的保姆级文档\nhttps://pure-admin.github.io/pure-admin-doc\nhttps://pure-admin-utils.netlify.app`
9+
const welcomeMessage = gradient(["cyan", "magenta"]).multiline(
10+
`您好! 欢迎使用 pure-admin 开源项目\n我们为您精心准备了下面两个贴心的保姆级文档\nhttps://pure-admin.cn\nhttps://pure-admin-utils.netlify.app`
1111
);
1212

1313
const boxenOptions: BoxenOptions = {
@@ -41,7 +41,7 @@ export function viteBuildInfo(): Plugin {
4141
callback: (size: string) => {
4242
console.log(
4343
boxen(
44-
gradientString("cyan", "magenta").multiline(
44+
gradient(["cyan", "magenta"]).multiline(
4545
`🎉 恭喜打包完成(总用时${dayjs
4646
.duration(endTime.diff(startTime))
4747
.format("mm分ss秒")},打包后的大小为${size})`

‎build/optimize.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ const include = [
2424
* 在预构建中强制排除的依赖项
2525
* 温馨提示:所有以 `@iconify-icons/` 开头引入的的本地图标模块,都应该加入到下面的 `exclude` 里,因为平台推荐的使用方式是哪里需要哪里引入而且都是单个的引入,不需要预构建,直接让浏览器加载就好
2626
*/
27-
const exclude = [
28-
"@iconify-icons/ep",
29-
"@iconify-icons/ri",
30-
"@pureadmin/theme/dist/browser-utils"
31-
];
27+
const exclude = ["@iconify-icons/ep", "@iconify-icons/ri"];
3228

3329
export { include, exclude };

‎build/plugins.ts

+10-23
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
import { cdn } from "./cdn";
22
import vue from "@vitejs/plugin-vue";
3-
import { pathResolve } from "./utils";
43
import { viteBuildInfo } from "./info";
54
import svgLoader from "vite-svg-loader";
65
import type { PluginOption } from "vite";
7-
import checker from "vite-plugin-checker";
86
import vueJsx from "@vitejs/plugin-vue-jsx";
9-
import Inspector from "vite-plugin-vue-inspector";
107
import { configCompressPlugin } from "./compress";
118
import removeNoMatch from "vite-plugin-router-warn";
129
import { visualizer } from "rollup-plugin-visualizer";
1310
import removeConsole from "vite-plugin-remove-console";
14-
import { themePreprocessorPlugin } from "@pureadmin/theme";
15-
import { genScssMultipleScopeVars } from "../src/layout/theme";
11+
import { codeInspectorPlugin } from "code-inspector-plugin";
1612
import { vitePluginFakeServer } from "vite-plugin-fake-server";
1713

1814
export function getPluginsList(
@@ -24,18 +20,16 @@ export function getPluginsList(
2420
vue(),
2521
// jsx、tsx语法支持
2622
vueJsx(),
27-
checker({
28-
typescript: true,
29-
vueTsc: true,
30-
eslint: {
31-
lintCommand: `eslint ${pathResolve("../{src,mock,build}/**/*.{vue,js,ts,tsx}")}`,
32-
useFlatConfig: true
33-
},
34-
terminal: false,
35-
enableBuild: false
23+
/**
24+
* 在页面上按住组合键时,鼠标在页面移动即会在 DOM 上出现遮罩层并显示相关信息,点击一下将自动打开 IDE 并将光标定位到元素对应的代码位置
25+
* Mac 默认组合键 Option + Shift
26+
* Windows 默认组合键 Alt + Shift
27+
* 更多用法看 https://inspector.fe-dev.cn/guide/start.html
28+
*/
29+
codeInspectorPlugin({
30+
bundler: "vite",
31+
hideConsole: true
3632
}),
37-
// 按下Command(⌘)+Shift(⇧),然后点击页面元素会自动打开本地IDE并跳转到对应的代码位置
38-
Inspector(),
3933
viteBuildInfo(),
4034
/**
4135
* 开发环境下移除非必要的vue-router动态路由警告No match found for location with path
@@ -50,13 +44,6 @@ export function getPluginsList(
5044
infixName: false,
5145
enableProd: true
5246
}),
53-
// 自定义主题
54-
themePreprocessorPlugin({
55-
scss: {
56-
multipleScopeVars: genScssMultipleScopeVars(),
57-
extract: true
58-
}
59-
}),
6047
// svg组件化支持
6148
svgLoader(),
6249
VITE_CDN ? cdn : null,

‎eslint.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ export default defineFlatConfig([
7878
languageOptions: {
7979
parser: parserTypeScript,
8080
parserOptions: {
81-
sourceType: "module"
81+
sourceType: "module",
82+
warnOnUnsupportedTypeScriptVersion: false
8283
}
8384
},
8485
plugins: {
@@ -93,6 +94,8 @@ export default defineFlatConfig([
9394
"@typescript-eslint/prefer-as-const": "warn",
9495
"@typescript-eslint/no-empty-function": "off",
9596
"@typescript-eslint/no-non-null-assertion": "off",
97+
"@typescript-eslint/no-unused-expressions": "off",
98+
"@typescript-eslint/no-unsafe-function-type": "off",
9699
"@typescript-eslint/no-import-type-side-effects": "error",
97100
"@typescript-eslint/explicit-module-boundary-types": "off",
98101
"@typescript-eslint/consistent-type-imports": [

‎package.json

+49-51
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pure-admin-thin",
3-
"version": "5.8.0",
3+
"version": "5.9.0",
44
"private": true,
55
"type": "module",
66
"scripts": {
@@ -49,91 +49,89 @@
4949
},
5050
"dependencies": {
5151
"@pureadmin/descriptions": "^1.2.1",
52-
"@pureadmin/table": "^3.2.0",
53-
"@pureadmin/utils": "^2.4.8",
54-
"@vueuse/core": "^10.11.1",
55-
"@vueuse/motion": "^2.2.3",
52+
"@pureadmin/table": "^3.2.1",
53+
"@pureadmin/utils": "^2.5.0",
54+
"@vueuse/core": "^12.0.0",
55+
"@vueuse/motion": "^2.2.6",
5656
"animate.css": "^4.1.1",
57-
"axios": "^1.7.4",
58-
"dayjs": "^1.11.12",
57+
"axios": "^1.7.9",
58+
"dayjs": "^1.11.13",
5959
"echarts": "^5.5.1",
60-
"element-plus": "^2.8.0",
60+
"element-plus": "^2.9.0",
6161
"js-cookie": "^3.0.5",
6262
"localforage": "^1.10.0",
6363
"mitt": "^3.0.1",
6464
"nprogress": "^0.2.0",
65-
"path": "^0.12.7",
66-
"pinia": "^2.2.2",
67-
"pinyin-pro": "^3.24.2",
68-
"qs": "^6.13.0",
65+
"path-browserify": "^1.0.1",
66+
"pinia": "^2.3.0",
67+
"pinyin-pro": "^3.26.0",
68+
"qs": "^6.13.1",
6969
"responsive-storage": "^2.2.0",
70-
"sortablejs": "^1.15.2",
71-
"vue": "^3.4.38",
72-
"vue-router": "^4.4.3",
73-
"vue-tippy": "^6.4.4",
70+
"sortablejs": "^1.15.6",
71+
"vue": "^3.5.13",
72+
"vue-router": "^4.5.0",
73+
"vue-tippy": "^6.5.0",
7474
"vue-types": "^5.1.3"
7575
},
7676
"devDependencies": {
77-
"@commitlint/cli": "^19.4.0",
78-
"@commitlint/config-conventional": "^19.2.2",
79-
"@commitlint/types": "^19.0.3",
80-
"@eslint/js": "^9.9.0",
81-
"@faker-js/faker": "^8.4.1",
77+
"@commitlint/cli": "^19.6.0",
78+
"@commitlint/config-conventional": "^19.6.0",
79+
"@commitlint/types": "^19.5.0",
80+
"@eslint/js": "^9.16.0",
81+
"@faker-js/faker": "^9.3.0",
8282
"@iconify-icons/ep": "^1.2.12",
8383
"@iconify-icons/ri": "^1.2.10",
84-
"@iconify/vue": "^4.1.2",
85-
"@pureadmin/theme": "^3.2.0",
86-
"@types/gradient-string": "^1.1.6",
84+
"@iconify/vue": "^4.2.0",
8785
"@types/js-cookie": "^3.0.6",
88-
"@types/node": "^20.16.1",
86+
"@types/node": "^20.17.9",
8987
"@types/nprogress": "^0.2.3",
90-
"@types/qs": "^6.9.15",
88+
"@types/path-browserify": "^1.0.3",
89+
"@types/qs": "^6.9.17",
9190
"@types/sortablejs": "^1.15.8",
92-
"@typescript-eslint/eslint-plugin": "^7.18.0",
93-
"@typescript-eslint/parser": "^7.18.0",
94-
"@vitejs/plugin-vue": "^5.1.2",
95-
"@vitejs/plugin-vue-jsx": "^4.0.1",
91+
"@typescript-eslint/eslint-plugin": "^8.18.0",
92+
"@typescript-eslint/parser": "^8.18.0",
93+
"@vitejs/plugin-vue": "^5.2.1",
94+
"@vitejs/plugin-vue-jsx": "^4.1.1",
9695
"autoprefixer": "^10.4.20",
97-
"boxen": "^7.1.1",
98-
"cssnano": "^7.0.5",
99-
"eslint": "^9.9.0",
96+
"boxen": "^8.0.1",
97+
"code-inspector-plugin": "^0.18.2",
98+
"cssnano": "^7.0.6",
99+
"eslint": "^9.16.0",
100100
"eslint-config-prettier": "^9.1.0",
101101
"eslint-define-config": "^2.1.0",
102102
"eslint-plugin-prettier": "^5.2.1",
103-
"eslint-plugin-vue": "^9.27.0",
104-
"gradient-string": "^2.0.2",
105-
"husky": "^9.1.4",
106-
"lint-staged": "^15.2.9",
107-
"postcss": "^8.4.41",
103+
"eslint-plugin-vue": "^9.32.0",
104+
"gradient-string": "^3.0.0",
105+
"husky": "^9.1.7",
106+
"lint-staged": "^15.2.10",
107+
"postcss": "^8.4.49",
108108
"postcss-html": "^1.7.0",
109109
"postcss-import": "^16.1.0",
110110
"postcss-scss": "^4.0.9",
111-
"prettier": "^3.3.3",
112-
"rimraf": "^5.0.10",
111+
"prettier": "^3.4.2",
112+
"rimraf": "^6.0.1",
113113
"rollup-plugin-visualizer": "^5.12.0",
114-
"sass": "^1.77.8",
115-
"stylelint": "^16.8.2",
116-
"stylelint-config-recess-order": "^5.0.1",
114+
"sass": "^1.82.0",
115+
"stylelint": "^16.11.0",
116+
"stylelint-config-recess-order": "^5.1.1",
117117
"stylelint-config-recommended-vue": "^1.5.0",
118118
"stylelint-config-standard-scss": "^13.1.0",
119119
"stylelint-prettier": "^5.0.2",
120120
"svgo": "^3.3.2",
121-
"tailwindcss": "^3.4.10",
122-
"typescript": "^5.5.4",
123-
"vite": "^5.4.1",
121+
"tailwindcss": "^3.4.16",
122+
"typescript": "5.6.3",
123+
"vite": "^6.0.3",
124124
"vite-plugin-cdn-import": "^1.0.1",
125-
"vite-plugin-checker": "^0.7.2",
126125
"vite-plugin-compression": "^0.5.1",
127-
"vite-plugin-fake-server": "^2.1.1",
126+
"vite-plugin-fake-server": "^2.1.4",
128127
"vite-plugin-remove-console": "^2.2.0",
129128
"vite-plugin-router-warn": "^1.0.0",
130-
"vite-plugin-vue-inspector": "^5.1.3",
131129
"vite-svg-loader": "^5.1.0",
132130
"vue-eslint-parser": "^9.4.3",
133-
"vue-tsc": "^2.0.29"
131+
"vue-tsc": "^2.1.10"
134132
},
135133
"engines": {
136-
"node": "^18.18.0 || ^20.9.0 || >=21.1.0",
134+
"node": "^18.18.0 || ^20.9.0 || >=22.0.0",
137135
"pnpm": ">=9"
138136
},
139137
"pnpm": {

0 commit comments

Comments
 (0)
Failed to load comments.