af-mobile-client-vue3 1.3.36 → 1.3.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/.cursorrules +60 -60
  2. package/.editorconfig +9 -9
  3. package/.env +10 -10
  4. package/.env.development +1 -1
  5. package/.env.production +1 -1
  6. package/.node-version +1 -1
  7. package/.vscode/extensions.json +12 -12
  8. package/.vscode/settings.json +68 -68
  9. package/CLAUDE.md +218 -218
  10. package/README.md +182 -182
  11. package/af-example-mobile-vue-web.iml +9 -9
  12. package/build/vite/index.ts +98 -98
  13. package/build/vite/optimize.ts +34 -34
  14. package/build/vite/vconsole.ts +47 -47
  15. package/commitlint.config.ts +32 -32
  16. package/compress.js +36 -36
  17. package/eslint.config.ts +31 -31
  18. package/index.html +23 -23
  19. package/mock/data.ts +20 -20
  20. package/mock/index.ts +7 -7
  21. package/mock/modules/prose.mock.ts +13 -13
  22. package/mock/modules/user.mock.ts +95 -95
  23. package/mock/util.ts +19 -19
  24. package/netlify.toml +12 -12
  25. package/package.json +114 -114
  26. package/postcss.config.ts +27 -27
  27. package/public/favicon.svg +4 -4
  28. package/public/safari-pinned-tab.svg +4 -4
  29. package/scripts/verifyCommit.js +19 -19
  30. package/src/App.vue +79 -79
  31. package/src/api/auth/index.ts +77 -77
  32. package/src/api/auth/types.ts +200 -200
  33. package/src/api/mock/index.ts +30 -30
  34. package/src/api/user/index.ts +40 -40
  35. package/src/assets/img/user/login/background-shadow-1.svg +20 -20
  36. package/src/assets/img/user/login/logo-background.svg +20 -20
  37. package/src/bootstrap.ts +26 -26
  38. package/src/components/core/BeautifulLoading/index.vue +52 -52
  39. package/src/components/core/ImageUploader/index.vue +251 -251
  40. package/src/components/core/NavBar/index.vue +53 -53
  41. package/src/components/core/Tabbar/index.vue +32 -32
  42. package/src/components/core/Uploader/index.vue +124 -124
  43. package/src/components/core/XGridDropOption/index.vue +154 -154
  44. package/src/components/core/XMultiSelect/index.vue +183 -183
  45. package/src/components/core/XSelect/index.vue +149 -149
  46. package/src/components/data/CardContainer/CardContainer.vue +118 -118
  47. package/src/components/data/CardContainer/CardHeader.vue +99 -99
  48. package/src/components/data/InfoDisplay/index.vue +132 -132
  49. package/src/components/data/UserDetail/api.ts +24 -24
  50. package/src/components/data/UserDetail/index.vue +620 -620
  51. package/src/components/data/UserDetail/recordEntries.ts +159 -159
  52. package/src/components/data/UserDetail/types.ts +26 -26
  53. package/src/components/data/XBadge/index.vue +82 -82
  54. package/src/components/data/XCellDetail/index.vue +105 -105
  55. package/src/components/data/XCellList/XCellList.md +432 -432
  56. package/src/components/data/XCellList/index.vue +1436 -1436
  57. package/src/components/data/XCellListFilter/QrScanner/index.vue +207 -207
  58. package/src/components/data/XCellListFilter/QrScanner/startScanAnimation.ts +53 -53
  59. package/src/components/data/XCellListFilter/VpnRecognition/index.vue +119 -119
  60. package/src/components/data/XCellListFilter/index.vue +705 -705
  61. package/src/components/data/XForm/index.vue +659 -659
  62. package/src/components/data/XFormGroup/doc/DeviceForm.vue +122 -122
  63. package/src/components/data/XFormGroup/doc/FormGroupDemo.vue +56 -56
  64. package/src/components/data/XFormGroup/doc/README.md +286 -286
  65. package/src/components/data/XFormGroup/doc/UserForm.vue +102 -102
  66. package/src/components/data/XFormGroup/index.vue +240 -240
  67. package/src/components/data/XFormItem/index.vue +1311 -1311
  68. package/src/components/data/XOlMap/README.md +227 -227
  69. package/src/components/data/XOlMap/XLocationPicker/index.vue +226 -226
  70. package/src/components/data/XOlMap/index.vue +1490 -1490
  71. package/src/components/data/XOlMap/types.ts +149 -149
  72. package/src/components/data/XOlMap/utils/wgs84ToGcj02.ts +171 -171
  73. package/src/components/data/XReportForm/DateTimeSecondsPicker.vue +208 -208
  74. package/src/components/data/XReportForm/XReportFormJsonRender.vue +220 -220
  75. package/src/components/data/XReportForm/index.vue +1393 -1393
  76. package/src/components/data/XReportGrid/XAddReport/XAddReport.vue +198 -198
  77. package/src/components/data/XReportGrid/XAddReport/index.js +3 -3
  78. package/src/components/data/XReportGrid/XAddReport/index.md +53 -53
  79. package/src/components/data/XReportGrid/XAddReport/index.ts +10 -10
  80. package/src/components/data/XReportGrid/XReport.vue +960 -960
  81. package/src/components/data/XReportGrid/XReportDemo.vue +33 -33
  82. package/src/components/data/XReportGrid/XReportDesign.vue +597 -597
  83. package/src/components/data/XReportGrid/XReportDrawer/XReportDrawer.vue +148 -148
  84. package/src/components/data/XReportGrid/XReportDrawer/index.js +3 -3
  85. package/src/components/data/XReportGrid/XReportDrawer/index.ts +10 -10
  86. package/src/components/data/XReportGrid/XReportJsonRender.vue +399 -399
  87. package/src/components/data/XReportGrid/XReportTrGroup.vue +592 -592
  88. package/src/components/data/XReportGrid/index.md +46 -46
  89. package/src/components/data/XReportGrid/print.js +184 -184
  90. package/src/components/data/XSignature/index.vue +284 -284
  91. package/src/components/data/XTag/index.vue +10 -10
  92. package/src/components/layout/NormalDataLayout/index.vue +69 -69
  93. package/src/components/layout/TabBarLayout/index.vue +40 -40
  94. package/src/composables/dark.ts +5 -5
  95. package/src/config/routes.ts +9 -9
  96. package/src/constants/index.ts +2 -2
  97. package/src/enums/requestEnum.ts +25 -25
  98. package/src/expression/ExpressionRunner.ts +28 -28
  99. package/src/expression/TestExpression.ts +510 -510
  100. package/src/expression/core/Delegate.ts +116 -116
  101. package/src/expression/core/Expression.ts +1359 -1359
  102. package/src/expression/core/Program.ts +985 -985
  103. package/src/expression/core/Token.ts +29 -29
  104. package/src/expression/enums/ExpressionType.ts +81 -81
  105. package/src/expression/enums/TokenType.ts +11 -11
  106. package/src/expression/exception/BreakWayException.ts +2 -2
  107. package/src/expression/exception/ContinueWayException.ts +2 -2
  108. package/src/expression/exception/ExpressionException.ts +29 -29
  109. package/src/expression/exception/ReturnWayException.ts +14 -14
  110. package/src/expression/exception/ServiceException.ts +22 -22
  111. package/src/expression/instances/JSONArray.ts +52 -52
  112. package/src/expression/instances/JSONObject.ts +118 -118
  113. package/src/expression/instances/LogicConsole.ts +31 -31
  114. package/src/font-style/font.css +4 -4
  115. package/src/hooks/useBoolean.ts +26 -26
  116. package/src/hooks/useCommon.ts +9 -9
  117. package/src/hooks/useLoading.ts +16 -16
  118. package/src/hooks/useLogin.ts +97 -97
  119. package/src/icons/svg/check-in.svg +32 -32
  120. package/src/icons/svg/dark.svg +4 -4
  121. package/src/icons/svg/github.svg +4 -4
  122. package/src/icons/svg/light.svg +4 -4
  123. package/src/icons/svg/link.svg +4 -4
  124. package/src/icons/svgo.yml +22 -22
  125. package/src/layout/GridView/index.vue +16 -16
  126. package/src/layout/PageLayout.vue +9 -9
  127. package/src/layout/SingleLayout.vue +9 -9
  128. package/src/locales/en-US.json +128 -128
  129. package/src/locales/zh-CN.json +128 -128
  130. package/src/logic/LogicRunner.ts +67 -67
  131. package/src/logic/TestLogic.ts +13 -13
  132. package/src/logic/plugins/common/DateTools.ts +35 -35
  133. package/src/logic/plugins/common/VueTools.ts +30 -30
  134. package/src/logic/plugins/index.ts +7 -7
  135. package/src/main.ts +44 -44
  136. package/src/plugins/AppData.ts +38 -38
  137. package/src/plugins/GetLoginInfoService.ts +10 -10
  138. package/src/plugins/collectIcons.ts +10 -10
  139. package/src/plugins/index.ts +11 -11
  140. package/src/router/README.md +8 -8
  141. package/src/router/external-routes.ts +60 -60
  142. package/src/router/guards.ts +131 -131
  143. package/src/router/index.ts +35 -35
  144. package/src/router/invoiceRoutes.ts +33 -33
  145. package/src/router/routes.ts +421 -421
  146. package/src/services/api/Login.ts +6 -6
  147. package/src/services/api/common.ts +109 -109
  148. package/src/services/api/index.ts +7 -7
  149. package/src/services/api/manage.ts +8 -8
  150. package/src/services/api/search.ts +16 -16
  151. package/src/services/api/user.ts +17 -17
  152. package/src/services/restTools.ts +56 -56
  153. package/src/services/v3Api.ts +147 -147
  154. package/src/stores/index.ts +13 -13
  155. package/src/stores/modules/counter.ts +19 -19
  156. package/src/stores/modules/homeApp.ts +55 -55
  157. package/src/stores/modules/routeCache.ts +22 -22
  158. package/src/stores/modules/setting.ts +87 -87
  159. package/src/stores/modules/user.ts +326 -326
  160. package/src/stores/mutation-type.ts +12 -12
  161. package/src/styles/app.less +36 -36
  162. package/src/styles/login.less +109 -109
  163. package/src/styles/var.less +25 -25
  164. package/src/types/auth.ts +89 -89
  165. package/src/types/env.d.ts +16 -16
  166. package/src/types/platform.ts +194 -194
  167. package/src/types/settings.ts +1 -1
  168. package/src/types/vue-router.d.ts +13 -13
  169. package/src/utils/Storage.ts +124 -124
  170. package/src/utils/authority-utils.ts +84 -84
  171. package/src/utils/common.ts +41 -41
  172. package/src/utils/crypto.ts +39 -39
  173. package/src/utils/dataUtil.ts +42 -42
  174. package/src/utils/dictUtil.ts +52 -52
  175. package/src/utils/http/index.ts +201 -201
  176. package/src/utils/i18n.ts +72 -72
  177. package/src/utils/indexedDB.ts +195 -195
  178. package/src/utils/inline-px-to-vw.ts +28 -28
  179. package/src/utils/mobileUtil.ts +33 -33
  180. package/src/utils/platform-auth.ts +135 -135
  181. package/src/utils/progress.ts +19 -19
  182. package/src/utils/queryFormDefaultRangePicker.ts +57 -57
  183. package/src/utils/routerUtil.ts +271 -271
  184. package/src/utils/runEvalFunction.ts +13 -13
  185. package/src/utils/secureStorage.ts +70 -70
  186. package/src/utils/set-page-title.ts +5 -5
  187. package/src/utils/validate.ts +6 -6
  188. package/src/views/chat/index.vue +153 -153
  189. package/src/views/common/Forbidden.vue +97 -97
  190. package/src/views/common/LoadError.vue +63 -63
  191. package/src/views/common/NotFound.vue +67 -67
  192. package/src/views/component/EvaluateRecordView/index.vue +40 -40
  193. package/src/views/component/IconifyView/index.vue +504 -504
  194. package/src/views/component/UserDetailView/UserDetailPage.vue +77 -77
  195. package/src/views/component/UserDetailView/index.vue +234 -234
  196. package/src/views/component/XCellDetailView/index.vue +217 -217
  197. package/src/views/component/XCellListView/index.vue +108 -108
  198. package/src/views/component/XFormAppraiseView/index.vue +174 -174
  199. package/src/views/component/XFormGroupView/index.vue +78 -78
  200. package/src/views/component/XFormView/index.vue +27 -27
  201. package/src/views/component/XOlMapView/index.vue +434 -434
  202. package/src/views/component/XOlMapView/testData.ts +64 -64
  203. package/src/views/component/XReportFormIframeView/index.vue +47 -47
  204. package/src/views/component/XReportFormView/index.vue +13 -13
  205. package/src/views/component/XReportGridView/index.vue +17 -17
  206. package/src/views/component/XRequestView/index.vue +234 -234
  207. package/src/views/component/XSignatureView/index.vue +50 -50
  208. package/src/views/component/index.vue +181 -181
  209. package/src/views/component/menu.vue +117 -117
  210. package/src/views/component/notice.vue +46 -46
  211. package/src/views/component/topNav.vue +36 -36
  212. package/src/views/external/index.vue +152 -152
  213. package/src/views/invoiceShow/index.vue +61 -61
  214. package/src/views/loading/AuthLoading.vue +345 -345
  215. package/src/views/user/login/ForgetPasswordForm.vue +94 -94
  216. package/src/views/user/login/LoginForm.vue +350 -350
  217. package/src/views/user/login/LoginTitle.vue +76 -76
  218. package/src/views/user/login/LoginWave.vue +109 -109
  219. package/src/views/user/login/index.vue +22 -22
  220. package/src/views/user/my/comm/ModifyPassword.vue +346 -346
  221. package/src/views/user/my/index.vue +507 -507
  222. package/src/views/user/register/index.vue +952 -952
  223. package/src/views/userRecords/AbnormalAlarmRecords.vue +21 -21
  224. package/src/views/userRecords/CardReplacementRecords.vue +21 -21
  225. package/src/views/userRecords/ChangeRecords.vue +19 -19
  226. package/src/views/userRecords/CommandViewRecords.vue +20 -20
  227. package/src/views/userRecords/GasCompensationRecords.vue +20 -20
  228. package/src/views/userRecords/InstrumentCollectionRecords.vue +21 -21
  229. package/src/views/userRecords/MeterRecords.vue +20 -20
  230. package/src/views/userRecords/OperateRecords.vue +51 -51
  231. package/src/views/userRecords/OtherChargeRecords.vue +19 -19
  232. package/src/views/userRecords/PaymentRecords.vue +28 -28
  233. package/src/views/userRecords/PriceAdjustmentRecords.vue +19 -19
  234. package/src/views/userRecords/ReplacementRecords.vue +19 -19
  235. package/src/views/userRecords/SafetyRecords.vue +19 -19
  236. package/src/views/userRecords/TransactionRecords.vue +21 -21
  237. package/src/views/userRecords/TransferRecords.vue +19 -19
  238. package/src/views/userRecords/operateRecordDetail/index.vue +316 -316
  239. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/AddUserDetail.vue +124 -124
  240. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/AdvanceDeliveryDetail.vue +88 -88
  241. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/AutoAccountsCancelDetail.vue +205 -205
  242. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/AutoAccountsDetail.vue +192 -192
  243. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/BankDkDetail.vue +192 -192
  244. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/BankPayDetail.vue +192 -192
  245. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/BlacklistDetail.vue +153 -153
  246. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/CancellationDetail.vue +101 -101
  247. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/CardMeterCenterCancelDetail.vue +127 -127
  248. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/CardMeterCenterDetail.vue +153 -153
  249. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/CardOverUserDetail.vue +153 -153
  250. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/ChangeMeterCancelDetail.vue +166 -166
  251. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/ChangeMeterDetail.vue +205 -205
  252. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/DisableManageDetail.vue +127 -127
  253. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/EnableManageDetail.vue +114 -114
  254. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/FaZheChangeDetail.vue +124 -124
  255. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/FeeDeductionDetail.vue +153 -153
  256. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/GasPriceChangeDetail.vue +126 -126
  257. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/InputtorChangeDetail.vue +126 -126
  258. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/IotMeterCenterCancelDetail.vue +114 -114
  259. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/IotMeterCenterDetail.vue +127 -127
  260. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/IotOpenDetail.vue +88 -88
  261. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/MachineCardDetail.vue +101 -101
  262. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/MachineMeterCenterCancelDetail.vue +218 -218
  263. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/MachineMeterCenterDetail.vue +153 -153
  264. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/OffGasAddGasDetail.vue +140 -140
  265. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/OtherChargeCancelDetail.vue +127 -127
  266. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/OtherChargeDetail.vue +114 -114
  267. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/OverUserChangeDetail.vue +127 -127
  268. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/ReBillDetail.vue +127 -127
  269. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/RefundDetail.vue +114 -114
  270. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/ReplaceCardManageCancelDetail.vue +127 -127
  271. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/ReplaceCardManageDetail.vue +114 -114
  272. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/SaleCardGasDetail.vue +140 -140
  273. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/TransferManageCancelDetail.vue +152 -152
  274. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/TransferManageDetail.vue +178 -178
  275. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/UserChangeDetail.vue +123 -123
  276. package/src/views/userRecords/operateRecordDetail/operateRecordDetails/WechatPayDetail.vue +192 -192
  277. package/src/views/userRecords/types.ts +66 -66
  278. package/tsconfig.json +39 -39
  279. package/uno.config.ts +82 -82
  280. package/vite.config.ts +114 -114
  281. package/.claude/settings.local.json +0 -14
