@pubinfo/core 2.1.10-beta.2 → 2.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.
- package/dist/{AppSetting-Dl8pVkN4.js → AppSetting-7jlhUzze.js} +42 -42
- package/dist/{HButton-CzYSwI6a.js → HButton-Dt6qGhhR.js} +7 -7
- package/dist/{HCheckList-CHR-lWIq.js → HCheckList-cPBgATmv.js} +15 -15
- package/dist/{HDivider-CXS9rl4C.js → HDivider-BwvBr5OE.js} +3 -3
- package/dist/{HInput-CSVwTg1Q.js → HInput-KJ5nFBpF.js} +10 -10
- package/dist/HSlideover-DVQDc9q6.js +3151 -0
- package/dist/{HToggle-C_iVIpxv.js → HToggle-Ce_2-yhZ.js} +8 -8
- package/dist/{HTooltip-BHBHfrCD.js → HTooltip-DjAU-Evn.js} +6 -6
- package/dist/PreferencesContent-BAIH81yS.js +701 -0
- package/dist/SettingBreadcrumb-O9-PhAFT.js +45 -0
- package/dist/SettingCopyright-DIKsWTuf.js +45 -0
- package/dist/{SettingEnableTransition-BBH52KKl.js → SettingEnableTransition-61O7W00b.js} +19 -19
- package/dist/SettingHome-Sv65TPH8.js +31 -0
- package/dist/SettingMenu-BvwJOUZV.js +111 -0
- package/dist/{SettingMode-BwhhUYlz.js → SettingMode-B8H_eQc8.js} +14 -14
- package/dist/SettingNavSearch-BHsmYBA7.js +31 -0
- package/dist/SettingOther-CyyNnaDX.js +48 -0
- package/dist/SettingPage-B82lW41P.js +22 -0
- package/dist/{SettingTabbar-DuqQVRnz.js → SettingTabbar-Bky2xvH-.js} +58 -58
- package/dist/{SettingThemes-Doo6Ax3u.js → SettingThemes-CkdzS1xt.js} +44 -44
- package/dist/SettingToolbar-CD4qns1J.js +50 -0
- package/dist/SettingTopbar-1shjoe3s.js +49 -0
- package/dist/{SettingWidthMode-VaN0CrBa.js → SettingWidthMode-DlG6lXjA.js} +14 -14
- package/dist/auth-BLGKOyc5.js +4432 -0
- package/dist/built-in/layout-component/composables/useContext.d.ts +1 -0
- package/dist/{change-organization-OjxZhWST.js → change-organization-hsqeSzDu.js} +38 -38
- package/dist/{change-password-B6kO54-d.js → change-password-EtccCDRX.js} +73 -73
- package/dist/{chunk-EsrJ1IKw.js → chunk-CD4vhpVs.js} +3 -3
- package/dist/{components-DVIyiEVI.js → components-DFNyaAb9.js} +1584 -1584
- package/dist/core/request.d.ts +1 -1
- package/dist/core-DJIGzMMM.js +4885 -0
- package/dist/dist-7OjQvlya.js +468 -0
- package/dist/engine-oniguruma-CaNXwGSv.js +243 -0
- package/dist/features/settings/index.d.ts +90 -1
- package/dist/{form-EQ9eL9hv.js → form-C3VHofnN.js} +923 -443
- package/dist/index.js +4418 -3895
- package/dist/{modal-CSWipFvB.js → modal-Bl5xHbxa.js} +15510 -15790
- package/dist/{not-found-DBe-djEg.js → not-found-BCjngLzt.js} +19 -19
- package/dist/{not-permission-DQzWCpOK.js → not-permission-C26vTMvf.js} +19 -19
- package/dist/{profile-DJ3gpjsS.js → profile-BVXIFuBG.js} +3340 -3277
- package/dist/{question-line-BKVlJGUb.js → question-line-BG__Ycfv.js} +2 -2
- package/dist/{reload-DAR8dVYw.js → reload-DHx5Vwus.js} +4 -4
- package/dist/{right-VKgVtqD5.js → right-BxBlFUwj.js} +6 -6
- package/dist/style.css +1 -1
- package/dist/{tree-select-CTjWj5WT.js → tree-select-B8cTcGLa.js} +2575 -2256
- package/dist/watchDiff-CPZFtaOC.js +655 -0
- package/package.json +41 -41
- package/src/built-in/layout-component/components/Header/HeaderMenu.vue +2 -3
- package/src/built-in/layout-component/components/Menu/item.vue +2 -2
- package/src/built-in/layout-component/components/Menu/sub.vue +20 -1
- package/src/built-in/layout-component/composables/useContext.ts +1 -0
- package/src/built-in/layout-component/composables/useLayoutVisible.ts +1 -1
- package/src/built-in/layout-component/provider.ts +5 -0
- package/src/built-in/system-info/components/SystemInfo.vue +68 -66
- package/src/built-in/system-info/index.ts +4 -4
- package/src/core/ctx.ts +2 -2
- package/src/core/request.ts +1 -1
- package/src/features/components/PubinfoApp/index.vue +1 -0
- package/types/auto-imports.d.ts +63 -63
- package/types/components.d.ts +45 -1
- package/dist/HSlideover-Bc6OHPHe.js +0 -1695
- package/dist/HeaderFullMenu-BRhGliRJ.js +0 -6
- package/dist/HeaderFullMenu-DCF-gTCZ.js +0 -249
- package/dist/HeaderThinMenu-B_7vLcQX.js +0 -6
- package/dist/HeaderThinMenu-PA12XAvb.js +0 -437
- package/dist/PreferencesContent-cll4nwwl.js +0 -695
- package/dist/SettingBreadcrumb-BvSc7VUo.js +0 -45
- package/dist/SettingCopyright-DcWLKM5d.js +0 -45
- package/dist/SettingHome-Cd43oJmB.js +0 -31
- package/dist/SettingMenu-CJsN4F1l.js +0 -111
- package/dist/SettingNavSearch-BhHUWem3.js +0 -31
- package/dist/SettingOther-CDY0jSVT.js +0 -48
- package/dist/SettingPage-B0WNvUlj.js +0 -22
- package/dist/SettingToolbar-CHV_dVJ9.js +0 -50
- package/dist/SettingTopbar-CF1K_XIt.js +0 -49
- package/dist/auth-CPSkJwBz.js +0 -3968
- package/dist/core-Bg2PEcZK.js +0 -4884
- package/dist/dist-DAb-7mqe.js +0 -468
- package/dist/engine-oniguruma-CUfGsBrF.js +0 -243
- package/dist/overlayscrollbars-vue-BOGU2FK-.js +0 -1436
- package/dist/pick-C42gkI1h.js +0 -10
- package/dist/watchDiff-C4eGkl9e.js +0 -397
- /package/dist/{_plugin-vue_export-helper-DaPiLSxE.js → _plugin-vue_export-helper-sUTDUeGO.js} +0 -0
- /package/dist/{json-S7wVLDnW.js → json-Bu_Zprin.js} +0 -0
- /package/dist/{useContext-D6pJCZez.js → useContext-DLtu9F7E.js} +0 -0
- /package/dist/{vitesse-dark-BsnBIHGG.js → vitesse-dark-CTe40QT_.js} +0 -0
- /package/dist/{vitesse-light-Cs_6DF7j.js → vitesse-light-BWXC_WeB.js} +0 -0
- /package/dist/{wasm-EvDQvzqp.js → wasm-2zDVqo-C.js} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { a as button_default, n as
|
|
2
|
-
import {
|
|
3
|
-
import "./watchDiff-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as PassStrengthValidator_default } from "./components-
|
|
7
|
-
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-
|
|
1
|
+
import { a as button_default, n as api } from "./modal-Bl5xHbxa.js";
|
|
2
|
+
import { I as baseRest, L as toNumber, d as useUserStore } from "./auth-BLGKOyc5.js";
|
|
3
|
+
import "./watchDiff-CPZFtaOC.js";
|
|
4
|
+
import { s as Password_default } from "./tree-select-B8cTcGLa.js";
|
|
5
|
+
import { r as FormItem_default, t as form_default } from "./form-C3VHofnN.js";
|
|
6
|
+
import { n as PassStrengthValidator_default } from "./components-DFNyaAb9.js";
|
|
7
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-sUTDUeGO.js";
|
|
8
8
|
import { computed, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, mergeModels, nextTick, openBlock, reactive, ref, resolveComponent, unref, useModel, withCtx } from "vue";
|
|
9
9
|
import { useRoute, useRouter } from "vue-router";
|
|
10
10
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
11
|
-
function baseDelay(
|
|
12
|
-
if (typeof
|
|
11
|
+
function baseDelay(e, t, n) {
|
|
12
|
+
if (typeof e != "function") throw TypeError(FUNC_ERROR_TEXT);
|
|
13
13
|
return setTimeout(function() {
|
|
14
|
-
|
|
15
|
-
},
|
|
14
|
+
e.apply(void 0, n);
|
|
15
|
+
}, t);
|
|
16
16
|
}
|
|
17
|
-
var
|
|
18
|
-
return
|
|
17
|
+
var delay = baseRest(function(e, t, n) {
|
|
18
|
+
return baseDelay(e, toNumber(t) || 0, n);
|
|
19
19
|
}), ChangePasswordForm_default = /* @__PURE__ */ defineComponent({
|
|
20
20
|
name: "ChangePasswordForm",
|
|
21
21
|
__name: "index",
|
|
@@ -27,56 +27,56 @@ var _baseDelay_default = baseDelay, delay_default = _baseRest_default(function(t
|
|
|
27
27
|
validateModifiers: {}
|
|
28
28
|
}),
|
|
29
29
|
emits: ["update:validate"],
|
|
30
|
-
setup(
|
|
31
|
-
let
|
|
30
|
+
setup(n, { expose: r }) {
|
|
31
|
+
let o = n, s = useModel(n, "validate"), c = reactive({
|
|
32
32
|
password: "",
|
|
33
33
|
newPassword: "",
|
|
34
34
|
repeatNewPassword: ""
|
|
35
|
-
}),
|
|
36
|
-
async function
|
|
37
|
-
if (!
|
|
38
|
-
if (
|
|
35
|
+
}), l = useRouter(), u = ref(), d = useUserStore();
|
|
36
|
+
async function f(e, t) {
|
|
37
|
+
if (!t) return Promise.reject(/* @__PURE__ */ Error("请再次输入新密码"));
|
|
38
|
+
if (t !== c.newPassword) return Promise.reject(/* @__PURE__ */ Error("两次输入的密码不匹配,请确保新密码在两个输入框中完全相同"));
|
|
39
39
|
}
|
|
40
|
-
async function
|
|
41
|
-
if (await nextTick(), !
|
|
42
|
-
if (!
|
|
40
|
+
async function p(e, t) {
|
|
41
|
+
if (await nextTick(), !t) return Promise.reject(/* @__PURE__ */ Error("请再次输入新密码"));
|
|
42
|
+
if (!s.value) return Promise.reject(/* @__PURE__ */ Error("密码安全校验不通过"));
|
|
43
43
|
}
|
|
44
|
-
let
|
|
44
|
+
let m = {
|
|
45
45
|
password: [{
|
|
46
46
|
required: !0,
|
|
47
47
|
whitespace: !0,
|
|
48
48
|
message: "请输入密码"
|
|
49
49
|
}],
|
|
50
|
-
newPassword: [{ validator:
|
|
51
|
-
repeatNewPassword: [{ validator:
|
|
50
|
+
newPassword: [{ validator: p }],
|
|
51
|
+
repeatNewPassword: [{ validator: f }]
|
|
52
52
|
};
|
|
53
|
-
async function
|
|
53
|
+
async function h() {
|
|
54
54
|
try {
|
|
55
|
-
await
|
|
56
|
-
oldPassword:
|
|
57
|
-
newPassword:
|
|
58
|
-
token:
|
|
59
|
-
}),
|
|
60
|
-
|
|
55
|
+
await u.value?.validate(), await d.changePassword({
|
|
56
|
+
oldPassword: c.password,
|
|
57
|
+
newPassword: c.newPassword,
|
|
58
|
+
token: o.token
|
|
59
|
+
}), api.success("密码修改成功"), delay(() => {
|
|
60
|
+
g();
|
|
61
61
|
}, 800);
|
|
62
62
|
} catch {}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
|
|
64
|
+
function g() {
|
|
65
|
+
l.go(-1);
|
|
66
66
|
}
|
|
67
|
-
return
|
|
68
|
-
let
|
|
69
|
-
return openBlock(), createElementBlock("div", null, [createVNode(
|
|
67
|
+
return r({ formState: c }), (t, n) => {
|
|
68
|
+
let r = Password_default, i = FormItem_default, o = button_default, s = form_default;
|
|
69
|
+
return openBlock(), createElementBlock("div", null, [createVNode(s, {
|
|
70
70
|
ref_key: "changePasswordForm",
|
|
71
|
-
ref:
|
|
72
|
-
model: unref(
|
|
73
|
-
rules:
|
|
71
|
+
ref: u,
|
|
72
|
+
model: unref(c),
|
|
73
|
+
rules: m
|
|
74
74
|
}, {
|
|
75
75
|
default: withCtx(() => [
|
|
76
|
-
createVNode(
|
|
77
|
-
default: withCtx(() => [createVNode(
|
|
78
|
-
value: unref(
|
|
79
|
-
"onUpdate:value":
|
|
76
|
+
createVNode(i, { name: "password" }, {
|
|
77
|
+
default: withCtx(() => [createVNode(r, {
|
|
78
|
+
value: unref(c).password,
|
|
79
|
+
"onUpdate:value": n[0] ||= (e) => unref(c).password = e,
|
|
80
80
|
"allow-clear": "",
|
|
81
81
|
size: "large",
|
|
82
82
|
placeholder: "请输入旧密码",
|
|
@@ -84,10 +84,10 @@ var _baseDelay_default = baseDelay, delay_default = _baseRest_default(function(t
|
|
|
84
84
|
}, null, 8, ["value"])]),
|
|
85
85
|
_: 1
|
|
86
86
|
}),
|
|
87
|
-
createVNode(
|
|
88
|
-
default: withCtx(() => [createVNode(
|
|
89
|
-
value: unref(
|
|
90
|
-
"onUpdate:value":
|
|
87
|
+
createVNode(i, { name: "newPassword" }, {
|
|
88
|
+
default: withCtx(() => [createVNode(r, {
|
|
89
|
+
value: unref(c).newPassword,
|
|
90
|
+
"onUpdate:value": n[1] ||= (e) => unref(c).newPassword = e,
|
|
91
91
|
"allow-clear": "",
|
|
92
92
|
size: "large",
|
|
93
93
|
placeholder: "请输入新密码",
|
|
@@ -95,10 +95,10 @@ var _baseDelay_default = baseDelay, delay_default = _baseRest_default(function(t
|
|
|
95
95
|
}, null, 8, ["value"])]),
|
|
96
96
|
_: 1
|
|
97
97
|
}),
|
|
98
|
-
createVNode(
|
|
99
|
-
default: withCtx(() => [createVNode(
|
|
100
|
-
value: unref(
|
|
101
|
-
"onUpdate:value":
|
|
98
|
+
createVNode(i, { name: "repeatNewPassword" }, {
|
|
99
|
+
default: withCtx(() => [createVNode(r, {
|
|
100
|
+
value: unref(c).repeatNewPassword,
|
|
101
|
+
"onUpdate:value": n[2] ||= (e) => unref(c).repeatNewPassword = e,
|
|
102
102
|
"allow-clear": "",
|
|
103
103
|
size: "large",
|
|
104
104
|
placeholder: "请再次输入新密码",
|
|
@@ -106,22 +106,22 @@ var _baseDelay_default = baseDelay, delay_default = _baseRest_default(function(t
|
|
|
106
106
|
}, null, 8, ["value"])]),
|
|
107
107
|
_: 1
|
|
108
108
|
}),
|
|
109
|
-
createVNode(
|
|
110
|
-
default: withCtx(() => [createVNode(
|
|
109
|
+
createVNode(i, null, {
|
|
110
|
+
default: withCtx(() => [createVNode(o, {
|
|
111
111
|
type: "primary",
|
|
112
112
|
block: "",
|
|
113
113
|
"h-48px": "",
|
|
114
114
|
"mb-10px": "",
|
|
115
|
-
onClick:
|
|
115
|
+
onClick: h
|
|
116
116
|
}, {
|
|
117
|
-
default: withCtx(() => [...
|
|
117
|
+
default: withCtx(() => [...n[3] ||= [createTextVNode(" 修改密码 ", -1)]]),
|
|
118
118
|
_: 1
|
|
119
|
-
}), createVNode(
|
|
119
|
+
}), createVNode(o, {
|
|
120
120
|
block: "",
|
|
121
121
|
"h-48px": "",
|
|
122
|
-
onClick:
|
|
122
|
+
onClick: g
|
|
123
123
|
}, {
|
|
124
|
-
default: withCtx(() => [...
|
|
124
|
+
default: withCtx(() => [...n[4] ||= [createTextVNode(" 返回 ", -1)]]),
|
|
125
125
|
_: 1
|
|
126
126
|
})]),
|
|
127
127
|
_: 1
|
|
@@ -146,19 +146,19 @@ var _baseDelay_default = baseDelay, delay_default = _baseRest_default(function(t
|
|
|
146
146
|
}, _hoisted_5 = { class: "change-password-form" }, change_password_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
147
147
|
name: "ChangePassword",
|
|
148
148
|
__name: "index",
|
|
149
|
-
setup(
|
|
150
|
-
let
|
|
149
|
+
setup(e) {
|
|
150
|
+
let t = ref(), n = computed({
|
|
151
151
|
get() {
|
|
152
|
-
return
|
|
152
|
+
return t.value?.formState.newPassword;
|
|
153
153
|
},
|
|
154
154
|
set() {}
|
|
155
|
-
}),
|
|
156
|
-
return (
|
|
157
|
-
modelValue: unref(
|
|
158
|
-
"onUpdate:modelValue":
|
|
159
|
-
validate: unref(
|
|
160
|
-
"onUpdate:validate":
|
|
161
|
-
}, null, 8, ["modelValue", "validate"])]), createElementVNode("div", _hoisted_5, [
|
|
155
|
+
}), r = useRoute().params.changePassWordToken, i = ref(!1);
|
|
156
|
+
return (e, a) => (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("main", _hoisted_2, [createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [createVNode(unref(PassStrengthValidator_default), {
|
|
157
|
+
modelValue: unref(n),
|
|
158
|
+
"onUpdate:modelValue": a[0] ||= (e) => isRef(n) ? n.value = e : null,
|
|
159
|
+
validate: unref(i),
|
|
160
|
+
"onUpdate:validate": a[1] ||= (e) => isRef(i) ? i.value = e : null
|
|
161
|
+
}, null, 8, ["modelValue", "validate"])]), createElementVNode("div", _hoisted_5, [a[3] ||= createElementVNode("div", {
|
|
162
162
|
flex: "~ col center",
|
|
163
163
|
"mb-40px": ""
|
|
164
164
|
}, [createElementVNode("div", {
|
|
@@ -176,10 +176,10 @@ var _baseDelay_default = baseDelay, delay_default = _baseRest_default(function(t
|
|
|
176
176
|
font: "bold"
|
|
177
177
|
}, " 更改密码 ")], -1), createVNode(ChangePasswordForm_default, {
|
|
178
178
|
ref_key: "ChangePassWordForm",
|
|
179
|
-
ref:
|
|
180
|
-
validate: unref(
|
|
181
|
-
"onUpdate:validate":
|
|
182
|
-
token: unref(
|
|
179
|
+
ref: t,
|
|
180
|
+
validate: unref(i),
|
|
181
|
+
"onUpdate:validate": a[2] ||= (e) => isRef(i) ? i.value = e : null,
|
|
182
|
+
token: unref(r)
|
|
183
183
|
}, null, 8, ["validate", "token"])])])])]));
|
|
184
184
|
}
|
|
185
185
|
}), [["__scopeId", "data-v-619e4015"]]);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports),
|
|
1
|
+
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), __exportAll = (e, n) => {
|
|
2
2
|
let r = {};
|
|
3
3
|
for (var i in e) __defProp(r, i, {
|
|
4
4
|
get: e[i],
|
|
5
5
|
enumerable: !0
|
|
6
6
|
});
|
|
7
|
-
return n
|
|
7
|
+
return n || __defProp(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
8
8
|
}, __copyProps = (e, i, o, s) => {
|
|
9
9
|
if (i && typeof i == "object" || typeof i == "function") for (var c = __getOwnPropNames(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !__hasOwnProp.call(e, d) && d !== o && __defProp(e, d, {
|
|
10
10
|
get: ((e) => i[e]).bind(null, d),
|
|
@@ -15,4 +15,4 @@ var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDes
|
|
|
15
15
|
value: n,
|
|
16
16
|
enumerable: !0
|
|
17
17
|
}) : a, n));
|
|
18
|
-
export {
|
|
18
|
+
export { __exportAll as n, __toESM as r, __commonJSMin as t };
|