jmash-core 0.1.9 → 0.1.11

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 (156) hide show
  1. package/README.md +57 -57
  2. package/dist/401-Brud7tNX.mjs +103 -0
  3. package/dist/404-CndYXbdW.mjs +37 -0
  4. package/dist/{BarChart-BQw2KdAJ.mjs → BarChart-DOObTQ_q.mjs} +3 -3
  5. package/dist/{FunnelChart-D6-3qMKT.mjs → FunnelChart-Bdwa_Dl7.mjs} +1 -1
  6. package/dist/{PieChart-pHMdR-Hx.mjs → PieChart-mjcVGXoE.mjs} +1 -1
  7. package/dist/{PieChart.vue_vue_type_script_setup_true_lang-zNUDoKtb.mjs → PieChart.vue_vue_type_script_setup_true_lang-Bw7ozgOv.mjs} +1 -1
  8. package/dist/{RadarChart-CclJ-0mQ.mjs → RadarChart-Dkl7lCAh.mjs} +1 -1
  9. package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-CkA5ajJ-.mjs → RadarChart.vue_vue_type_script_setup_true_lang-Dmh0_OQ4.mjs} +1 -1
  10. package/dist/images/401.gif +0 -0
  11. package/dist/images/404.png +0 -0
  12. package/dist/images/404_cloud.png +0 -0
  13. package/dist/images/login-bg-dark.jpg +0 -0
  14. package/dist/images/login-bg-small.png +0 -0
  15. package/dist/images/login-bg.jpg +0 -0
  16. package/dist/images/qrcode-success.jpg +0 -0
  17. package/dist/{index-CveuaScp.mjs → index-BC5xos_O.mjs} +24 -20
  18. package/dist/{index-Cl8oNwv7.mjs → index-BmHTGI3d.mjs} +11 -11
  19. package/dist/{index-CbyQcKhl.mjs → index-BpualbXj.mjs} +18 -18
  20. package/dist/index-CW4c2Adf.mjs +235 -0
  21. package/dist/{index--_Po9Tig.mjs → index-DVI4ph38.mjs} +4644 -4644
  22. package/dist/{index-g1S95t7X.mjs → index-DrGL8ZkC.mjs} +5390 -5386
  23. package/dist/index.mjs +42 -44
  24. package/dist/{profile-DQzfEKyA.mjs → profile-CrxGndFz.mjs} +2 -2
  25. package/dist/{runAs-Ct5UMoGr.mjs → runAs-CEo8Wx7S.mjs} +1 -1
  26. package/dist/{runAs.vue_vue_type_script_setup_true_lang-CICaYDKV.mjs → runAs.vue_vue_type_script_setup_true_lang-CunYsZlj.mjs} +701 -674
  27. package/dist/style.css +1 -1
  28. package/dist/{types-VW-x856Q.mjs → types-Cr1cXfOV.mjs} +3 -2
  29. package/dist/{updatePwd-Ce4LYsW6.mjs → updatePwd-BCiT4xRx.mjs} +1 -1
  30. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-CxPeuvTU.mjs → updatePwd.vue_vue_type_script_setup_true_lang-CiTeLB9V.mjs} +1 -1
  31. package/dts/src/index.d.ts +9 -9
  32. package/dts/src/settings.d.ts +1 -3
  33. package/package.json +14 -13
  34. package/dist/401-79AIDK-x.mjs +0 -100
  35. package/dist/404-CI8-lpH-.mjs +0 -37
  36. package/dist/index-B-PpCKYy.mjs +0 -234
  37. package/dts/src/api/system/dept/index.d.ts +0 -91
  38. package/dts/src/api/system/dept/types.d.ts +0 -63
  39. package/dts/src/api/system/index.d.ts +0 -7
  40. package/dts/src/api/system/job/index.d.ts +0 -42
  41. package/dts/src/api/system/job/types.d.ts +0 -60
  42. package/dts/src/api/system/log/index.d.ts +0 -29
  43. package/dts/src/api/system/log/types.d.ts +0 -42
  44. package/dts/src/api/system/menu/index.d.ts +0 -103
  45. package/dts/src/api/system/menu/types.d.ts +0 -96
  46. package/dts/src/api/system/module/index.d.ts +0 -57
  47. package/dts/src/api/system/module/types.d.ts +0 -13
  48. package/dts/src/api/system/operation/index.d.ts +0 -51
  49. package/dts/src/api/system/operation/types.d.ts +0 -12
  50. package/dts/src/api/system/permission/index.d.ts +0 -50
  51. package/dts/src/api/system/permission/types.d.ts +0 -12
  52. package/dts/src/api/system/role/index.d.ts +0 -77
  53. package/dts/src/api/system/role/types.d.ts +0 -26
  54. package/dts/src/api/system/user/index.d.ts +0 -133
  55. package/dts/src/api/system/user/types.d.ts +0 -53
  56. package/dts/src/api/system/userLog/index.d.ts +0 -29
  57. package/dts/src/api/system/userLog/types.d.ts +0 -22
  58. package/dts/src/assets/components/a-fixed.vue.d.ts +0 -2
  59. package/dts/src/assets/components/a-list.vue.d.ts +0 -2
  60. package/dts/src/assets/components/anquanrizhi.vue.d.ts +0 -2
  61. package/dts/src/assets/components/api.vue.d.ts +0 -2
  62. package/dts/src/assets/components/bumenguanli.vue.d.ts +0 -2
  63. package/dts/src/assets/components/caozuoguanliyuan.vue.d.ts +0 -2
  64. package/dts/src/assets/components/captcha.vue.d.ts +0 -2
  65. package/dts/src/assets/components/cascader.vue.d.ts +0 -2
  66. package/dts/src/assets/components/client.vue.d.ts +0 -2
  67. package/dts/src/assets/components/close-all.vue.d.ts +0 -2
  68. package/dts/src/assets/components/close-left.vue.d.ts +0 -2
  69. package/dts/src/assets/components/close-other.vue.d.ts +0 -2
  70. package/dts/src/assets/components/close-right.vue.d.ts +0 -2
  71. package/dts/src/assets/components/close.vue.d.ts +0 -2
  72. package/dts/src/assets/components/dict.vue.d.ts +0 -2
  73. package/dts/src/assets/components/document.vue.d.ts +0 -2
  74. package/dts/src/assets/components/download.vue.d.ts +0 -2
  75. package/dts/src/assets/components/drag.vue.d.ts +0 -2
  76. package/dts/src/assets/components/edit.vue.d.ts +0 -2
  77. package/dts/src/assets/components/email.vue.d.ts +0 -2
  78. package/dts/src/assets/components/exit-fullscreen.vue.d.ts +0 -2
  79. package/dts/src/assets/components/eye-open.vue.d.ts +0 -2
  80. package/dts/src/assets/components/eye.vue.d.ts +0 -2
  81. package/dts/src/assets/components/fullscreen-exit.vue.d.ts +0 -2
  82. package/dts/src/assets/components/fullscreen.vue.d.ts +0 -2
  83. package/dts/src/assets/components/gangweiguanli.vue.d.ts +0 -2
  84. package/dts/src/assets/components/github.vue.d.ts +0 -2
  85. package/dts/src/assets/components/homepage.vue.d.ts +0 -2
  86. package/dts/src/assets/components/icon-eye.vue.d.ts +0 -2
  87. package/dts/src/assets/components/icon-open-eye.vue.d.ts +0 -2
  88. package/dts/src/assets/components/icon.vue.d.ts +0 -2
  89. package/dts/src/assets/components/indent-decrease.vue.d.ts +0 -2
  90. package/dts/src/assets/components/ip.vue.d.ts +0 -2
  91. package/dts/src/assets/components/jiemianxijietubiao-26.vue.d.ts +0 -2
  92. package/dts/src/assets/components/language.vue.d.ts +0 -2
  93. package/dts/src/assets/components/link.vue.d.ts +0 -2
  94. package/dts/src/assets/components/lock.vue.d.ts +0 -2
  95. package/dts/src/assets/components/log.vue.d.ts +0 -2
  96. package/dts/src/assets/components/menu.vue.d.ts +0 -2
  97. package/dts/src/assets/components/message.vue.d.ts +0 -2
  98. package/dts/src/assets/components/mokuaiguanli.vue.d.ts +0 -2
  99. package/dts/src/assets/components/money.vue.d.ts +0 -2
  100. package/dts/src/assets/components/monitor.vue.d.ts +0 -2
  101. package/dts/src/assets/components/moon.vue.d.ts +0 -2
  102. package/dts/src/assets/components/order.vue.d.ts +0 -2
  103. package/dts/src/assets/components/password.vue.d.ts +0 -2
  104. package/dts/src/assets/components/peoples.vue.d.ts +0 -2
  105. package/dts/src/assets/components/phone.vue.d.ts +0 -2
  106. package/dts/src/assets/components/project.vue.d.ts +0 -2
  107. package/dts/src/assets/components/publish.vue.d.ts +0 -2
  108. package/dts/src/assets/components/quanxianguanli.vue.d.ts +0 -2
  109. package/dts/src/assets/components/redis.vue.d.ts +0 -2
  110. package/dts/src/assets/components/refresh.vue.d.ts +0 -2
  111. package/dts/src/assets/components/role.vue.d.ts +0 -2
  112. package/dts/src/assets/components/security.vue.d.ts +0 -2
  113. package/dts/src/assets/components/setting.vue.d.ts +0 -2
  114. package/dts/src/assets/components/shoujihao.vue.d.ts +0 -2
  115. package/dts/src/assets/components/shrink.vue.d.ts +0 -2
  116. package/dts/src/assets/components/size.vue.d.ts +0 -2
  117. package/dts/src/assets/components/sunny.vue.d.ts +0 -2
  118. package/dts/src/assets/components/system.vue.d.ts +0 -2
  119. package/dts/src/assets/components/table.vue.d.ts +0 -2
  120. package/dts/src/assets/components/team.vue.d.ts +0 -2
  121. package/dts/src/assets/components/todolist.vue.d.ts +0 -2
  122. package/dts/src/assets/components/tree.vue.d.ts +0 -2
  123. package/dts/src/assets/components/user.vue.d.ts +0 -2
  124. package/dts/src/assets/components/visit.vue.d.ts +0 -2
  125. package/dts/src/assets/components/xingming.vue.d.ts +0 -2
  126. package/dts/src/assets/components/yonghuguanli.vue.d.ts +0 -2
  127. package/dts/src/assets/components/youxiang.vue.d.ts +0 -2
  128. package/dts/src/components/DictRadio/index.vue.d.ts +0 -32
  129. package/dts/src/components/DictSelect/index.vue.d.ts +0 -50
  130. package/dts/src/components/Pagination/index.vue.d.ts +0 -88
  131. package/dts/src/components/Table/index.vue.d.ts +0 -64
  132. package/dts/src/components/TableSet/index.vue.d.ts +0 -30
  133. package/dts/src/components/Upload/MultiUpload.vue.d.ts +0 -65
  134. package/dts/src/components/Upload/SingleUpload.vue.d.ts +0 -18
  135. package/dts/src/components/Upload/importUpload.vue.d.ts +0 -31
  136. package/dts/src/components/Upload/index.vue.d.ts +0 -18
  137. package/dts/src/hooks/useColumnToggleTable.d.ts +0 -7
  138. package/dts/src/hooks/useList.d.ts +0 -1
  139. package/dts/src/views/system/dept/edit.vue.d.ts +0 -31
  140. package/dts/src/views/system/dept/index.vue.d.ts +0 -2
  141. package/dts/src/views/system/job/edit.vue.d.ts +0 -30
  142. package/dts/src/views/system/job/index.vue.d.ts +0 -2
  143. package/dts/src/views/system/log/oplog/index.vue.d.ts +0 -2
  144. package/dts/src/views/system/log/userLog/index.vue.d.ts +0 -2
  145. package/dts/src/views/system/menu/edit.vue.d.ts +0 -31
  146. package/dts/src/views/system/menu/index.vue.d.ts +0 -2
  147. package/dts/src/views/system/module/edit.vue.d.ts +0 -31
  148. package/dts/src/views/system/module/index.vue.d.ts +0 -2
  149. package/dts/src/views/system/operation/edit.vue.d.ts +0 -31
  150. package/dts/src/views/system/operation/index.vue.d.ts +0 -2
  151. package/dts/src/views/system/permission/edit.vue.d.ts +0 -30
  152. package/dts/src/views/system/permission/index.vue.d.ts +0 -2
  153. package/dts/src/views/system/role/edit.vue.d.ts +0 -31
  154. package/dts/src/views/system/role/index.vue.d.ts +0 -2
  155. package/dts/src/views/system/user/edit.vue.d.ts +0 -31
  156. package/dts/src/views/system/user/index.vue.d.ts +0 -2
