@gx-design-vue/create-gx-cli 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (184) hide show
  1. package/bin/create-gx-cli +3 -2
  2. package/package.json +4 -4
  3. package/src/cli.js +10 -7
  4. package/src/git.js +8 -5
  5. package/src/main.js +29 -16
  6. package/template-mobile-vant-cli/package.json +5 -5
  7. package/template-gx-design-thin/.editorconfig +0 -19
  8. package/template-gx-design-thin/.env +0 -4
  9. package/template-gx-design-thin/.env.development +0 -15
  10. package/template-gx-design-thin/.env.production +0 -28
  11. package/template-gx-design-thin/.eslintignore +0 -16
  12. package/template-gx-design-thin/.prettierignore +0 -9
  13. package/template-gx-design-thin/LICENSE +0 -21
  14. package/template-gx-design-thin/README.md +0 -112
  15. package/template-gx-design-thin/build/constant.ts +0 -1
  16. package/template-gx-design-thin/build/generate/generateModifyVars.ts +0 -14
  17. package/template-gx-design-thin/build/rollupOptions/index.ts +0 -22
  18. package/template-gx-design-thin/build/util/hash.ts +0 -17
  19. package/template-gx-design-thin/build/util/index.ts +0 -131
  20. package/template-gx-design-thin/build/vite/cdn.ts +0 -63
  21. package/template-gx-design-thin/build/vite/optimizer.ts +0 -26
  22. package/template-gx-design-thin/build/vite/plugin/appConfig.ts +0 -91
  23. package/template-gx-design-thin/build/vite/plugin/autoImport.ts +0 -26
  24. package/template-gx-design-thin/build/vite/plugin/compress.ts +0 -31
  25. package/template-gx-design-thin/build/vite/plugin/html.ts +0 -39
  26. package/template-gx-design-thin/build/vite/plugin/index.ts +0 -75
  27. package/template-gx-design-thin/build/vite/plugin/mock.ts +0 -14
  28. package/template-gx-design-thin/build/vite/plugin/pwa.ts +0 -31
  29. package/template-gx-design-thin/build/vite/plugin/visualizer.ts +0 -14
  30. package/template-gx-design-thin/build/vite/plugin/viteMock/client.ts +0 -88
  31. package/template-gx-design-thin/build/vite/plugin/viteMock/createMockServer.ts +0 -271
  32. package/template-gx-design-thin/build/vite/plugin/viteMock/index.ts +0 -69
  33. package/template-gx-design-thin/build/vite/plugin/viteMock/types.ts +0 -48
  34. package/template-gx-design-thin/build/vite/plugin/viteMock/utils.ts +0 -48
  35. package/template-gx-design-thin/build/vite/plugin/viteNotice.ts +0 -40
  36. package/template-gx-design-thin/commitlint.config.cjs +0 -32
  37. package/template-gx-design-thin/config/default/defaultSettings.ts +0 -78
  38. package/template-gx-design-thin/config/default/network.ts +0 -10
  39. package/template-gx-design-thin/config/default/proxy.ts +0 -47
  40. package/template-gx-design-thin/config/default/theme.ts +0 -3
  41. package/template-gx-design-thin/config/index.ts +0 -11
  42. package/template-gx-design-thin/eslint.config.js +0 -51
  43. package/template-gx-design-thin/index.html +0 -42
  44. package/template-gx-design-thin/mock/_createProductionServer.ts +0 -19
  45. package/template-gx-design-thin/mock/_util.ts +0 -33
  46. package/template-gx-design-thin/mock/config/menu.ts +0 -21
  47. package/template-gx-design-thin/mock/config/user.ts +0 -123
  48. package/template-gx-design-thin/mock/datasSource/system/menu.ts +0 -10
  49. package/template-gx-design-thin/mock/datasSource/user/account.ts +0 -30
  50. package/template-gx-design-thin/mock/datasSource/user/index.ts +0 -47
  51. package/template-gx-design-thin/mock/util/crypto.ts +0 -23
  52. package/template-gx-design-thin/mock/util/table.ts +0 -92
  53. package/template-gx-design-thin/mock/util/utils.ts +0 -73
  54. package/template-gx-design-thin/package.json +0 -129
  55. package/template-gx-design-thin/pnpm-lock.yaml +0 -12575
  56. package/template-gx-design-thin/prettier.config.cjs +0 -18
  57. package/template-gx-design-thin/public/resource/css/index.css +0 -119
  58. package/template-gx-design-thin/public/resource/css/normalize.css +0 -396
  59. package/template-gx-design-thin/public/resource/img/favicon.ico +0 -0
  60. package/template-gx-design-thin/public/resource/img/logo.png +0 -0
  61. package/template-gx-design-thin/public/resource/img/pro_icon.svg +0 -1
  62. package/template-gx-design-thin/public/resource/img/pwa-192x192.png +0 -0
  63. package/template-gx-design-thin/public/resource/img/pwa-512x512.png +0 -0
  64. package/template-gx-design-thin/src/App.vue +0 -42
  65. package/template-gx-design-thin/src/assets/error_images/403.png +0 -0
  66. package/template-gx-design-thin/src/assets/error_images/404.png +0 -0
  67. package/template-gx-design-thin/src/assets/error_images/cloud.png +0 -0
  68. package/template-gx-design-thin/src/assets/login_images/login_background.svg +0 -1
  69. package/template-gx-design-thin/src/assets/logo.png +0 -0
  70. package/template-gx-design-thin/src/assets/menu_font/iconfont.css +0 -94
  71. package/template-gx-design-thin/src/assets/menu_font/iconfont.eot +0 -0
  72. package/template-gx-design-thin/src/assets/menu_font/iconfont.js +0 -1
  73. package/template-gx-design-thin/src/assets/menu_font/iconfont.json +0 -142
  74. package/template-gx-design-thin/src/assets/menu_font/iconfont.svg +0 -1
  75. package/template-gx-design-thin/src/assets/menu_font/iconfont.ttf +0 -0
  76. package/template-gx-design-thin/src/assets/menu_font/iconfont.woff +0 -0
  77. package/template-gx-design-thin/src/assets/menu_font/iconfont.woff2 +0 -0
  78. package/template-gx-design-thin/src/assets/menu_font/index.less +0 -94
  79. package/template-gx-design-thin/src/assets/public_icon/iconfont.css +0 -42
  80. package/template-gx-design-thin/src/assets/public_icon/iconfont.eot +0 -0
  81. package/template-gx-design-thin/src/assets/public_icon/iconfont.js +0 -1
  82. package/template-gx-design-thin/src/assets/public_icon/iconfont.json +0 -51
  83. package/template-gx-design-thin/src/assets/public_icon/iconfont.svg +0 -1
  84. package/template-gx-design-thin/src/assets/public_icon/iconfont.ttf +0 -0
  85. package/template-gx-design-thin/src/assets/public_icon/iconfont.woff +0 -0
  86. package/template-gx-design-thin/src/assets/public_icon/iconfont.woff2 +0 -0
  87. package/template-gx-design-thin/src/assets/public_icon/index.less +0 -42
  88. package/template-gx-design-thin/src/assets/public_images/nodata.svg +0 -1
  89. package/template-gx-design-thin/src/common/global.ts +0 -4
  90. package/template-gx-design-thin/src/components/GDesign/Result/index.tsx +0 -144
  91. package/template-gx-design-thin/src/components/GDesign/Result/style.less +0 -140
  92. package/template-gx-design-thin/src/components/GDesign/utils/index.ts +0 -7
  93. package/template-gx-design-thin/src/components/GlobalLayout/Confirm/index.ts +0 -21
  94. package/template-gx-design-thin/src/components/GlobalLayout/Empty/index.vue +0 -18
  95. package/template-gx-design-thin/src/components/GlobalLayout/RightContent/index.tsx +0 -126
  96. package/template-gx-design-thin/src/components/GlobalLayout/RightContent/style.ts +0 -77
  97. package/template-gx-design-thin/src/components/GlobalLayout/Spin/index.tsx +0 -30
  98. package/template-gx-design-thin/src/components/PageLoading/index.tsx +0 -51
  99. package/template-gx-design-thin/src/components/index.ts +0 -6
  100. package/template-gx-design-thin/src/core/ant-design/index.ts +0 -10
  101. package/template-gx-design-thin/src/core/gx-admin-design/index.ts +0 -6
  102. package/template-gx-design-thin/src/core/gx-design/index.ts +0 -6
  103. package/template-gx-design-thin/src/core/gx-pro-design/index.ts +0 -8
  104. package/template-gx-design-thin/src/core/index.ts +0 -84
  105. package/template-gx-design-thin/src/design/ant-design/index.less +0 -4
  106. package/template-gx-design-thin/src/design/ant-design/layout.less +0 -22
  107. package/template-gx-design-thin/src/design/ant-design/menu.less +0 -48
  108. package/template-gx-design-thin/src/design/ant-design/spin.less +0 -23
  109. package/template-gx-design-thin/src/design/ant-design/tooltip.less +0 -7
  110. package/template-gx-design-thin/src/design/color.less +0 -1
  111. package/template-gx-design-thin/src/design/config.less +0 -5
  112. package/template-gx-design-thin/src/design/imageEditor.less +0 -180
  113. package/template-gx-design-thin/src/design/index.less +0 -95
  114. package/template-gx-design-thin/src/design/mixin.less +0 -65
  115. package/template-gx-design-thin/src/design/normalize.less +0 -391
  116. package/template-gx-design-thin/src/design/root.less +0 -3
  117. package/template-gx-design-thin/src/hooks/core/index.ts +0 -3
  118. package/template-gx-design-thin/src/hooks/core/useRequest/index.ts +0 -118
  119. package/template-gx-design-thin/src/hooks/event/index.ts +0 -3
  120. package/template-gx-design-thin/src/hooks/event/useClipboard.ts +0 -15
  121. package/template-gx-design-thin/src/hooks/web/index.ts +0 -5
  122. package/template-gx-design-thin/src/hooks/web/useThemeStyle.ts +0 -16
  123. package/template-gx-design-thin/src/layout/BasicLayout.vue +0 -123
  124. package/template-gx-design-thin/src/layout/BlankLayout.vue +0 -5
  125. package/template-gx-design-thin/src/layout/ContentView.vue +0 -50
  126. package/template-gx-design-thin/src/layout/IframeView.vue +0 -1
  127. package/template-gx-design-thin/src/layout/UserLayout.vue +0 -7
  128. package/template-gx-design-thin/src/main.ts +0 -34
  129. package/template-gx-design-thin/src/plugins/index.ts +0 -2
  130. package/template-gx-design-thin/src/router/guard/index.ts +0 -83
  131. package/template-gx-design-thin/src/router/guard/permissions.ts +0 -70
  132. package/template-gx-design-thin/src/router/guard/stateGuard.ts +0 -10
  133. package/template-gx-design-thin/src/router/helper/routeHelper.ts +0 -223
  134. package/template-gx-design-thin/src/router/helper/utils.ts +0 -19
  135. package/template-gx-design-thin/src/router/index.ts +0 -31
  136. package/template-gx-design-thin/src/router/routes/index.ts +0 -86
  137. package/template-gx-design-thin/src/router/routes/modules/dataSource.ts +0 -12
  138. package/template-gx-design-thin/src/services/common/index.ts +0 -11
  139. package/template-gx-design-thin/src/services/systemCenter/index.ts +0 -1
  140. package/template-gx-design-thin/src/services/systemCenter/menu.ts +0 -9
  141. package/template-gx-design-thin/src/services/userCenter/account.ts +0 -42
  142. package/template-gx-design-thin/src/services/userCenter/index.ts +0 -28
  143. package/template-gx-design-thin/src/store/index.ts +0 -32
  144. package/template-gx-design-thin/src/store/modules/dict.ts +0 -28
  145. package/template-gx-design-thin/src/store/modules/global.ts +0 -42
  146. package/template-gx-design-thin/src/store/modules/permission.ts +0 -19
  147. package/template-gx-design-thin/src/store/modules/routes.ts +0 -113
  148. package/template-gx-design-thin/src/store/modules/tabsRouter.ts +0 -76
  149. package/template-gx-design-thin/src/store/modules/user.ts +0 -136
  150. package/template-gx-design-thin/src/utils/accessToken.ts +0 -80
  151. package/template-gx-design-thin/src/utils/crypto/base64.ts +0 -101
  152. package/template-gx-design-thin/src/utils/crypto/index.ts +0 -57
  153. package/template-gx-design-thin/src/utils/env.ts +0 -50
  154. package/template-gx-design-thin/src/utils/fetchFile.ts +0 -81
  155. package/template-gx-design-thin/src/utils/index.ts +0 -123
  156. package/template-gx-design-thin/src/utils/pageTitle.ts +0 -20
  157. package/template-gx-design-thin/src/utils/request/XHR.ts +0 -139
  158. package/template-gx-design-thin/src/utils/request/axiosCancel.ts +0 -69
  159. package/template-gx-design-thin/src/utils/request/checkStatus.ts +0 -25
  160. package/template-gx-design-thin/src/utils/request/index.ts +0 -144
  161. package/template-gx-design-thin/src/utils/request/typings.ts +0 -171
  162. package/template-gx-design-thin/src/utils/storage.ts +0 -199
  163. package/template-gx-design-thin/src/utils/uploadFile.ts +0 -27
  164. package/template-gx-design-thin/src/utils/util.ts +0 -198
  165. package/template-gx-design-thin/src/utils/validate.ts +0 -216
  166. package/template-gx-design-thin/src/views/Iframe/index.vue +0 -76
  167. package/template-gx-design-thin/src/views/Page/one.vue +0 -13
  168. package/template-gx-design-thin/src/views/Page/two.vue +0 -13
  169. package/template-gx-design-thin/src/views/exception/403/index.vue +0 -7
  170. package/template-gx-design-thin/src/views/exception/404/index.vue +0 -9
  171. package/template-gx-design-thin/src/views/user/login/index.vue +0 -109
  172. package/template-gx-design-thin/src/views/user/login/style.less +0 -38
  173. package/template-gx-design-thin/tsconfig.json +0 -46
  174. package/template-gx-design-thin/types/ant-design-import.d.ts +0 -99
  175. package/template-gx-design-thin/types/auto-imports.d.ts +0 -81
  176. package/template-gx-design-thin/types/components.d.ts +0 -24
  177. package/template-gx-design-thin/types/config.d.ts +0 -44
  178. package/template-gx-design-thin/types/global.d.ts +0 -97
  179. package/template-gx-design-thin/types/mock.d.ts +0 -16
  180. package/template-gx-design-thin/types/module.d.ts +0 -20
  181. package/template-gx-design-thin/types/response.d.ts +0 -15
  182. package/template-gx-design-thin/unocss.config.ts +0 -101
  183. package/template-gx-design-thin/vite.config.ts +0 -120
  184. package/template-gx-design-thin/yarn.lock +0 -9492
@@ -1,46 +0,0 @@
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
- }
@@ -1,99 +0,0 @@
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
- }
@@ -1,81 +0,0 @@
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
- }
@@ -1,24 +0,0 @@
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
- }
@@ -1,44 +0,0 @@
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
- }
@@ -1,97 +0,0 @@
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
- }
@@ -1,16 +0,0 @@
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
- }
@@ -1,20 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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
- }
@@ -1,101 +0,0 @@
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
- })
@@ -1,120 +0,0 @@
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
- }