@oj-module/cli 0.2.63 → 0.2.66

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 (206) hide show
  1. package/devkit/README.md +9 -3
  2. package/devkit/SKILL.md +5 -2
  3. package/devkit/framework-dev.md +12 -7
  4. package/devkit/manual.md +123 -56
  5. package/devkit/menu-rules.md +4 -1
  6. package/package.json +3 -2
  7. package/shell-dist/assets/ahooks.2l850ymmh0.js +18 -0
  8. package/shell-dist/assets/antd-es-locale-zh_CN.1gjjsvxbf0.js +1 -0
  9. package/shell-dist/assets/antd-img-crop.196rkty480.js +99 -0
  10. package/shell-dist/assets/antd-locale-en_US.561tozx860.js +1 -0
  11. package/shell-dist/assets/antd-locale-zh_CN.1cmpmgzh70.js +1 -0
  12. package/shell-dist/assets/antd.uw1coq15l0.js +348 -0
  13. package/shell-dist/assets/clsx.jotilrt2e0.js +1 -0
  14. package/shell-dist/assets/contract-errors.2o17vz9u50.js +1 -0
  15. package/shell-dist/assets/contract.3h327o3mj0.js +57 -0
  16. package/shell-dist/assets/cssinjs.atgmhan7m0.js +3 -0
  17. package/shell-dist/assets/dayjs-plugin-advancedFormat.3vsyd2eis0.js +1 -0
  18. package/shell-dist/assets/dayjs-plugin-customParseFormat.13xhghv1d0.js +1 -0
  19. package/shell-dist/assets/dayjs-plugin-isoWeek.1fn1tw82p0.js +1 -0
  20. package/shell-dist/assets/dayjs-plugin-localeData.2rwbjp9nk0.js +1 -0
  21. package/shell-dist/assets/dayjs-plugin-quarterOfYear.2oqo1lcx80.js +1 -0
  22. package/shell-dist/assets/dayjs-plugin-relativeTime.2pqs3et4y0.js +1 -0
  23. package/shell-dist/assets/dayjs-plugin-weekOfYear.gvn9iph080.js +1 -0
  24. package/shell-dist/assets/dayjs-plugin-weekYear.2u78l3ex10.js +1 -0
  25. package/shell-dist/assets/dayjs-plugin-weekday.2d56a4tml0.js +1 -0
  26. package/shell-dist/assets/dayjs.pa60l6wjo0.js +1 -0
  27. package/shell-dist/assets/dnd-kit-core.1xyreig6r0.js +5 -0
  28. package/shell-dist/assets/dnd-kit-sortable.s94qciuft0.js +1 -0
  29. package/shell-dist/assets/dnd-kit-utilities.1umw4xphb0.js +1 -0
  30. package/shell-dist/assets/i18next.33zqofapj0.js +1 -0
  31. package/shell-dist/assets/icons-es-components-Context.365qmflwg0.js +1 -0
  32. package/shell-dist/assets/icons.159wjwals0.js +57 -0
  33. package/shell-dist/assets/{index-BKtXxIXz.js → index.i0kqbxp050.js} +11 -6
  34. package/shell-dist/assets/jsx-dev-runtime.3uibuc82f0.js +14 -0
  35. package/shell-dist/assets/jsx-runtime.h40xu4o5b0.js +14 -0
  36. package/shell-dist/assets/keepalive-for-react.xenu5vam70.js +1 -0
  37. package/shell-dist/assets/kit.37kr8ui390.js +1 -0
  38. package/shell-dist/assets/ky.1cgch7gu60.js +6 -0
  39. package/shell-dist/assets/motion-react.pjsxytvjs0.js +12 -0
  40. package/shell-dist/assets/motion.21tciqutg0.js +4 -0
  41. package/shell-dist/assets/nprogress.2nz76n9ny0.js +7 -0
  42. package/shell-dist/assets/ojm-dayjs-locale-zh-cn.3vr3beiyp0.js +9 -0
  43. package/shell-dist/assets/pinyin-pro.3v0mnxczn0.js +1 -0
  44. package/shell-dist/assets/pro-components.2kyot1vcl0.js +83 -0
  45. package/shell-dist/assets/react-countup.2x8idnr8y0.js +10 -0
  46. package/shell-dist/assets/react-dom-client.ick0v05ob0.js +43 -0
  47. package/shell-dist/assets/react-dom.2so9uxg3f0.js +22 -0
  48. package/shell-dist/assets/react-error-boundary.2dncdfj3b0.js +1 -0
  49. package/shell-dist/assets/react-i18next.auhvjhqv00.js +1 -0
  50. package/shell-dist/assets/react-jss.1ei6dr9e00.js +29 -0
  51. package/shell-dist/assets/react-query.3rln45ow00.js +1 -0
  52. package/shell-dist/assets/react-router-dom.3c6zld8h40.js +44 -0
  53. package/shell-dist/assets/react-router.2h9rebcv50.js +56 -0
  54. package/shell-dist/assets/react.1ew63mwts0.js +14 -0
  55. package/shell-dist/assets/runtime.1xfsxcajj0.js +21702 -0
  56. package/shell-dist/assets/simplebar-react.2g739uvai0.js +1 -0
  57. package/shell-dist/assets/spin-delay.yjeyj6iwp0.js +9 -0
  58. package/shell-dist/assets/tailwind-merge.125ehiqjw0.js +1 -0
  59. package/shell-dist/assets/use-sync-external-store-shim.1nz1pi9bb0.js +22 -0
  60. package/shell-dist/assets/zustand-middleware.1xaxjueme0.js +6 -0
  61. package/shell-dist/assets/zustand-react-shallow.pybayv1hx0.js +1 -0
  62. package/shell-dist/assets/zustand-react.9fsl9brxy0.js +1 -0
  63. package/shell-dist/assets/zustand-shallow.6cz0yyv9x0.js +1 -0
  64. package/shell-dist/assets/zustand-vanilla-shallow.3424monv50.js +1 -0
  65. package/shell-dist/assets/zustand-vanilla.1mo3ka3g30.js +1 -0
  66. package/shell-dist/assets/zustand.3gjgzlnqo0.js +1 -0
  67. package/shell-dist/index.html +67 -118
  68. package/shell-dist/versions.json +3 -3
  69. package/src/build/module-def.ts +1 -0
  70. package/src/esm-exports.ts +152 -70
  71. package/src/market/__tests__/bootstrap.test.ts +36 -1
  72. package/src/shared-deps.ts +69 -19
  73. package/src/site-base.ts +4 -0
  74. package/templates/src/app/web/home/pages/components/bar-chart.tsx +5 -3
  75. package/templates/src/app/web/home/pages/components/echarts-setup.ts +30 -0
  76. package/templates/src/app/web/home/pages/components/line-chart.tsx +5 -3
  77. package/templates/src/app/web/home/pages/components/pie-chart.tsx +6 -3
  78. package/templates/src/app/web/home/pages/index.tsx +3 -2
  79. package/templates/src/app/web/home/routes.ts +3 -2
  80. package/templates/src/app/web/personal-center/locales/en-US.json +15 -0
  81. package/templates/src/app/web/personal-center/locales/zh-CN.json +15 -0
  82. package/templates/src/app/web/personal-center/pages/my-profile/index.tsx +15 -13
  83. package/templates/src/app/web/system/locales/en-US.json +24 -3
  84. package/templates/src/app/web/system/locales/zh-CN.json +24 -3
  85. package/templates/src/app/web/system/pages/roles/index.tsx +13 -6
  86. package/templates/src/app/web/system/pages/settings/index.tsx +1 -1
  87. package/templates/src/app/web/system/pages/users/index.tsx +3 -3
  88. package/templates/src/app/web/system/pages/users/roles.tsx +1 -1
  89. package/templates/src/oj-market/web/locales/en-US.json +14 -1
  90. package/templates/src/oj-market/web/locales/zh-CN.json +14 -1
  91. package/vendor/host-versions.json +3 -3
  92. package/shell-dist/assets/ahooks.js +0 -6909
  93. package/shell-dist/assets/antd-es-locale-zh_CN.js +0 -257
  94. package/shell-dist/assets/antd-img-crop.js +0 -1495
  95. package/shell-dist/assets/antd-locale-en_US.js +0 -374
  96. package/shell-dist/assets/antd-locale-zh_CN.js +0 -379
  97. package/shell-dist/assets/antd.js +0 -106874
  98. package/shell-dist/assets/clsx.js +0 -33
  99. package/shell-dist/assets/contract-errors.js +0 -30
  100. package/shell-dist/assets/contract.js +0 -18900
  101. package/shell-dist/assets/cssinjs.js +0 -2595
  102. package/shell-dist/assets/dayjs-plugin-advancedFormat.js +0 -98
  103. package/shell-dist/assets/dayjs-plugin-customParseFormat.js +0 -173
  104. package/shell-dist/assets/dayjs-plugin-isoWeek.js +0 -77
  105. package/shell-dist/assets/dayjs-plugin-localeData.js +0 -126
  106. package/shell-dist/assets/dayjs-plugin-quarterOfYear.js +0 -77
  107. package/shell-dist/assets/dayjs-plugin-relativeTime.js +0 -92
  108. package/shell-dist/assets/dayjs-plugin-weekOfYear.js +0 -73
  109. package/shell-dist/assets/dayjs-plugin-weekYear.js +0 -63
  110. package/shell-dist/assets/dayjs-plugin-weekday.js +0 -63
  111. package/shell-dist/assets/dayjs.js +0 -326
  112. package/shell-dist/assets/dnd-kit-core.js +0 -3601
  113. package/shell-dist/assets/dnd-kit-sortable.js +0 -717
  114. package/shell-dist/assets/dnd-kit-utilities.js +0 -340
  115. package/shell-dist/assets/i18next.js +0 -2321
  116. package/shell-dist/assets/icons-es-components-Context.js +0 -20
  117. package/shell-dist/assets/icons.js +0 -34961
  118. package/shell-dist/assets/jsx-dev-runtime.js +0 -75
  119. package/shell-dist/assets/jsx-runtime.js +0 -97
  120. package/shell-dist/assets/keepalive-for-react.js +0 -283
  121. package/shell-dist/assets/kit.js +0 -151
  122. package/shell-dist/assets/ky.js +0 -1427
  123. package/shell-dist/assets/motion-react.js +0 -13589
  124. package/shell-dist/assets/motion.js +0 -9959
  125. package/shell-dist/assets/nprogress.js +0 -314
  126. package/shell-dist/assets/ojm--ant-design-icons-es-icons-BarsOutlined.js +0 -7
  127. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CalendarOutlined.js +0 -7
  128. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CaretDownFilled.js +0 -7
  129. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CaretDownOutlined.js +0 -7
  130. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CaretUpOutlined.js +0 -7
  131. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CheckCircleFilled.js +0 -7
  132. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CheckOutlined.js +0 -7
  133. package/shell-dist/assets/ojm--ant-design-icons-es-icons-ClockCircleOutlined.js +0 -7
  134. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CloseCircleFilled.js +0 -7
  135. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CloseOutlined.js +0 -7
  136. package/shell-dist/assets/ojm--ant-design-icons-es-icons-CopyOutlined.js +0 -7
  137. package/shell-dist/assets/ojm--ant-design-icons-es-icons-DeleteOutlined.js +0 -7
  138. package/shell-dist/assets/ojm--ant-design-icons-es-icons-DoubleLeftOutlined.js +0 -7
  139. package/shell-dist/assets/ojm--ant-design-icons-es-icons-DoubleRightOutlined.js +0 -7
  140. package/shell-dist/assets/ojm--ant-design-icons-es-icons-DownOutlined.js +0 -7
  141. package/shell-dist/assets/ojm--ant-design-icons-es-icons-DownloadOutlined.js +0 -7
  142. package/shell-dist/assets/ojm--ant-design-icons-es-icons-EditOutlined.js +0 -7
  143. package/shell-dist/assets/ojm--ant-design-icons-es-icons-EllipsisOutlined.js +0 -7
  144. package/shell-dist/assets/ojm--ant-design-icons-es-icons-EnterOutlined.js +0 -7
  145. package/shell-dist/assets/ojm--ant-design-icons-es-icons-ExclamationCircleFilled.js +0 -7
  146. package/shell-dist/assets/ojm--ant-design-icons-es-icons-EyeInvisibleOutlined.js +0 -7
  147. package/shell-dist/assets/ojm--ant-design-icons-es-icons-EyeOutlined.js +0 -7
  148. package/shell-dist/assets/ojm--ant-design-icons-es-icons-FileOutlined.js +0 -7
  149. package/shell-dist/assets/ojm--ant-design-icons-es-icons-FileTextOutlined.js +0 -7
  150. package/shell-dist/assets/ojm--ant-design-icons-es-icons-FilterFilled.js +0 -7
  151. package/shell-dist/assets/ojm--ant-design-icons-es-icons-FolderOpenOutlined.js +0 -7
  152. package/shell-dist/assets/ojm--ant-design-icons-es-icons-FolderOutlined.js +0 -7
  153. package/shell-dist/assets/ojm--ant-design-icons-es-icons-HolderOutlined.js +0 -7
  154. package/shell-dist/assets/ojm--ant-design-icons-es-icons-InfoCircleFilled.js +0 -7
  155. package/shell-dist/assets/ojm--ant-design-icons-es-icons-LeftOutlined.js +0 -7
  156. package/shell-dist/assets/ojm--ant-design-icons-es-icons-LoadingOutlined.js +0 -7
  157. package/shell-dist/assets/ojm--ant-design-icons-es-icons-MinusOutlined.js +0 -7
  158. package/shell-dist/assets/ojm--ant-design-icons-es-icons-MinusSquareOutlined.js +0 -7
  159. package/shell-dist/assets/ojm--ant-design-icons-es-icons-PaperClipOutlined.js +0 -7
  160. package/shell-dist/assets/ojm--ant-design-icons-es-icons-PictureOutlined.js +0 -7
  161. package/shell-dist/assets/ojm--ant-design-icons-es-icons-PlusOutlined.js +0 -7
  162. package/shell-dist/assets/ojm--ant-design-icons-es-icons-PlusSquareOutlined.js +0 -7
  163. package/shell-dist/assets/ojm--ant-design-icons-es-icons-QuestionCircleOutlined.js +0 -7
  164. package/shell-dist/assets/ojm--ant-design-icons-es-icons-ReloadOutlined.js +0 -7
  165. package/shell-dist/assets/ojm--ant-design-icons-es-icons-RightOutlined.js +0 -7
  166. package/shell-dist/assets/ojm--ant-design-icons-es-icons-RotateLeftOutlined.js +0 -7
  167. package/shell-dist/assets/ojm--ant-design-icons-es-icons-RotateRightOutlined.js +0 -7
  168. package/shell-dist/assets/ojm--ant-design-icons-es-icons-SearchOutlined.js +0 -7
  169. package/shell-dist/assets/ojm--ant-design-icons-es-icons-StarFilled.js +0 -7
  170. package/shell-dist/assets/ojm--ant-design-icons-es-icons-SwapOutlined.js +0 -7
  171. package/shell-dist/assets/ojm--ant-design-icons-es-icons-SwapRightOutlined.js +0 -7
  172. package/shell-dist/assets/ojm--ant-design-icons-es-icons-UpOutlined.js +0 -7
  173. package/shell-dist/assets/ojm--ant-design-icons-es-icons-VerticalAlignTopOutlined.js +0 -7
  174. package/shell-dist/assets/ojm--ant-design-icons-es-icons-WarningFilled.js +0 -7
  175. package/shell-dist/assets/ojm--ant-design-icons-es-icons-ZoomInOutlined.js +0 -7
  176. package/shell-dist/assets/ojm--ant-design-icons-es-icons-ZoomOutOutlined.js +0 -7
  177. package/shell-dist/assets/ojm-dayjs-locale-zh-cn.js +0 -81
  178. package/shell-dist/assets/pinyin-pro.js +0 -25175
  179. package/shell-dist/assets/pro-components.js +0 -44627
  180. package/shell-dist/assets/react-countup.js +0 -525
  181. package/shell-dist/assets/react-dom-client.js +0 -12134
  182. package/shell-dist/assets/react-dom.js +0 -266
  183. package/shell-dist/assets/react-error-boundary.js +0 -141
  184. package/shell-dist/assets/react-i18next.js +0 -1773
  185. package/shell-dist/assets/react-jss.js +0 -4089
  186. package/shell-dist/assets/react-query.js +0 -3072
  187. package/shell-dist/assets/react-router-dom.js +0 -9927
  188. package/shell-dist/assets/react-router.js +0 -14584
  189. package/shell-dist/assets/react.js +0 -590
  190. package/shell-dist/assets/runtime.js +0 -28294
  191. package/shell-dist/assets/simplebar-react.js +0 -1119
  192. package/shell-dist/assets/spin-delay.js +0 -111
  193. package/shell-dist/assets/tailwind-merge.js +0 -3364
  194. package/shell-dist/assets/use-sync-external-store-shim.js +0 -130
  195. package/shell-dist/assets/zustand-middleware.js +0 -513
  196. package/shell-dist/assets/zustand-react-shallow.js +0 -27
  197. package/shell-dist/assets/zustand-react.js +0 -39
  198. package/shell-dist/assets/zustand-shallow.js +0 -22
  199. package/shell-dist/assets/zustand-vanilla-shallow.js +0 -71
  200. package/shell-dist/assets/zustand-vanilla.js +0 -40
  201. package/shell-dist/assets/zustand.js +0 -32
  202. /package/shell-dist/assets/{nprogress-css.js → nprogress-css.1cq2pzkre0.js} +0 -0
  203. /package/shell-dist/assets/{ojm-antd-es-button.js → ojm-antd-es-button.2uriphio50.js} +0 -0
  204. /package/shell-dist/assets/{ojm-antd-es-modal.js → ojm-antd-es-modal.bf3tgdh8v0.js} +0 -0
  205. /package/shell-dist/assets/{ojm-antd-es-slider.js → ojm-antd-es-slider.xyvptuhid0.js} +0 -0
  206. /package/shell-dist/assets/{ojm-antd-es-upload.js → ojm-antd-es-upload.13gx45e0g0.js} +0 -0