@@ -1,95 +1,95 @@
1
- // https://github.com/pengzhanbo/vite-plugin-mock-dev-server
2
- import { defineMock } from 'vite-plugin-mock-dev-server'
3
-
4
- export default defineMock([{
5
- url: '/rs/logic/getLogin',
6
- delay: 300,
7
- body: () => {
8
- return {
9
- jwt: '60436',
10
- states: '登陆成功',
11
- }
12
- },
13
- }, {
14
- url: '/api/af-auth/lo1gin',
15
- delay: 5000,
16
- body: () => {
17
- return {
18
- code: 200,
19
- msg: null,
20
- data: {
21
- access_token: 'eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2tleSI6IjFmMmNmMTI2LTIwZWMtNDkwYi1iZjY0LWJjOWI2NmZkNWExYyIsImZfdXNlcm5hbWUiOiLlpJbpg6jnlKjmiLdiYlZmOGciLCJpZCI6NDc1NzEzOTYyMzU3MjkzMDU2fQ.6ytgMAfdQw9RN8Dz2uqHkZCo668FjWeAZdHqUjiAl5pRQa4QobunZCcav69EAyiudzFD4ukJIgSh3TNXPLdLYQ',
22
- resources: {
23
- platformUserId: 'oeNg769OtFGhrznAI9zAnvbbVf8g',
24
- platformType: 'WECHAT_OFFICIAL',
25
- resourceName: null,
26
- userType: 'EXTERNAL',
27
- orgs: '西安奥枫软件集团总公司',
28
- dir: 'standard',
29
- orgid: '123138',
30
- f_organization_id: '123138',
31
- },
32
- expires_in: 60,
33
- session: 'ZAFbvtnlcLSRxN8Hvjgsz5PeCI8mRV2FQ4uszAmsOgFAalAJ84raqmto3tp0V3QcMtPjgTI8lcAJWtTyClj/wPi2CxQZA6+14otKtIqiwjtvEnP03NsYn8X0x/jFl2jn91xEUM+ILyThv6WGfpSAQZDkIyydBr3ZhM6Z0m4uayw=',
34
- },
35
- error: false,
36
- success: true,
37
- }
38
- },
39
- }, {
40
- url: '/rs/logic/getLogin/智慧燃气',
41
- delay: 300,
42
- body: () => {
43
- return {
44
- accesstime: '1706694963867',
45
- deleted: 'false',
46
- depids: '108646',
47
- deps: '客户服务热线班组',
48
- deptype: '部门',
49
- dir: 'tctrq',
50
- ename: 'cs',
51
- entitytype: 't_user',
52
- f_create_date: null,
53
- f_department_name: '客户服务热线班组',
54
- f_icon: 'tree_user',
55
- f_mac_adress: null,
56
- f_old_userid: null,
57
- f_role_name: '系统管理员 维修员 派单员 维修员 派单员 管理员 需要定位人员 用户管理员 班组长 安检员 安检员 抄表员 维修员 派单员 ',
58
- f_sex: '男',
59
- f_update_date: '2023-05-31 14:12:16',
60
- f_user_macip: null,
61
- forceoutstate: '0',
62
- fullids: '46997.108646.60436.',
63
- fullnames: '铜川市天然气.客户服务热线班组.测试',
64
- haslicense: 'true',
65
- id: '60436',
66
- imgid: null,
67
- initpassword: '1',
68
- logindate: '09 27 2022 10:11AM',
69
- loginid: '15',
70
- loginip: '192.168.17.106',
71
- loginnum: '0',
72
- loginnumber: null,
73
- name: '测试',
74
- number: '1007',
75
- orgid: '46997',
76
- orgs: '铜川市天然气',
77
- parentid: '108646',
78
- parentname: '客户服务热线班组',
79
- position: '2',
80
- qrcode: '/rs/user/getQRcode?QRCODE=31f7-1631780331801-89562',
81
- resourcetype: 'user',
82
- roles: '63342,202099,185540,190376,201979,226308,244916,63336,276279,169595,63132,63192,278593,278597',
83
- rolesnames: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
84
- rolestr: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
85
- selfid: '60437',
86
- state: '在职',
87
- tablename: 't_user',
88
- templatename: 'useredit',
89
- ticket: null,
90
- url: null,
91
- userid: '31f7-1631780331801-89562',
92
- functions: [],
93
- }
94
- },
95
- }])
1
+ // https://github.com/pengzhanbo/vite-plugin-mock-dev-server
2
+ import { defineMock } from 'vite-plugin-mock-dev-server'
3
+
4
+ export default defineMock([{
5
+ url: '/rs/logic/getLogin',
6
+ delay: 300,
7
+ body: () => {
8
+ return {
9
+ jwt: '60436',
10
+ states: '登陆成功',
11
+ }
12
+ },
13
+ }, {
14
+ url: '/api/af-auth/lo1gin',
15
+ delay: 5000,
16
+ body: () => {
17
+ return {
18
+ code: 200,
19
+ msg: null,
20
+ data: {
21
+ access_token: 'eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2tleSI6IjFmMmNmMTI2LTIwZWMtNDkwYi1iZjY0LWJjOWI2NmZkNWExYyIsImZfdXNlcm5hbWUiOiLlpJbpg6jnlKjmiLdiYlZmOGciLCJpZCI6NDc1NzEzOTYyMzU3MjkzMDU2fQ.6ytgMAfdQw9RN8Dz2uqHkZCo668FjWeAZdHqUjiAl5pRQa4QobunZCcav69EAyiudzFD4ukJIgSh3TNXPLdLYQ',
22
+ resources: {
23
+ platformUserId: 'oeNg769OtFGhrznAI9zAnvbbVf8g',
24
+ platformType: 'WECHAT_OFFICIAL',
25
+ resourceName: null,
26
+ userType: 'EXTERNAL',
27
+ orgs: '西安奥枫软件集团总公司',
28
+ dir: 'standard',
29
+ orgid: '123138',
30
+ f_organization_id: '123138',
31
+ },
32
+ expires_in: 60,
33
+ session: 'ZAFbvtnlcLSRxN8Hvjgsz5PeCI8mRV2FQ4uszAmsOgFAalAJ84raqmto3tp0V3QcMtPjgTI8lcAJWtTyClj/wPi2CxQZA6+14otKtIqiwjtvEnP03NsYn8X0x/jFl2jn91xEUM+ILyThv6WGfpSAQZDkIyydBr3ZhM6Z0m4uayw=',
34
+ },
35
+ error: false,
36
+ success: true,
37
+ }
38
+ },
39
+ }, {
40
+ url: '/rs/logic/getLogin/智慧燃气',
41
+ delay: 300,
42
+ body: () => {
43
+ return {
44
+ accesstime: '1706694963867',
45
+ deleted: 'false',
46
+ depids: '108646',
47
+ deps: '客户服务热线班组',
48
+ deptype: '部门',
49
+ dir: 'tctrq',
50
+ ename: 'cs',
51
+ entitytype: 't_user',
52
+ f_create_date: null,
53
+ f_department_name: '客户服务热线班组',
54
+ f_icon: 'tree_user',
55
+ f_mac_adress: null,
56
+ f_old_userid: null,
57
+ f_role_name: '系统管理员 维修员 派单员 维修员 派单员 管理员 需要定位人员 用户管理员 班组长 安检员 安检员 抄表员 维修员 派单员 ',
58
+ f_sex: '男',
59
+ f_update_date: '2023-05-31 14:12:16',
60
+ f_user_macip: null,
61
+ forceoutstate: '0',
62
+ fullids: '46997.108646.60436.',
63
+ fullnames: '铜川市天然气.客户服务热线班组.测试',
64
+ haslicense: 'true',
65
+ id: '60436',
66
+ imgid: null,
67
+ initpassword: '1',
68
+ logindate: '09 27 2022 10:11AM',
69
+ loginid: '15',
70
+ loginip: '192.168.17.106',
71
+ loginnum: '0',
72
+ loginnumber: null,
73
+ name: '测试',
74
+ number: '1007',
75
+ orgid: '46997',
76
+ orgs: '铜川市天然气',
77
+ parentid: '108646',
78
+ parentname: '客户服务热线班组',
79
+ position: '2',
80
+ qrcode: '/rs/user/getQRcode?QRCODE=31f7-1631780331801-89562',
81
+ resourcetype: 'user',
82
+ roles: '63342,202099,185540,190376,201979,226308,244916,63336,276279,169595,63132,63192,278593,278597',
83
+ rolesnames: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
84
+ rolestr: '系统管理员,维修员,派单员,维修员,派单员,管理员,需要定位人员,用户管理员,班组长 ,安检员,安检员,抄表员,维修员,派单员',
85
+ selfid: '60437',
86
+ state: '在职',
87
+ tablename: 't_user',
88
+ templatename: 'useredit',
89
+ ticket: null,
90
+ url: null,
91
+ userid: '31f7-1631780331801-89562',
92
+ functions: [],
93
+ }
94
+ },
95
+ }])
package/mock/util.ts CHANGED
@@ -1,19 +1,19 @@
1
- const responseBody = {
2
- message: '',
3
- timestamp: 0,
4
- result: null as unknown,
5
- code: 0,
6
- }
7
-
8
- export function builder(data: unknown, message = 'success', code = 0) {
9
- responseBody.result = data
10
-
11
- if (message !== undefined && message !== null)
12
- responseBody.message = message
13
-
14
- if (code !== undefined && code !== 0)
15
- responseBody.code = code
16
-
17
- responseBody.timestamp = new Date().getTime()
18
- return responseBody
19
- }
1
+ const responseBody = {
2
+ message: '',
3
+ timestamp: 0,
4
+ result: null as unknown,
5
+ code: 0,
6
+ }
7
+
8
+ export function builder(data: unknown, message = 'success', code = 0) {
9
+ responseBody.result = data
10
+
11
+ if (message !== undefined && message !== null)
12
+ responseBody.message = message
13
+
14
+ if (code !== undefined && code !== 0)
15
+ responseBody.code = code
16
+
17
+ responseBody.timestamp = new Date().getTime()
18
+ return responseBody
19
+ }
package/netlify.toml CHANGED
@@ -1,12 +1,12 @@
1
- [build]
2
- base = "/"
3
- publish = "dist"
4
- command = "pnpm run build:pro"
5
-
6
- [build.environment]
7
- NODE_VERSION = "20"
8
-
9
- [[redirects]]
10
- from = "/*"
11
- to = "/index.html"
12
- status = 200
1
+ [build]
2
+ base = "/"
3
+ publish = "dist"
4
+ command = "pnpm run build:pro"
5
+
6
+ [build.environment]
7
+ NODE_VERSION = "20"
8
+
9
+ [[redirects]]
10
+ from = "/*"
11
+ to = "/index.html"
12
+ status = 200
package/package.json CHANGED
@@ -1,114 +1,114 @@
1
- {
2
- "name": "af-mobile-client-vue3",
3
- "type": "module",
4
- "version": "1.3.36",
5
- "packageManager": "pnpm@10.13.1",
6
- "description": "Vue + Vite component lib",
7
- "engines": {
8
- "node": ">=20.19.0"
9
- },
10
- "scripts": {
11
- "dev": "cross-env MOCK_SERVER_PORT=8086 vite",
12
- "compress": "node ./compress.js",
13
- "build:dev": "vue-tsc --noEmit && vite build --mode development && pnpm run compress",
14
- "build:pro": "vue-tsc --noEmit && vite build --mode production && pnpm run compress",
15
- "preview": "vite preview",
16
- "lint": "eslint .",
17
- "lint:fix": "eslint . --fix",
18
- "release": "bumpp --commit --push --tag",
19
- "typecheck": "vue-tsc --noEmit",
20
- "commitlint": "commitlint --edit",
21
- "prepare": "simple-git-hooks"
22
- },
23
- "dependencies": {
24
- "@iconify/vue": "4.3.0",
25
- "@micro-zoe/micro-app": "1.0.0-rc.26",
26
- "@unhead/vue": "2.0.12",
27
- "@vant/area-data": "^2.0.0",
28
- "@vant/touch-emulator": "^1.4.0",
29
- "@vant/use": "^1.6.0",
30
- "@vueuse/core": "^13.5.0",
31
- "axios": "^1.10.0",
32
- "crypto-js": "^4.2.0",
33
- "dayjs": "^1.11.13",
34
- "echarts": "^5.6.0",
35
- "lodash-es": "^4.17.21",
36
- "nprogress": "^0.2.0",
37
- "ol": "^10.5.0",
38
- "pinia": "^3.0.3",
39
- "pinia-plugin-persistedstate": "^4.4.1",
40
- "resize-detector": "^0.3.0",
41
- "vant": "^4.9.21",
42
- "vconsole": "^3.15.1",
43
- "vue": "^3.5.17",
44
- "vue-i18n": "^11.1.10",
45
- "vue-router": "^4.5.1",
46
- "vue3-hash-calendar": "^1.1.3"
47
- },
48
- "devDependencies": {
49
- "@antfu/eslint-config": "4.17.0",
50
- "@commitlint/cli": "^19.8.1",
51
- "@commitlint/config-conventional": "^19.8.1",
52
- "@commitlint/types": "^19.8.1",
53
- "@iconify/json": "2.2.318",
54
- "@iconify/utils": "^2.3.0",
55
- "@intlify/unplugin-vue-i18n": "^6.0.8",
56
- "@types/crypto-js": "^4.2.2",
57
- "@types/lodash-es": "^4.17.12",
58
- "@types/node": "^24.0.14",
59
- "@types/nprogress": "^0.2.3",
60
- "@unocss/eslint-config": "66.3.3",
61
- "@vitejs/plugin-legacy": "^7.0.1",
62
- "@vitejs/plugin-vue": "^6.0.0",
63
- "autoprefixer": "^10.4.21",
64
- "bumpp": "^10.2.0",
65
- "consola": "^3.4.2",
66
- "cross-env": "^7.0.3",
67
- "eslint": "^9.31.0",
68
- "eslint-plugin-format": "^1.0.1",
69
- "less": "^4.4.0",
70
- "lint-staged": "^16.1.2",
71
- "mockjs": "^1.1.0",
72
- "postcss-mobile-forever": "^5.0.0",
73
- "rollup": "^4.45.1",
74
- "simple-git-hooks": "^2.13.0",
75
- "tar": "^7.4.3",
76
- "terser": "^5.43.1",
77
- "typescript": "^5.8.3",
78
- "unocss": "66.3.3",
79
- "vite": "^7.0.5",
80
- "vite-plugin-compression": "^0.5.1",
81
- "vite-plugin-mock-dev-server": "^1.9.1",
82
- "vite-plugin-pwa": "^1.0.1",
83
- "vite-plugin-sitemap": "^0.8.2",
84
- "vite-plugin-vconsole": "^2.1.1",
85
- "vite-plugin-vue-devtools": "^7.7.7",
86
- "vue-tsc": "^3.0.2"
87
- },
88
- "pnpm": {
89
- "allowedDeprecatedVersions": {
90
- "glob": "7.2.3",
91
- "inflight": "1.0.6",
92
- "sourcemap-codec": "1.4.8"
93
- },
94
- "peerDependencyRules": {
95
- "allowedVersions": {}
96
- },
97
- "onlyBuiltDependencies": [
98
- "core-js",
99
- "esbuild",
100
- "simple-git-hooks",
101
- "unrs-resolver"
102
- ]
103
- },
104
- "resolutions": {
105
- "vite": "^7.0.5"
106
- },
107
- "simple-git-hooks": {
108
- "pre-commit": "pnpm lint-staged",
109
- "commit-msg": "pnpm commitlint $1"
110
- },
111
- "lint-staged": {
112
- "*": "eslint --fix"
113
- }
114
- }
1
+ {
2
+ "name": "af-mobile-client-vue3",
3
+ "type": "module",
4
+ "version": "1.3.37",
5
+ "packageManager": "pnpm@10.13.1",
6
+ "description": "Vue + Vite component lib",
7
+ "engines": {
8
+ "node": ">=20.19.0"
9
+ },
10
+ "scripts": {
11
+ "dev": "cross-env MOCK_SERVER_PORT=8086 vite",
12
+ "compress": "node ./compress.js",
13
+ "build:dev": "vue-tsc --noEmit && vite build --mode development && pnpm run compress",
14
+ "build:pro": "vue-tsc --noEmit && vite build --mode production && pnpm run compress",
15
+ "preview": "vite preview",
16
+ "lint": "eslint .",
17
+ "lint:fix": "eslint . --fix",
18
+ "release": "bumpp --commit --push --tag",
19
+ "typecheck": "vue-tsc --noEmit",
20
+ "commitlint": "commitlint --edit",
21
+ "prepare": "simple-git-hooks"
22
+ },
23
+ "dependencies": {
24
+ "@iconify/vue": "4.3.0",
25
+ "@micro-zoe/micro-app": "1.0.0-rc.26",
26
+ "@unhead/vue": "2.0.12",
27
+ "@vant/area-data": "^2.0.0",
28
+ "@vant/touch-emulator": "^1.4.0",
29
+ "@vant/use": "^1.6.0",
30
+ "@vueuse/core": "^13.5.0",
31
+ "axios": "^1.10.0",
32
+ "crypto-js": "^4.2.0",
33
+ "dayjs": "^1.11.13",
34
+ "echarts": "^5.6.0",
35
+ "lodash-es": "^4.17.21",
36
+ "nprogress": "^0.2.0",
37
+ "ol": "^10.5.0",
38
+ "pinia": "^3.0.3",
39
+ "pinia-plugin-persistedstate": "^4.4.1",
40
+ "resize-detector": "^0.3.0",
41
+ "vant": "^4.9.21",
42
+ "vconsole": "^3.15.1",
43
+ "vue": "^3.5.17",
44
+ "vue-i18n": "^11.1.10",
45
+ "vue-router": "^4.5.1",
46
+ "vue3-hash-calendar": "^1.1.3"
47
+ },
48
+ "devDependencies": {
49
+ "@antfu/eslint-config": "4.17.0",
50
+ "@commitlint/cli": "^19.8.1",
51
+ "@commitlint/config-conventional": "^19.8.1",
52
+ "@commitlint/types": "^19.8.1",
53
+ "@iconify/json": "2.2.318",
54
+ "@iconify/utils": "^2.3.0",
55
+ "@intlify/unplugin-vue-i18n": "^6.0.8",
56
+ "@types/crypto-js": "^4.2.2",
57
+ "@types/lodash-es": "^4.17.12",
58
+ "@types/node": "^24.0.14",
59
+ "@types/nprogress": "^0.2.3",
60
+ "@unocss/eslint-config": "66.3.3",
61
+ "@vitejs/plugin-legacy": "^7.0.1",
62
+ "@vitejs/plugin-vue": "^6.0.0",
63
+ "autoprefixer": "^10.4.21",
64
+ "bumpp": "^10.2.0",
65
+ "consola": "^3.4.2",
66
+ "cross-env": "^7.0.3",
67
+ "eslint": "^9.31.0",
68
+ "eslint-plugin-format": "^1.0.1",
69
+ "less": "^4.4.0",
70
+ "lint-staged": "^16.1.2",
71
+ "mockjs": "^1.1.0",
72
+ "postcss-mobile-forever": "^5.0.0",
73
+ "rollup": "^4.45.1",
74
+ "simple-git-hooks": "^2.13.0",
75
+ "tar": "^7.4.3",
76
+ "terser": "^5.43.1",
77
+ "typescript": "^5.8.3",
78
+ "unocss": "66.3.3",
79
+ "vite": "^7.0.5",
80
+ "vite-plugin-compression": "^0.5.1",
81
+ "vite-plugin-mock-dev-server": "^1.9.1",
82
+ "vite-plugin-pwa": "^1.0.1",
83
+ "vite-plugin-sitemap": "^0.8.2",
84
+ "vite-plugin-vconsole": "^2.1.1",
85
+ "vite-plugin-vue-devtools": "^7.7.7",
86
+ "vue-tsc": "^3.0.2"
87
+ },
88
+ "pnpm": {
89
+ "allowedDeprecatedVersions": {
90
+ "glob": "7.2.3",
91
+ "inflight": "1.0.6",
92
+ "sourcemap-codec": "1.4.8"
93
+ },
94
+ "peerDependencyRules": {
95
+ "allowedVersions": {}
96
+ },
97
+ "onlyBuiltDependencies": [
98
+ "core-js",
99
+ "esbuild",
100
+ "simple-git-hooks",
101
+ "unrs-resolver"
102
+ ]
103
+ },
104
+ "resolutions": {
105
+ "vite": "^7.0.5"
106
+ },
107
+ "simple-git-hooks": {
108
+ "pre-commit": "pnpm lint-staged",
109
+ "commit-msg": "pnpm commitlint $1"
110
+ },
111
+ "lint-staged": {
112
+ "*": "eslint --fix"
113
+ }
114
+ }
package/postcss.config.ts CHANGED
@@ -1,27 +1,27 @@
1
- // 此文件不支持热更新,修改后需要重启生效
2
-
3
- // 需要转换的 fixed 选择器列表
4
- const rootContainingBlockSelectorList = [
5
- '.van-tabbar',
6
- '.van-popup',
7
- '.van-popup--bottom',
8
- '.van-popup--top',
9
- '.van-popup--left',
10
- '.van-popup--right',
11
- // 在这里添加你的选择器
12
- ]
13
-
14
- export default {
15
- plugins: {
16
- 'autoprefixer': {},
17
-
18
- // https://github.com/wswmsword/postcss-mobile-forever
19
- 'postcss-mobile-forever': {
20
- appSelector: '#system-app',
21
- viewportWidth: 375,
22
- maxDisplayWidth: 800,
23
- border: true,
24
- rootContainingBlockSelectorList,
25
- },
26
- },
27
- }
1
+ // 此文件不支持热更新,修改后需要重启生效
2
+
3
+ // 需要转换的 fixed 选择器列表
4
+ const rootContainingBlockSelectorList = [
5
+ '.van-tabbar',
6
+ '.van-popup',
7
+ '.van-popup--bottom',
8
+ '.van-popup--top',
9
+ '.van-popup--left',
10
+ '.van-popup--right',
11
+ // 在这里添加你的选择器
12
+ ]
13
+
14
+ export default {
15
+ plugins: {
16
+ 'autoprefixer': {},
17
+
18
+ // https://github.com/wswmsword/postcss-mobile-forever
19
+ 'postcss-mobile-forever': {
20
+ appSelector: '#system-app',
21
+ viewportWidth: 375,
22
+ maxDisplayWidth: 800,
23
+ border: true,
24
+ rootContainingBlockSelectorList,
25
+ },
26
+ },
27
+ }
@@ -1,4 +1,4 @@
1
- <svg t="1709866807903" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4913" width="32" height="32">
2
- <path d="M512 598.528a111.232 111.232 0 0 0-111.232 111.2064V870.4h222.464v-160.6656c0-61.44-49.792-111.232-111.232-111.232z m0 58.0608c-30.72 0-55.6032 24.9088-55.6032 55.6288v105.0368h111.2064v-105.0368c0-30.72-24.8832-55.6288-55.6032-55.6288z" fill="#FB4D31" p-id="4914"></path>
3
- <path d="M542.08 270.208l45.2608-78.5408a24.5248 24.5248 0 0 0 0-25.6A26.4448 26.4448 0 0 0 564.1472 153.6a26.3424 26.3424 0 0 0-22.5792 13.44L512 217.6256l-29.5424-50.5344c-4.5824-8.192-13.184-13.312-22.5536-13.4912a26.4448 26.4448 0 0 0-23.2448 12.4928 24.5248 24.5248 0 0 0 0 25.6l45.2352 78.5152L156.928 832.768a24.4736 24.4736 0 0 0 0.3328 25.088c4.8384 7.8336 13.3888 12.544 22.5792 12.5184h664.3456c9.3184 0 17.92-4.7616 22.6304-12.4672a24.4736 24.4736 0 0 0 0.3072-25.088l-325.0176-562.688v0.0512zM619.52 816.64h-33.3568c-12.3648 0-9.6768 0.1024-65.0496 0H512c-55.3728 0.1024-24.704 0-61.7984 0H225.28L512 322.1248 798.72 816.64h-179.2z" fill="#000000" p-id="4915"></path>
4
- </svg>
1
+ <svg t="1709866807903" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4913" width="32" height="32">
2
+ <path d="M512 598.528a111.232 111.232 0 0 0-111.232 111.2064V870.4h222.464v-160.6656c0-61.44-49.792-111.232-111.232-111.232z m0 58.0608c-30.72 0-55.6032 24.9088-55.6032 55.6288v105.0368h111.2064v-105.0368c0-30.72-24.8832-55.6288-55.6032-55.6288z" fill="#FB4D31" p-id="4914"></path>
3
+ <path d="M542.08 270.208l45.2608-78.5408a24.5248 24.5248 0 0 0 0-25.6A26.4448 26.4448 0 0 0 564.1472 153.6a26.3424 26.3424 0 0 0-22.5792 13.44L512 217.6256l-29.5424-50.5344c-4.5824-8.192-13.184-13.312-22.5536-13.4912a26.4448 26.4448 0 0 0-23.2448 12.4928 24.5248 24.5248 0 0 0 0 25.6l45.2352 78.5152L156.928 832.768a24.4736 24.4736 0 0 0 0.3328 25.088c4.8384 7.8336 13.3888 12.544 22.5792 12.5184h664.3456c9.3184 0 17.92-4.7616 22.6304-12.4672a24.4736 24.4736 0 0 0 0.3072-25.088l-325.0176-562.688v0.0512zM619.52 816.64h-33.3568c-12.3648 0-9.6768 0.1024-65.0496 0H512c-55.3728 0.1024-24.704 0-61.7984 0H225.28L512 322.1248 798.72 816.64h-179.2z" fill="#000000" p-id="4915"></path>
4
+ </svg>
@@ -1,4 +1,4 @@
1
- <svg width="683" height="683" viewBox="0 0 683 683" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M297.6 104.8C291.6 107.867 288.667 113.733 289.2 122.133C289.2 123.6 296.533 137.2 305.333 152.4L321.333 180L296.533 222.933C282.8 246.667 266 275.867 258.933 288C251.867 300.133 244.267 313.333 242 317.333C239.733 321.333 219.6 356.133 197.333 394.667C175.067 433.2 156 466.133 155.067 468C154 469.867 151.733 473.733 150 476.667C148.267 479.6 145.733 484.133 144.267 486.667C141.733 491.333 117.2 533.867 108.4 548.667C100 562.8 101.333 572.4 112.4 578.267C116.267 580.267 135.2 580.4 341.333 580.4C588.667 580.4 570.533 581.067 577.2 572.533C582.133 566.267 580.933 560.933 570.533 542.667C565.333 533.467 559.867 523.867 558.4 521.333C554.933 515.333 526.933 466.8 496.4 414C483.2 391.2 470.933 370 469.067 366.667C467.2 363.333 458.933 348.933 450.667 334.667C437.867 312.667 422.667 286.267 413.333 270C412 267.733 400.933 248.533 388.667 227.333C376.4 206 365.2 186.667 363.867 184.267L361.333 180L375.867 154.933C394.533 122.667 393.6 124.4 393.6 118.533C393.467 109.333 385.867 102.667 375.467 102.667C367.733 102.667 363.733 106.667 352.533 125.867C346.8 135.867 341.6 144 341.2 144C340.667 144 339.467 142.4 338.533 140.267C332.4 128.267 319.067 107.467 316.4 105.733C311.733 102.667 302.8 102.133 297.6 104.8ZM349.333 228.267C353.333 235.067 357.867 243.067 359.467 246C361.067 248.933 368.533 261.867 376 274.667C383.467 287.467 390.933 300.4 392.667 303.333C394.267 306.267 400 316.133 405.333 325.333C410.667 334.533 417.467 346.133 420.4 351.333C423.333 356.4 437.2 380.4 451.333 404.667C465.333 428.8 478.4 451.333 480.267 454.667C482.133 458 490.133 471.733 498 485.333C506 498.933 513.467 511.733 514.667 514C522.933 528.267 531.067 542.133 532 543.333C532.8 544.267 513.333 544.667 474.267 544.533L415.467 544.4L415.333 502.533C415.2 466.133 414.8 459.733 412.8 453.333C406.667 434.933 399.733 424.667 385.867 414.4C377.467 408.133 367.333 402.8 363.067 402.533C362.8 402.4 359.733 401.733 356.267 400.667C343.6 397.333 320.133 400.4 308 406.933C287.6 417.867 272.933 437.333 268.533 458.933C268 461.333 267.6 481.6 267.467 503.867V544.495L415.467 544.4L208.4 544.533C169.333 544.667 149.867 544.267 150.667 543.333C151.6 542.133 160.933 526.4 168.667 512.667C170.4 509.733 185.733 483.333 202.667 454C219.733 424.667 234.8 398.533 236.267 396C246.133 378.8 265.733 345.067 272.8 332.933C277.467 325.067 281.333 318.4 281.333 318.133C281.333 317.733 284.267 312.8 287.867 306.933C291.467 301.067 294.533 295.733 294.8 295.067C296.133 291.6 340.667 216 341.333 216C341.733 216 345.333 221.6 349.333 228.267Z" fill="black"/>
3
- <path d="M415.333 502.533L415.467 544.4L267.467 544.495V503.867C267.6 481.6 268 461.333 268.533 458.933C272.933 437.333 287.6 417.867 308 406.933C320.133 400.4 343.6 397.333 356.267 400.667C359.733 401.733 362.8 402.4 363.067 402.533C367.333 402.8 377.467 408.133 385.867 414.4C399.733 424.667 406.667 434.933 412.8 453.333C414.8 459.733 415.2 466.133 415.333 502.533Z" fill="#FB4D31"/>
4
- </svg>
1
+ <svg width="683" height="683" viewBox="0 0 683 683" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M297.6 104.8C291.6 107.867 288.667 113.733 289.2 122.133C289.2 123.6 296.533 137.2 305.333 152.4L321.333 180L296.533 222.933C282.8 246.667 266 275.867 258.933 288C251.867 300.133 244.267 313.333 242 317.333C239.733 321.333 219.6 356.133 197.333 394.667C175.067 433.2 156 466.133 155.067 468C154 469.867 151.733 473.733 150 476.667C148.267 479.6 145.733 484.133 144.267 486.667C141.733 491.333 117.2 533.867 108.4 548.667C100 562.8 101.333 572.4 112.4 578.267C116.267 580.267 135.2 580.4 341.333 580.4C588.667 580.4 570.533 581.067 577.2 572.533C582.133 566.267 580.933 560.933 570.533 542.667C565.333 533.467 559.867 523.867 558.4 521.333C554.933 515.333 526.933 466.8 496.4 414C483.2 391.2 470.933 370 469.067 366.667C467.2 363.333 458.933 348.933 450.667 334.667C437.867 312.667 422.667 286.267 413.333 270C412 267.733 400.933 248.533 388.667 227.333C376.4 206 365.2 186.667 363.867 184.267L361.333 180L375.867 154.933C394.533 122.667 393.6 124.4 393.6 118.533C393.467 109.333 385.867 102.667 375.467 102.667C367.733 102.667 363.733 106.667 352.533 125.867C346.8 135.867 341.6 144 341.2 144C340.667 144 339.467 142.4 338.533 140.267C332.4 128.267 319.067 107.467 316.4 105.733C311.733 102.667 302.8 102.133 297.6 104.8ZM349.333 228.267C353.333 235.067 357.867 243.067 359.467 246C361.067 248.933 368.533 261.867 376 274.667C383.467 287.467 390.933 300.4 392.667 303.333C394.267 306.267 400 316.133 405.333 325.333C410.667 334.533 417.467 346.133 420.4 351.333C423.333 356.4 437.2 380.4 451.333 404.667C465.333 428.8 478.4 451.333 480.267 454.667C482.133 458 490.133 471.733 498 485.333C506 498.933 513.467 511.733 514.667 514C522.933 528.267 531.067 542.133 532 543.333C532.8 544.267 513.333 544.667 474.267 544.533L415.467 544.4L415.333 502.533C415.2 466.133 414.8 459.733 412.8 453.333C406.667 434.933 399.733 424.667 385.867 414.4C377.467 408.133 367.333 402.8 363.067 402.533C362.8 402.4 359.733 401.733 356.267 400.667C343.6 397.333 320.133 400.4 308 406.933C287.6 417.867 272.933 437.333 268.533 458.933C268 461.333 267.6 481.6 267.467 503.867V544.495L415.467 544.4L208.4 544.533C169.333 544.667 149.867 544.267 150.667 543.333C151.6 542.133 160.933 526.4 168.667 512.667C170.4 509.733 185.733 483.333 202.667 454C219.733 424.667 234.8 398.533 236.267 396C246.133 378.8 265.733 345.067 272.8 332.933C277.467 325.067 281.333 318.4 281.333 318.133C281.333 317.733 284.267 312.8 287.867 306.933C291.467 301.067 294.533 295.733 294.8 295.067C296.133 291.6 340.667 216 341.333 216C341.733 216 345.333 221.6 349.333 228.267Z" fill="black"/>
3
+ <path d="M415.333 502.533L415.467 544.4L267.467 544.495V503.867C267.6 481.6 268 461.333 268.533 458.933C272.933 437.333 287.6 417.867 308 406.933C320.133 400.4 343.6 397.333 356.267 400.667C359.733 401.733 362.8 402.4 363.067 402.533C367.333 402.8 377.467 408.133 385.867 414.4C399.733 424.667 406.667 434.933 412.8 453.333C414.8 459.733 415.2 466.133 415.333 502.533Z" fill="#FB4D31"/>
4
+ </svg>
@@ -1,19 +1,19 @@
1
- import fs from 'node:fs'
2
-
3
- // import process from 'node:process'
4
-
5
- const msg = fs.readFileSync('.git/COMMIT_EDITMSG', 'utf-8').trim()
6
-
7
- const commitRE = /^(?:revert: )?(?:feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release)(?:\(.+\))?: .{1,50}/
8
- // const mergeRe = /^(Merge pull request|Merge branch)/
9
-
10
- if (!commitRE.test(msg)) {
11
- // if (!mergeRe.test(msg)) {
12
- // console.log('git commit unpass')
13
- // console.error('git commit error, needs title(scope): desc')
14
- // process.exit(1)
15
- // }
16
- }
17
- else {
18
- console.log('git commit pass')
19
- }
1
+ import fs from 'node:fs'
2
+
3
+ // import process from 'node:process'
4
+
5
+ const msg = fs.readFileSync('.git/COMMIT_EDITMSG', 'utf-8').trim()
6
+
7
+ const commitRE = /^(?:revert: )?(?:feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release)(?:\(.+\))?: .{1,50}/
8
+ // const mergeRe = /^(Merge pull request|Merge branch)/
9
+
10
+ if (!commitRE.test(msg)) {
11
+ // if (!mergeRe.test(msg)) {
12
+ // console.log('git commit unpass')
13
+ // console.error('git commit error, needs title(scope): desc')
14
+ // process.exit(1)
15
+ // }
16
+ }
17
+ else {
18
+ console.log('git commit pass')
19
+ }