jmash-core 0.0.97 → 0.0.98

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.
@@ -1,25 +1,25 @@
1
1
  import { _ as oe } from "./picture-CBRsHLZl.mjs";
2
2
  import { defineComponent as te, ref as i, watchEffect as se, computed as le, onMounted as ne, resolveComponent as c, openBlock as w, createElementBlock as U, createElementVNode as n, createVNode as s, unref as o, isRef as ae, withCtx as r, toDisplayString as R, createTextVNode as I, createBlock as A, Fragment as re, renderList as ce, createCommentVNode as ie, withKeys as N, withModifiers as de, withDirectives as pe, vShow as ue, pushScopeId as me, popScopeId as _e } from "vue";
3
3
  import { useI18n as ge } from "vue-i18n";
4
- import { c as D, u as T, l as he, b as fe, _ as ve, S as m, w as we, p as ye, x as ke, y as Ce, r as be, g as Ve } from "./index-Bw3IdFvk.mjs";
5
- import { ElForm as B } from "element-plus";
4
+ import { d as D, u as T, n as he, c as fe, _ as ve, S as m, x as we, q as ye, y as ke, z as Ce, r as Ve, h as be } from "./index-B5cWr2iD.mjs";
5
+ import { ElForm as z } from "element-plus";
6
6
  import { useRoute as Se } from "vue-router";
