Skip to content

Commit 7f455c5

Browse files
committed
feat: v5.0
1 parent 382ece8 commit 7f455c5

File tree

237 files changed

+7298
-3689
lines changed

Some content is hidden

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

237 files changed

+7298
-3689
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ node_modules
33
dist*
44
dist-ssr
55
*.local
6-
*.tsbuildinfo
76
.eslintcache
87
.stylelintcache

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@
2424
"json",
2525
"jsonc",
2626
"yaml"
27-
]
27+
],
28+
"typescript.tsdk": "node_modules/typescript/lib"
2829
}

components.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://shadcn-vue.com/schema.json",
3+
"style": "default",
4+
"typescript": true,
5+
"tailwind": {
6+
"config": "tailwind.config.js",
7+
"css": "src/assets/index.css",
8+
"baseColor": "neutral",
9+
"cssVariables": true
10+
},
11+
"framework": "vite",
12+
"aliases": {
13+
"components": "@/ui/shadcn",
14+
"utils": "@/utils"
15+
}
16+
}

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default antfu(
66
ignores: [
77
'public',
88
'dist*',
9+
'src/ui/shadcn/ui',
910
],
1011
},
1112
{

loading.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@
104104
background-color: snow;
105105
}
106106

107+
.loading-container *::before,
108+
.loading-container *::after {
109+
box-sizing: content-box;
110+
}
111+
107112
.loading-container .loading {
108113
display: flex;
109114
flex-wrap: wrap;
@@ -169,13 +174,15 @@
169174
position: relative;
170175
margin-top: 20px;
171176
font-size: 24px;
177+
line-height: 1.5;
172178
}
173179

174180
.loading-container .tips {
175181
position: relative;
176182
margin-top: 10px;
177183
font-size: 16px;
178184
opacity: 0.5;
185+
line-height: 1.5;
179186
}
180187