@@ -1,8 +1,8 @@
1
- import { u as Z, _ as le, E as ze, S as Fe, a as we, b as Ue, c as te, D as _e, d as qe, f as He, e as We, g as de, h as q, i as Ve, r as Te, j as me, T as he, s as Ke, m as Xe, k as je, l as fe, n as Ge } from "./index-g1S95t7X.mjs";
1
+ import { u as Z, _ as le, E as ze, S as Fe, a as we, b as Ue, c as te, D as _e, d as qe, f as He, e as We, g as de, h as q, i as Ve, r as Te, j as me, T as he, s as Ke, m as Xe, k as je, l as fe, n as Ge } from "./index-DrGL8ZkC.mjs";
2
2
  import { defineComponent as D, ref as U, resolveComponent as V, createBlock as S, openBlock as d, withCtx as h, createElementVNode as k, createVNode as p, createElementBlock as x, Fragment as K, renderList as se, unref as l, createTextVNode as N, toDisplayString as E, computed as B, createCommentVNode as T, isRef as ve, watch as oe, onBeforeMount as Ye, TransitionGroup as Je, withModifiers as ue, normalizeClass as H, Transition as Me, KeepAlive as Qe, resolveDynamicComponent as ye, getCurrentInstance as Ze, nextTick as $e, onMounted as Ee, withDirectives as et, normalizeStyle as tt, vShow as nt, normalizeProps as ot, guardReactiveProps as it, renderSlot as at, watchEffect as lt } from "vue";
