@pubinfo/core 2.0.0-beta.25 → 2.0.0-beta.27
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/{AppSetting-DodCOb_z.js → AppSetting-8APd2n5W.js} +16 -16
- package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-CMOw56Mk.js → HCheckList.vue_vue_type_script_setup_true_lang-xHHNH-Do.js} +2 -2
- package/dist/{PreferencesContent-Dic24ifo.js → PreferencesContent-B6v1Y85P.js} +86 -83
- package/dist/{SettingBreadcrumb-DWpbGcSy.js → SettingBreadcrumb-DRbL0ad_.js} +2 -2
- package/dist/{SettingCopyright-CIY0pFMT.js → SettingCopyright-BQF1UDPx.js} +1 -1
- package/dist/{SettingEnableTransition-f0xuLIrZ.js → SettingEnableTransition-COQvH_bE.js} +1 -1
- package/dist/{SettingHome-BFtJsJsN.js → SettingHome-BL-JRz6C.js} +1 -1
- package/dist/{SettingMenu-DuPD3iSG.js → SettingMenu-CL08Xnqj.js} +2 -2
- package/dist/{SettingMode-nZ65qSWK.js → SettingMode-CHFQfbwC.js} +1 -1
- package/dist/{SettingNavSearch-CrarPE7d.js → SettingNavSearch-D3EfJLm4.js} +1 -1
- package/dist/{SettingOther-BddvExCF.js → SettingOther-D8vWJBqB.js} +1 -1
- package/dist/{SettingPage-C6Na8HEN.js → SettingPage-C6834qKt.js} +1 -1
- package/dist/{SettingTabbar-nuwfRRaE.js → SettingTabbar-C4Nk7PaM.js} +2 -2
- package/dist/SettingThemes-CAiwgt41.js +145 -0
- package/dist/{SettingToolbar-BdizZaGF.js → SettingToolbar-Bue6Bsao.js} +1 -1
- package/dist/{SettingTopbar-D5BX5vS_.js → SettingTopbar-CklZW6nz.js} +2 -2
- package/dist/{SettingWidthMode-CHrLW3gs.js → SettingWidthMode-Ba5CjpXS.js} +1 -1
- package/dist/{TopThinMode-CttqTmaT.js → TopThinMode-BKgHAbKj.js} +1 -1
- package/dist/{_...all_--d4S-8dL.js → _...all_-CiLs5zE0.js} +1 -1
- package/dist/{colors-BOKDjZQI.js → colors-ehvAxkYC.js} +1 -1
- package/dist/index-64V9RiCt.js +240 -0
- package/dist/{index-Cf8yM5Cv.js → index-BK4luc55.js} +4 -4
- package/dist/index-BLvVzLOl.js +147 -0
- package/dist/{index-DORROKh7.js → index-BjAXx4BA.js} +3 -3
- package/dist/{index-dPREgrj8.js → index-C5TqLQ-T.js} +12 -12
- package/dist/{index-Bz9lh14R.js → index-CAjh59MN.js} +2 -2
- package/dist/{index-B0i20hau.js → index-CqQ-P_1q.js} +4 -4
- package/dist/index-DTsHMiQx.js +12711 -0
- package/dist/{index-DltN2SCZ.js → index-hjeR7S9d.js} +2 -2
- package/dist/index.js +4 -4
- package/dist/{menu-Ddxel9ck.js → menu-D3oKigWX.js} +5 -5
- package/dist/pages/system/change-organization/index.vue.d.ts +1 -1
- package/dist/pages/system/change-password/index.vue.d.ts +1 -1
- package/dist/{pick-DEgsMKda.js → pick-Cku6R96i.js} +1 -1
- package/dist/request.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-Bmtn9Oo4.js → toolbar-collapse-BhNN4H7Y.js} +419 -387
- package/package.json +3 -3
- package/src/layout/components/SettingBar/components/SettingThemes.vue +7 -5
- package/src/layout/components/Tools/Preferences/PreferencesContent.vue +2 -1
- package/src/layout/components/Tools/index.vue +1 -8
- package/src/pages/system/change-organization/index.vue +73 -65
- package/src/pages/system/change-password/index.vue +44 -36
- package/src/pages/system/not-permission/index.vue +2 -2
- package/dist/SettingThemes-DBq6j0zt.js +0 -144
- package/dist/index-CC3GE307.js +0 -137
- package/dist/index-Cygbc-66.js +0 -230
- package/dist/index-D0CMv5FJ.js +0 -12737
- package/src/layout/components/Tools/I18nSelector.vue +0 -52
- package/src/pages/system/change-password/page.vue +0 -58
package/dist/index-Cygbc-66.js
DELETED
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import { defineComponent as k, mergeModels as R, useModel as F, reactive as T, ref as P, createElementBlock as h, openBlock as N, createVNode as t, unref as a, withCtx as u, createTextVNode as b, nextTick as j, computed as z, createElementVNode as p, isRef as v } from "vue";
|
|
2
|
-
import { by as S, bz as W, u as B, aQ as M, v as $ } from "./menu-Ddxel9ck.js";
|
|
3
|
-
import "pinia-plugin-persistedstate";
|
|
4
|
-
import { useRouter as q, useRoute as D } from "vue-router";
|
|
5
|
-
import { _ as I } from "./index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-Bmtn9Oo4.js";
|
|
6
|
-
import { P as J } from "./index-B0i20hau.js";
|
|
7
|
-
import { J as O, _ as Q, M as X } from "./index-DltN2SCZ.js";
|
|
8
|
-
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
var G = "Expected a function";
|
|
10
|
-
function H(n, l, s) {
|
|
11
|
-
if (typeof n != "function")
|
|
12
|
-
throw new TypeError(G);
|
|
13
|
-
return setTimeout(function() {
|
|
14
|
-
n.apply(void 0, s);
|
|
15
|
-
}, l);
|
|
16
|
-
}
|
|
17
|
-
var K = S(function(n, l, s) {
|
|
18
|
-
return H(n, W(l) || 0, s);
|
|
19
|
-
});
|
|
20
|
-
const L = /* @__PURE__ */ k({
|
|
21
|
-
name: "ChangePasswordForm",
|
|
22
|
-
__name: "index",
|
|
23
|
-
props: /* @__PURE__ */ R({
|
|
24
|
-
token: {}
|
|
25
|
-
}, {
|
|
26
|
-
validate: { type: Boolean, default: !1 },
|
|
27
|
-
validateModifiers: {}
|
|
28
|
-
}),
|
|
29
|
-
emits: ["update:validate"],
|
|
30
|
-
setup(n, { expose: l }) {
|
|
31
|
-
const s = n, g = F(n, "validate"), o = T({
|
|
32
|
-
password: "",
|
|
33
|
-
newPassword: "",
|
|
34
|
-
repeatNewPassword: ""
|
|
35
|
-
}), d = q(), m = P(), r = B();
|
|
36
|
-
async function i(w, e) {
|
|
37
|
-
if (!e)
|
|
38
|
-
return Promise.reject(new Error("请再次输入新密码"));
|
|
39
|
-
if (e !== o.newPassword)
|
|
40
|
-
return Promise.reject(new Error("两次输入的密码不匹配,请确保新密码在两个输入框中完全相同"));
|
|
41
|
-
}
|
|
42
|
-
async function E(w, e) {
|
|
43
|
-
if (await j(), !e)
|
|
44
|
-
return Promise.reject(new Error("请再次输入新密码"));
|
|
45
|
-
if (!g.value)
|
|
46
|
-
return Promise.reject(new Error("密码安全校验不通过"));
|
|
47
|
-
}
|
|
48
|
-
const C = {
|
|
49
|
-
password: [{
|
|
50
|
-
required: !0,
|
|
51
|
-
whitespace: !0,
|
|
52
|
-
message: "请输入密码"
|
|
53
|
-
}],
|
|
54
|
-
newPassword: [{ validator: E }],
|
|
55
|
-
repeatNewPassword: [{ validator: i }]
|
|
56
|
-
};
|
|
57
|
-
async function U() {
|
|
58
|
-
var w;
|
|
59
|
-
try {
|
|
60
|
-
await ((w = m.value) == null ? void 0 : w.validate()), await r.changeUserPassword({
|
|
61
|
-
oldPassword: o.password,
|
|
62
|
-
newPassword: o.newPassword,
|
|
63
|
-
token: s.token
|
|
64
|
-
}), $.success("密码修改成功"), K(() => {
|
|
65
|
-
x();
|
|
66
|
-
}, 800);
|
|
67
|
-
} catch {
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
function x() {
|
|
71
|
-
d.go(-1);
|
|
72
|
-
}
|
|
73
|
-
return l({
|
|
74
|
-
formState: o
|
|
75
|
-
}), (w, e) => {
|
|
76
|
-
const _ = X, f = Q, y = M, V = O;
|
|
77
|
-
return N(), h("div", null, [
|
|
78
|
-
t(V, {
|
|
79
|
-
ref_key: "changePasswordForm",
|
|
80
|
-
ref: m,
|
|
81
|
-
model: a(o),
|
|
82
|
-
rules: C
|
|
83
|
-
}, {
|
|
84
|
-
default: u(() => [
|
|
85
|
-
t(f, { name: "password" }, {
|
|
86
|
-
default: u(() => [
|
|
87
|
-
t(_, {
|
|
88
|
-
value: a(o).password,
|
|
89
|
-
"onUpdate:value": e[0] || (e[0] = (c) => a(o).password = c),
|
|
90
|
-
"allow-clear": "",
|
|
91
|
-
size: "large",
|
|
92
|
-
placeholder: "请输入旧密码",
|
|
93
|
-
"visibility-toggle": ""
|
|
94
|
-
}, null, 8, ["value"])
|
|
95
|
-
]),
|
|
96
|
-
_: 1
|
|
97
|
-
}),
|
|
98
|
-
t(f, { name: "newPassword" }, {
|
|
99
|
-
default: u(() => [
|
|
100
|
-
t(_, {
|
|
101
|
-
value: a(o).newPassword,
|
|
102
|
-
"onUpdate:value": e[1] || (e[1] = (c) => a(o).newPassword = c),
|
|
103
|
-
"allow-clear": "",
|
|
104
|
-
size: "large",
|
|
105
|
-
placeholder: "请输入新密码",
|
|
106
|
-
"visibility-toggle": ""
|
|
107
|
-
}, null, 8, ["value"])
|
|
108
|
-
]),
|
|
109
|
-
_: 1
|
|
110
|
-
}),
|
|
111
|
-
t(f, { name: "repeatNewPassword" }, {
|
|
112
|
-
default: u(() => [
|
|
113
|
-
t(_, {
|
|
114
|
-
value: a(o).repeatNewPassword,
|
|
115
|
-
"onUpdate:value": e[2] || (e[2] = (c) => a(o).repeatNewPassword = c),
|
|
116
|
-
"allow-clear": "",
|
|
117
|
-
size: "large",
|
|
118
|
-
placeholder: "请再次输入新密码",
|
|
119
|
-
"visibility-toggle": ""
|
|
120
|
-
}, null, 8, ["value"])
|
|
121
|
-
]),
|
|
122
|
-
_: 1
|
|
123
|
-
}),
|
|
124
|
-
t(f, null, {
|
|
125
|
-
default: u(() => [
|
|
126
|
-
t(y, {
|
|
127
|
-
type: "primary",
|
|
128
|
-
block: "",
|
|
129
|
-
"h-48px": "",
|
|
130
|
-
"mb-10px": "",
|
|
131
|
-
onClick: U
|
|
132
|
-
}, {
|
|
133
|
-
default: u(() => e[3] || (e[3] = [
|
|
134
|
-
b(" 修改密码 ")
|
|
135
|
-
])),
|
|
136
|
-
_: 1
|
|
137
|
-
}),
|
|
138
|
-
t(y, {
|
|
139
|
-
block: "",
|
|
140
|
-
"h-48px": "",
|
|
141
|
-
onClick: x
|
|
142
|
-
}, {
|
|
143
|
-
default: u(() => e[4] || (e[4] = [
|
|
144
|
-
b(" 返回 ")
|
|
145
|
-
])),
|
|
146
|
-
_: 1
|
|
147
|
-
})
|
|
148
|
-
]),
|
|
149
|
-
_: 1
|
|
150
|
-
})
|
|
151
|
-
]),
|
|
152
|
-
_: 1
|
|
153
|
-
}, 8, ["model"])
|
|
154
|
-
]);
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
}), Y = { class: "password-bg" }, Z = {
|
|
158
|
-
flex: "~ auto center",
|
|
159
|
-
"w-full": "",
|
|
160
|
-
"h-0": ""
|
|
161
|
-
}, ee = {
|
|
162
|
-
"h-full": "",
|
|
163
|
-
flex: "~",
|
|
164
|
-
"justify-between": "",
|
|
165
|
-
"items-center": ""
|
|
166
|
-
}, oe = {
|
|
167
|
-
"w-650px": "",
|
|
168
|
-
"mr-20px": ""
|
|
169
|
-
}, te = { class: "change-password-form" }, ae = {
|
|
170
|
-
flex: "~ col center",
|
|
171
|
-
"mb-40px": ""
|
|
172
|
-
}, re = {
|
|
173
|
-
"w-88px": "",
|
|
174
|
-
"h-88px": "",
|
|
175
|
-
flex: "~ center",
|
|
176
|
-
rounded: "50%",
|
|
177
|
-
"mb-15px": ""
|
|
178
|
-
}, se = /* @__PURE__ */ k({
|
|
179
|
-
name: "ChangePassword",
|
|
180
|
-
__name: "index",
|
|
181
|
-
setup(n) {
|
|
182
|
-
const l = P(), s = z({
|
|
183
|
-
get() {
|
|
184
|
-
var m;
|
|
185
|
-
return (m = l.value) == null ? void 0 : m.formState.newPassword;
|
|
186
|
-
},
|
|
187
|
-
set() {
|
|
188
|
-
}
|
|
189
|
-
}), o = D().params.changePassWordToken, d = P(!1);
|
|
190
|
-
return (m, r) => (N(), h("div", Y, [
|
|
191
|
-
p("main", Z, [
|
|
192
|
-
p("div", ee, [
|
|
193
|
-
p("div", oe, [
|
|
194
|
-
t(a(J), {
|
|
195
|
-
modelValue: a(s),
|
|
196
|
-
"onUpdate:modelValue": r[0] || (r[0] = (i) => v(s) ? s.value = i : null),
|
|
197
|
-
validate: a(d),
|
|
198
|
-
"onUpdate:validate": r[1] || (r[1] = (i) => v(d) ? d.value = i : null)
|
|
199
|
-
}, null, 8, ["modelValue", "validate"])
|
|
200
|
-
]),
|
|
201
|
-
p("div", te, [
|
|
202
|
-
p("div", ae, [
|
|
203
|
-
p("div", re, [
|
|
204
|
-
t(a(I), {
|
|
205
|
-
name: "mima",
|
|
206
|
-
color: "transparent",
|
|
207
|
-
size: 88
|
|
208
|
-
})
|
|
209
|
-
]),
|
|
210
|
-
r[3] || (r[3] = p("span", {
|
|
211
|
-
text: "18px",
|
|
212
|
-
font: "bold"
|
|
213
|
-
}, " 更改密码 ", -1))
|
|
214
|
-
]),
|
|
215
|
-
t(L, {
|
|
216
|
-
ref_key: "ChangePassWordForm",
|
|
217
|
-
ref: l,
|
|
218
|
-
validate: a(d),
|
|
219
|
-
"onUpdate:validate": r[2] || (r[2] = (i) => v(d) ? d.value = i : null),
|
|
220
|
-
token: a(o)
|
|
221
|
-
}, null, 8, ["validate", "token"])
|
|
222
|
-
])
|
|
223
|
-
])
|
|
224
|
-
])
|
|
225
|
-
]));
|
|
226
|
-
}
|
|
227
|
-
}), ce = /* @__PURE__ */ A(se, [["__scopeId", "data-v-023a7e03"]]);
|
|
228
|
-
export {
|
|
229
|
-
ce as default
|
|
230
|
-
};
|