@gx-design-vue/create-gx-cli 0.1.9 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -1
- package/src/main.js +0 -4
- package/template-gx-design-thin/.editorconfig +19 -0
- package/template-gx-design-thin/.env +4 -0
- package/template-gx-design-thin/.env.development +15 -0
- package/template-gx-design-thin/.env.production +28 -0
- package/template-gx-design-thin/.eslintignore +16 -0
- package/template-gx-design-thin/.prettierignore +9 -0
- package/template-gx-design-thin/LICENSE +21 -0
- package/template-gx-design-thin/README.md +112 -0
- package/template-gx-design-thin/build/constant.ts +1 -0
- package/template-gx-design-thin/build/generate/generateModifyVars.ts +14 -0
- package/template-gx-design-thin/build/rollupOptions/index.ts +22 -0
- package/template-gx-design-thin/build/util/hash.ts +17 -0
- package/template-gx-design-thin/build/util/index.ts +131 -0
- package/template-gx-design-thin/build/vite/cdn.ts +63 -0
- package/template-gx-design-thin/build/vite/optimizer.ts +26 -0
- package/template-gx-design-thin/build/vite/plugin/appConfig.ts +91 -0
- package/template-gx-design-thin/build/vite/plugin/autoImport.ts +26 -0
- package/template-gx-design-thin/build/vite/plugin/compress.ts +31 -0
- package/template-gx-design-thin/build/vite/plugin/html.ts +39 -0
- package/template-gx-design-thin/build/vite/plugin/index.ts +75 -0
- package/template-gx-design-thin/build/vite/plugin/mock.ts +14 -0
- package/template-gx-design-thin/build/vite/plugin/pwa.ts +31 -0
- package/template-gx-design-thin/build/vite/plugin/visualizer.ts +14 -0
- package/template-gx-design-thin/build/vite/plugin/viteMock/client.ts +88 -0
- package/template-gx-design-thin/build/vite/plugin/viteMock/createMockServer.ts +271 -0
- package/template-gx-design-thin/build/vite/plugin/viteMock/index.ts +69 -0
- package/template-gx-design-thin/build/vite/plugin/viteMock/types.ts +48 -0
- package/template-gx-design-thin/build/vite/plugin/viteMock/utils.ts +48 -0
- package/template-gx-design-thin/build/vite/plugin/viteNotice.ts +40 -0
- package/template-gx-design-thin/commitlint.config.cjs +32 -0
- package/template-gx-design-thin/config/default/defaultSettings.ts +78 -0
- package/template-gx-design-thin/config/default/network.ts +10 -0
- package/template-gx-design-thin/config/default/proxy.ts +47 -0
- package/template-gx-design-thin/config/default/theme.ts +3 -0
- package/template-gx-design-thin/config/index.ts +11 -0
- package/template-gx-design-thin/eslint.config.js +51 -0
- package/template-gx-design-thin/index.html +42 -0
- package/template-gx-design-thin/mock/_createProductionServer.ts +19 -0
- package/template-gx-design-thin/mock/_util.ts +33 -0
- package/template-gx-design-thin/mock/config/menu.ts +21 -0
- package/template-gx-design-thin/mock/config/user.ts +123 -0
- package/template-gx-design-thin/mock/datasSource/system/menu.ts +10 -0
- package/template-gx-design-thin/mock/datasSource/user/account.ts +30 -0
- package/template-gx-design-thin/mock/datasSource/user/index.ts +47 -0
- package/template-gx-design-thin/mock/util/crypto.ts +23 -0
- package/template-gx-design-thin/mock/util/table.ts +92 -0
- package/template-gx-design-thin/mock/util/utils.ts +73 -0
- package/template-gx-design-thin/package.json +129 -0
- package/template-gx-design-thin/pnpm-lock.yaml +12575 -0
- package/template-gx-design-thin/prettier.config.cjs +18 -0
- package/template-gx-design-thin/public/resource/css/index.css +119 -0
- package/template-gx-design-thin/public/resource/css/normalize.css +396 -0
- package/template-gx-design-thin/public/resource/img/favicon.ico +0 -0
- package/template-gx-design-thin/public/resource/img/logo.png +0 -0
- package/template-gx-design-thin/public/resource/img/pro_icon.svg +1 -0
- package/template-gx-design-thin/public/resource/img/pwa-192x192.png +0 -0
- package/template-gx-design-thin/public/resource/img/pwa-512x512.png +0 -0
- package/template-gx-design-thin/src/App.vue +42 -0
- package/template-gx-design-thin/src/assets/error_images/403.png +0 -0
- package/template-gx-design-thin/src/assets/error_images/404.png +0 -0
- package/template-gx-design-thin/src/assets/error_images/cloud.png +0 -0
- package/template-gx-design-thin/src/assets/login_images/login_background.svg +1 -0
- package/template-gx-design-thin/src/assets/logo.png +0 -0
- package/template-gx-design-thin/src/assets/menu_font/iconfont.css +94 -0
- package/template-gx-design-thin/src/assets/menu_font/iconfont.eot +0 -0
- package/template-gx-design-thin/src/assets/menu_font/iconfont.js +1 -0
- package/template-gx-design-thin/src/assets/menu_font/iconfont.json +142 -0
- package/template-gx-design-thin/src/assets/menu_font/iconfont.svg +1 -0
- package/template-gx-design-thin/src/assets/menu_font/iconfont.ttf +0 -0
- package/template-gx-design-thin/src/assets/menu_font/iconfont.woff +0 -0
- package/template-gx-design-thin/src/assets/menu_font/iconfont.woff2 +0 -0
- package/template-gx-design-thin/src/assets/menu_font/index.less +94 -0
- package/template-gx-design-thin/src/assets/public_icon/iconfont.css +42 -0
- package/template-gx-design-thin/src/assets/public_icon/iconfont.eot +0 -0
- package/template-gx-design-thin/src/assets/public_icon/iconfont.js +1 -0
- package/template-gx-design-thin/src/assets/public_icon/iconfont.json +51 -0
- package/template-gx-design-thin/src/assets/public_icon/iconfont.svg +1 -0
- package/template-gx-design-thin/src/assets/public_icon/iconfont.ttf +0 -0
- package/template-gx-design-thin/src/assets/public_icon/iconfont.woff +0 -0
- package/template-gx-design-thin/src/assets/public_icon/iconfont.woff2 +0 -0
- package/template-gx-design-thin/src/assets/public_icon/index.less +42 -0
- package/template-gx-design-thin/src/assets/public_images/nodata.svg +1 -0
- package/template-gx-design-thin/src/common/global.ts +4 -0
- package/template-gx-design-thin/src/components/GDesign/Result/index.tsx +144 -0
- package/template-gx-design-thin/src/components/GDesign/Result/style.less +140 -0
- package/template-gx-design-thin/src/components/GDesign/utils/index.ts +7 -0
- package/template-gx-design-thin/src/components/GlobalLayout/Confirm/index.ts +21 -0
- package/template-gx-design-thin/src/components/GlobalLayout/Empty/index.vue +18 -0
- package/template-gx-design-thin/src/components/GlobalLayout/RightContent/index.tsx +126 -0
- package/template-gx-design-thin/src/components/GlobalLayout/RightContent/style.ts +77 -0
- package/template-gx-design-thin/src/components/GlobalLayout/Spin/index.tsx +30 -0
- package/template-gx-design-thin/src/components/PageLoading/index.tsx +51 -0
- package/template-gx-design-thin/src/components/index.ts +6 -0
- package/template-gx-design-thin/src/core/ant-design/index.ts +10 -0
- package/template-gx-design-thin/src/core/gx-admin-design/index.ts +6 -0
- package/template-gx-design-thin/src/core/gx-design/index.ts +6 -0
- package/template-gx-design-thin/src/core/gx-pro-design/index.ts +8 -0
- package/template-gx-design-thin/src/core/index.ts +84 -0
- package/template-gx-design-thin/src/design/ant-design/index.less +4 -0
- package/template-gx-design-thin/src/design/ant-design/layout.less +22 -0
- package/template-gx-design-thin/src/design/ant-design/menu.less +48 -0
- package/template-gx-design-thin/src/design/ant-design/spin.less +23 -0
- package/template-gx-design-thin/src/design/ant-design/tooltip.less +7 -0
- package/template-gx-design-thin/src/design/color.less +1 -0
- package/template-gx-design-thin/src/design/config.less +5 -0
- package/template-gx-design-thin/src/design/imageEditor.less +180 -0
- package/template-gx-design-thin/src/design/index.less +95 -0
- package/template-gx-design-thin/src/design/mixin.less +65 -0
- package/template-gx-design-thin/src/design/normalize.less +391 -0
- package/template-gx-design-thin/src/design/root.less +3 -0
- package/template-gx-design-thin/src/hooks/core/index.ts +3 -0
- package/template-gx-design-thin/src/hooks/core/useRequest/index.ts +118 -0
- package/template-gx-design-thin/src/hooks/event/index.ts +3 -0
- package/template-gx-design-thin/src/hooks/event/useClipboard.ts +15 -0
- package/template-gx-design-thin/src/hooks/web/index.ts +5 -0
- package/template-gx-design-thin/src/hooks/web/useThemeStyle.ts +16 -0
- package/template-gx-design-thin/src/layout/BasicLayout.vue +123 -0
- package/template-gx-design-thin/src/layout/BlankLayout.vue +5 -0
- package/template-gx-design-thin/src/layout/ContentView.vue +50 -0
- package/template-gx-design-thin/src/layout/IframeView.vue +1 -0
- package/template-gx-design-thin/src/layout/UserLayout.vue +7 -0
- package/template-gx-design-thin/src/main.ts +34 -0
- package/template-gx-design-thin/src/plugins/index.ts +2 -0
- package/template-gx-design-thin/src/router/guard/index.ts +83 -0
- package/template-gx-design-thin/src/router/guard/permissions.ts +70 -0
- package/template-gx-design-thin/src/router/guard/stateGuard.ts +10 -0
- package/template-gx-design-thin/src/router/helper/routeHelper.ts +231 -0
- package/template-gx-design-thin/src/router/helper/utils.ts +19 -0
- package/template-gx-design-thin/src/router/index.ts +31 -0
- package/template-gx-design-thin/src/router/routes/index.ts +86 -0
- package/template-gx-design-thin/src/router/routes/modules/dataSource.ts +12 -0
- package/template-gx-design-thin/src/services/common/index.ts +11 -0
- package/template-gx-design-thin/src/services/systemCenter/index.ts +1 -0
- package/template-gx-design-thin/src/services/systemCenter/menu.ts +9 -0
- package/template-gx-design-thin/src/services/userCenter/account.ts +42 -0
- package/template-gx-design-thin/src/services/userCenter/index.ts +28 -0
- package/template-gx-design-thin/src/store/index.ts +32 -0
- package/template-gx-design-thin/src/store/modules/dict.ts +28 -0
- package/template-gx-design-thin/src/store/modules/global.ts +42 -0
- package/template-gx-design-thin/src/store/modules/permission.ts +19 -0
- package/template-gx-design-thin/src/store/modules/routes.ts +113 -0
- package/template-gx-design-thin/src/store/modules/tabsRouter.ts +76 -0
- package/template-gx-design-thin/src/store/modules/user.ts +136 -0
- package/template-gx-design-thin/src/utils/accessToken.ts +80 -0
- package/template-gx-design-thin/src/utils/crypto/base64.ts +101 -0
- package/template-gx-design-thin/src/utils/crypto/index.ts +57 -0
- package/template-gx-design-thin/src/utils/env.ts +50 -0
- package/template-gx-design-thin/src/utils/fetchFile.ts +81 -0
- package/template-gx-design-thin/src/utils/index.ts +123 -0
- package/template-gx-design-thin/src/utils/pageTitle.ts +20 -0
- package/template-gx-design-thin/src/utils/request/XHR.ts +139 -0
- package/template-gx-design-thin/src/utils/request/axiosCancel.ts +69 -0
- package/template-gx-design-thin/src/utils/request/checkStatus.ts +25 -0
- package/template-gx-design-thin/src/utils/request/index.ts +144 -0
- package/template-gx-design-thin/src/utils/request/typings.ts +171 -0
- package/template-gx-design-thin/src/utils/storage.ts +199 -0
- package/template-gx-design-thin/src/utils/uploadFile.ts +27 -0
- package/template-gx-design-thin/src/utils/util.ts +198 -0
- package/template-gx-design-thin/src/utils/validate.ts +216 -0
- package/template-gx-design-thin/src/views/Iframe/index.vue +76 -0
- package/template-gx-design-thin/src/views/Page/one.vue +13 -0
- package/template-gx-design-thin/src/views/Page/two.vue +13 -0
- package/template-gx-design-thin/src/views/exception/403/index.vue +7 -0
- package/template-gx-design-thin/src/views/exception/404/index.vue +9 -0
- package/template-gx-design-thin/src/views/user/login/index.vue +109 -0
- package/template-gx-design-thin/src/views/user/login/style.less +38 -0
- package/template-gx-design-thin/tsconfig.json +46 -0
- package/template-gx-design-thin/types/ant-design-import.d.ts +99 -0
- package/template-gx-design-thin/types/auto-imports.d.ts +81 -0
- package/template-gx-design-thin/types/components.d.ts +24 -0
- package/template-gx-design-thin/types/config.d.ts +44 -0
- package/template-gx-design-thin/types/global.d.ts +97 -0
- package/template-gx-design-thin/types/mock.d.ts +16 -0
- package/template-gx-design-thin/types/module.d.ts +20 -0
- package/template-gx-design-thin/types/response.d.ts +15 -0
- package/template-gx-design-thin/unocss.config.ts +101 -0
- package/template-gx-design-thin/vite.config.ts +120 -0
- package/template-gx-design-thin/yarn.lock +9492 -0
- package/template-mobile-vant-cli/package.json +1 -1
@@ -0,0 +1,92 @@
|
|
1
|
+
import mockjs from 'mockjs'
|
2
|
+
import { cloneDeep } from 'lodash-es'
|
3
|
+
import dayjs from 'dayjs'
|
4
|
+
|
5
|
+
const { Random, mock } = mockjs
|
6
|
+
|
7
|
+
export interface ListItem {
|
8
|
+
createTime: string;
|
9
|
+
id: number;
|
10
|
+
}
|
11
|
+
|
12
|
+
export interface ListSearchParams {
|
13
|
+
pageNum?: number;
|
14
|
+
pageSize?: number;
|
15
|
+
sord?: 'asc' | 'desc';
|
16
|
+
sidx?: 'createTime';
|
17
|
+
}
|
18
|
+
|
19
|
+
export function initContent<T>(
|
20
|
+
max,
|
21
|
+
callbackParams?: (key: number) => Omit<T, 'id' | 'createTime'> & Partial<ListItem>
|
22
|
+
): (Omit<T, 'id' | 'createTime'> & ListItem)[] {
|
23
|
+
const mockParams = {}
|
24
|
+
mockParams[`data|${max}`] = [
|
25
|
+
{
|
26
|
+
'id|+1': 1
|
27
|
+
}
|
28
|
+
]
|
29
|
+
const list: { data: (T & ListItem)[] } = mock(mockParams)
|
30
|
+
|
31
|
+
return list.data.map((item, index) => {
|
32
|
+
return {
|
33
|
+
...item,
|
34
|
+
createTime: dayjs()
|
35
|
+
.subtract(Random.integer(3, 60), 'day')
|
36
|
+
.subtract(Random.integer(2, 6), 'hour')
|
37
|
+
.subtract(Random.integer(1, 59), 'minute')
|
38
|
+
.subtract(Random.integer(1, 59), 'second')
|
39
|
+
.format('YYYY-MM-DD HH:mm:ss'),
|
40
|
+
...callbackParams?.(index)
|
41
|
+
}
|
42
|
+
})
|
43
|
+
}
|
44
|
+
|
45
|
+
export function handlePageList<T>(
|
46
|
+
dataSource: T[],
|
47
|
+
{ pageNum, pageSize, callBack }: {
|
48
|
+
pageNum: number;
|
49
|
+
pageSize: number;
|
50
|
+
callBack?: (data: T[]) => T[]
|
51
|
+
}
|
52
|
+
): T[] {
|
53
|
+
if (callBack)
|
54
|
+
dataSource = callBack?.(dataSource)
|
55
|
+
return cloneDeep(dataSource).filter(
|
56
|
+
(_, sort) => (sort < pageNum * pageSize) && (sort >= pageSize * (pageNum - 1))
|
57
|
+
)
|
58
|
+
}
|
59
|
+
|
60
|
+
export function compareToMaxTime(obj1, obj2, key, type: 0 | 1 = 0) {
|
61
|
+
const val1 = obj1[key]
|
62
|
+
const val2 = obj2[key]
|
63
|
+
let result = 0
|
64
|
+
if (dayjs(val1).isBefore(dayjs(val2))) {
|
65
|
+
result = type === 0 ? -1 : 0
|
66
|
+
} else if (dayjs(val1).isAfter(dayjs(val2))) {
|
67
|
+
result = type === 0 ? 0 : (-1)
|
68
|
+
}
|
69
|
+
return result
|
70
|
+
}
|
71
|
+
|
72
|
+
export function postDataSource<T>(
|
73
|
+
dataSource: (Omit<T, 'id' | 'createTime'> & ListItem)[],
|
74
|
+
type: 'delete' | 'add' | 'update' = 'update',
|
75
|
+
options?: { key?: string; params: Partial<(Omit<T, 'id' | 'createTime'> & ListItem)> }
|
76
|
+
) {
|
77
|
+
if (type === 'update')
|
78
|
+
dataSource = dataSource.map((item: any) => {
|
79
|
+
if (options?.params?.[options.key] === item[options?.key])
|
80
|
+
return { ...item, ...options?.params }
|
81
|
+
return item
|
82
|
+
})
|
83
|
+
if (type === 'add')
|
84
|
+
dataSource.unshift({
|
85
|
+
...options?.params as (Omit<T, 'id' | 'createTime'> & ListItem),
|
86
|
+
id: dataSource.length + 1
|
87
|
+
})
|
88
|
+
if (type === 'delete')
|
89
|
+
dataSource = dataSource.filter(item => options?.params?.[options.key] !== item[options?.key])
|
90
|
+
|
91
|
+
return dataSource
|
92
|
+
}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import mockjs from 'mockjs'
|
2
|
+
import { defaultSettings } from '@gx-config'
|
3
|
+
import type { UserDetails } from '@gx-mock/config/user'
|
4
|
+
import { tokenAccount, defaultUser } from '@gx-mock/config/user'
|
5
|
+
import { Decrypt, Encrypt } from '@gx-mock/util/crypto'
|
6
|
+
import { getRandomNumber } from '@gx-design-vue/pro-utils'
|
7
|
+
import { checkBackDataFun, getRequestToken } from '@gx-mock/_util'
|
8
|
+
|
9
|
+
const { Random } = mockjs
|
10
|
+
|
11
|
+
const { mockPrefixUrl, checkMockToken } = defaultSettings
|
12
|
+
|
13
|
+
export function getTokenBuUserId(token) {
|
14
|
+
return Number(Object.keys(tokenAccount).find(item => tokenAccount[item] === token))
|
15
|
+
}
|
16
|
+
|
17
|
+
export function createrToken(_) {
|
18
|
+
const userInfo = defaultUser
|
19
|
+
return Encrypt({ userId: userInfo.user.userId })
|
20
|
+
}
|
21
|
+
|
22
|
+
export function getTokeUserInfo(token): UserDetails {
|
23
|
+
return Decrypt(token)
|
24
|
+
}
|
25
|
+
|
26
|
+
export function handleRandomImage(width = 50, height = 50) {
|
27
|
+
return `https://picsum.photos/${width}/${height}?random=${getRandomNumber().uuid(10)}`
|
28
|
+
}
|
29
|
+
|
30
|
+
export function checkToken(token) {
|
31
|
+
if (token) {
|
32
|
+
const useInfo: UserDetails = getTokeUserInfo(token)
|
33
|
+
return useInfo ? useInfo?.userId : false
|
34
|
+
}
|
35
|
+
|
36
|
+
return !checkMockToken
|
37
|
+
}
|
38
|
+
|
39
|
+
export function getArraryList<T>(length: number, callback: (key: number) => T) {
|
40
|
+
return Array.from({ length }).map((_, key) => callback(key))
|
41
|
+
}
|
42
|
+
|
43
|
+
export function getMockRequest<T = Recordable, R = Record<any, any>, D = undefined>({
|
44
|
+
url,
|
45
|
+
timeout,
|
46
|
+
method,
|
47
|
+
carryToken = true,
|
48
|
+
callback
|
49
|
+
}: {
|
50
|
+
url: string;
|
51
|
+
carryToken?: boolean;
|
52
|
+
timeout?: number;
|
53
|
+
method: MockMethod['method'];
|
54
|
+
callback?: (res: MockResponse<T, D>, token?: string) => Partial<R>;
|
55
|
+
}): MockMethod {
|
56
|
+
return {
|
57
|
+
url: `${mockPrefixUrl}${url}`,
|
58
|
+
timeout,
|
59
|
+
method,
|
60
|
+
response: (request) => {
|
61
|
+
if (carryToken) {
|
62
|
+
const token = getRequestToken(request)
|
63
|
+
return checkBackDataFun(token, callback?.(request, token) || {})
|
64
|
+
}
|
65
|
+
|
66
|
+
return callback?.(request)
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
export function getMockRandowList<T = any>(data: T[]) {
|
72
|
+
return data[Random.integer(0, data.length - 1)] as T
|
73
|
+
}
|
@@ -0,0 +1,129 @@
|
|
1
|
+
{
|
2
|
+
"name": "gx-pro-admin",
|
3
|
+
"version": "3.0.0",
|
4
|
+
"type": "module",
|
5
|
+
"scripts": {
|
6
|
+
"bootstrap": "pnpm i",
|
7
|
+
"serve": "pnpm run dev",
|
8
|
+
"dev": "pnpm run start:dev",
|
9
|
+
"start:dev": "cross-env VITE_APP_ENV=dev vite",
|
10
|
+
"start:production": "cross-env VITE_APP_ENV=dev vite --mode production",
|
11
|
+
"build": "cross-env vite build",
|
12
|
+
"build:no-cache": "pnpm clean:cache && pnpm run build",
|
13
|
+
"report": "cross-env REPORT=true npm run build",
|
14
|
+
"type:check": "vue-tsc --noEmit --skipLibCheck",
|
15
|
+
"preview": "pnpm run build && vite preview",
|
16
|
+
"preview:dist": "vite preview",
|
17
|
+
"clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite",
|
18
|
+
"clean:lib": "rimraf node_modules",
|
19
|
+
"lint:eslint": "eslint --cache --max-warnings 0 \"{src,mock}/**/*.{vue,ts,tsx}\" --fix",
|
20
|
+
"lint:prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"",
|
21
|
+
"lint:stylelint": "stylelint --cache --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
|
22
|
+
"reinstall": "rimraf yarn.lock && rimraf package.lock.json && rimraf node_modules && pnpm run bootstrap"
|
23
|
+
},
|
24
|
+
"dependencies": {
|
25
|
+
"@gx-design-vue/pro-app": "^0.1.0-beta.10",
|
26
|
+
"@gx-design-vue/pro-form": "^0.2.0-beta.18",
|
27
|
+
"@gx-design-vue/pro-hooks": "^0.2.0-beta.19",
|
28
|
+
"@gx-design-vue/pro-layout": "^0.1.0-beta.54",
|
29
|
+
"@gx-design-vue/pro-provider": "^0.1.0-beta.51",
|
30
|
+
"@gx-design-vue/pro-utils": "^0.2.0-beta.27",
|
31
|
+
"@gx-design-vue/pro-watermark": "^0.2.0-beta.6",
|
32
|
+
"@gx-design-vue/scrollbar": "^0.2.0-beta.12",
|
33
|
+
"@vueuse/core": "^10.7.2",
|
34
|
+
"@vueuse/shared": "^10.7.2",
|
35
|
+
"ant-design-vue": "^4.1.2",
|
36
|
+
"axios": "^1.7.2",
|
37
|
+
"crypto-js": "^4.1.1",
|
38
|
+
"dayjs": "^1.11.10",
|
39
|
+
"lodash-es": "^4.17.21",
|
40
|
+
"nprogress": "^0.2.0",
|
41
|
+
"pinia": "^2.1.7",
|
42
|
+
"unocss": "^0.58.5",
|
43
|
+
"vue": "^3.3.7",
|
44
|
+
"vue-router": "^4.4.0",
|
45
|
+
"vue-types": "^5.1.1"
|
46
|
+
},
|
47
|
+
"devDependencies": {
|
48
|
+
"@antfu/eslint-config": "^2.9.0",
|
49
|
+
"@commitlint/cli": "^12.1.4",
|
50
|
+
"@commitlint/config-conventional": "^12.1.4",
|
51
|
+
"@types/fs-extra": "^9.0.13",
|
52
|
+
"@types/jest": "^26.0.24",
|
53
|
+
"@types/lodash-es": "^4.17.10",
|
54
|
+
"@types/mockjs": "^1.0.6",
|
55
|
+
"@types/node": "^20.11.19",
|
56
|
+
"@types/nprogress": "^0.2.0",
|
57
|
+
"@types/qs": "^6.9.7",
|
58
|
+
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
59
|
+
"@typescript-eslint/parser": "^7.0.1",
|
60
|
+
"@vitejs/plugin-legacy": "^5.4.1",
|
61
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
62
|
+
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
63
|
+
"@vue/compiler-sfc": "3.2.37",
|
64
|
+
"yaml": "^2.0.0",
|
65
|
+
"esbuild": "^0.20.2",
|
66
|
+
"autoprefixer": "^10.4.5",
|
67
|
+
"body-parser": "^1.19.0",
|
68
|
+
"bundle-require": "^4.0.1",
|
69
|
+
"chalk": "^4.1.2",
|
70
|
+
"commitizen": "^4.2.4",
|
71
|
+
"connect": "^3.7.0",
|
72
|
+
"conventional-changelog-cli": "^2.1.1",
|
73
|
+
"cross-env": "^7.0.3",
|
74
|
+
"dotenv": "16.0.1",
|
75
|
+
"eslint": "^8.56.0",
|
76
|
+
"esno": "^0.7.3",
|
77
|
+
"fs-extra": "^10.1.0",
|
78
|
+
"jsdom": "^21.1.0",
|
79
|
+
"less": "^4.1.2",
|
80
|
+
"lint-staged": "12.3.7",
|
81
|
+
"mockjs": "^1.1.0",
|
82
|
+
"path-to-regexp": "^6.2.1",
|
83
|
+
"postcss": "^8.4.35",
|
84
|
+
"postcss-html": "^1.6.0",
|
85
|
+
"postcss-less": "^6.0.0",
|
86
|
+
"prettier": "^3.2.5",
|
87
|
+
"rimraf": "^3.0.2",
|
88
|
+
"rollup-plugin-external-globals": "^0.6.1",
|
89
|
+
"rollup-plugin-visualizer": "^5.12.0",
|
90
|
+
"terser": "^5.14.2",
|
91
|
+
"ts-node": "^10.1.0",
|
92
|
+
"typescript": "^5.3.3",
|
93
|
+
"unplugin-auto-import": "^0.16.7",
|
94
|
+
"unplugin-vue-components": "0.25.2",
|
95
|
+
"vite": "^5.1.4",
|
96
|
+
"vite-plugin-compression": "0.5.1",
|
97
|
+
"vite-plugin-html": "^3.2.2",
|
98
|
+
"vite-plugin-pwa": "^0.19.0",
|
99
|
+
"vite-plugin-vue-devtools": "^7.3.4",
|
100
|
+
"vite-plugin-vue-setup-extend": "0.4.0",
|
101
|
+
"vue-eslint-parser": "^9.4.2",
|
102
|
+
"vue-tsc": "^1.8.27"
|
103
|
+
},
|
104
|
+
"license": "MIT",
|
105
|
+
"lint-staged": {
|
106
|
+
"*.{js,jsx,ts,tsx}": [
|
107
|
+
"eslint --fix",
|
108
|
+
"prettier --write"
|
109
|
+
],
|
110
|
+
"{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": [
|
111
|
+
"prettier --write--parser json"
|
112
|
+
],
|
113
|
+
"package.json": [
|
114
|
+
"prettier --write"
|
115
|
+
],
|
116
|
+
"*.vue": [
|
117
|
+
"eslint --fix",
|
118
|
+
"prettier --write",
|
119
|
+
"stylelint --fix"
|
120
|
+
],
|
121
|
+
"*.{scss,less,styl,html}": [
|
122
|
+
"stylelint --fix",
|
123
|
+
"prettier --write"
|
124
|
+
],
|
125
|
+
"*.md": [
|
126
|
+
"prettier --write"
|
127
|
+
]
|
128
|
+
}
|
129
|
+
}
|