3
3
  import { useRoute as pe, useRouter as ke } from "vue-router";
4
- import { _ as st } from "./updatePwd.vue_vue_type_script_setup_true_lang-CxPeuvTU.mjs";
5
- import { _ as rt, E as ct } from "./runAs.vue_vue_type_script_setup_true_lang-CICaYDKV.mjs";
4
+ import { _ as st } from "./updatePwd.vue_vue_type_script_setup_true_lang-CiTeLB9V.mjs";
5
+ import { _ as rt, E as ct } from "./runAs.vue_vue_type_script_setup_true_lang-CunYsZlj.mjs";
6
6
  import { storeToRefs as ut } from "pinia";
7
7
  const dt = /* @__PURE__ */ D({
8
8
  __name: "index",
@@ -53,7 +53,7 @@ const dt = /* @__PURE__ */ D({
53
53
  const e = new Fe(), t = Z(), o = we(), r = Ue(), n = te();
54
54
  pe();
55
55
  const a = ke(), s = B(() => t.device === _e.MOBILE), c = U(!1), f = U(!1), { isFullscreen: m, toggle: u } = qe(), _ = B(() => He.imageUrl(r.user.avatar, 48, 48)), g = (C) => {
56
- C.target.src = "https://gh.sooyie.cn/v1/file/path/wxapp/images/user/avatar.png";
56
+ C.target.src = "https://gh.sooyie.cn/v1/file/path/wxapp/node_modules/jmash-core/dist/images/user/avatar.png";
57
57
  };
58
58
  function y() {
59
59
  f.value = !0;
@@ -190,7 +190,7 @@ const dt = /* @__PURE__ */ D({
190
190
  ]);
191
191
  };
192
192
  }
193
- }), Le = /* @__PURE__ */ q(vt, [["__scopeId", "data-v-745304a4"]]);
193
+ }), Le = /* @__PURE__ */ q(vt, [["__scopeId", "data-v-93831536"]]);
194
194
  function gt(i) {
195
195
  for (var e = [], t = 0; t < i.length; ) {
196
196
  var o = i[t];
@@ -455,7 +455,7 @@ const kt = {
455
455
  });
456
456
  };
