jmash-core 0.1.16 → 0.1.18
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.
- package/dist/{401-KAeiuNjv.mjs → 401-D6Q94FzV.mjs} +1 -1
- package/dist/{404-acqFGqEv.mjs → 404-DhAbpKMM.mjs} +1 -1
- package/dist/{BarChart-wJtn8Ow_.mjs → BarChart-CRekzHxP.mjs} +1 -1
- package/dist/{index-BhlOqpSI.mjs → index-1lsWqWL5.mjs} +3 -3
- package/dist/{index-Crx8EUrV.mjs → index-BrR5K1DU.mjs} +2459 -2413
- package/dist/{index-CMJKWgJS.mjs → index-CnulSJWc.mjs} +12 -12
- package/dist/{index-D1KMMIxN.mjs → index-DP79aUrH.mjs} +15 -15
- package/dist/index-DgZeveji.mjs +2164 -0
- package/dist/index-xCPCjZu8.mjs +463 -0
- package/dist/index.mjs +54 -52
- package/dist/index.vue_vue_type_script_setup_true_lang-Dj7pKP1u.mjs +130 -0
- package/dist/{profile-DrNc9zRG.mjs → profile-rd1rLI2V.mjs} +17 -17
- package/dist/{runAs-Bnicmqn-.mjs → runAs-DaaarFVR.mjs} +1 -1
- package/dist/{runAs.vue_vue_type_script_setup_true_lang-DCtZwltr.mjs → runAs.vue_vue_type_script_setup_true_lang-C-1uRJoS.mjs} +138 -138
- package/dist/style.css +1 -1
- package/dist/{types-LJiNV7Za.mjs → types-hlyKOzFS.mjs} +10 -10
- package/dist/{updatePwd-C5bezsVR.mjs → updatePwd-CYG_P7Xc.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-B7WfsD0M.mjs → updatePwd.vue_vue_type_script_setup_true_lang-B1eIL13s.mjs} +12 -12
- package/dts/src/api/auth/index.d.ts +2 -1
- package/dts/src/api/auth/types.d.ts +12 -0
- package/dts/src/api/change/index.d.ts +13 -0
- package/dts/src/api/change/types.d.ts +26 -0
- package/dts/src/components/ForgetPwd/index.vue.d.ts +6 -0
- package/dts/src/components/GraphicValidate/index.vue.d.ts +8 -0
- package/dts/src/components/GraphicVerification/index.vue.d.ts +8 -0
- package/dts/src/components/JmashMultiImageUpload/index.vue.d.ts +1 -1
- package/dts/src/components/NameValidate/index.vue.d.ts +63 -0
- package/dts/src/index.d.ts +2 -2
- package/dts/src/lang/package/zh-cn.d.ts +38 -1
- package/dts/src/layout/components/NavBar/components/ChangePhoneEmail.vue.d.ts +6 -0
- package/dts/src/layout/components/NavBar/components/ChangeWechatBind.vue.d.ts +10 -0
- package/dts/src/layout/components/NavBar/components/QrCode.vue.d.ts +18 -0
- package/package.json +1 -1
- package/dist/index-Cag9NoGd.mjs +0 -1633
- package/dist/index-hX78lDCk.mjs +0 -244
package/dist/index-hX78lDCk.mjs
DELETED
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
import { v as b, u as g, b as H, n as F, e as G, g as J, y as X, t as Y, z as Z, h as ee } from "./index-Crx8EUrV.mjs";
|
|
2
|
-
import { defineComponent as te, ref as c, computed as oe, watchEffect as le, resolveComponent as d, createElementBlock as se, openBlock as re, createElementVNode as o, createVNode as l, withDirectives as U, unref as k, withCtx as i, normalizeStyle as ae, vShow as D, withKeys as z, withModifiers as ne, createTextVNode as ie, toDisplayString as Q, normalizeClass as ue } from "vue";
|
|
3
|
-
import ce from "./assets/0cda52992278af9e.png";
|
|
4
|
-
import { useI18n as de } from "vue-i18n";
|
|
5
|
-
import "element-plus";
|
|
6
|
-
import { useRoute as pe, useRouter as me } from "vue-router";
|
|
7
|
-
import fe from "./assets/09fcc36c527efda6.jpg";
|
|
8
|
-
const ve = { class: "login-container" }, _e = { class: "absolute top-0 flex items-center justify-end px-5 h-20 w-full" }, ge = { class: "qrcode-container" }, he = ["src"], ye = { class: "flex justify-between items-center w-full" }, we = ["src"], Ce = { class: "bg-small" }, be = 992, ke = /* @__PURE__ */ te({
|
|
9
|
-
__name: "index",
|
|
10
|
-
setup(qe) {
|
|
11
|
-
const { t: q } = de(), h = c(b.APP_ACTIVE), j = (e) => {
|
|
12
|
-
e.props.name === "user" ? (C(), m()) : I(), h.value = e.props.name;
|
|
13
|
-
}, s = c({
|
|
14
|
-
scope: "",
|
|
15
|
-
username: "",
|
|
16
|
-
password: ""
|
|
17
|
-
}), B = oe(() => {
|
|
18
|
-
const e = g().language === "en" ? "Please enter " : "请输入";
|
|
19
|
-
return {
|
|
20
|
-
username: [
|
|
21
|
-
{
|
|
22
|
-
required: !0,
|
|
23
|
-
trigger: "blur",
|
|
24
|
-
message: `${e}${q("login.username")}`
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
password: [
|
|
28
|
-
{
|
|
29
|
-
required: !0,
|
|
30
|
-
trigger: "blur",
|
|
31
|
-
validator: (t, a, r) => {
|
|
32
|
-
a.length < 5 ? r(new Error("The password can not be less than 5 digits")) : r();
|
|
33
|
-
},
|
|
34
|
-
message: `${e}${q("login.password")}`
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
captchaCode: [
|
|
38
|
-
{
|
|
39
|
-
required: !0,
|
|
40
|
-
trigger: "blur",
|
|
41
|
-
message: `${e}${q("login.captchaCode")}`
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
};
|
|
45
|
-
}), V = c(!1), x = c(), P = pe(), E = me(), $ = H(), T = () => {
|
|
46
|
-
var e;
|
|
47
|
-
(e = x.value) == null || e.validate((t) => {
|
|
48
|
-
t && (V.value = !0, $.login({ ...s.value, password: X(s.value.password) }).then(() => {
|
|
49
|
-
const a = P.query, r = a.redirect ?? b.APP_REDIRECT, n = Object.keys(a).reduce(
|
|
50
|
-
(p, _) => (_ !== "redirect" && (p[_] = a[_]), p),
|
|
51
|
-
{}
|
|
52
|
-
);
|
|
53
|
-
E.push({ path: r, query: n }), m();
|
|
54
|
-
}).catch(() => {
|
|
55
|
-
m();
|
|
56
|
-
}).finally(() => {
|
|
57
|
-
V.value = !1;
|
|
58
|
-
}));
|
|
59
|
-
});
|
|
60
|
-
}, R = c(""), m = () => {
|
|
61
|
-
Y().then(({ data: e }) => {
|
|
62
|
-
s.value.captchaKey = e.captchaId, R.value = e.base64Image;
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
m();
|
|
66
|
-
let y = setInterval(S, 3e3);
|
|
67
|
-
const f = c({});
|
|
68
|
-
function I() {
|
|
69
|
-
Z().then(({ data: e }) => {
|
|
70
|
-
f.value = e, v.value = !1, K(), y = setInterval(S, 3e3);
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
h.value === "qrCode" && I();
|
|
74
|
-
function S() {
|
|
75
|
-
f.value.ticket && $.loginByQrcode({ ticket: f.value.ticket }).then(() => {
|
|
76
|
-
C(), v.value = !1, f.value.qrcodeUrl = fe;
|
|
77
|
-
const e = P.query, t = e.redirect ?? b.APP_REDIRECT, a = Object.keys(e).reduce(
|
|
78
|
-
(r, n) => (n !== "redirect" && (r[n] = e[n]), r),
|
|
79
|
-
{}
|
|
80
|
-
);
|
|
81
|
-
E.push({ path: t, query: a });
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
let w = null;
|
|
85
|
-
const v = c(!1);
|
|
86
|
-
function C() {
|
|
87
|
-
y && (clearInterval(y), y = null), w && (clearTimeout(w), w = null);
|
|
88
|
-
}
|
|
89
|
-
function K() {
|
|
90
|
-
C(), w = setTimeout(() => {
|
|
91
|
-
C(), v.value = !0;
|
|
92
|
-
}, b.APP_TIMEOUT);
|
|
93
|
-
}
|
|
94
|
-
function L() {
|
|
95
|
-
E.push({ path: "/register" });
|
|
96
|
-
}
|
|
97
|
-
const A = g(), { width: M } = F();
|
|
98
|
-
return le(() => {
|
|
99
|
-
M.value < be ? A.toggleDevice("mobile") : A.toggleDevice("desktop");
|
|
100
|
-
}), (e, t) => {
|
|
101
|
-
const a = G, r = d("el-tab-pane"), n = d("el-input"), p = d("el-form-item"), _ = d("el-button"), N = d("el-form"), O = d("el-tabs"), W = d("el-card");
|
|
102
|
-
return re(), se("div", ve, [
|
|
103
|
-
o("div", _e, [
|
|
104
|
-
l(a, {
|
|
105
|
-
class: "ml-2 cursor-pointer",
|
|
106
|
-
style: { "font-size": "18px" }
|
|
107
|
-
})
|
|
108
|
-
]),
|
|
109
|
-
l(W, {
|
|
110
|
-
device: k(g)().device,
|
|
111
|
-
class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83"
|
|
112
|
-
}, {
|
|
113
|
-
default: i(() => [
|
|
114
|
-
l(O, {
|
|
115
|
-
modelValue: h.value,
|
|
116
|
-
"onUpdate:modelValue": t[3] || (t[3] = (u) => h.value = u),
|
|
117
|
-
class: "demo-tabs",
|
|
118
|
-
onTabClick: j
|
|
119
|
-
}, {
|
|
120
|
-
default: i(() => [
|
|
121
|
-
l(r, {
|
|
122
|
-
label: "扫码登录",
|
|
123
|
-
name: "qrCode"
|
|
124
|
-
}, {
|
|
125
|
-
default: i(() => [
|
|
126
|
-
o("div", ge, [
|
|
127
|
-
o("img", {
|
|
128
|
-
src: f.value.qrcodeUrl,
|
|
129
|
-
style: ae({ opacity: v.value ? 0.02 : 1 }),
|
|
130
|
-
alt: "二维码"
|
|
131
|
-
}, null, 12, he),
|
|
132
|
-
U(o("div", null, [
|
|
133
|
-
t[4] || (t[4] = o("div", null, "二维码已过期", -1)),
|
|
134
|
-
o("div", { onClick: I }, "点击刷新")
|
|
135
|
-
], 512), [
|
|
136
|
-
[D, v.value]
|
|
137
|
-
])
|
|
138
|
-
]),
|
|
139
|
-
t[5] || (t[5] = o("div", null, "微信扫一扫登录", -1))
|
|
140
|
-
]),
|
|
141
|
-
_: 1,
|
|
142
|
-
__: [5]
|
|
143
|
-
}),
|
|
144
|
-
l(r, {
|
|
145
|
-
label: "账号登录",
|
|
146
|
-
name: "user"
|
|
147
|
-
}, {
|
|
148
|
-
default: i(() => [
|
|
149
|
-
l(N, {
|
|
150
|
-
ref_key: "formRef",
|
|
151
|
-
ref: x,
|
|
152
|
-
model: s.value,
|
|
153
|
-
rules: B.value
|
|
154
|
-
}, {
|
|
155
|
-
default: i(() => [
|
|
156
|
-
l(p, { prop: "username" }, {
|
|
157
|
-
default: i(() => [
|
|
158
|
-
l(n, {
|
|
159
|
-
modelValue: s.value.username,
|
|
160
|
-
"onUpdate:modelValue": t[0] || (t[0] = (u) => s.value.username = u),
|
|
161
|
-
placeholder: e.$t("login.username")
|
|
162
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
163
|
-
]),
|
|
164
|
-
_: 1
|
|
165
|
-
}),
|
|
166
|
-
l(p, { prop: "password" }, {
|
|
167
|
-
default: i(() => [
|
|
168
|
-
l(n, {
|
|
169
|
-
modelValue: s.value.password,
|
|
170
|
-
"onUpdate:modelValue": t[1] || (t[1] = (u) => s.value.password = u),
|
|
171
|
-
placeholder: e.$t("login.password"),
|
|
172
|
-
type: "password",
|
|
173
|
-
"show-password": "",
|
|
174
|
-
onKeyup: z(T, ["enter"])
|
|
175
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
176
|
-
]),
|
|
177
|
-
_: 1
|
|
178
|
-
}),
|
|
179
|
-
l(p, { prop: "captchaCode" }, {
|
|
180
|
-
default: i(() => [
|
|
181
|
-
o("div", ye, [
|
|
182
|
-
l(n, {
|
|
183
|
-
style: { width: "65%" },
|
|
184
|
-
modelValue: s.value.captchaCode,
|
|
185
|
-
"onUpdate:modelValue": t[2] || (t[2] = (u) => s.value.captchaCode = u),
|
|
186
|
-
placeholder: e.$t("login.captchaCode"),
|
|
187
|
-
onKeyup: z(T, ["enter"])
|
|
188
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
189
|
-
o("img", {
|
|
190
|
-
class: "flex-1 h-[40px] cursor-pointer ml-2",
|
|
191
|
-
src: R.value,
|
|
192
|
-
onClick: m,
|
|
193
|
-
alt: "验证码"
|
|
194
|
-
}, null, 8, we)
|
|
195
|
-
])
|
|
196
|
-
]),
|
|
197
|
-
_: 1
|
|
198
|
-
}),
|
|
199
|
-
l(_, {
|
|
200
|
-
loading: V.value,
|
|
201
|
-
type: "primary",
|
|
202
|
-
class: "w-full",
|
|
203
|
-
onClick: ne(T, ["prevent"])
|
|
204
|
-
}, {
|
|
205
|
-
default: i(() => [
|
|
206
|
-
ie(Q(e.$t("login.login")), 1)
|
|
207
|
-
]),
|
|
208
|
-
_: 1
|
|
209
|
-
}, 8, ["loading"])
|
|
210
|
-
]),
|
|
211
|
-
_: 1
|
|
212
|
-
}, 8, ["model", "rules"])
|
|
213
|
-
]),
|
|
214
|
-
_: 1
|
|
215
|
-
})
|
|
216
|
-
]),
|
|
217
|
-
_: 1
|
|
218
|
-
}, 8, ["modelValue"]),
|
|
219
|
-
o("div", {
|
|
220
|
-
class: "cursor-pointer register-btn",
|
|
221
|
-
onClick: L
|
|
222
|
-
}, " 没有密码,前往注册 ")
|
|
223
|
-
]),
|
|
224
|
-
_: 1
|
|
225
|
-
}, 8, ["device"]),
|
|
226
|
-
U(o("div", Ce, [
|
|
227
|
-
o("div", null, Q(k(J).title), 1),
|
|
228
|
-
t[6] || (t[6] = o("img", {
|
|
229
|
-
src: ce,
|
|
230
|
-
alt: "login-bg-small"
|
|
231
|
-
}, null, -1))
|
|
232
|
-
], 512), [
|
|
233
|
-
[D, k(g)().device === "desktop"]
|
|
234
|
-
]),
|
|
235
|
-
o("div", {
|
|
236
|
-
class: ue(k(g)().device)
|
|
237
|
-
}, " Copyright © 2018-2025 Apache 2.0 开源协议. ", 2)
|
|
238
|
-
]);
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
}), Re = /* @__PURE__ */ ee(ke, [["__scopeId", "data-v-1469303e"]]);
|
|
242
|
-
export {
|
|
243
|
-
Re as default
|
|
244
|
-
};
|