@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.
Files changed (181) hide show
  1. package/package.json +2 -1
  2. package/src/main.js +0 -4
  3. package/template-gx-design-thin/.editorconfig +19 -0
  4. package/template-gx-design-thin/.env +4 -0
  5. package/template-gx-design-thin/.env.development +15 -0
  6. package/template-gx-design-thin/.env.production +28 -0
  7. package/template-gx-design-thin/.eslintignore +16 -0
  8. package/template-gx-design-thin/.prettierignore +9 -0
  9. package/template-gx-design-thin/LICENSE +21 -0
  10. package/template-gx-design-thin/README.md +112 -0
  11. package/template-gx-design-thin/build/constant.ts +1 -0
  12. package/template-gx-design-thin/build/generate/generateModifyVars.ts +14 -0
  13. package/template-gx-design-thin/build/rollupOptions/index.ts +22 -0
  14. package/template-gx-design-thin/build/util/hash.ts +17 -0
  15. package/template-gx-design-thin/build/util/index.ts +131 -0
  16. package/template-gx-design-thin/build/vite/cdn.ts +63 -0
  17. package/template-gx-design-thin/build/vite/optimizer.ts +26 -0
  18. package/template-gx-design-thin/build/vite/plugin/appConfig.ts +91 -0
  19. package/template-gx-design-thin/build/vite/plugin/autoImport.ts +26 -0
  20. package/template-gx-design-thin/build/vite/plugin/compress.ts +31 -0
  21. package/template-gx-design-thin/build/vite/plugin/html.ts +39 -0
  22. package/template-gx-design-thin/build/vite/plugin/index.ts +75 -0
  23. package/template-gx-design-thin/build/vite/plugin/mock.ts +14 -0
  24. package/template-gx-design-thin/build/vite/plugin/pwa.ts +31 -0
  25. package/template-gx-design-thin/build/vite/plugin/visualizer.ts +14 -0
  26. package/template-gx-design-thin/build/vite/plugin/viteMock/client.ts +88 -0
  27. package/template-gx-design-thin/build/vite/plugin/viteMock/createMockServer.ts +271 -0
  28. package/template-gx-design-thin/build/vite/plugin/viteMock/index.ts +69 -0
  29. package/template-gx-design-thin/build/vite/plugin/viteMock/types.ts +48 -0
  30. package/template-gx-design-thin/build/vite/plugin/viteMock/utils.ts +48 -0
  31. package/template-gx-design-thin/build/vite/plugin/viteNotice.ts +40 -0
  32. package/template-gx-design-thin/commitlint.config.cjs +32 -0
  33. package/template-gx-design-thin/config/default/defaultSettings.ts +78 -0
  34. package/template-gx-design-thin/config/default/network.ts +10 -0
  35. package/template-gx-design-thin/config/default/proxy.ts +47 -0
  36. package/template-gx-design-thin/config/default/theme.ts +3 -0
  37. package/template-gx-design-thin/config/index.ts +11 -0
  38. package/template-gx-design-thin/eslint.config.js +51 -0
  39. package/template-gx-design-thin/index.html +42 -0
  40. package/template-gx-design-thin/mock/_createProductionServer.ts +19 -0
  41. package/template-gx-design-thin/mock/_util.ts +33 -0
  42. package/template-gx-design-thin/mock/config/menu.ts +21 -0
  43. package/template-gx-design-thin/mock/config/user.ts +123 -0
  44. package/template-gx-design-thin/mock/datasSource/system/menu.ts +10 -0
  45. package/template-gx-design-thin/mock/datasSource/user/account.ts +30 -0
  46. package/template-gx-design-thin/mock/datasSource/user/index.ts +47 -0
  47. package/template-gx-design-thin/mock/util/crypto.ts +23 -0
  48. package/template-gx-design-thin/mock/util/table.ts +92 -0
  49. package/template-gx-design-thin/mock/util/utils.ts +73 -0
  50. package/template-gx-design-thin/package.json +129 -0
  51. package/template-gx-design-thin/pnpm-lock.yaml +12575 -0
  52. package/template-gx-design-thin/prettier.config.cjs +18 -0
  53. package/template-gx-design-thin/public/resource/css/index.css +119 -0
  54. package/template-gx-design-thin/public/resource/css/normalize.css +396 -0
  55. package/template-gx-design-thin/public/resource/img/favicon.ico +0 -0
  56. package/template-gx-design-thin/public/resource/img/logo.png +0 -0
  57. package/template-gx-design-thin/public/resource/img/pro_icon.svg +1 -0
  58. package/template-gx-design-thin/public/resource/img/pwa-192x192.png +0 -0
  59. package/template-gx-design-thin/public/resource/img/pwa-512x512.png +0 -0
  60. package/template-gx-design-thin/src/App.vue +42 -0
  61. package/template-gx-design-thin/src/assets/error_images/403.png +0 -0
  62. package/template-gx-design-thin/src/assets/error_images/404.png +0 -0
  63. package/template-gx-design-thin/src/assets/error_images/cloud.png +0 -0
  64. package/template-gx-design-thin/src/assets/login_images/login_background.svg +1 -0
  65. package/template-gx-design-thin/src/assets/logo.png +0 -0
  66. package/template-gx-design-thin/src/assets/menu_font/iconfont.css +94 -0
  67. package/template-gx-design-thin/src/assets/menu_font/iconfont.eot +0 -0
  68. package/template-gx-design-thin/src/assets/menu_font/iconfont.js +1 -0
  69. package/template-gx-design-thin/src/assets/menu_font/iconfont.json +142 -0
  70. package/template-gx-design-thin/src/assets/menu_font/iconfont.svg +1 -0
  71. package/template-gx-design-thin/src/assets/menu_font/iconfont.ttf +0 -0
  72. package/template-gx-design-thin/src/assets/menu_font/iconfont.woff +0 -0
  73. package/template-gx-design-thin/src/assets/menu_font/iconfont.woff2 +0 -0
  74. package/template-gx-design-thin/src/assets/menu_font/index.less +94 -0
  75. package/template-gx-design-thin/src/assets/public_icon/iconfont.css +42 -0
  76. package/template-gx-design-thin/src/assets/public_icon/iconfont.eot +0 -0
  77. package/template-gx-design-thin/src/assets/public_icon/iconfont.js +1 -0
  78. package/template-gx-design-thin/src/assets/public_icon/iconfont.json +51 -0
  79. package/template-gx-design-thin/src/assets/public_icon/iconfont.svg +1 -0
  80. package/template-gx-design-thin/src/assets/public_icon/iconfont.ttf +0 -0
  81. package/template-gx-design-thin/src/assets/public_icon/iconfont.woff +0 -0
  82. package/template-gx-design-thin/src/assets/public_icon/iconfont.woff2 +0 -0
  83. package/template-gx-design-thin/src/assets/public_icon/index.less +42 -0
  84. package/template-gx-design-thin/src/assets/public_images/nodata.svg +1 -0
  85. package/template-gx-design-thin/src/common/global.ts +4 -0
  86. package/template-gx-design-thin/src/components/GDesign/Result/index.tsx +144 -0
  87. package/template-gx-design-thin/src/components/GDesign/Result/style.less +140 -0
  88. package/template-gx-design-thin/src/components/GDesign/utils/index.ts +7 -0
  89. package/template-gx-design-thin/src/components/GlobalLayout/Confirm/index.ts +21 -0
  90. package/template-gx-design-thin/src/components/GlobalLayout/Empty/index.vue +18 -0
  91. package/template-gx-design-thin/src/components/GlobalLayout/RightContent/index.tsx +126 -0
  92. package/template-gx-design-thin/src/components/GlobalLayout/RightContent/style.ts +77 -0
  93. package/template-gx-design-thin/src/components/GlobalLayout/Spin/index.tsx +30 -0
  94. package/template-gx-design-thin/src/components/PageLoading/index.tsx +51 -0
  95. package/template-gx-design-thin/src/components/index.ts +6 -0
  96. package/template-gx-design-thin/src/core/ant-design/index.ts +10 -0
  97. package/template-gx-design-thin/src/core/gx-admin-design/index.ts +6 -0
  98. package/template-gx-design-thin/src/core/gx-design/index.ts +6 -0
  99. package/template-gx-design-thin/src/core/gx-pro-design/index.ts +8 -0
  100. package/template-gx-design-thin/src/core/index.ts +84 -0
  101. package/template-gx-design-thin/src/design/ant-design/index.less +4 -0
  102. package/template-gx-design-thin/src/design/ant-design/layout.less +22 -0
  103. package/template-gx-design-thin/src/design/ant-design/menu.less +48 -0
  104. package/template-gx-design-thin/src/design/ant-design/spin.less +23 -0
  105. package/template-gx-design-thin/src/design/ant-design/tooltip.less +7 -0
  106. package/template-gx-design-thin/src/design/color.less +1 -0
  107. package/template-gx-design-thin/src/design/config.less +5 -0
  108. package/template-gx-design-thin/src/design/imageEditor.less +180 -0
  109. package/template-gx-design-thin/src/design/index.less +95 -0
  110. package/template-gx-design-thin/src/design/mixin.less +65 -0
  111. package/template-gx-design-thin/src/design/normalize.less +391 -0
  112. package/template-gx-design-thin/src/design/root.less +3 -0
  113. package/template-gx-design-thin/src/hooks/core/index.ts +3 -0
  114. package/template-gx-design-thin/src/hooks/core/useRequest/index.ts +118 -0
  115. package/template-gx-design-thin/src/hooks/event/index.ts +3 -0
  116. package/template-gx-design-thin/src/hooks/event/useClipboard.ts +15 -0
  117. package/template-gx-design-thin/src/hooks/web/index.ts +5 -0
  118. package/template-gx-design-thin/src/hooks/web/useThemeStyle.ts +16 -0
  119. package/template-gx-design-thin/src/layout/BasicLayout.vue +123 -0
  120. package/template-gx-design-thin/src/layout/BlankLayout.vue +5 -0
  121. package/template-gx-design-thin/src/layout/ContentView.vue +50 -0
  122. package/template-gx-design-thin/src/layout/IframeView.vue +1 -0
  123. package/template-gx-design-thin/src/layout/UserLayout.vue +7 -0
  124. package/template-gx-design-thin/src/main.ts +34 -0
  125. package/template-gx-design-thin/src/plugins/index.ts +2 -0
  126. package/template-gx-design-thin/src/router/guard/index.ts +83 -0
  127. package/template-gx-design-thin/src/router/guard/permissions.ts +70 -0
  128. package/template-gx-design-thin/src/router/guard/stateGuard.ts +10 -0
  129. package/template-gx-design-thin/src/router/helper/routeHelper.ts +231 -0
  130. package/template-gx-design-thin/src/router/helper/utils.ts +19 -0
  131. package/template-gx-design-thin/src/router/index.ts +31 -0
  132. package/template-gx-design-thin/src/router/routes/index.ts +86 -0
  133. package/template-gx-design-thin/src/router/routes/modules/dataSource.ts +12 -0
  134. package/template-gx-design-thin/src/services/common/index.ts +11 -0
  135. package/template-gx-design-thin/src/services/systemCenter/index.ts +1 -0
  136. package/template-gx-design-thin/src/services/systemCenter/menu.ts +9 -0
  137. package/template-gx-design-thin/src/services/userCenter/account.ts +42 -0
  138. package/template-gx-design-thin/src/services/userCenter/index.ts +28 -0
  139. package/template-gx-design-thin/src/store/index.ts +32 -0
  140. package/template-gx-design-thin/src/store/modules/dict.ts +28 -0
  141. package/template-gx-design-thin/src/store/modules/global.ts +42 -0
  142. package/template-gx-design-thin/src/store/modules/permission.ts +19 -0
  143. package/template-gx-design-thin/src/store/modules/routes.ts +113 -0
  144. package/template-gx-design-thin/src/store/modules/tabsRouter.ts +76 -0
  145. package/template-gx-design-thin/src/store/modules/user.ts +136 -0
  146. package/template-gx-design-thin/src/utils/accessToken.ts +80 -0
  147. package/template-gx-design-thin/src/utils/crypto/base64.ts +101 -0
  148. package/template-gx-design-thin/src/utils/crypto/index.ts +57 -0
  149. package/template-gx-design-thin/src/utils/env.ts +50 -0
  150. package/template-gx-design-thin/src/utils/fetchFile.ts +81 -0
  151. package/template-gx-design-thin/src/utils/index.ts +123 -0
  152. package/template-gx-design-thin/src/utils/pageTitle.ts +20 -0
  153. package/template-gx-design-thin/src/utils/request/XHR.ts +139 -0
  154. package/template-gx-design-thin/src/utils/request/axiosCancel.ts +69 -0
  155. package/template-gx-design-thin/src/utils/request/checkStatus.ts +25 -0
  156. package/template-gx-design-thin/src/utils/request/index.ts +144 -0
  157. package/template-gx-design-thin/src/utils/request/typings.ts +171 -0
  158. package/template-gx-design-thin/src/utils/storage.ts +199 -0
  159. package/template-gx-design-thin/src/utils/uploadFile.ts +27 -0
  160. package/template-gx-design-thin/src/utils/util.ts +198 -0
  161. package/template-gx-design-thin/src/utils/validate.ts +216 -0
  162. package/template-gx-design-thin/src/views/Iframe/index.vue +76 -0
  163. package/template-gx-design-thin/src/views/Page/one.vue +13 -0
  164. package/template-gx-design-thin/src/views/Page/two.vue +13 -0
  165. package/template-gx-design-thin/src/views/exception/403/index.vue +7 -0
  166. package/template-gx-design-thin/src/views/exception/404/index.vue +9 -0
  167. package/template-gx-design-thin/src/views/user/login/index.vue +109 -0
  168. package/template-gx-design-thin/src/views/user/login/style.less +38 -0
  169. package/template-gx-design-thin/tsconfig.json +46 -0
  170. package/template-gx-design-thin/types/ant-design-import.d.ts +99 -0
  171. package/template-gx-design-thin/types/auto-imports.d.ts +81 -0
  172. package/template-gx-design-thin/types/components.d.ts +24 -0
  173. package/template-gx-design-thin/types/config.d.ts +44 -0
  174. package/template-gx-design-thin/types/global.d.ts +97 -0
  175. package/template-gx-design-thin/types/mock.d.ts +16 -0
  176. package/template-gx-design-thin/types/module.d.ts +20 -0
  177. package/template-gx-design-thin/types/response.d.ts +15 -0
  178. package/template-gx-design-thin/unocss.config.ts +101 -0
  179. package/template-gx-design-thin/vite.config.ts +120 -0
  180. package/template-gx-design-thin/yarn.lock +9492 -0
  181. package/template-mobile-vant-cli/package.json +1 -1