@@ -1,75 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __commonJS = (cb, mod) => function __require() {
8
- try {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- } catch (e) {
11
- throw mod = 0, e;
12
- }
13
- };
14
- var __copyProps = (to, from, except, desc) => {
15
- if (from && typeof from === "object" || typeof from === "function") {
16
- for (let key of __getOwnPropNames(from))
17
- if (!__hasOwnProp.call(to, key) && key !== except)
18
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
- mod
29
- ));
30
-
31
- // ../../node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-jsx-dev-runtime.production.js
32
- var require_react_jsx_dev_runtime_production = __commonJS({
33
- "../../node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-jsx-dev-runtime.production.js"(exports) {
34
- "use strict";
35
- var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
36
- exports.Fragment = REACT_FRAGMENT_TYPE;
37
- exports.jsxDEV = void 0;
38
- }
39
- });
40
-
41
- // ../../node_modules/.pnpm/react@19.2.8/node_modules/react/jsx-dev-runtime.js
42
- var require_jsx_dev_runtime = __commonJS({
43
- "../../node_modules/.pnpm/react@19.2.8/node_modules/react/jsx-dev-runtime.js"(exports, module) {
44
- "use strict";
45
- if (true) {
46
- module.exports = require_react_jsx_dev_runtime_production();
47
- } else {
48
- module.exports = null;
49
- }
50
- }
51
- });
52
-
53
- // shell/.ojm-shim-jsx-dev-runtime.mjs
54
- var __m = __toESM(require_jsx_dev_runtime(), 1);
55
- var Fragment2 = __m["Fragment"];
56
- var jsxDEV2 = __m["jsxDEV"];
57
- var ojm_shim_jsx_dev_runtime_default = __m.default ?? __m;
58
- export {
59
- Fragment2 as Fragment,
60
- ojm_shim_jsx_dev_runtime_default as default,
61
- jsxDEV2 as jsxDEV
62
- };
63
- /*! Bundled license information:
64
-
65
- react/cjs/react-jsx-dev-runtime.production.js:
66
- (**
67
- * @license React
68
- * react-jsx-dev-runtime.production.js
69
- *
70
- * Copyright (c) Meta Platforms, Inc. and affiliates.
71
- *
72
- * This source code is licensed under the MIT license found in the
73
- * LICENSE file in the root directory of this source tree.
74
- *)
75
- */
@@ -1,97 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __commonJS = (cb, mod) => function __require() {
8
- try {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- } catch (e) {
11
- throw mod = 0, e;
12
- }
13
- };
14
- var __copyProps = (to, from, except, desc) => {
15
- if (from && typeof from === "object" || typeof from === "function") {
16
- for (let key of __getOwnPropNames(from))
17
- if (!__hasOwnProp.call(to, key) && key !== except)
18
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
- mod
29
- ));
30
-
31
- // ../../node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-jsx-runtime.production.js
32
- var require_react_jsx_runtime_production = __commonJS({
33
- "../../node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
34
- "use strict";
35
- var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
36
- var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
37
- function jsxProd(type, config, maybeKey) {
38
- var key = null;
39
- void 0 !== maybeKey && (key = "" + maybeKey);
40
- void 0 !== config.key && (key = "" + config.key);
41
- if ("key" in config) {
42
- maybeKey = {};
43
- for (var propName in config)
44
- "key" !== propName && (maybeKey[propName] = config[propName]);
45
- } else maybeKey = config;
46
- config = maybeKey.ref;
47
- return {
48
- $$typeof: REACT_ELEMENT_TYPE,
49
- type,
50
- key,
51
- ref: void 0 !== config ? config : null,
52
- props: maybeKey
53
- };
54
- }
55
- exports.Fragment = REACT_FRAGMENT_TYPE;
56
- exports.jsx = jsxProd;
57
- exports.jsxs = jsxProd;
58
- }
59
- });
60
-
61
- // ../../node_modules/.pnpm/react@19.2.8/node_modules/react/jsx-runtime.js
62
- var require_jsx_runtime = __commonJS({
63
- "../../node_modules/.pnpm/react@19.2.8/node_modules/react/jsx-runtime.js"(exports, module) {
64
- "use strict";
65
- if (true) {
66
- module.exports = require_react_jsx_runtime_production();
67
- } else {
68
- module.exports = null;
69
- }
70
- }
71
- });
72
-
73
- // shell/.ojm-shim-jsx-runtime.mjs
74
- var __m = __toESM(require_jsx_runtime(), 1);
75
- var Fragment2 = __m["Fragment"];
76
- var jsx2 = __m["jsx"];
77
- var jsxs2 = __m["jsxs"];
78
- var ojm_shim_jsx_runtime_default = __m.default ?? __m;
79
- export {
80
- Fragment2 as Fragment,
81
- ojm_shim_jsx_runtime_default as default,
82
- jsx2 as jsx,
83
- jsxs2 as jsxs
84
- };
85
- /*! Bundled license information:
86
-
87
- react/cjs/react-jsx-runtime.production.js:
88
- (**
89
- * @license React
90
- * react-jsx-runtime.production.js
91
- *
92
- * Copyright (c) Meta Platforms, Inc. and affiliates.
93
- *
94
- * This source code is licensed under the MIT license found in the
95
- * LICENSE file in the root directory of this source tree.
96
- *)
97
- */
@@ -1,283 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __export = (target, all) => {
3
- for (var name in all)
4
- __defProp(target, name, { get: all[name], enumerable: true });
5
- };
6
-
7
- // ../../node_modules/.pnpm/keepalive-for-react@5.0.11_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/keepalive-for-react/dist/index.mjs
8
- var dist_exports = {};
9
- __export(dist_exports, {
10
- KeepAlive: () => je,
11
- useEffectOnActive: () => We,
12
- useEffectOnCreate: () => ot,
13
- useKeepAliveContext: () => b,
14
- useKeepAliveRef: () => le,
15
- useKeepaliveRef: () => Ir,
16
- useLayoutEffectOnActive: () => Ze,
17
- useLayoutEffectOnCreate: () => st
18
- });
19
- import * as S from "react";
20
- import { createContext, memo, useMemo, Fragment as Fragment2, useRef, useLayoutEffect, useState, startTransition, useContext, useCallback, useImperativeHandle, useEffect } from "react";
21
- import { jsx, jsxs } from "react/jsx-runtime";
22
- import { createPortal } from "react-dom";
23
-
24
- // ../../node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/dist/mitt.mjs
25
- function mitt_default(n) {
26
- return { all: n = n || /* @__PURE__ */ new Map(), on: function(t, e) {
27
- var i = n.get(t);
28
- i ? i.push(e) : n.set(t, [e]);
29
- }, off: function(t, e) {
30
- var i = n.get(t);
31
- i && (e ? i.splice(i.indexOf(e) >>> 0, 1) : n.set(t, []));
32
- }, emit: function(t, e) {
33
- var i = n.get(t);
34
- i && i.slice().map(function(n2) {
35
- n2(e);
36
- }), (i = n.get("*")) && i.slice().map(function(n2) {
37
- n2(t, e);
38
- });
39
- } };
40
- }
41
-
42
- // ../../node_modules/.pnpm/keepalive-for-react@5.0.11_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/keepalive-for-react/dist/index.mjs
43
- function P(e) {
44
- return e == null;
45
- }
46
- function _(e) {
47
- return Object.prototype.toString.call(e) === "[object RegExp]";
48
- }
49
- function M(e) {
50
- return Array.isArray(e);
51
- }
52
- function h(e) {
53
- return typeof e == "function";
54
- }
55
- function j(e) {
56
- return { set: (t, r) => (e.setAttribute(t, r), j(e)) };
57
- }
58
- function $(e = 100) {
59
- let t;
60
- return new Promise((r, i) => {
61
- t = setTimeout(() => {
62
- r(), P(t) || clearTimeout(t);
63
- }, e);
64
- });
65
- }
66
- function V(e, t) {
67
- return (M(e) ? e : P(e) ? [] : [e]).some((i) => _(i) ? i.test(t) : t === i);
68
- }
69
- function w(e) {
70
- setTimeout(e, 0);
71
- }
72
- var F = createContext({ active: false, _cacheKey: "", refresh: () => {
73
- }, destroy: () => Promise.resolve(), destroyAll: () => Promise.resolve(), destroyOther: () => Promise.resolve(), getCacheNodes: () => [] });
74
- var he = memo(function(e) {
75
- let { children: t, active: r, refresh: i, destroy: n, destroyAll: o, destroyOther: d, getCacheNodes: E, _cacheKey: m } = e, R = useMemo(() => ({ active: r, refresh: i, destroy: n, destroyAll: o, destroyOther: d, getCacheNodes: E, _cacheKey: m }), [r, i, n, o, d, E, m]);
76
- return jsx(F.Provider, { value: R, children: t });
77
- });
78
- var X = he;
79
- var Y = S.Activity;
80
- var Z = Y ?? S.Fragment;
81
- var ee = !!Y;
82
- function Ke({ children: e, active: t, duration: r }) {
83
- let [i, n] = useState(t), o = useRef(null);
84
- return useLayoutEffect(() => (t ? startTransition(() => {
85
- n(true);
86
- }) : (o.current && clearTimeout(o.current), o.current = setTimeout(() => {
87
- n(false), o.current && clearTimeout(o.current);
88
- }, r)), () => {
89
- o.current && clearTimeout(o.current);
90
- }), [t]), jsx(Z, { mode: i ? "visible" : "hidden", children: e });
91
- }
92
- var te = memo(Ke, (e, t) => e.active === t.active && e.duration === t.duration);
93
- te.displayName = "MemoizedActivty";
94
- var re = te;
95
- var ce = "keepalive-cache-div";
96
- function se(e) {
97
- return e ? Array.from(e.children) : [];
98
- }
99
- function J(e) {
100
- e.forEach((t) => {
101
- t.classList.contains(ce) && t.remove();
102
- });
103
- }
104
- function ne(e, t) {
105
- let r = se(e);
106
- J(r), e.appendChild(t), t.classList.remove("inactive"), t.classList.add("active");
107
- }
108
- function oe(e, t) {
109
- let i = se(e).filter((n) => n.classList.contains("active") && n.getAttribute("data-cache-key") !== t);
110
- return i.forEach((n) => {
111
- n.classList.remove("active"), n.classList.add("inactive");
112
- }), i;
113
- }
114
- function Me(e, t, r) {
115
- return r ? V(r, e) : t ? !V(t, e) : true;
116
- }
117
- var we = memo(function(e) {
118
- let { errorElement: t = Fragment2, cacheNodeClassName: r, children: i, cacheKey: n, exclude: o, include: d, enableActivity: E } = e, { active: m, renderCount: R, destroy: L, transition: I, viewTransition: z, duration: g, containerDivRef: O } = e, A = useRef(false);
119
- A.current = A.current || m;
120
- let x = useMemo(() => {
121
- let v = document.createElement("div");
122
- return j(v).set("data-cache-key", n).set("style", "height: 100%").set("data-render-count", R.toString()), v.className = ce + (r ? ` ${r}` : ""), v;
123
- }, [R, r]);
124
- return useLayoutEffect(() => {
125
- let v = Me(n, o, d), l = O.current;
126
- if (!l) {
127
- console.warn("keepalive: cache container not found");
128
- return;
129
- }
130
- if (I) (async () => {
131
- if (m) {
132
- let u = oe(l, n);
133
- if (await $(g - 40), J(u), l.contains(x)) return;
134
- ne(l, x);
135
- } else v || (await $(g), L(n));
136
- })();
137
- else if (m) {
138
- let u = () => {
139
- let D = oe(l, n);
140
- J(D), !l.contains(x) && ne(l, x);
141
- };
142
- z && document.startViewTransition ? document.startViewTransition(u) : u();
143
- } else v || L(n);
144
- }, [m, O, n, o, d]), A.current ? createPortal(jsx(t, { children: ee && E ? jsx(re, { active: m, duration: g, children: i }) : i }), x, n) : null;
145
- }, (e, t) => e.active === t.active && e.renderCount === t.renderCount && e.children === t.children && e.exclude === t.exclude && e.include === t.include);
146
- var ae = we;
147
- var Fe = (e) => {
148
- typeof startTransition < "u" && h(startTransition) ? startTransition(e) : e();
149
- };
150
- var ue = Fe;
151
- var ke = mitt_default();
152
- var f = ke;
153
- function le() {
154
- return useRef(null);
155
- }
156
- function _e(e) {
157
- let { activeCacheKey: t, max: r = 10, exclude: i, include: n, onBeforeActive: o, customContainerRef: d, cacheNodeClassName: E = "cache-component", containerClassName: m = "keep-alive-render", errorElement: R, transition: L = false, viewTransition: I = false, duration: z = 200, children: g, aliveRef: O, maxAliveTime: A = 0, enableActivity: x = false } = e, v = d || useRef(null), [l, u] = useState([]);
158
- useLayoutEffect(() => {
159
- P(t) || ue(() => {
160
- u((a) => {
161
- let s = Date.now();
162
- if (a.find((c) => c.cacheKey === t)) return a.map((c) => {
163
- if (c.cacheKey === t) {
164
- let y = false;
165
- if (h(o) && o(t), A) {
166
- let K = c.lastActiveTime;
167
- if (M(A)) {
168
- let C = A.find((N) => _(N.match) ? N.match.test(t) : N.match === t);
169
- C && (y = C && K + C.expire * 1e3 < s);
170
- } else y = K + A * 1e3 < s;
171
- }
172
- return y && f.emit("destroy", [t]), { ...c, ele: g, lastActiveTime: s, renderCount: y ? c.renderCount + 1 : c.renderCount };
173
- }
174
- return c;
175
- });
176
- if (h(o) && o(t), a.length > r) {
177
- let c = a.reduce((C, N) => C.lastActiveTime < N.lastActiveTime ? C : N), K = a.splice(a.indexOf(c), 1).map((C) => C.cacheKey);
178
- f.emit("destroy", K);
179
- }
180
- return [...a, { cacheKey: t, lastActiveTime: s, ele: g, renderCount: 0 }];
181
- });
182
- });
183
- }, [t, g]);
184
- let D = useCallback((a) => {
185
- u((s) => {
186
- let p = a || t;
187
- return f.emit("refresh", p), s.map((c) => c.cacheKey === p ? { ...c, renderCount: c.renderCount + 1 } : c);
188
- });
189
- }, [u, t]), B = useCallback((a) => {
190
- let s = a || t, p = M(s) ? s : [s];
191
- return f.emit("destroy", p), new Promise((c) => {
192
- w(() => {
193
- u((y) => [...y.filter((K) => !p.includes(K.cacheKey))]), c();
194
- });
195
- });
196
- }, [u, t]), G = useCallback(() => new Promise((a) => {
197
- f.emit("destroyAll"), w(() => {
198
- u([]), a();
199
- });
200
- }), [u]), Q = useCallback((a) => {
201
- let s = a || t;
202
- return new Promise((p) => {
203
- f.emit("destroyOther", s), w(() => {
204
- u((c) => [...c.filter((y) => y.cacheKey === s)]), p();
205
- });
206
- });
207
- }, [t, u]), W = useCallback(() => l, [l]);
208
- return useImperativeHandle(O, () => ({ refresh: D, destroy: B, destroyAll: G, destroyOther: Q, getCacheNodes: W })), jsxs(Fragment2, { children: [jsx("div", { ref: v, className: m, style: { height: "100%" } }), l.map((a) => {
209
- let { cacheKey: s, ele: p, renderCount: c } = a;
210
- return jsx(X, { active: t === s, refresh: D, destroy: B, destroyAll: G, destroyOther: Q, getCacheNodes: W, _cacheKey: s, children: jsx(ae, { destroy: B, include: n, exclude: i, transition: L, viewTransition: I, duration: z, renderCount: c, containerDivRef: v, errorElement: R, active: t === s, cacheNodeClassName: E, cacheKey: s, enableActivity: x, children: p }) }, `${s}-${c}`);
211
- })] });
212
- }
213
- var je = _e;
214
- var Je = () => useContext(F);
215
- var b = Je;
216
- function qe(e, t, r = false, i) {
217
- let { active: n } = b(), o = useRef(false);
218
- i(() => {
219
- if (!n) return;
220
- if (r && !o.current) {
221
- o.current = true;
222
- return;
223
- }
224
- let d = e();
225
- return () => {
226
- h(d) && d();
227
- };
228
- }, [n, ...t]);
229
- }
230
- var k = qe;
231
- var Qe = (e, t, r = false) => {
232
- k(e, t, r, useEffect);
233
- };
234
- var We = Qe;
235
- var Ye = (e, t, r = false) => {
236
- k(e, t, r, useLayoutEffect);
237
- };
238
- var Ze = Ye;
239
- function et(e, t) {
240
- f.on("destroy", (r) => {
241
- r.includes(t) && e();
242
- }), f.on("destroyAll", () => {
243
- e();
244
- }), f.on("destroyOther", (r) => {
245
- r !== t && e();
246
- }), f.on("refresh", (r) => {
247
- r === t && e();
248
- });
249
- }
250
- var de = et;
251
- function tt(e, t) {
252
- let r = useRef(false), i = useRef(false), { _cacheKey: n } = b();
253
- t(() => {
254
- let o;
255
- r.current === false && (r.current = true, o = e()), de(() => {
256
- h(o) && !i.current && (i.current = true, o());
257
- }, n);
258
- }, []);
259
- }
260
- var H = tt;
261
- var nt = (e) => {
262
- H(e, useEffect);
263
- };
264
- var ot = nt;
265
- var ct = (e) => {
266
- H(e, useLayoutEffect);
267
- };
268
- var st = ct;
269
- var Ir = le;
270
-
271
- // shell/.ojm-shim-keepalive-for-react.mjs
272
- var ojm_shim_keepalive_for_react_default = void 0 ?? dist_exports;
273
- export {
274
- je as KeepAlive,
275
- ojm_shim_keepalive_for_react_default as default,
276
- We as useEffectOnActive,
277
- ot as useEffectOnCreate,
278
- b as useKeepAliveContext,
279
- le as useKeepAliveRef,
280
- Ir as useKeepaliveRef,
281
- Ze as useLayoutEffectOnActive,
282
- st as useLayoutEffectOnCreate
283
- };
@@ -1,151 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __export = (target, all) => {
3
- for (var name in all)
4
- __defProp(target, name, { get: all[name], enumerable: true });
5
- };
6
-
7
- // ../kit/dist/kit.js
8
- var kit_exports = {};
9
- __export(kit_exports, {
10
- AvatarInput: () => AvatarInput,
11
- DEFAULT_CRITERIA: () => DEFAULT_CRITERIA,
12
- PasswordStrength: () => PasswordStrength
13
- });
14
- import { Avatar, Flex, Typography, Upload, theme } from "antd";
15
- import { jsx, jsxs } from "react/jsx-runtime";
16
- import { useMemo } from "react";
17
- function AvatarInput({ value, onChange, onError, size = 96, shape = "circle", disabled = false, accept = "image/*", maxSizeMB = 2, placeholder }) {
18
- const handleBeforeUpload = (file) => {
19
- if (!file.type.startsWith("image/")) {
20
- onError?.("type");
21
- return Upload.LIST_IGNORE;
22
- }
23
- if (!(file.size / 1024 / 1024 <= maxSizeMB)) {
24
- onError?.("size");
25
- return Upload.LIST_IGNORE;
26
- }
27
- onChange?.(file);
28
- return false;
29
- };
30
- return /* @__PURE__ */ jsx(Upload, {
31
- accept,
32
- beforeUpload: handleBeforeUpload,
33
- disabled,
34
- maxCount: 1,
35
- showUploadList: false,
36
- children: /* @__PURE__ */ jsx(Avatar, {
37
- shape,
38
- size,
39
- src: value,
40
- style: { cursor: disabled ? "not-allowed" : "pointer" },
41
- children: placeholder ?? "\u4E0A\u4F20"
42
- })
43
- });
44
- }
45
- var DEFAULT_CRITERIA = [
46
- {
47
- key: "length",
48
- label: "\u81F3\u5C11 8 \u4E2A\u5B57\u7B26",
49
- test: (p) => p.length >= 8
50
- },
51
- {
52
- key: "lower",
53
- label: "\u5305\u542B\u5C0F\u5199\u5B57\u6BCD",
54
- test: (p) => /[a-z]/.test(p)
55
- },
56
- {
57
- key: "upper",
58
- label: "\u5305\u542B\u5927\u5199\u5B57\u6BCD",
59
- test: (p) => /[A-Z]/.test(p)
60
- },
61
- {
62
- key: "digit",
63
- label: "\u5305\u542B\u6570\u5B57",
64
- test: (p) => /\d/.test(p)
65
- },
66
- {
67
- key: "symbol",
68
- label: "\u5305\u542B\u7B26\u53F7",
69
- test: (p) => /[^A-Z0-9]/i.test(p)
70
- }
71
- ];
72
- function PasswordStrength({ password, showCriteria = true, criteria = DEFAULT_CRITERIA }) {
73
- const { token } = theme.useToken();
74
- const level = useMemo(() => {
75
- if (!password) return {
76
- activeBars: 0,
77
- message: "",
78
- color: token.colorFillTertiary
79
- };
80
- const passed = criteria.filter((c) => c.test(password)).length;
81
- if (passed <= 2) return {
82
- activeBars: 1,
83
- message: "\u5BC6\u7801\u5F3A\u5EA6\uFF1A\u5F31",
84
- color: token.colorError
85
- };
86
- if (passed <= 4) return {
87
- activeBars: 2,
88
- message: "\u5BC6\u7801\u5F3A\u5EA6\uFF1A\u4E2D",
89
- color: token.colorWarning
90
- };
91
- return {
92
- activeBars: 3,
93
- message: "\u5BC6\u7801\u5F3A\u5EA6\uFF1A\u5F3A",
94
- color: token.colorSuccess
95
- };
96
- }, [
97
- password,
98
- criteria,
99
- token
100
- ]);
101
- if (!password && !showCriteria) return null;
102
- return /* @__PURE__ */ jsxs(Flex, {
103
- vertical: true,
104
- gap: 8,
105
- children: [password && /* @__PURE__ */ jsxs(Flex, {
106
- vertical: true,
107
- gap: 4,
108
- children: [/* @__PURE__ */ jsx(Flex, {
109
- gap: 4,
110
- children: [
111
- 0,
112
- 1,
113
- 2
114
- ].map((i) => /* @__PURE__ */ jsx("div", { style: {
115
- height: 4,
116
- flex: 1,
117
- borderRadius: 2,
118
- backgroundColor: i < level.activeBars ? level.color : token.colorFillTertiary
119
- } }, i))
120
- }), /* @__PURE__ */ jsx(Typography.Text, {
121
- style: {
122
- color: level.color,
123
- fontSize: 12
124
- },
125
- children: level.message
126
- })]
127
- }), showCriteria && /* @__PURE__ */ jsx(Flex, {
128
- wrap: true,
129
- gap: 8,
130
- children: criteria.map((c) => {
131
- const valid = c.test(password);
132
- return /* @__PURE__ */ jsxs(Typography.Text, {
133
- style: {
134
- fontSize: 12,
135
- color: valid ? token.colorSuccess : token.colorTextTertiary
136
- },
137
- children: [valid ? "\u2713 " : "\xB7 ", c.label]
138
- }, c.key);
139
- })
140
- })]
141
- });
142
- }
143
-
144
- // shell/.ojm-shim-kit.mjs
145
- var ojm_shim_kit_default = void 0 ?? kit_exports;
146
- export {
147
- AvatarInput,
148
- DEFAULT_CRITERIA,
149
- PasswordStrength,
150
- ojm_shim_kit_default as default
151
- };