181188
.loading-container .tips::after {

package.json

Lines changed: 40 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -25,87 +25,95 @@
2525
"dependencies": {
2626
"@headlessui/vue": "^1.7.23",
2727
"@imengyu/vue3-context-menu": "^1.4.4",
28-
"@vueuse/components": "^12.0.0",
29-
"@vueuse/core": "^12.0.0",
30-
"@vueuse/integrations": "^12.0.0",
28+
"@vee-validate/zod": "^4.15.0",
29+
"@vueuse/components": "^12.3.0",
30+
"@vueuse/core": "^12.3.0",
31+
"@vueuse/integrations": "^12.3.0",
3132
"axios": "^1.7.9",
33+
"class-variance-authority": "^0.7.1",
34+
"clsx": "^2.1.1",
3235
"dayjs": "^1.11.13",
3336
"defu": "^6.1.4",
3437
"disable-devtool": "^0.3.8",
35-
"element-plus": "^2.9.0",
38+
"element-plus": "^2.9.2",
3639
"eruda": "^3.4.1",
37-
"floating-vue": "5.2.2",
38-
"hotkeys-js": "^3.13.7",
39-
"lodash-es": "^4.17.21",
40+
"es-toolkit": "^1.31.0",
41+
"hotkeys-js": "^3.13.9",
42+
"lucide-vue-next": "^0.469.0",
4043
"mitt": "^3.0.1",
41-
"mockjs": "^1.1.0",
4244
"nprogress": "^0.2.0",
4345
"overlayscrollbars": "^2.10.1",
4446
"overlayscrollbars-vue": "^0.5.9",
4547
"path-browserify": "^1.0.1",
4648
"path-to-regexp": "^8.2.0",
4749
"pinia": "^2.3.0",
4850
"qs": "^6.13.1",
51+
"radix-vue": "^1.9.12",
4952
"scule": "^1.3.0",
53+
"tailwind-merge": "^2.6.0",
54+
"ua-parser-js": "^2.0.0",
5055
"vconsole": "^3.15.1",
56+
"vee-validate": "^4.15.0",
5157
"vue": "^3.5.13",
52-
"vue-m-message": "^4.0.2",
53-
"vue-router": "^4.5.0"
58+
"vue-router": "^4.5.0",
59+
"vue-sonner": "^1.3.0",
60+
"zod": "^3.24.1"
5461
},
5562
"devDependencies": {
56-
"@antfu/eslint-config": "3.11.2",
57-
"@iconify/json": "^2.2.280",
58-
"@iconify/vue": "^4.2.0",
63+
"@antfu/eslint-config": "3.12.1",
64+
"@faker-js/faker": "^9.3.0",
65+
"@iconify/json": "^2.2.291",
66+
"@iconify/vue": "^4.3.0",
5967
"@stylistic/stylelint-config": "^2.0.0",
60-
"@types/lodash-es": "^4.17.12",
61-
"@types/mockjs": "^1.0.10",
6268
"@types/nprogress": "^0.2.3",
6369
"@types/path-browserify": "^1.0.3",
6470
"@types/qs": "^6.9.17",
65-
"@unocss/eslint-plugin": "^0.65.1",
71+
"@unocss/eslint-plugin": "^0.65.3",
6672
"@vitejs/plugin-legacy": "^6.0.0",
6773
"@vitejs/plugin-vue": "^5.2.1",
6874
"@vitejs/plugin-vue-jsx": "^4.1.1",
6975
"autoprefixer": "^10.4.20",
7076
"boxen": "^8.0.1",
71-
"bumpp": "^9.9.0",
77+
"bumpp": "^9.9.2",
7278
"cz-git": "^1.11.0",
73-
"eslint": "^9.16.0",
79+
"eslint": "^9.17.0",
7480
"esno": "^4.8.0",
7581
"fs-extra": "^11.2.0",
7682
"http-server": "^14.1.1",
77-
"inquirer": "^12.2.0",
78-
"lint-staged": "^15.2.10",
79-
"npm-run-all2": "^7.0.1",
83+
"inquirer": "^12.3.0",
84+
"lint-staged": "^15.3.0",
85+
"npm-run-all2": "^7.0.2",
8086
"picocolors": "^1.1.1",
8187
"plop": "^4.0.1",
8288
"postcss": "^8.4.49",
8389
"postcss-nested": "^7.0.2",
84-
"sass-embedded": "^1.82.0",
90+
"sass-embedded": "^1.83.1",
8591
"simple-git-hooks": "^2.11.1",
86-
"stylelint": "^16.11.0",
92+
"stylelint": "^16.12.0",
8793
"stylelint-config-recess-order": "^5.1.1",
8894
"stylelint-config-standard-scss": "^14.0.0",
8995
"stylelint-config-standard-vue": "^1.0.0",
9096
"stylelint-scss": "^6.10.0",
9197
"svgo": "^3.3.2",
92-
"typescript": "^5.6.3",
93-
"unocss": "^0.65.1",
98+
"typescript": "^5.7.2",
99+
"unocss": "^0.65.3",
100+
"unocss-preset-animations": "^1.1.0",
94101
"unocss-preset-scrollbar": "^0.3.1",
95-
"unplugin-auto-import": "^0.18.6",
96-
"unplugin-turbo-console": "^1.10.6",
97-
"unplugin-vue-components": "^0.27.5",
98-
"vite": "^6.0.3",
102+
"unplugin-auto-import": "^0.19.0",
103+
"unplugin-turbo-console": "^1.11.1",
104+
"unplugin-vue-components": "^0.28.0",
105+
"vite": "^6.0.7",
99106
"vite-plugin-app-loading": "^0.3.0",
100107
"vite-plugin-archiver": "^0.1.1",
101108
"vite-plugin-banner": "^0.8.0",
102109
"vite-plugin-compression2": "^1.3.3",
103-
"vite-plugin-fake-server": "^2.1.4",
110+
"vite-plugin-env-parse": "^1.0.15",
111+
"vite-plugin-fake-server": "^2.1.5",
104112
"vite-plugin-pages": "^0.32.4",
105113
"vite-plugin-svg-icons": "^2.0.1",
106-
"vite-plugin-vue-devtools": "^7.6.7",
114+
"vite-plugin-vue-devtools": "^7.6.8",
107115
"vite-plugin-vue-meta-layouts": "^0.5.1",
108-
"vue-tsc": "^2.1.10"
116+
"vue-tsc": "^2.2.0"
109117
},
110118
"simple-git-hooks": {
111119
"pre-commit": "pnpm lint-staged",

plop-templates/mock/mock.hbs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
import Mock from 'mockjs'
1+
import { faker } from '@faker-js/faker'
2+
import { defineFakeRoute } from 'vite-plugin-fake-server/client'
23

34
const AllList: any[] = []
45
for (let i = 0; i < 50; i++) {
5-
AllList.push(Mock.mock({
6-
id: '@id',
7-
title: '@ctitle(10, 20)',
8-
}))
6+
AllList.push({
7+
id: i + 1,
8+
title: faker.color.human(),
9+
})
910
}
1011

11-
export default [
12+
export default defineFakeRoute([
1213
{
1314
url: '/mock/{{#if relativePath}}{{ relativePath }}/{{/if}}{{ moduleName }}/list',
1415
method: 'get',
15-
response: (option: any) => {
16-
const { title, from, limit } = option.query
16+
response: ({ query }) => {
17+
const { title, from, limit } = query
1718
const list = AllList.filter((item) => {
1819
return title ? item.title.includes(title) : true
1920
})
@@ -33,8 +34,8 @@ export default [
3334
{
3435
url: '/mock/{{#if relativePath}}{{ relativePath }}/{{/if}}{{ moduleName }}/detail',
3536
method: 'get',
36-
response: (option: any) => {
37-
const info = AllList.filter(item => item.id === option.query.id)
37+
response: ({ query }) => {
38+
const info = AllList.filter(item => item.id === query.id)
3839
return {
3940
error: '',
4041
status: 1,
@@ -81,4 +82,4 @@ export default [
8182
}
8283
},
8384
},
84-
]
85+
])

0 commit comments

Comments
 (0)