457
457
  }
458
- }), Vt = /* @__PURE__ */ q(Ct, [["__scopeId", "data-v-6109c28e"]]), Tt = /* @__PURE__ */ D({
458
+ }), Vt = /* @__PURE__ */ q(Ct, [["__scopeId", "data-v-2ad27a3f"]]), Tt = /* @__PURE__ */ D({
459
459
  __name: "index",
460
460
  props: {
461
461
  isActive: {
@@ -483,7 +483,7 @@ const kt = {
483
483
  ]);
484
484
  };
485
485
  }
486
- }), Pe = /* @__PURE__ */ q(Tt, [["__scopeId", "data-v-42e37629"]]), $t = { class: "flex" }, At = /* @__PURE__ */ D({
486
+ }), Pe = /* @__PURE__ */ q(Tt, [["__scopeId", "data-v-dc46f6f8"]]), $t = { class: "flex" }, At = /* @__PURE__ */ D({
487
487
  __name: "NavbarLeft",
488
488
  setup(i) {
489
489
  const e = Z();
@@ -509,7 +509,7 @@ function Lt(i, e) {
509
509
  p(o)
510
510
  ]);
511
511
  }
512
- const Pt = /* @__PURE__ */ q(Mt, [["render", Lt], ["__scopeId", "data-v-b1624593"]]);
512
+ const Pt = /* @__PURE__ */ q(Mt, [["render", Lt], ["__scopeId", "data-v-706e4188"]]);
513
513
  var Q = /* @__PURE__ */ ((i) => (i.LEFT = "left", i.TOP = "top", i.MIX = "mix", i))(Q || {});
514
514
  const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PURE__ */ D({
515
515
  __name: "LayoutSelect",
@@ -573,7 +573,7 @@ const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PU
573
573
  ]);
574
574
  };
