@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,46 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"target": "ESNext",
|
4
|
+
"module": "ESNext",
|
5
|
+
"moduleResolution": "Node",
|
6
|
+
"forceConsistentCasingInFileNames": true,
|
7
|
+
"allowSyntheticDefaultImports": true,
|
8
|
+
"strictFunctionTypes": false,
|
9
|
+
"jsx": "preserve",
|
10
|
+
"baseUrl": "./",
|
11
|
+
"allowJs": true,
|
12
|
+
"sourceMap": true,
|
13
|
+
"esModuleInterop": true,
|
14
|
+
"resolveJsonModule": true,
|
15
|
+
"noUnusedLocals": true,
|
16
|
+
"noUnusedParameters": true,
|
17
|
+
"experimentalDecorators": true,
|
18
|
+
"lib": ["DOM", "ESNext"],
|
19
|
+
"types": ["vite/client"],
|
20
|
+
"noImplicitAny": false,
|
21
|
+
"skipLibCheck": true,
|
22
|
+
"paths": {
|
23
|
+
"@/*": ["src/*"],
|
24
|
+
"@gx-mock/*": ["mock/*"],
|
25
|
+
"@gx-config": ["config/index.ts"],
|
26
|
+
"@gx-vuex": ["src/store/index.ts"],
|
27
|
+
"@gx-admin/hooks/*": ["src/hooks/*"],
|
28
|
+
"@gx-design/*": ["src/components/GDesign/*"]
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"include": [
|
32
|
+
"tests/**/*.ts",
|
33
|
+
"src/**/*.ts",
|
34
|
+
"src/**/*.less",
|
35
|
+
"src/**/*.d.ts",
|
36
|
+
"src/**/*.tsx",
|
37
|
+
"src/**/*.vue",
|
38
|
+
"types/*.d.ts",
|
39
|
+
"types/*.ts",
|
40
|
+
"build/**/*.ts",
|
41
|
+
"build/**/*.d.ts",
|
42
|
+
"mock/**/*.ts",
|
43
|
+
"vite.config.ts"
|
44
|
+
],
|
45
|
+
"exclude": ["node_modules", "tests/server/**/*.ts", "dist", "**/*.js", ".history", "unocss.config.ts"]
|
46
|
+
}
|
@@ -0,0 +1,99 @@
|
|
1
|
+
/* eslint-disable */
|
2
|
+
/* prettier-ignore */
|
3
|
+
// @ts-nocheck
|
4
|
+
// Generated by unplugin-vue-components
|
5
|
+
// Read more: https://github.com/vuejs/core/pull/3399
|
6
|
+
export {}
|
7
|
+
|
8
|
+
declare module 'vue' {
|
9
|
+
export interface GlobalComponents {
|
10
|
+
AAlert: typeof import('ant-design-vue/es')['Alert']
|
11
|
+
AAvatar: typeof import('ant-design-vue/es')['Avatar']
|
12
|
+
AAvatarGroup: typeof import('ant-design-vue/es')['AvatarGroup']
|
13
|
+
ABackTop: typeof import('ant-design-vue/es')['BackTop']
|
14
|
+
ABadge: typeof import('ant-design-vue/es')['Badge']
|
15
|
+
AButton: typeof import('ant-design-vue/es')['Button']
|
16
|
+
AButtonGroup: typeof import('ant-design-vue/es')['ButtonGroup']
|
17
|
+
ACard: typeof import('ant-design-vue/es')['Card']
|
18
|
+
ACardMeta: typeof import('ant-design-vue/es')['CardMeta']
|
19
|
+
ACascader: typeof import('ant-design-vue/es')['Cascader']
|
20
|
+
ACol: typeof import('ant-design-vue/es')['Col']
|
21
|
+
ADatePicker: typeof import('ant-design-vue/es')['DatePicker']
|
22
|
+
ADescriptions: typeof import('ant-design-vue/es')['Descriptions']
|
23
|
+
ADescriptionsItem: typeof import('ant-design-vue/es')['DescriptionsItem']
|
24
|
+
ADivider: typeof import('ant-design-vue/es')['Divider']
|
25
|
+
ADrawer: typeof import('ant-design-vue/es')['Drawer']
|
26
|
+
ADropdown: typeof import('ant-design-vue/es')['Dropdown']
|
27
|
+
ADropdownButton: typeof import('ant-design-vue/es')['DropdownButton']
|
28
|
+
AFloatButton: typeof import('ant-design-vue/es')['FloatButton']
|
29
|
+
AFloatButtonGroup: typeof import('ant-design-vue/es')['FloatButtonGroup']
|
30
|
+
AForm: typeof import('ant-design-vue/es')['Form']
|
31
|
+
AFormItem: typeof import('ant-design-vue/es')['FormItem']
|
32
|
+
AInput: typeof import('ant-design-vue/es')['Input']
|
33
|
+
AInputNumber: typeof import('ant-design-vue/es')['InputNumber']
|
34
|
+
AInputPassword: typeof import('ant-design-vue/es')['InputPassword']
|
35
|
+
AInputSearch: typeof import('ant-design-vue/es')['InputSearch']
|
36
|
+
AlipayOutlined: typeof import('@ant-design/icons-vue')['AlipayOutlined']
|
37
|
+
AList: typeof import('ant-design-vue/es')['List']
|
38
|
+
AListItem: typeof import('ant-design-vue/es')['ListItem']
|
39
|
+
AListItemMeta: typeof import('ant-design-vue/es')['ListItemMeta']
|
40
|
+
AMenu: typeof import('ant-design-vue/es')['Menu']
|
41
|
+
AMenuDivider: typeof import('ant-design-vue/es')['MenuDivider']
|
42
|
+
AMenuItem: typeof import('ant-design-vue/es')['MenuItem']
|
43
|
+
APopconfirm: typeof import('ant-design-vue/es')['Popconfirm']
|
44
|
+
APopover: typeof import('ant-design-vue/es')['Popover']
|
45
|
+
AProgress: typeof import('ant-design-vue/es')['Progress']
|
46
|
+
ARadio: typeof import('ant-design-vue/es')['Radio']
|
47
|
+
ARadioButton: typeof import('ant-design-vue/es')['RadioButton']
|
48
|
+
ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup']
|
49
|
+
ARangePicker: typeof import('ant-design-vue/es')['RangePicker']
|
50
|
+
AResult: typeof import('ant-design-vue/es')['Result']
|
51
|
+
ARow: typeof import('ant-design-vue/es')['Row']
|
52
|
+
ASelect: typeof import('ant-design-vue/es')['Select']
|
53
|
+
ASelectOption: typeof import('ant-design-vue/es')['SelectOption']
|
54
|
+
ASlider: typeof import('ant-design-vue/es')['Slider']
|
55
|
+
ASpace: typeof import('ant-design-vue/es')['Space']
|
56
|
+
ASpin: typeof import('ant-design-vue/es')['Spin']
|
57
|
+
AStatistic: typeof import('ant-design-vue/es')['Statistic']
|
58
|
+
AStep: typeof import('ant-design-vue/es')['Step']
|
59
|
+
ASteps: typeof import('ant-design-vue/es')['Steps']
|
60
|
+
ASwitch: typeof import('ant-design-vue/es')['Switch']
|
61
|
+
ATabPane: typeof import('ant-design-vue/es')['TabPane']
|
62
|
+
ATabs: typeof import('ant-design-vue/es')['Tabs']
|
63
|
+
ATag: typeof import('ant-design-vue/es')['Tag']
|
64
|
+
ATextarea: typeof import('ant-design-vue/es')['Textarea']
|
65
|
+
ATimePicker: typeof import('ant-design-vue/es')['TimePicker']
|
66
|
+
ATooltip: typeof import('ant-design-vue/es')['Tooltip']
|
67
|
+
ATypography: typeof import('ant-design-vue/es')['Typography']
|
68
|
+
ATypographyParagraph: typeof import('ant-design-vue/es')['TypographyParagraph']
|
69
|
+
ATypographyText: typeof import('ant-design-vue/es')['TypographyText']
|
70
|
+
ATypographyTitle: typeof import('ant-design-vue/es')['TypographyTitle']
|
71
|
+
CloseCircleOutlined: typeof import('@ant-design/icons-vue')['CloseCircleOutlined']
|
72
|
+
ClusterOutlined: typeof import('@ant-design/icons-vue')['ClusterOutlined']
|
73
|
+
ContactsOutlined: typeof import('@ant-design/icons-vue')['ContactsOutlined']
|
74
|
+
DingdingOutlined: typeof import('@ant-design/icons-vue')['DingdingOutlined']
|
75
|
+
DownloadOutlined: typeof import('@ant-design/icons-vue')['DownloadOutlined']
|
76
|
+
DownOutlined: typeof import('@ant-design/icons-vue')['DownOutlined']
|
77
|
+
EditOutlined: typeof import('@ant-design/icons-vue')['EditOutlined']
|
78
|
+
EllipsisOutlined: typeof import('@ant-design/icons-vue')['EllipsisOutlined']
|
79
|
+
Empty: typeof import('./../src/components/GlobalLayout/Empty/index.vue')['default']
|
80
|
+
HomeOutlined: typeof import('@ant-design/icons-vue')['HomeOutlined']
|
81
|
+
InfoCircleOutlined: typeof import('@ant-design/icons-vue')['InfoCircleOutlined']
|
82
|
+
LikeOutlined: typeof import('@ant-design/icons-vue')['LikeOutlined']
|
83
|
+
LoadingOutlined: typeof import('@ant-design/icons-vue')['LoadingOutlined']
|
84
|
+
MessageFilled: typeof import('@ant-design/icons-vue')['MessageFilled']
|
85
|
+
MessageOutlined: typeof import('@ant-design/icons-vue')['MessageOutlined']
|
86
|
+
PlusOutlined: typeof import('@ant-design/icons-vue')['PlusOutlined']
|
87
|
+
QuestionCircleOutlined: typeof import('@ant-design/icons-vue')['QuestionCircleOutlined']
|
88
|
+
ReloadOutlined: typeof import('@ant-design/icons-vue')['ReloadOutlined']
|
89
|
+
RightOutlined: typeof import('@ant-design/icons-vue')['RightOutlined']
|
90
|
+
RouterLink: typeof import('vue-router')['RouterLink']
|
91
|
+
RouterView: typeof import('vue-router')['RouterView']
|
92
|
+
ShareAltOutlined: typeof import('@ant-design/icons-vue')['ShareAltOutlined']
|
93
|
+
StarOutlined: typeof import('@ant-design/icons-vue')['StarOutlined']
|
94
|
+
StarTwoTone: typeof import('@ant-design/icons-vue')['StarTwoTone']
|
95
|
+
SyncOutlined: typeof import('@ant-design/icons-vue')['SyncOutlined']
|
96
|
+
TaobaoOutlined: typeof import('@ant-design/icons-vue')['TaobaoOutlined']
|
97
|
+
UserOutlined: typeof import('@ant-design/icons-vue')['UserOutlined']
|
98
|
+
}
|
99
|
+
}
|
@@ -0,0 +1,81 @@
|
|
1
|
+
/* eslint-disable */
|
2
|
+
/* prettier-ignore */
|
3
|
+
// @ts-nocheck
|
4
|
+
// noinspection JSUnusedGlobalSymbols
|
5
|
+
// Generated by unplugin-auto-import
|
6
|
+
export {}
|
7
|
+
declare global {
|
8
|
+
const EffectScope: typeof import('vue')['EffectScope']
|
9
|
+
const computed: typeof import('vue')['computed']
|
10
|
+
const createApp: typeof import('vue')['createApp']
|
11
|
+
const customRef: typeof import('vue')['customRef']
|
12
|
+
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
|
13
|
+
const defineComponent: typeof import('vue')['defineComponent']
|
14
|
+
const effectScope: typeof import('vue')['effectScope']
|
15
|
+
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
|
16
|
+
const getCurrentScope: typeof import('vue')['getCurrentScope']
|
17
|
+
const h: typeof import('vue')['h']
|
18
|
+
const inject: typeof import('vue')['inject']
|
19
|
+
const isProxy: typeof import('vue')['isProxy']
|
20
|
+
const isReactive: typeof import('vue')['isReactive']
|
21
|
+
const isReadonly: typeof import('vue')['isReadonly']
|
22
|
+
const isRef: typeof import('vue')['isRef']
|
23
|
+
const markRaw: typeof import('vue')['markRaw']
|
24
|
+
const nextTick: typeof import('vue')['nextTick']
|
25
|
+
const onActivated: typeof import('vue')['onActivated']
|
26
|
+
const onBeforeMount: typeof import('vue')['onBeforeMount']
|
27
|
+
const onBeforeRouteLeave: typeof import('vue-router')['onBeforeRouteLeave']
|
28
|
+
const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate']
|
29
|
+
const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
|
30
|
+
const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
|
31
|
+
const onDeactivated: typeof import('vue')['onDeactivated']
|
32
|
+
const onErrorCaptured: typeof import('vue')['onErrorCaptured']
|
33
|
+
const onMounted: typeof import('vue')['onMounted']
|
34
|
+
const onRenderTracked: typeof import('vue')['onRenderTracked']
|
35
|
+
const onRenderTriggered: typeof import('vue')['onRenderTriggered']
|
36
|
+
const onScopeDispose: typeof import('vue')['onScopeDispose']
|
37
|
+
const onServerPrefetch: typeof import('vue')['onServerPrefetch']
|
38
|
+
const onUnmounted: typeof import('vue')['onUnmounted']
|
39
|
+
const onUpdated: typeof import('vue')['onUpdated']
|
40
|
+
const provide: typeof import('vue')['provide']
|
41
|
+
const reactive: typeof import('vue')['reactive']
|
42
|
+
const readonly: typeof import('vue')['readonly']
|
43
|
+
const ref: typeof import('vue')['ref']
|
44
|
+
const resolveComponent: typeof import('vue')['resolveComponent']
|
45
|
+
const resolveDirective: typeof import('vue')['resolveDirective']
|
46
|
+
const setupStore: typeof import('../src/store/index')['setupStore']
|
47
|
+
const shallowReactive: typeof import('vue')['shallowReactive']
|
48
|
+
const shallowReadonly: typeof import('vue')['shallowReadonly']
|
49
|
+
const shallowRef: typeof import('vue')['shallowRef']
|
50
|
+
const toRaw: typeof import('vue')['toRaw']
|
51
|
+
const toRef: typeof import('vue')['toRef']
|
52
|
+
const toRefs: typeof import('vue')['toRefs']
|
53
|
+
const toValue: typeof import('vue')['toValue']
|
54
|
+
const triggerRef: typeof import('vue')['triggerRef']
|
55
|
+
const unref: typeof import('vue')['unref']
|
56
|
+
const useAttrs: typeof import('vue')['useAttrs']
|
57
|
+
const useCssModule: typeof import('vue')['useCssModule']
|
58
|
+
const useCssVars: typeof import('vue')['useCssVars']
|
59
|
+
const useLink: typeof import('vue-router')['useLink']
|
60
|
+
const useRoute: typeof import('vue-router')['useRoute']
|
61
|
+
const useRouter: typeof import('vue-router')['useRouter']
|
62
|
+
const useSlots: typeof import('vue')['useSlots']
|
63
|
+
const useStore: typeof import('../src/store/index')['useStore']
|
64
|
+
const useStoreDict: typeof import('../src/store/index')['useStoreDict']
|
65
|
+
const useStoreGlobal: typeof import('../src/store/index')['useStoreGlobal']
|
66
|
+
const useStoreOss: typeof import('../src/store/index')['useStoreOss']
|
67
|
+
const useStorePermission: typeof import('../src/store/index')['useStorePermission']
|
68
|
+
const useStoreRoutes: typeof import('../src/store/index')['useStoreRoutes']
|
69
|
+
const useStoreTabsRouter: typeof import('../src/store/index')['useStoreTabsRouter']
|
70
|
+
const useStoreUser: typeof import('../src/store/index')['useStoreUser']
|
71
|
+
const watch: typeof import('vue')['watch']
|
72
|
+
const watchEffect: typeof import('vue')['watchEffect']
|
73
|
+
const watchPostEffect: typeof import('vue')['watchPostEffect']
|
74
|
+
const watchSyncEffect: typeof import('vue')['watchSyncEffect']
|
75
|
+
}
|
76
|
+
// for type re-export
|
77
|
+
declare global {
|
78
|
+
// @ts-ignore
|
79
|
+
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
|
80
|
+
import('vue')
|
81
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { GScrollbars } from '@gx-design-vue/scrollbar'
|
2
|
+
import { PageContainer } from '@gx-design-vue/pro-layout'
|
3
|
+
import { GProTable } from '@gx-design-vue/pro-table'
|
4
|
+
import { GProModal } from '@gx-design-vue/pro-modal'
|
5
|
+
import { GImage, ImageViewer } from '@gx-design-vue/image'
|
6
|
+
import MaterialView from '@gx-design/MaterialView'
|
7
|
+
import InputSearch from '@gx-design/InputSearch'
|
8
|
+
import GSpin from '@/components/GlobalLayout/Spin'
|
9
|
+
import GAdminImage from '@/components/GlobalLayout/Image'
|
10
|
+
|
11
|
+
declare module '@vue/runtime-core' {
|
12
|
+
export interface GlobalComponents {
|
13
|
+
GSpin: typeof GSpin
|
14
|
+
GImage: typeof GImage
|
15
|
+
GAdminImage: typeof GAdminImage
|
16
|
+
GProTable: typeof GProTable
|
17
|
+
GProModal: typeof GProModal
|
18
|
+
GScrollbars: typeof GScrollbars
|
19
|
+
GImageViewer: typeof ImageViewer
|
20
|
+
GInputSearch: typeof InputSearch
|
21
|
+
GMaterialView: typeof MaterialView
|
22
|
+
GProPageContainer: typeof PageContainer
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
declare interface CdnModuleList {
|
2
|
+
name: string;
|
3
|
+
globalName: string;
|
4
|
+
path: string;
|
5
|
+
css?: string;
|
6
|
+
}
|
7
|
+
|
8
|
+
declare interface SettingConfig {
|
9
|
+
publicPath: string;
|
10
|
+
outputDir: string;
|
11
|
+
assetsDir: string;
|
12
|
+
title: string;
|
13
|
+
shortName: string;
|
14
|
+
titleSeparator: string;
|
15
|
+
titleReverse: boolean;
|
16
|
+
waterMark: boolean;
|
17
|
+
waterMarkTitle: string;
|
18
|
+
viewScrollRoot: string;
|
19
|
+
useCdn: boolean;
|
20
|
+
cdnUrl: string;
|
21
|
+
cdnModules: CdnModuleList[];
|
22
|
+
useProxy: boolean;
|
23
|
+
requestPrefix: string;
|
24
|
+
proxyTarget: string | Record<string, any>;
|
25
|
+
mockPrefixUrl?: string;
|
26
|
+
devPort: number;
|
27
|
+
copyright: string;
|
28
|
+
keepAliveMaxNum: number;
|
29
|
+
routerMode: string;
|
30
|
+
routesWhiteList: string[];
|
31
|
+
tokenName: string;
|
32
|
+
tokenTableName: string;
|
33
|
+
storage: 'localStorage' | 'sessionStorage' | 'cookie';
|
34
|
+
recordRoute: boolean;
|
35
|
+
loginInterception: boolean;
|
36
|
+
loginRSA: boolean;
|
37
|
+
authentication: 'all' | 'front';
|
38
|
+
checkMockToken: boolean;
|
39
|
+
}
|
40
|
+
|
41
|
+
declare interface NetworkConfig {
|
42
|
+
requestTimeout: number;
|
43
|
+
successCode: (string | number)[];
|
44
|
+
}
|
@@ -0,0 +1,97 @@
|
|
1
|
+
import Vue from 'vue'
|
2
|
+
import type {
|
3
|
+
PropType,
|
4
|
+
VNode,
|
5
|
+
VNodeChild,
|
6
|
+
CSSProperties as VueCSSProperties
|
7
|
+
} from 'vue'
|
8
|
+
import type { CSSObject as ProCssObject } from 'ant-design-vue'
|
9
|
+
import type { ProColumnType as GProColumnType } from '@gx-design-vue/pro-table'
|
10
|
+
import type { DeepPartial, ProAliasToken as GProAliasToken } from '@gx-design-vue/pro-provider'
|
11
|
+
|
12
|
+
declare global {
|
13
|
+
const __APP_INFO__: {
|
14
|
+
pkg: {
|
15
|
+
name: string;
|
16
|
+
version: string;
|
17
|
+
dependencies: Recordable<string>;
|
18
|
+
devDependencies: Recordable<string>;
|
19
|
+
};
|
20
|
+
lastBuildTime: string;
|
21
|
+
}
|
22
|
+
|
23
|
+
declare interface LocalResult {
|
24
|
+
value: any;
|
25
|
+
time: string;
|
26
|
+
expired: number;
|
27
|
+
}
|
28
|
+
|
29
|
+
type ProAliasToken = DeepPartial<GProAliasToken>
|
30
|
+
declare type CSSProperties = VueCSSProperties
|
31
|
+
declare type ProColumnType = GProColumnType
|
32
|
+
declare type CSSObject = ProCssObject
|
33
|
+
|
34
|
+
// vue
|
35
|
+
declare type Key = string | number
|
36
|
+
declare type VuePropType<T> = PropType<T>
|
37
|
+
declare type VueNode = VNodeChild | JSX.Element
|
38
|
+
declare type Recordable<T = any> = Record<string, T>
|
39
|
+
|
40
|
+
interface Fn<T = any, R = T> {
|
41
|
+
(...arg: T[]): R;
|
42
|
+
}
|
43
|
+
|
44
|
+
declare interface ViteEnv {
|
45
|
+
VITE_PORT: number;
|
46
|
+
VITE_USE_MODE: 'development' | 'production' | 'pro';
|
47
|
+
VITE_USE_MOCK: boolean;
|
48
|
+
VITE_NODE_ENV: 'development' | 'production';
|
49
|
+
VITE_USE_PWA: boolean;
|
50
|
+
VITE_BASE_URL: string;
|
51
|
+
VITE_APP_ENV: 'dev';
|
52
|
+
VUE_APP_VERSION: string;
|
53
|
+
VITE_PROXY: [ string, string ][];
|
54
|
+
VITE_DROP_CONSOLE: boolean;
|
55
|
+
VITE_BUILD_COMPRESS: 'gzip' | 'brotli' | 'none';
|
56
|
+
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE: boolean;
|
57
|
+
VITE_LEGACY: boolean;
|
58
|
+
VITE_HOME_PAGE: string; // 主页
|
59
|
+
VITE_HOME_PAGE_DOC: string; // 系统文档
|
60
|
+
VITE_GITHUB_PAGE: string; // github 地址
|
61
|
+
VITE_GITEE_PAGE: string; // gitee 地址
|
62
|
+
}
|
63
|
+
|
64
|
+
declare function parseInt(s: string | number, radix?: number): number
|
65
|
+
|
66
|
+
declare function parseFloat(string: string | number): number
|
67
|
+
|
68
|
+
class FilerobotImageEditor {
|
69
|
+
constructor(selector: HTMLElement, options: any) {
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
interface Window {
|
74
|
+
editorConfig: {
|
75
|
+
isFirstRenderCropUpdated?: boolean
|
76
|
+
};
|
77
|
+
FilerobotImageEditor?: any
|
78
|
+
}
|
79
|
+
|
80
|
+
namespace JSX {
|
81
|
+
type Element = VNode
|
82
|
+
|
83
|
+
interface ElementClass extends Vue {}
|
84
|
+
|
85
|
+
interface ElementAttributesProperty {
|
86
|
+
$props: any;
|
87
|
+
}
|
88
|
+
|
89
|
+
interface IntrinsicElements {
|
90
|
+
[elem: string]: any;
|
91
|
+
}
|
92
|
+
|
93
|
+
interface IntrinsicAttributes {
|
94
|
+
[elem: string]: any;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
declare type MethodType = 'get' | 'post' | 'put' | 'delete' | 'patch'
|
2
|
+
|
3
|
+
declare interface MockResponse<T = Recordable, D> {
|
4
|
+
url: Recordable;
|
5
|
+
body: D extends undefined ? T : D;
|
6
|
+
query: T;
|
7
|
+
headers: Recordable
|
8
|
+
}
|
9
|
+
|
10
|
+
declare interface MockMethod {
|
11
|
+
url: string;
|
12
|
+
method?: MethodType;
|
13
|
+
timeout?: number;
|
14
|
+
statusCode?: number;
|
15
|
+
response?: (opt: MockResponse) => Partial<ResponseResult>;
|
16
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
declare module '*.svg'
|
2
|
+
declare module '*.png'
|
3
|
+
declare module '*.jpg'
|
4
|
+
declare module '*.jpeg'
|
5
|
+
declare module '*.gif'
|
6
|
+
declare module '*.bmp'
|
7
|
+
declare module '*.tiff'
|
8
|
+
|
9
|
+
/// <reference types="vite/client" />
|
10
|
+
declare module '*.vue' {
|
11
|
+
import type { DefineComponent } from 'vue'
|
12
|
+
|
13
|
+
const Component: DefineComponent<Record<any, any>, Record<any, any>, any>
|
14
|
+
export default component
|
15
|
+
}
|
16
|
+
|
17
|
+
declare module 'virtual:*' {
|
18
|
+
const result: any
|
19
|
+
export default result
|
20
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
declare interface DefaultResult<T> {
|
2
|
+
code: number;
|
3
|
+
msg?: string;
|
4
|
+
message?: string;
|
5
|
+
data?: T;
|
6
|
+
}
|
7
|
+
|
8
|
+
declare type ResponseResult<T = any, R = undefined> = R extends undefined
|
9
|
+
? DefaultResult<T>
|
10
|
+
: DefaultResult<T> & R
|
11
|
+
|
12
|
+
declare interface PageResult<T> {
|
13
|
+
list: T[];
|
14
|
+
totalCount: number;
|
15
|
+
}
|
@@ -0,0 +1,101 @@
|
|
1
|
+
import {
|
2
|
+
defineConfig,
|
3
|
+
presetAttributify,
|
4
|
+
presetUno,
|
5
|
+
transformerDirectives,
|
6
|
+
transformerVariantGroup
|
7
|
+
} from 'unocss'
|
8
|
+
|
9
|
+
export default defineConfig({
|
10
|
+
presets: [
|
11
|
+
presetUno(),
|
12
|
+
presetAttributify()
|
13
|
+
],
|
14
|
+
theme: {
|
15
|
+
breakpoints: {
|
16
|
+
sm: '576px',
|
17
|
+
md: '768px',
|
18
|
+
lg: '992px',
|
19
|
+
xl: '1200px',
|
20
|
+
xxl: '1600px'
|
21
|
+
}
|
22
|
+
},
|
23
|
+
transformers: [ transformerDirectives({
|
24
|
+
applyVariable: [ '--at-apply' ]
|
25
|
+
}), transformerVariantGroup() ],
|
26
|
+
shortcuts: [
|
27
|
+
{
|
28
|
+
'flex-center': 'flex items-center justify-center'
|
29
|
+
},
|
30
|
+
],
|
31
|
+
rules: [
|
32
|
+
[ /^text-rgba-(.*)$/, ([ , str ]) => {
|
33
|
+
const regex = /\[([^[\]]*)\]/
|
34
|
+
const match = str.match(regex)
|
35
|
+
|
36
|
+
if (match && match.length > 1) {
|
37
|
+
const contentInsideBrackets = match[1]
|
38
|
+
return {
|
39
|
+
color: `rgba(${contentInsideBrackets.split('-').join(',')})`
|
40
|
+
}
|
41
|
+
} else {
|
42
|
+
return {}
|
43
|
+
}
|
44
|
+
} ],
|
45
|
+
[ /^bg-rgba-(.*)$/, ([ , str ]) => {
|
46
|
+
const regex = /\[([^[\]]*)\]/
|
47
|
+
const match = str.match(regex)
|
48
|
+
|
49
|
+
if (match && match.length > 1) {
|
50
|
+
const contentInsideBrackets = match[1]
|
51
|
+
return {
|
52
|
+
'background-color': `rgba(${contentInsideBrackets.split('-').join(',')})`
|
53
|
+
}
|
54
|
+
} else {
|
55
|
+
return {}
|
56
|
+
}
|
57
|
+
} ],
|
58
|
+
[ /^text-hidden-(\d+)$/, ([ , d ]) => ({
|
59
|
+
'overflow': 'hidden',
|
60
|
+
'text-overflow': 'ellipsis',
|
61
|
+
'display': '-webkit-box',
|
62
|
+
'-webkit-line-clamp': d,
|
63
|
+
'line-clamp': d,
|
64
|
+
'-webkit-box-orient': 'vertical',
|
65
|
+
'word-break': 'break-word'
|
66
|
+
}) ],
|
67
|
+
[ 'hidden-none', { 'opacity': '0', 'visibility': 'hidden' } ],
|
68
|
+
[ /^flex-main-(\d+)$/, ([ , d ]) => ({
|
69
|
+
'flex': `0 0 ${d}px`
|
70
|
+
}) ],
|
71
|
+
[ /^shrink-(\d+)$/, ([ , d ]) => ({
|
72
|
+
'flex-shrink': d
|
73
|
+
}) ],
|
74
|
+
[ 'text-hex-main', { 'color': 'var(--gx-primary-color)' } ],
|
75
|
+
[ 'bg-hex-main', { 'background': 'var(--gx-primary-color)' } ],
|
76
|
+
[ 'word-break-all', { 'word-break': 'break-all' } ],
|
77
|
+
[ 'word-break-word', { 'word-break': 'break-word' } ],
|
78
|
+
[ 'flex-main', { 'flex': '1' } ],
|
79
|
+
[ 'position-all', { 'position': 'absolute', 'top': '0', 'bottom': '0', 'left': '0', 'right': '0' } ],
|
80
|
+
[ 'image-event-none', { 'user-select': 'none', 'pointer-events': 'none' } ],
|
81
|
+
[
|
82
|
+
'position-center', {
|
83
|
+
'left': '50%',
|
84
|
+
'top': '50%',
|
85
|
+
'transform': 'translate(-50%, -50%)'
|
86
|
+
}
|
87
|
+
],
|
88
|
+
[
|
89
|
+
'position-center-x', {
|
90
|
+
'left': '50%',
|
91
|
+
'transform': 'translateX(-50%)'
|
92
|
+
}
|
93
|
+
],
|
94
|
+
[
|
95
|
+
'position-center-y', {
|
96
|
+
'top': '50%',
|
97
|
+
'transform': 'translateY(-50%)'
|
98
|
+
}
|
99
|
+
]
|
100
|
+
]
|
101
|
+
})
|
@@ -0,0 +1,120 @@
|
|
1
|
+
import type { ConfigEnv, UserConfig } from 'vite'
|
2
|
+
import { loadEnv } from 'vite'
|
3
|
+
import dayjs from 'dayjs'
|
4
|
+
import autoprefixer from 'autoprefixer'
|
5
|
+
|
6
|
+
import { generateModifyVars } from './build/generate/generateModifyVars'
|
7
|
+
import { pathResolve, wrapperEnv } from './build/util'
|
8
|
+
import createRollupOptions from './build/rollupOptions'
|
9
|
+
import { createVitePlugins } from './build/vite/plugin'
|
10
|
+
|
11
|
+
import { createProxy, defaultSettings } from './config'
|
12
|
+
|
13
|
+
import pkg from './package.json'
|
14
|
+
|
15
|
+
const { publicPath, outputDir, assetsDir, devPort, useCdn, useProxy } = defaultSettings
|
16
|
+
|
17
|
+
const { dependencies, devDependencies, name, version } = pkg
|
18
|
+
|
19
|
+
const __APP_INFO__ = {
|
20
|
+
pkg: { dependencies, devDependencies, name, version },
|
21
|
+
lastBuildTime: dayjs().format('YYYY-MM-DD HH:mm:ss')
|
22
|
+
}
|
23
|
+
|
24
|
+
process.env.VUE_APP_VERSION = version
|
25
|
+
|
26
|
+
export default async ({ command, mode }: ConfigEnv): Promise<UserConfig> => {
|
27
|
+
const root = process.cwd()
|
28
|
+
|
29
|
+
const env = loadEnv(mode, root)
|
30
|
+
|
31
|
+
// The boolean type read by loadEnv is a string. This function can be converted to boolean type
|
32
|
+
const viteEnv = wrapperEnv(env)
|
33
|
+
|
34
|
+
const { VITE_DROP_CONSOLE, VITE_APP_ENV, VITE_BASE_URL } = viteEnv
|
35
|
+
|
36
|
+
const isBuild = command === 'build'
|
37
|
+
|
38
|
+
return {
|
39
|
+
base: publicPath,
|
40
|
+
root,
|
41
|
+
resolve: {
|
42
|
+
alias: [
|
43
|
+
{
|
44
|
+
find: '@',
|
45
|
+
replacement: pathResolve('src') + '/'
|
46
|
+
},
|
47
|
+
{
|
48
|
+
find: '@gx-mock',
|
49
|
+
replacement: pathResolve('mock') + '/'
|
50
|
+
},
|
51
|
+
{
|
52
|
+
find: '@gx-config',
|
53
|
+
replacement: pathResolve('config') + '/index.ts'
|
54
|
+
},
|
55
|
+
{
|
56
|
+
find: '@gx-vuex',
|
57
|
+
replacement: pathResolve('src/store') + '/index.ts'
|
58
|
+
},
|
59
|
+
{
|
60
|
+
find: '@gx-design',
|
61
|
+
replacement: pathResolve('src/components/GDesign') + '/'
|
62
|
+
},
|
63
|
+
{
|
64
|
+
find: '@gx-admin/hooks',
|
65
|
+
replacement: pathResolve('src/hooks') + '/'
|
66
|
+
}
|
67
|
+
]
|
68
|
+
},
|
69
|
+
server: {
|
70
|
+
open: false,
|
71
|
+
host: true,
|
72
|
+
port: devPort,
|
73
|
+
proxy: useProxy ? createProxy(VITE_BASE_URL)[VITE_APP_ENV] : {}
|
74
|
+
},
|
75
|
+
esbuild: {
|
76
|
+
drop: VITE_DROP_CONSOLE ? [ 'console', 'debugger' ] : []
|
77
|
+
},
|
78
|
+
build: {
|
79
|
+
outDir: outputDir,
|
80
|
+
assetsDir,
|
81
|
+
chunkSizeWarningLimit: 4000,
|
82
|
+
rollupOptions: createRollupOptions(useCdn) as any
|
83
|
+
},
|
84
|
+
define: {
|
85
|
+
__INTLIFY_PROD_DEVTOOLS__: false,
|
86
|
+
__APP_INFO__: JSON.stringify(__APP_INFO__)
|
87
|
+
},
|
88
|
+
css: {
|
89
|
+
postcss: {
|
90
|
+
plugins: [
|
91
|
+
autoprefixer({
|
92
|
+
grid: true
|
93
|
+
}) as any
|
94
|
+
]
|
95
|
+
},
|
96
|
+
modules: {
|
97
|
+
generateScopedName: 'gx-pro-[local]-[hash:base64:5]'
|
98
|
+
},
|
99
|
+
preprocessorOptions: {
|
100
|
+
less: {
|
101
|
+
modifyVars: generateModifyVars(),
|
102
|
+
javascriptEnabled: true
|
103
|
+
}
|
104
|
+
}
|
105
|
+
},
|
106
|
+
|
107
|
+
plugins: await createVitePlugins(viteEnv, isBuild),
|
108
|
+
|
109
|
+
optimizeDeps: {
|
110
|
+
include: [
|
111
|
+
'qs',
|
112
|
+
'dayjs',
|
113
|
+
'axios',
|
114
|
+
'pinia',
|
115
|
+
'echarts',
|
116
|
+
'@vueuse/core'
|
117
|
+
]
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|