@@ -0,0 +1,10 @@
1
+ import { message } from 'ant-design-vue'
2
+
3
+ const antDesign = () => {
4
+ message.config({
5
+ duration: 2,
6
+ maxCount: 1
7
+ })
8
+ }
9
+
10
+ export default antDesign
@@ -0,0 +1,6 @@
1
+ import Spin from '@/components/GlobalLayout/Spin'
2
+
3
+ const gxAdminDesign = (app) => {
4
+ app.component('g-spin', Spin)
5
+ }
6
+ export default gxAdminDesign
@@ -0,0 +1,6 @@
1
+ import { GScrollbars } from '@gx-design-vue/scrollbar'
2
+
3
+ const gxDesign = (app) => {
4
+ app.component('g-scrollbars', GScrollbars)
5
+ }
6
+ export default gxDesign
@@ -0,0 +1,8 @@
1
+ import type { App } from 'vue'
2
+
3
+ import { PageContainer } from '@gx-design-vue/pro-layout'
4
+
5
+ const gxProDesign = (app: App) => {
6
+ app.component('g-pro-page-container', PageContainer)
7
+ }
8
+ export default gxProDesign
@@ -0,0 +1,84 @@
1
+ import dayjs from 'dayjs'
2
+ import relativeTime from 'dayjs/plugin/relativeTime'
3
+ import weekOfYear from 'dayjs/plugin/weekOfYear'
4
+ import advancedFormat from 'dayjs/plugin/advancedFormat'
5
+
6
+ import antDesign from './ant-design'
7
+ import gxDesign from './gx-design'
8
+ import gxProDesign from './gx-pro-design'
9
+
10
+ import gxAdminDesign from './gx-admin-design'
11
+
12
+ dayjs.locale({
13
+ name: 'zh-cn',
14
+ weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
15
+ weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
16
+ weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
17
+ months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
18
+ monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
19
+ // @ts-ignore
20
+ ordinal: (number, period) => {
21
+ switch (period) {
22
+ case 'W':
23
+ return `${number}周`
24
+ default:
25
+ return `${number}日`
26
+ }
27
+ },
28
+ weekStart: 1,
29
+ yearStart: 4,
30
+ formats: {
31
+ LT: 'HH:mm',
32
+ LTS: 'HH:mm:ss',
33
+ L: 'YYYY/MM/DD',
34
+ LL: 'YYYY年M月D日',
35
+ LLL: 'YYYY年M月D日Ah点mm分',
36
+ LLLL: 'YYYY年M月D日ddddAh点mm分',
37
+ l: 'YYYY/M/D',
38
+ ll: 'YYYY年M月D日',
39
+ lll: 'YYYY年M月D日 HH:mm',
40
+ llll: 'YYYY年M月D日dddd HH:mm'
41
+ } as any,
42
+ relativeTime: {
43
+ future: '%s内',
44
+ past: '%s前',
45
+ s: '几秒',
46
+ m: '1 分钟',
47
+ mm: '%d 分钟',
48
+ h: '1 小时',
49
+ hh: '%d 小时',
50
+ d: '1 天',
51
+ dd: '%d 天',
52
+ M: '1 个月',
53
+ MM: '%d 个月',
54
+ y: '1 年',
55
+ yy: '%d 年'
56
+ },
57
+ meridiem: (hour, minute) => {
58
+ const hm = (hour * 100) + minute
59
+ if (hm < 600) {
60
+ return '凌晨'
61
+ } else if (hm < 900) {
62
+ return '早上'
63
+ } else if (hm < 1100) {
64
+ return '上午'
65
+ } else if (hm < 1300) {
66
+ return '中午'
67
+ } else if (hm < 1800) {
68
+ return '下午'
69
+ }
70
+ return '晚上'
71
+ }
72
+ })
73
+ dayjs.extend(relativeTime)
74
+ dayjs.extend(weekOfYear)
75
+ dayjs.extend(advancedFormat)
76
+
77
+ export function setupGlobCommon(app) {
78
+ // design
79
+ antDesign()
80
+ // gx-design
81
+ gxDesign(app)
82
+ gxProDesign(app)
83
+ gxAdminDesign(app)
84
+ }
@@ -0,0 +1,4 @@
1
+ @import './layout';
2
+ @import './menu';
3
+ @import './spin';
4
+ @import './tooltip';
@@ -0,0 +1,22 @@
1
+ html {
2
+ body {
3
+ .ant-layout-sider {
4
+ .ant-layout-sider-children {
5
+ &::-webkit-scrollbar {
6
+ width: 6px;
7
+ height: 6px;
8
+ }
9
+
10
+ &::-webkit-scrollbar-thumb {
11
+ border-radius: 3px;
12
+ background: rgba(0, 0, 0, 0.12);
13
+ }
14
+
15
+ &::-webkit-scrollbar-track {
16
+ border-radius: 3px;
17
+ background: hsla(0, 0%, 100%, 0.15);
18
+ }
19
+ }
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,48 @@
1
+ html {
2
+ body {
3
+ .ant-menu-item .anticon,
4
+ .ant-menu-submenu-title .anticon {
5
+ margin-right: 10px !important;
6
+ }
7
+
8
+ .ant-menu-item .customimg,
9
+ .ant-menu-submenu-title .customimg {
10
+ width: 14px;
11
+ min-width: 14px;
12
+ margin-right: 8px !important;
13
+ transition: margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
14
+ }
15
+
16
+ .ant-menu-submenu-title {
17
+ [class*='ri'] {
18
+ min-width: 16px;
19
+ margin-right: 8px !important;
20
+ transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1),
21
+ margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
22
+ font-size: 16px;
23
+ vertical-align: bottom;
24
+ }
25
+ }
26
+
27
+ .ant-menu-inline-collapsed {
28
+ .ant-menu-submenu-title {
29
+ [class*='ri'] {
30
+ margin-right: 16px !important;
31
+ }
32
+
33
+ [class*='iconfont'] {
34
+ margin-right: 18px !important;
35
+ }
36
+ }
37
+ }
38
+
39
+ .ant-menu .ant-menu-item .ant-menu-item-icon.customicon {
40
+ min-width: 14px;
41
+ margin-right: 8px !important;
42
+ transition: font-size 0.15s cubic-bezier(0.215, 0.61, 0.355, 1),
43
+ margin 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
44
+ font-size: 14px;
45
+ vertical-align: unset;
46
+ }
47
+ }
48
+ }
@@ -0,0 +1,23 @@
1
+ .gx-admin-spin.gx-jiazaizhong {
2
+ display: inline-block;
3
+ width: auto;
4
+ height: auto;
5
+ animation: loading-circle 1s infinite linear;
6
+ color: inherit;
7
+ line-height: 0;
8
+ text-align: center;
9
+ text-rendering: optimizelegibility;
10
+ text-transform: none;
11
+ vertical-align: -0.125em;
12
+ --at-apply: text-30px;
13
+ }
14
+
15
+ .ant-spin-spinning .ant-spin-text {
16
+ margin-top: 10px;
17
+ }
18
+
19
+ @keyframes loading-circle {
20
+ 100% {
21
+ transform: rotate(360deg);
22
+ }
23
+ }
@@ -0,0 +1,7 @@
1
+ html {
2
+ body {
3
+ .ant-tooltip-inner a {
4
+ color: #fff;
5
+ }
6
+ }
7
+ }
@@ -0,0 +1 @@
1
+ /* 文字颜色相关 */
@@ -0,0 +1,5 @@
1
+ @import (reference) 'color.less';
2
+ @import (reference) 'mixin.less';
3
+
4
+ @gx-prefix: gx;
5
+ @gx-prefix-pro: ~'@{gx-prefix}-pro';
@@ -0,0 +1,180 @@
1
+ body {
2
+ .SfxPopper-wrapper {
3
+ z-index: 2001;
4
+ }
5
+
6
+ .FIE_topbar-reset-button {
7
+ display: none !important;
8
+ }
9
+
10
+ .FIE_tools-bar-wrapper {
11
+ display: flex !important;
12
+ flex-direction: column !important;
13
+ align-items: center !important;
14
+ justify-content: center !important;
15
+ }
16
+
17
+ .FIE_image-tool-options {
18
+ gap: unset !important;
19
+ }
20
+
21
+ .FIE_text-tool-options svg {
22
+ width: 14px !important;
23
+ height: 14px !important;
24
+ }
25
+
26
+ .FIE_text-font-family-option, .FIE_text-size-option {
27
+ height: 28px !important;
28
+ }
29
+
30
+ .FIE_text-size-option {
31
+ padding: 6px 12px !important;
32
+ }
33
+
34
+ .FIE_color-picker-triggerer {
35
+ width: 28px !important;
36
+ height: 28px !important;
37
+ }
38
+
39
+ .FIE_canvas-container {
40
+ padding-top: 0 !important;
41
+ padding-bottom: 0 !important;
42
+ }
43
+
44
+ .FIE_topbar {
45
+ padding: 0 !important;
46
+ border-bottom: unset !important;
47
+ }
48
+
49
+ .FIE_canvas-node {
50
+ background: unset !important;
51
+ }
52
+
53
+ .FIE_tabs {
54
+ padding-left: 0;
55
+ padding-right: 0;
56
+ padding-bottom: 0;
57
+ box-shadow: unset !important;
58
+ }
59
+
60
+ .FIE_tools-bar {
61
+ padding-top: 0;
62
+ padding-bottom: 0;
63
+ }
64
+
65
+ .FIE_text-tool-options {
66
+ margin-top: 0;
67
+ padding: 0;
68
+ }
69
+
70
+ .FIE_image-tool-options .FIE_image-tool-add-option-wrapper {
71
+ margin-right: 8px;
72
+ }
73
+
74
+ .FIE_topbar-buttons-wrapper, .FIE_topbar-save-wrapper, .FIE_rect-tool-button, .FIE_ellipse-tool-button, .FIE_polygon-tool-button, .FIE_pen-tool-button, .FIE_line-tool-button, .FIE_arrow-tool-button {
75
+ display: none !important;
76
+ }
77
+
78
+ .FIE_tools-wrapper {
79
+ min-width: unset !important;
80
+ }
81
+
82
+ .FIE_text-tool-button[aria-selected="true"], .FIE_text-tool-button:hover, .FIE_image-tool-button:hover, .FIE_tab:hover, .FIE_image-tool-button[aria-selected="true"], .FIE_tab[aria-selected="true"], .FIE_crop-tool[aria-selected="true"], .FIE_crop-tool:hover, .FIE_rotate-tool-button[aria-selected="true"], .FIE_rotate-tool-button:hover, .FIE_flip-x-tool-button[aria-selected="true"], .FIE_flip-x-tool-button:hover, .FIE_flip-y-tool-button[aria-selected="true"], .FIE_flip-y-tool-button:hover, .FIE_rotate_button_left:hover, .FIE_rotate_button_right:hover {
83
+ //background: var(--gx-primary-color) !important;
84
+ //opacity: .2;
85
+ }
86
+
87
+ .FIE_crop-tool[aria-selected="true"] {
88
+ gap: unset !important;
89
+ }
90
+
91
+ .FIE_crop-tool[aria-selected="true"] svg {
92
+ margin-right: 6px !important;
93
+ }
94
+
95
+ .public_crop_poper_menu>div>div.SfxMenuItem-wrapper:nth-child(2) {
96
+ display: none !important;
97
+ }
98
+ .video_crop_poper_menu>div>div.SfxMenuItem-wrapper:nth-child(1) {
99
+ display: none !important;
100
+ }
101
+ .video_crop_poper_menu>div>div.SfxMenuItem-wrapper:nth-child(2) {
102
+ display: none !important;
103
+ }
104
+
105
+ .FIE_crop-presets-menu div:nth-child(4) {
106
+ display: none !important;
107
+ }
108
+ .FIE_crop-presets-menu div:nth-child(5) {
109
+ display: none !important;
110
+ }
111
+
112
+ .FIE_tab:hover *, .FIE_text-tool-button:hover *, .FIE_image-tool-button:hover *, .FIE_flip-y-tool-button:hover *, .FIE_crop-tool:hover *, .FIE_flip-x-tool-button:hover *, .FIE_rotate-tool-button:hover *, .FIE_rotate_button_left:hover *, .FIE_rotate_button_right:hover * {
113
+ color: var(--gx-primary-color) !important;
114
+ }
115
+
116
+ .FIE_text-tool-button[aria-selected="true"] *, .FIE_image-tool-button[aria-selected="true"] *, .FIE_tab[aria-selected="true"] *, .FIE_crop-tool[aria-selected="true"] *, .FIE_flip-y-tool-button[aria-selected="true"] *, .FIE_flip-x-tool-button[aria-selected="true"] *, .FIE_rotate-tool-button[aria-selected="true"] * {
117
+ color: var(--gx-primary-color) !important;
118
+ }
119
+
120
+ .FIE_image-tool-add-option-button {
121
+ color: var(--gx-primary-color) !important;
122
+ border-color: var(--gx-primary-color) !important;
123
+
124
+ &:hover {
125
+ color: #fff !important;
126
+ border-color: #fff !important;
127
+ background: var(--gx-primary-color) !important;
128
+ }
129
+
130
+ &:focus {
131
+ color: var(--gx-primary-color) !important;
132
+ border-color: var(--gx-primary-color) !important;
133
+ background: transparent !important;
134
+ }
135
+ }
136
+
137
+ .SfxModal-Wrapper {
138
+ z-index: 2001 !important;
139
+
140
+ .SfxButton-root:last-child {
141
+ background: var(--gx-primary-color) !important;
142
+ }
143
+ }
144
+
145
+ .FIE_spin {
146
+ background: rgb(255, 255, 255);
147
+ display: flex;
148
+ -webkit-box-align: center;
149
+ align-items: center;
150
+ -webkit-box-pack: center;
151
+ justify-content: center;
152
+ position: absolute;
153
+ z-index: 11111;
154
+ inset: 0px;
155
+ flex-direction: column;
156
+ user-select: none;
157
+ }
158
+
159
+ .FIE_spin svg {
160
+ -webkit-transform: rotate(45deg);
161
+ -ms-transform: rotate(45deg);
162
+ transform: rotate(45deg);
163
+ -webkit-animation: antrotates 1.2s infinite linear;
164
+ animation: antrotates 1.2s infinite linear;
165
+ }
166
+ }
167
+
168
+ @-webkit-keyframes antrotates {
169
+ to {
170
+ -webkit-transform: rotate(405deg);
171
+ transform: rotate(405deg);
172
+ }
173
+ }
174
+
175
+ @keyframes antrotates {
176
+ to {
177
+ -webkit-transform: rotate(405deg);
178
+ transform: rotate(405deg);
179
+ }
180
+ }
@@ -0,0 +1,95 @@
1
+ @import './config';
2
+ @import './mixin';
3
+ @import './color';
4
+ @import './imageEditor';
5
+ @import './ant-design/index';
6
+ @import '../assets/public_icon/index.less';
7
+ @import '../assets/menu_font/index.less';
8
+
9
+ html,
10
+ body,
11
+ #app {
12
+ height: 100%;
13
+ .reset();
14
+
15
+ * {
16
+ box-sizing: border-box;
17
+ }
18
+ }
19
+
20
+ #@{gx-prefix-pro}-admin {
21
+ height: 100%;
22
+ }
23
+
24
+ .@{gx-prefix}-admin-page-loading {
25
+ .gx-admin-spin {
26
+ font-size: 40px;
27
+ }
28
+ }
29
+
30
+ .@{gx-prefix-pro}-page-container-row {
31
+ display: flex;
32
+ flex-wrap: wrap;
33
+ width: 100%;
34
+ }
35
+
36
+ .@{gx-prefix-pro}-page-container-content {
37
+ display: flex;
38
+ flex: auto;
39
+ }
40
+
41
+ .@{gx-prefix-pro}-page-container-extraContent {
42
+ display: flex;
43
+ flex: 0 1 auto;
44
+ justify-content: flex-end;
45
+ text-align: right;
46
+ }
47
+
48
+ .@{gx-prefix-pro}-iframe-page-main {
49
+ box-sizing: border-box;
50
+ width: 100%;
51
+ height: 100%;
52
+ overflow: hidden;
53
+ border: 0;
54
+ background-color: #fff;
55
+ }
56
+
57
+ .@{gx-prefix-pro}-scroll {
58
+ overflow: auto;
59
+ .scrollbar();
60
+ }
61
+
62
+ .@{gx-prefix}-image-slot {
63
+ display: flex;
64
+ align-items: center;
65
+ justify-content: center;
66
+ width: 100%;
67
+ height: 100%;
68
+ background: #fafafa;
69
+ color: #909399;
70
+
71
+ .iconfont {
72
+ font-size: 24px;
73
+ }
74
+
75
+ .anticon {
76
+ font-size: 24px;
77
+ }
78
+ }
79
+
80
+ .@{gx-prefix}-admin-a {
81
+ transition: color 0.3s;
82
+ cursor: pointer;
83
+
84
+ &:hover {
85
+ --at-apply: text-hex-main;
86
+ }
87
+ }
88
+
89
+ #nprogress .bar {
90
+ --at-apply: bg-hex-main;
91
+ }
92
+
93
+ .clearfix {
94
+ .clearfix();
95
+ }
@@ -0,0 +1,65 @@
1
+ //一些less函数
2
+
3
+ .scrollbar() {
4
+ &::-webkit-scrollbar {
5
+ width: 6px;
6
+ height: 6px;
7
+ }
8
+
9
+ &::-webkit-scrollbar-thumb {
10
+ background-color: rgba(50, 50, 50, 30%);
11
+ border-radius: 1em;
12
+ }
13
+
14
+ &::-webkit-scrollbar-track {
15
+ background-color: rgba(50, 50, 50, 10%);
16
+ border-radius: 1em;
17
+ }
18
+ }
19
+
20
+ .textOverflow() {
21
+ overflow: hidden;
22
+ text-overflow: ellipsis;
23
+ word-break: break-all;
24
+ white-space: nowrap;
25
+ }
26
+
27
+ .reset() {
28
+ box-sizing: border-box;
29
+ padding: 0;
30
+ margin: 0;
31
+ font-size: 100%;
32
+ vertical-align: baseline;
33
+ border: 0;
34
+ outline: 0;
35
+ }
36
+
37
+ .clearfix() {
38
+ &::before,
39
+ &::after {
40
+ display: table;
41
+ content: '';
42
+ height: 0;
43
+ clear: both;
44
+ font-size: 0;
45
+ visibility: hidden;
46
+ }
47
+ }
48
+
49
+ .centerContent() {
50
+ position: absolute;
51
+ top: 50%;
52
+ left: 50%;
53
+ z-index: 999;
54
+ transform: translate(-50%, -50%);
55
+ }
56
+
57
+ .relative() {
58
+ position: relative;
59
+ }
60
+
61
+ .overHidden() {
62
+ overflow: hidden;
63
+ text-overflow: ellipsis;
64
+ white-space: nowrap;
65
+ }