575
575
  }
576
- }), Dt = /* @__PURE__ */ q(Rt, [["__scopeId", "data-v-2bdf1403"]]), Bt = /* @__PURE__ */ D({
576
+ }), Dt = /* @__PURE__ */ q(Rt, [["__scopeId", "data-v-d50a3d59"]]), Bt = /* @__PURE__ */ D({
577
577
  __name: "ThemeColorPicker",
578
578
  props: {
579
579
  modelValue: String
@@ -604,7 +604,7 @@ const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PU
604
604
  }, null, 8, ["modelValue"]);
605
605
  };
606
606
  }
607
- }), Ot = /* @__PURE__ */ q(Bt, [["__scopeId", "data-v-92c1fd79"]]), Nt = { class: "flex-center" }, zt = { class: "settings-option" }, Ft = { class: "text-xs" }, Ut = { class: "settings-option" }, qt = { class: "text-xs" }, Ht = { class: "settings-option" }, Wt = { class: "text-xs" }, Kt = { class: "settings-option" }, Xt = { class: "text-xs" }, jt = { class: "settings-option" }, Gt = { class: "text-xs" }, Yt = /* @__PURE__ */ D({
607
+ }), Ot = /* @__PURE__ */ q(Bt, [["__scopeId", "data-v-ba641afc"]]), Nt = { class: "flex-center" }, zt = { class: "settings-option" }, Ft = { class: "text-xs" }, Ut = { class: "settings-option" }, qt = { class: "text-xs" }, Ht = { class: "settings-option" }, Wt = { class: "text-xs" }, Kt = { class: "settings-option" }, Xt = { class: "text-xs" }, jt = { class: "settings-option" }, Gt = { class: "text-xs" }, Yt = /* @__PURE__ */ D({
608
608
  __name: "index",
609
609
  setup(i) {
610
610
  const e = pe(), t = Z(), o = te(), r = me(), n = B({
@@ -731,7 +731,7 @@ const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PU
731
731
  }, 8, ["modelValue", "title"]);
732
732
  };
733
733
  }
734
- }), Jt = /* @__PURE__ */ q(Yt, [["__scopeId", "data-v-70f5bf10"]]), Qt = { class: "app-main" }, Zt = /* @__PURE__ */ D({
734
+ }), Jt = /* @__PURE__ */ q(Yt, [["__scopeId", "data-v-f632744c"]]), Qt = { class: "app-main" }, Zt = /* @__PURE__ */ D({
735
735
  __name: "index",
736
736
  setup(i) {
737
737
  const e = B(() => we().cachedViews);
@@ -762,7 +762,7 @@ const It = { class: "flex flex-wrap justify-around w-full h-12" }, Rt = /* @__PU
762
762
  ]);
763
763
  };
764
764
  }
765
- }), en = /* @__PURE__ */ q(Zt, [["__scopeId", "data-v-f32946ce"]]), tn = {
765
+ }), en = /* @__PURE__ */ q(Zt, [["__scopeId", "data-v-36a58953"]]), tn = {
766
766
  viewBox: "0 0 1024 1024",
767
767
  width: "1.2em",
768
768
  height: "1.2em"
@@ -1199,7 +1199,7 @@ const Re = /* @__PURE__ */ je(Ie), ln = { class: "tags-container" }, sn = /* @__
1199
1199
  ]);
1200
1200
  };
1201
1201
  }
1202
- }), rn = /* @__PURE__ */ q(sn, [["__scopeId", "data-v-77bfe9a5"]]), cn = /* @__PURE__ */ D({
1202
+ }), rn = /* @__PURE__ */ q(sn, [["__scopeId", "data-v-4c486693"]]), cn = /* @__PURE__ */ D({
1203
1203
  name: "AppLink",
1204
1204
  inheritAttrs: !1,
1205
1205
  __name: "index",
@@ -1260,7 +1260,7 @@ const Re = /* @__PURE__ */ je(Ie), ln = { class: "tags-container" }, sn = /* @__
1260
1260
  ], 64);
1261
1261
  };
1262
1262
  }
1263
- }), fn = /* @__PURE__ */ q(dn, [["__scopeId", "data-v-992a058f"]]), mn = { key: 0 }, pn = /* @__PURE__ */ D({
1263
+ }), fn = /* @__PURE__ */ q(dn, [["__scopeId", "data-v-e70291db"]]), mn = { key: 0 }, pn = /* @__PURE__ */ D({
1264
1264
  name: "SidebarMenuItem",
1265
1265
  inheritAttrs: !1,
1266
1266
  __name: "SidebarMenuItem",
@@ -1348,7 +1348,7 @@ const Re = /* @__PURE__ */ je(Ie), ln = { class: "tags-container" }, sn = /* @__
1348
1348
  ])) : T("", !0);
1349
1349
  };
1350
1350
  }
1351
- }), _n = "_dark_1sua6_13", ae = {
1351
+ }), _n = "_dark_168i3_12", ae = {
1352
1352
  "sidebar-width": "210px",
1353
1353
  "navbar-height": "50px",
1354
1354
  "menu-background": "var(--menu-background)",
@@ -1504,7 +1504,7 @@ const Re = /* @__PURE__ */ je(Ie), ln = { class: "tags-container" }, sn = /* @__
1504
1504
  ]);
1505
1505
  };
1506
1506
  }
1507
- }), Sn = /* @__PURE__ */ q(kn, [["__scopeId", "data-v-210c85a9"]]), Cn = {
1507
+ }), Sn = /* @__PURE__ */ q(kn, [["__scopeId", "data-v-c6f65ed6"]]), Cn = {
1508
1508
  key: 0,
1509
1509
  class: "flex w-full"
1510
1510
  }, Vn = /* @__PURE__ */ D({
@@ -1542,7 +1542,7 @@ const Re = /* @__PURE__ */ je(Ie), ln = { class: "tags-container" }, sn = /* @__
1542
1542
  ], 2);
1543
1543
  };
1544
1544
  }
1545
- }), Tn = /* @__PURE__ */ q(Vn, [["__scopeId", "data-v-a6d3f8e9"]]), $n = {
1545
+ }), Tn = /* @__PURE__ */ q(Vn, [["__scopeId", "data-v-64d75c6a"]]), $n = {
1546
1546
  key: 1,
1547
1547
  class: "mix-container"
1548
1548
  }, An = { class: "mix-container__left" }, Mn = { class: "sidebar-toggle" }, En = 992, Ln = /* @__PURE__ */ D({
@@ -1627,7 +1627,7 @@ const Re = /* @__PURE__ */ je(Ie), ln = { class: "tags-container" }, sn = /* @__
1627
1627
  ], 2);
1628
1628
  };
1629
1629
  }
1630
- }), Nn = /* @__PURE__ */ q(Ln, [["__scopeId", "data-v-71891bc2"]]);
1630
+ }), Nn = /* @__PURE__ */ q(Ln, [["__scopeId", "data-v-12059947"]]);
1631
1631
  export {
1632
1632
  Nn as default
1633
1633
  };
@@ -0,0 +1,235 @@
1
+ import { w as b, u as _, b as W, n as H, e as F, g as G, y as J, t as X, z as Y, h as Z } from "./index-DrGL8ZkC.mjs";
2
+ import { defineComponent as ee, ref as c, computed as te, watchEffect as oe, resolveComponent as d, createElementBlock as le, openBlock as se, createElementVNode as o, createVNode as l, withDirectives as U, unref as q, withCtx as u, normalizeStyle as ae, vShow as D, withKeys as z, withModifiers as ne, createTextVNode as re, toDisplayString as Q, normalizeClass as ue } from "vue";
3
+ import { useI18n as ie } from "vue-i18n";
4
+ import "element-plus";
5
+ import { useRoute as ce, useRouter as de } from "vue-router";
6
+ const pe = "/node_modules/jmash-core/dist/images/login-bg-small.png", me = "/node_modules/jmash-core/dist/images/qrcode-success.jpg", fe = { class: "login-container" }, ve = { class: "absolute top-0 flex items-center justify-end px-5 h-20 w-full" }, ge = { class: "qrcode-container" }, _e = ["src"], he = { class: "flex justify-between items-center w-full" }, ye = ["src"], we = { class: "bg-small" }, Ce = 992, be = /* @__PURE__ */ ee({
7
+ __name: "index",
8
+ setup(qe) {
9
+ const { t: k } = ie(), h = c(b.APP_ACTIVE), j = (e) => {
10
+ e.props.name === "user" ? (C(), m()) : T(), h.value = e.props.name;
11
+ }, s = c({
12
+ scope: "",
13
+ username: "",
14
+ password: ""
15
+ }), B = te(() => {
16
+ const e = _().language === "en" ? "Please enter " : "请输入";
17
+ return {
18
+ username: [
19
+ {
20
+ required: !0,
21
+ trigger: "blur",
22
+ message: `${e}${k("login.username")}`
23
+ }
24
+ ],
25
+ password: [
26
+ {
27
+ required: !0,
28
+ trigger: "blur",
29
+ validator: (t, n, a) => {
30
+ n.length < 5 ? a(new Error("The password can not be less than 5 digits")) : a();
31
+ },
32
+ message: `${e}${k("login.password")}`
33
+ }
34
+ ],
35
+ captchaCode: [
36
+ {
37
+ required: !0,
38
+ trigger: "blur",
39
+ message: `${e}${k("login.captchaCode")}`
40
+ }
41
+ ]
42
+ };
43
+ }), V = c(!1), I = c(), x = ce(), P = de(), $ = W(), E = () => {
44
+ var e;
45
+ (e = I.value) == null || e.validate((t) => {
46
+ t && (V.value = !0, $.login({ ...s.value, password: J(s.value.password) }).then(() => {
47
+ const n = x.query, a = n.redirect ?? b.APP_REDIRECT, r = Object.keys(n).reduce(
48
+ (p, g) => (g !== "redirect" && (p[g] = n[g]), p),
49
+ {}
50
+ );
51
+ P.push({ path: a, query: r }), m();
52
+ }).catch(() => {
53
+ m();
54
+ }).finally(() => {
55
+ V.value = !1;
56
+ }));
57
+ });
58
+ }, S = c(""), m = () => {
59
+ X().then(({ data: e }) => {
60
+ s.value.captchaKey = e.captchaId, S.value = e.base64Image;
61
+ });
62
+ };
63
+ m();
64
+ let y = setInterval(A, 3e3);
65
+ const f = c({});
66
+ function T() {
67
+ Y().then(({ data: e }) => {
68
+ f.value = e, v.value = !1, K(), y = setInterval(A, 3e3);
69
+ });
70
+ }
71
+ h.value === "qrCode" && T();
72
+ function A() {
73
+ f.value.ticket && $.loginByQrcode({ ticket: f.value.ticket }).then(() => {
74
+ C(), v.value = !1, f.value.qrcodeUrl = me;
75
+ const e = x.query, t = e.redirect ?? b.APP_REDIRECT, n = Object.keys(e).reduce(
76
+ (a, r) => (r !== "redirect" && (a[r] = e[r]), a),
77
+ {}
78
+ );
79
+ P.push({ path: t, query: n });
80
+ });
81
+ }
82
+ let w = null;
83
+ const v = c(!1);
84
+ function C() {
85
+ y && (clearInterval(y), y = null), w && (clearTimeout(w), w = null);
86
+ }
87
+ function K() {
88
+ C(), w = setTimeout(() => {
89
+ C(), v.value = !0;
90
+ }, b.APP_TIMEOUT);
91
+ }
92
+ const R = _(), { width: L } = H();
93
+ return oe(() => {
94
+ L.value < Ce ? R.toggleDevice("mobile") : R.toggleDevice("desktop");
95
+ }), (e, t) => {
96
+ const n = F, a = d("el-tab-pane"), r = d("el-input"), p = d("el-form-item"), g = d("el-button"), M = d("el-form"), N = d("el-tabs"), O = d("el-card");
97
+ return se(), le("div", fe, [
98
+ o("div", ve, [
99
+ l(n, {
100
+ class: "ml-2 cursor-pointer",
101
+ style: { "font-size": "18px" }
102
+ })
103
+ ]),
104
+ l(O, {
105
+ device: q(_)().device,
106
+ class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83"
107
+ }, {
108
+ default: u(() => [
109
+ l(N, {
110
+ modelValue: h.value,
111
+ "onUpdate:modelValue": t[3] || (t[3] = (i) => h.value = i),
112
+ class: "demo-tabs",
113
+ onTabClick: j
114
+ }, {
115
+ default: u(() => [
116
+ l(a, {
117
+ label: "扫码登录",
118
+ name: "qrCode"
119
+ }, {
120
+ default: u(() => [
121
+ o("div", ge, [
122
+ o("img", {
123
+ src: f.value.qrcodeUrl,
124
+ style: ae({ opacity: v.value ? 0.02 : 1 }),
125
+ alt: "二维码"
126
+ }, null, 12, _e),
127
+ U(o("div", null, [
128
+ t[4] || (t[4] = o("div", null, "二维码已过期", -1)),
129
+ o("div", { onClick: T }, "点击刷新")
130
+ ], 512), [
131
+ [D, v.value]
132
+ ])
133
+ ]),
134
+ t[5] || (t[5] = o("div", null, "微信扫一扫登录", -1))
135
+ ]),
136
+ _: 1,
137
+ __: [5]
138
+ }),
139
+ l(a, {
140
+ label: "账号登录",
141
+ name: "user"
142
+ }, {
143
+ default: u(() => [
144
+ l(M, {
145
+ ref_key: "formRef",
146
+ ref: I,
147
+ model: s.value,
148
+ rules: B.value
149
+ }, {
150
+ default: u(() => [
151
+ l(p, { prop: "username" }, {
152
+ default: u(() => [
153
+ l(r, {
154
+ modelValue: s.value.username,
155
+ "onUpdate:modelValue": t[0] || (t[0] = (i) => s.value.username = i),
156
+ placeholder: e.$t("login.username")
157
+ }, null, 8, ["modelValue", "placeholder"])
158
+ ]),
159
+ _: 1
160
+ }),
161
+ l(p, { prop: "password" }, {
162
+ default: u(() => [
163
+ l(r, {
164
+ modelValue: s.value.password,
165
+ "onUpdate:modelValue": t[1] || (t[1] = (i) => s.value.password = i),
166
+ placeholder: e.$t("login.password"),
167
+ type: "password",
168
+ "show-password": "",
169
+ onKeyup: z(E, ["enter"])
170
+ }, null, 8, ["modelValue", "placeholder"])
171
+ ]),
172
+ _: 1
173
+ }),
174
+ l(p, { prop: "captchaCode" }, {
175
+ default: u(() => [
176
+ o("div", he, [
177
+ l(r, {
178
+ style: { width: "65%" },
179
+ modelValue: s.value.captchaCode,
180
+ "onUpdate:modelValue": t[2] || (t[2] = (i) => s.value.captchaCode = i),
181
+ placeholder: e.$t("login.captchaCode"),
182
+ onKeyup: z(E, ["enter"])
183
+ }, null, 8, ["modelValue", "placeholder"]),
184
+ o("img", {
185
+ class: "flex-1 h-[40px] cursor-pointer ml-2",
186
+ src: S.value,
187
+ onClick: m,
188
+ alt: "验证码"
189
+ }, null, 8, ye)
190
+ ])
191
+ ]),
192
+ _: 1
193
+ }),
194
+ l(g, {
195
+ loading: V.value,
196
+ type: "primary",
197
+ class: "w-full",
198
+ onClick: ne(E, ["prevent"])
199
+ }, {
200
+ default: u(() => [
201
+ re(Q(e.$t("login.login")), 1)
202
+ ]),
203
+ _: 1
204
+ }, 8, ["loading"])
205
+ ]),
206
+ _: 1
207
+ }, 8, ["model", "rules"])
208
+ ]),
209
+ _: 1
210
+ })
211
+ ]),
212
+ _: 1
213
+ }, 8, ["modelValue"])
214
+ ]),
215
+ _: 1
216
+ }, 8, ["device"]),
217
+ U(o("div", we, [
218
+ o("div", null, Q(q(G).title), 1),
219
+ t[6] || (t[6] = o("img", {
220
+ src: pe,
221
+ alt: "login-bg-small"
222
+ }, null, -1))
223
+ ], 512), [
224
+ [D, q(_)().device === "desktop"]
225
+ ]),
226
+ o("div", {
227
+ class: ue(q(_)().device)
228
+ }, " Copyright © 2018-2025 Apache 2.0 开源协议. ", 2)
229
+ ]);
230
+ };
231
+ }
232
+ }), xe = /* @__PURE__ */ Z(be, [["__scopeId", "data-v-3fd0de3f"]]);
233
+ export {
234
+ xe as default
235
+ };