Skip to content

Commit cbcf05e

Browse files
committed
chore: upgrade vexip-ui and add custom variables
1 parent 2046c46 commit cbcf05e

File tree

10 files changed

+373
-148
lines changed

10 files changed

+373
-148
lines changed

.env

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
VITE_APP_TITLE = Vexip Admin
22

33
VITE_BASE_LANGUAGE = zh-CN
4+
5+
VITE_SUPPORT_DARK_MODE = true

mock/resource.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Random } from 'mockjs'
21
import { http } from 'msw'
32
import { createResult } from './common'
3+
import { faker } from '@faker-js/faker'
44

55
export const handlers = [
66
http.post('/resource/file', async ({ request }) => {
@@ -28,7 +28,7 @@ export const handlers = [
2828
})
2929

3030
if (base64) {
31-
const id = Random.guid()
31+
const id = faker.string.uuid()
3232
const units = file.name.split('.')
3333
const name = units.slice(-1).join('.')
3434
const ext = units.at(-1)

package.json

+4-9
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
"preview": "vite preview"
2020
},
2121
"dependencies": {
22-
"@vexip-ui/hooks": "^2.6.0",
22+
"@vexip-ui/hooks": "^2.7.0",
2323
"@vexip-ui/icons": "^1.2.1",
2424
"@vexip-ui/utils": "^2.16.1",
2525
"@wangeditor/editor": "^5.1.23",
2626
"axios": "^1.7.9",
2727
"js-cookie": "^3.0.5",
2828
"pinia": "^2.3.0",
29-
"vexip-ui": "^2.3.20",
29+
"vexip-ui": "^2.3.22",
3030
"vue": "^3.5.13",
3131
"vue-i18n": "^11.0.1",
3232
"vue-router": "^4.5.0"
@@ -44,7 +44,7 @@
4444
"@types/prompts": "^2.4.9",
4545
"@vexip-ui/commitlint-config": "^0.5.0",
4646
"@vexip-ui/eslint-config": "^0.12.1",
47-
"@vexip-ui/plugins": "^1.6.0",
47+
"@vexip-ui/plugins": "^1.7.0",
4848
"@vexip-ui/prettier-config": "^1.0.0",
4949
"@vexip-ui/stylelint-config": "^1.1.0",
5050
"@vitejs/plugin-vue": "^5.2.1",
@@ -62,7 +62,7 @@
6262
"msw": "^2.7.0",
6363
"prettier": "^3.4.2",
6464
"prompts": "^2.4.2",
65-
"sass": "^1.83.1",
65+
"sass-embedded": "^1.83.2",
6666
"stylelint": "^16.12.0",
6767
"stylelint-prettier": "^5.0.2",
6868
"tsx": "^4.19.2",
@@ -72,11 +72,6 @@
7272
"vite": "^6.0.7",
7373
"vue-tsc": "^2.2.0"
7474
},
75-
"pnpm": {
76-
"patchedDependencies": {
77-
78-
}
79-
},
8075
"msw": {
8176
"workerDirectory": [
8277
"public"

patches/[email protected]

-45
This file was deleted.

0 commit comments

Comments
 (0)