7
- const F = (_) => (me("data-v-6eeae742"), _ = _(), _e(), _), xe = { class: "login-container" }, $e = { class: "absolute top-0 flex items-center justify-end px-5 h-20 w-full" }, Re = { class: "text-center relative" }, Ie = { class: "p-2" }, De = { class: "p-2" }, Ee = { class: "p-2" }, Le = { class: "p-2" }, qe = { class: "captcha" }, Ue = { class: "image-slot" }, Ae = { class: "forgot-pwd" }, Ne = { class: "absolute bottom-1 text-[10px] text-center" }, Te = /* @__PURE__ */ F(() => /* @__PURE__ */ n("p", null, " Copyright © 2024 All Rights Reserved. Apache 2.0 协议. ", -1)), Be = /* @__PURE__ */ F(() => /* @__PURE__ */ n("p", null, "备案号: XXXX .", -1)), Fe = [
7
+ const B = (_) => (me("data-v-6eeae742"), _ = _(), _e(), _), xe = { class: "login-container" }, $e = { class: "absolute top-0 flex items-center justify-end px-5 h-20 w-full" }, Re = { class: "text-center relative" }, Ie = { class: "p-2" }, De = { class: "p-2" }, Ee = { class: "p-2" }, qe = { class: "p-2" }, Le = { class: "captcha" }, Ue = { class: "image-slot" }, Ae = { class: "forgot-pwd" }, Ne = { class: "absolute bottom-1 text-[10px] text-center" }, Te = /* @__PURE__ */ B(() => /* @__PURE__ */ n("p", null, " Copyright © 2024 All Rights Reserved. Apache 2.0 协议. ", -1)), ze = /* @__PURE__ */ B(() => /* @__PURE__ */ n("p", null, "备案号: XXXX .", -1)), Be = [
8
8
  Te,
9
- Be
10
- ], Ke = 992, Xe = /* @__PURE__ */ te({
9
+ ze
10
+ ], Fe = 992, Ke = /* @__PURE__ */ te({
11
11
  __name: "index",
12
12
  setup(_) {
13
- const y = D(), { title: K, version: X } = y, k = i(y.theme === "dark"), z = (e) => {
13
+ const y = D(), { title: F, version: K } = y, k = i(y.theme === "dark"), X = (e) => {
14
14
  we(e), y.changeSetting({
15
15
  key: "theme",
16
16
  value: e ? "dark" : "light"
17
17
  });
18
18
  }, C = T(), { width: j } = he();
19
19
  se(() => {
20
- j.value < Ke ? C.toggleDevice("mobile") : C.toggleDevice("desktop");
20
+ j.value < Fe ? C.toggleDevice("mobile") : C.toggleDevice("desktop");
21
21
  });
22
- const b = i(!1), E = i(!1), g = i(!1), L = i(), q = i(B), V = i([]), a = i({
22
+ const V = i(!1), E = i(!1), g = i(!1), q = i(), L = i(z), b = i([]), a = i({
23
23
  scope: "",
24
24
  username: "",
25
25
  password: ""
@@ -58,27 +58,27 @@ const F = (_) => (me("data-v-6eeae742"), _ = _(), _e(), _), xe = { class: "login
58
58
  }
59
59
  function h() {
60
60
  ye().then(({ data: e }) => {
61
- a.value.captchaKey = e.captchaId, L.value = e.base64Image;
61
+ a.value.captchaKey = e.captchaId, q.value = e.base64Image;
62
62
  });
63
63
  }
64
64
  function P() {
65
65
  ke().then(({ data: e }) => {
66
- V.value = e.roleList;
66
+ b.value = e.roleList;
67
67
  });
68
68
  }
69
69
  const W = Se(), H = fe();
70
70
  function x() {
71
- q.value.validate((e) => {
72
- e && (b.value = !0, a.value.password = Ce(a.value.password), H.login(a.value).then(() => {
71
+ L.value.validate((e) => {
72
+ e && (V.value = !0, a.value.password = Ce(a.value.password), H.login(a.value).then(() => {
73
73
  const t = W.query, p = t.redirect ?? "/", d = Object.keys(t).reduce(
74
74
  (f, u) => (u !== "redirect" && (f[u] = t[u]), f),
75
75
  {}
76
76
  );
77
- be.value.push({ path: p, query: d }), h();
77
+ Ve.value.push({ path: p, query: d }), h();
78
78
  }).catch(() => {
79
79
  h();
80
80
  }).finally(() => {
81
- b.value = !1;
81
+ V.value = !1;
82
82
  }));
83
83
  });
84
84
  }
@@ -96,31 +96,31 @@ const F = (_) => (me("data-v-6eeae742"), _ = _(), _e(), _), xe = { class: "login
96
96
  "inline-prompt": "",
97
97
  "active-color": "var(--el-fill-color-dark)",
98
98
  "inactive-color": "var(--el-color-primary)",
99
- onChange: z
99
+ onChange: X
100
100
  }, null, 8, ["modelValue"]),
101
101
  s(ve, { class: "ml-2 cursor-pointer" })
102
102
  ]),
103
103
  s(ee, { class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83" }, {
104
104
  default: r(() => [
105
105
  n("div", Re, [
106
- n("h2", null, R(o(K)), 1),
106
+ n("h2", null, R(o(F)), 1),
107
107
  s(d, { class: "ml-2 absolute top-0 right-0" }, {
108
108
  default: r(() => [
109
- I(R(o(X)), 1)
109
+ I(R(o(K)), 1)
110
110
  ]),
111
111
  _: 1
112
112
  })
113
113
  ]),
114
- s(o(B), {
114
+ s(o(z), {
115
115
  ref_key: "loginFormRef",
116
- ref: q,
116
+ ref: L,
117
117
  model: o(a),
118
118
  rules: o(M),
119
119
  size: "large",
120
120
  class: "login-form"
121
121
  }, {
122
122
  default: r(() => [
123
- o(V).length > 0 ? (w(), A(v, {
123
+ o(b).length > 0 ? (w(), A(v, {
124
124
  key: 0,
125
125
  prop: "scope"
126
126
  }, {
@@ -135,7 +135,7 @@ const F = (_) => (me("data-v-6eeae742"), _ = _(), _e(), _), xe = { class: "login
135
135
  class: "flex-1"
136
136
  }, {
137
137
  default: r(() => [
138
- (w(!0), U(re, null, ce(o(V), (l) => (w(), A(f, {
138
+ (w(!0), U(re, null, ce(o(b), (l) => (w(), A(f, {
139
139
  key: l.roleCode,
140
140
  label: l.roleName,
141
141
  value: l.roleCode
@@ -202,7 +202,7 @@ const F = (_) => (me("data-v-6eeae742"), _ = _(), _e(), _), xe = { class: "login
202
202
  }, 8, ["disabled"]),
203
203
  s(v, { prop: "captchaCode" }, {
204
204
  default: r(() => [
205
- n("span", Le, [
205
+ n("span", qe, [
206
206
  s(m, { "icon-class": "captcha" })
207
207
  ]),
208
208
  s($, {
@@ -213,9 +213,9 @@ const F = (_) => (me("data-v-6eeae742"), _ = _(), _e(), _), xe = { class: "login
213
213
  class: "w-[60%]",
214
214
  onKeyup: N(x, ["enter"])
215
215
  }, null, 8, ["modelValue", "placeholder"]),
216
- n("div", qe, [
216
+ n("div", Le, [
217
217
  s(G, {
218
- src: o(L),
218
+ src: o(q),
219
219
  onClick: h,
220
220
  class: "w-[130px] h-[50px] cursor-pointer"
221
221
  }, {
@@ -239,7 +239,7 @@ const F = (_) => (me("data-v-6eeae742"), _ = _(), _e(), _), xe = { class: "login
239
239
  })
240
240
  ]),
241
241
  s(Y, {
242
- loading: o(b),
242
+ loading: o(V),
243
243
  type: "primary",
244
244
  class: "w-full",
245
245
  onClick: de(x, ["prevent"])
@@ -255,13 +255,13 @@ const F = (_) => (me("data-v-6eeae742"), _ = _(), _e(), _), xe = { class: "login
255
255
  ]),
256
256
  _: 1
257
257
  }),
258
- pe(n("div", Ne, Fe, 512), [
258
+ pe(n("div", Ne, Be, 512), [
259
259
  [ue, o(T)().device == "desktop"]
260
260
  ])
261
261
  ]);
262
262
  };
263
263
  }
264
- }), He = /* @__PURE__ */ Ve(Xe, [["__scopeId", "data-v-6eeae742"]]);
264
+ }), He = /* @__PURE__ */ be(Ke, [["__scopeId", "data-v-6eeae742"]]);
265
265
  export {
266
266
  He as default
267
267
  };
@@ -1,7 +1,7 @@
1
1
  import { _ as G } from "./RadarChart.vue_vue_type_script_setup_true_lang-BNLujpKR.mjs";
2
2
  import { _ as H } from "./PieChart.vue_vue_type_script_setup_true_lang-D1-1NDvg.mjs";
3
- import R from "./BarChart--k4pvqvu.mjs";
4
- import { g as N, f as q, b as J, n as f, o as p, S as K } from "./index-Bw3IdFvk.mjs";
3
+ import R from "./BarChart-Bl3C1G8l.mjs";
4
+ import { h as N, f as q, c as J, o as f, p, S as K } from "./index-B5cWr2iD.mjs";
5
5
  import { openBlock as C, createElementBlock as y, pushScopeId as P, popScopeId as V, createElementVNode as t, defineComponent as Q, computed as B, ref as x, resolveComponent as d, createVNode as e, withCtx as s, unref as a, toDisplayString as i, createTextVNode as u } from "vue";
6
6
  const W = {}, w = (c) => (P("data-v-5088dedb"), c = c(), V(), c), X = {
7
7
  href: "https://github.com/haoxianrui",