@huyooo/ui 0.5.24 → 0.5.26
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/{AuthkitAuthModal-BdVB7Kz7.js → AuthkitAuthModal-_jUbPMfY.js} +482 -517
- package/dist/{AuthkitAuthorize-bzCh_YJp.js → AuthkitAuthorize-wqXxP_K2.js} +2 -2
- package/dist/{Clipboard-Bful1lNJ.js → Clipboard-CIWjWQOZ.js} +2 -3
- package/dist/{Contact-DNiynQXl.js → Contact-BYK4A8LY.js} +2 -2
- package/dist/{FeedbackItem-DFCuTCaI.js → FeedbackItem-CFst7U0_.js} +3 -3
- package/dist/{FeedbackModal-BGXr3jPm.js → FeedbackModal-Cgc59WUD.js} +5 -6
- package/dist/LandingPageSectionTabs-BdtJ_ajh.js +47484 -0
- package/dist/{MessageHandle-De7eLBi_.js → MessageHandle-BnkgjTdM.js} +16 -16
- package/dist/{PaySubscriptions-77rXNTOt.js → PaySubscriptions-x4b3a-nG.js} +8 -8
- package/dist/{ReferrerReferees-DCALYxND.js → ReferrerReferees-CyOeIbwr.js} +7 -7
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-9HB-tLZd.js → Upload.vue_vue_type_script_setup_true_lang-D7mv66o9.js} +2 -2
- package/dist/{UserAccountMenu-ul2FbWYe.js → UserAccountMenu-DgfGUlvA.js} +11 -12
- package/dist/{WidthContainer-DmwEcM3F.js → WidthContainer-CERr6Dzf.js} +24 -27
- package/dist/auth-DtA2gxxa.js +178 -0
- package/dist/authkit.js +6 -6
- package/dist/common.js +1 -1
- package/dist/composables.js +30 -31
- package/dist/feedback.js +3 -3
- package/dist/index.js +615 -699
- package/dist/landingPage.js +1 -1
- package/dist/message.js +2 -2
- package/dist/pay.js +1 -1
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-Dyjhw7qb.js → useAuthkitAppsAuthPageInfo-C1IsAlcM.js} +1 -1
- package/dist/useAuthkitCreateAndUpdate-BpTxxKc0.js +24 -0
- package/dist/useAuthkitUsersProfile-DNYZ87Bt.js +198 -0
- package/dist/{useDownloads-DnMYa52H.js → useDownloads-BpQUd6AV.js} +4 -5
- package/dist/{useMessageNotifications-DSRanuRe.js → useMessageNotifications-CHgy0HWC.js} +8 -8
- package/dist/{useSEO-BKJkX1nG.js → useSEO-BGk6cyAs.js} +2 -2
- package/dist/{useTableHandle-DKUIdSSh.js → useTableHandle-DujKY4Bl.js} +14 -15
- package/dist/{useUploadCos-D5k1YLb7.js → useUploadCos-BMEbLTPK.js} +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/LandingPageSectionTabs-BrAxO3Ad.js +0 -29013
- package/dist/globalConfig-C1YOJcxa.js +0 -22
- package/dist/useAuthkitAuthModal-BpOmabWi.js +0 -10
- package/dist/useAuthkitCreateAndUpdate-BpPW409v.js +0 -25
- package/dist/useAuthkitUsersProfile-zbKT0W_h.js +0 -237
|
@@ -4,26 +4,26 @@ import { defineComponent as b, ref as r, createBlock as p, openBlock as l, unref
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { Spin as V, Empty as K, Button as G, Divider as J, Breadcrumb as O, BreadcrumbItem as x, Modal as P } from "@arco-design/web-vue";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { g as S } from "./auth-DtA2gxxa.js";
|
|
8
|
+
import { api as D } from "@huyooo/api";
|
|
9
9
|
import { TiptapEditor as Q, TiptapTitle as W } from "@huyooo/vue-tiptap";
|
|
10
10
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { useIntersectionObserver as X } from "@vueuse/core";
|
|
13
|
-
import { u as Y } from "./useMessageNotifications-
|
|
13
|
+
import { u as Y } from "./useMessageNotifications-CHgy0HWC.js";
|
|
14
14
|
import { Icon as Z } from "@iconify/vue";
|
|
15
|
-
import { u as ee } from "./useAuthkitCreateAndUpdate-
|
|
15
|
+
import { u as ee } from "./useAuthkitCreateAndUpdate-BpTxxKc0.js";
|
|
16
16
|
import { M as te } from "./Menu-ejsosUdV.js";
|
|
17
17
|
function ne(a) {
|
|
18
|
-
return
|
|
19
|
-
url: `${
|
|
18
|
+
return D({
|
|
19
|
+
url: `${S.prefixUrl}/restfulApi/messageCenter/changelogNotifications/find`,
|
|
20
20
|
method: "post",
|
|
21
21
|
data: a
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
function se(a) {
|
|
25
|
-
return
|
|
26
|
-
url: `${
|
|
25
|
+
return D({
|
|
26
|
+
url: `${S.prefixUrl}/restfulApi/messageCenter/changelogNotifications/findOne`,
|
|
27
27
|
method: "post",
|
|
28
28
|
data: a
|
|
29
29
|
});
|
|
@@ -318,15 +318,15 @@ const ie = /* @__PURE__ */ b({
|
|
|
318
318
|
}
|
|
319
319
|
}), Ne = /* @__PURE__ */ C(ke, [["__scopeId", "data-v-e755c9b4"]]);
|
|
320
320
|
function Ce(a) {
|
|
321
|
-
return
|
|
322
|
-
url: `${
|
|
321
|
+
return D({
|
|
322
|
+
url: `${S.prefixUrl}/restfulApi/messageCenter/eventNotifications/find`,
|
|
323
323
|
method: "post",
|
|
324
324
|
data: a
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
function $e(a) {
|
|
328
|
-
return
|
|
329
|
-
url: `${
|
|
328
|
+
return D({
|
|
329
|
+
url: `${S.prefixUrl}/restfulApi/messageCenter/eventNotifications/findOne`,
|
|
330
330
|
method: "post",
|
|
331
331
|
data: a
|
|
332
332
|
});
|
|
@@ -573,15 +573,15 @@ const xe = /* @__PURE__ */ b({
|
|
|
573
573
|
}
|
|
574
574
|
}), Ee = /* @__PURE__ */ C(ze, [["__scopeId", "data-v-7310aa38"]]);
|
|
575
575
|
function Fe(a) {
|
|
576
|
-
return
|
|
577
|
-
url: `${
|
|
576
|
+
return D({
|
|
577
|
+
url: `${S.prefixUrl}/restfulApi/messageCenter/noticeNotifications/find`,
|
|
578
578
|
method: "post",
|
|
579
579
|
data: a
|
|
580
580
|
});
|
|
581
581
|
}
|
|
582
582
|
function Ve(a) {
|
|
583
|
-
return
|
|
584
|
-
url: `${
|
|
583
|
+
return D({
|
|
584
|
+
url: `${S.prefixUrl}/restfulApi/messageCenter/noticeNotifications/findOne`,
|
|
585
585
|
method: "post",
|
|
586
586
|
data: a
|
|
587
587
|
});
|
|
@@ -6,23 +6,23 @@
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { defineComponent as D, ref as U, createBlock as B, openBlock as L, unref as a, isRef as M, withCtx as o, createElementVNode as d, createVNode as r, createTextVNode as u, toDisplayString as n } from "vue";
|
|
8
8
|
import { Modal as V, Popconfirm as $, Button as E, Tag as g } from "@arco-design/web-vue";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { u as H } from "./useAuthkitCreateAndUpdate-
|
|
12
|
-
import { u as j } from "./useTableHandle-
|
|
9
|
+
import { g as _ } from "./auth-DtA2gxxa.js";
|
|
10
|
+
import { api as x } from "@huyooo/api";
|
|
11
|
+
import { u as H } from "./useAuthkitCreateAndUpdate-BpTxxKc0.js";
|
|
12
|
+
import { u as j } from "./useTableHandle-DujKY4Bl.js";
|
|
13
13
|
import { f as y } from "./index-Bb-d5pBq.js";
|
|
14
14
|
import { C as q } from "./CustomTable-BGm0KdAy.js";
|
|
15
15
|
import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
function G(m) {
|
|
17
|
-
return
|
|
18
|
-
url: `${
|
|
17
|
+
return x({
|
|
18
|
+
url: `${_.prefixUrl}/restfulApi/orders/cancel`,
|
|
19
19
|
method: "post",
|
|
20
20
|
data: m
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
function J(m) {
|
|
24
|
-
return
|
|
25
|
-
url: `${
|
|
24
|
+
return x({
|
|
25
|
+
url: `${_.prefixUrl}/restfulApi/orders/myOrders`,
|
|
26
26
|
method: "post",
|
|
27
27
|
data: m
|
|
28
28
|
});
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { defineComponent as z, ref as d, createBlock as v, openBlock as g, unref as a, withCtx as _, createElementVNode as n, createVNode as A, createCommentVNode as V, toDisplayString as C, createTextVNode as w } from "vue";
|
|
5
5
|
import { Modal as T } from "@arco-design/web-vue";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { u as B } from "./useTableHandle-
|
|
6
|
+
import { g as U } from "./auth-DtA2gxxa.js";
|
|
7
|
+
import { api as y } from "@huyooo/api";
|
|
8
|
+
import { u as B } from "./useTableHandle-DujKY4Bl.js";
|
|
9
9
|
import { C as D } from "./CustomTable-BGm0KdAy.js";
|
|
10
|
-
import { C as E } from "./Clipboard-
|
|
11
|
-
import { a as H } from "./useAuthkitUsersProfile-
|
|
10
|
+
import { C as E } from "./Clipboard-CIWjWQOZ.js";
|
|
11
|
+
import { a as H } from "./useAuthkitUsersProfile-DNYZ87Bt.js";
|
|
12
12
|
import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
function $(f) {
|
|
14
|
-
return
|
|
15
|
-
url: `${
|
|
14
|
+
return y({
|
|
15
|
+
url: `${U.prefixUrl}/restfulApi/referrer/referees`,
|
|
16
16
|
method: "post",
|
|
17
17
|
data: f
|
|
18
18
|
});
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { defineComponent as q, createBlock as y, openBlock as F, unref as S, mergeProps as h, createSlots as C, withCtx as u, renderSlot as p } from "vue";
|
|
7
7
|
import { Upload as I } from "@arco-design/web-vue";
|
|
8
|
-
import { u as _ } from "./useUploadCos-
|
|
9
|
-
import { g as l } from "./
|
|
8
|
+
import { u as _ } from "./useUploadCos-BMEbLTPK.js";
|
|
9
|
+
import { g as l } from "./auth-DtA2gxxa.js";
|
|
10
10
|
const O = /* @__PURE__ */ q({
|
|
11
11
|
__name: "Upload",
|
|
12
12
|
props: {
|
|
@@ -5,14 +5,13 @@ import { I as U } from "./index-Cr5RQSnA.js";
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { defineComponent as b, createElementBlock as v, openBlock as u, normalizeStyle as E, normalizeClass as K, createElementVNode as d, computed as B, createBlock as _, createCommentVNode as P, createVNode as r, unref as n, withCtx as l, createTextVNode as k, toDisplayString as S, mergeModels as D, useModel as T, renderSlot as W, ref as p, Fragment as be } from "vue";
|
|
7
7
|
import { Tag as Ce, Button as X, Avatar as Y, Dropdown as $e, Divider as G, Doption as C } from "@arco-design/web-vue";
|
|
8
|
-
import { S as we } from "./PaySubscriptions-
|
|
9
|
-
import { R as Ie } from "./ReferrerReferees-
|
|
10
|
-
import { a as N, u as he } from "./useAuthkitUsersProfile-
|
|
11
|
-
import { u as Ue } from "./
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { M as Be } from "./MessageHandle-De7eLBi_.js";
|
|
8
|
+
import { S as we } from "./PaySubscriptions-x4b3a-nG.js";
|
|
9
|
+
import { R as Ie } from "./ReferrerReferees-CyOeIbwr.js";
|
|
10
|
+
import { a as N, u as he } from "./useAuthkitUsersProfile-DNYZ87Bt.js";
|
|
11
|
+
import { u as Ue, g as q } from "./auth-DtA2gxxa.js";
|
|
12
|
+
import { c as Ae, A as Me } from "./AuthkitAuthModal-_jUbPMfY.js";
|
|
13
|
+
import { d as xe } from "./FeedbackModal-Cgc59WUD.js";
|
|
14
|
+
import { M as Be } from "./MessageHandle-BnkgjTdM.js";
|
|
16
15
|
/* empty css */
|
|
17
16
|
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
17
|
import { _ as J, g as Q, i as Z } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
@@ -568,7 +567,7 @@ const je = Object.assign(z, {
|
|
|
568
567
|
onCancel: ue
|
|
569
568
|
}))], 64)) : P("", !0)]));
|
|
570
569
|
}
|
|
571
|
-
}),
|
|
570
|
+
}), Pt = /* @__PURE__ */ I(lt, [["__scopeId", "data-v-9bfab947"]]), ut = {
|
|
572
571
|
class: "UserAccountMenu"
|
|
573
572
|
}, ct = {
|
|
574
573
|
class: "avatar"
|
|
@@ -600,12 +599,12 @@ const je = Object.assign(z, {
|
|
|
600
599
|
})])]);
|
|
601
600
|
};
|
|
602
601
|
}
|
|
603
|
-
}),
|
|
602
|
+
}), Vt = /* @__PURE__ */ I(mt, [["__scopeId", "data-v-b801e222"]]);
|
|
604
603
|
export {
|
|
605
604
|
Ke as S,
|
|
606
605
|
Ye as U,
|
|
607
606
|
ot as a,
|
|
608
607
|
it as b,
|
|
609
|
-
|
|
610
|
-
|
|
608
|
+
Pt as c,
|
|
609
|
+
Vt as d
|
|
611
610
|
};
|
|
@@ -2,29 +2,26 @@
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { defineComponent as g, ref as C, watch as H, createElementBlock as o, openBlock as t, createElementVNode as r, createVNode as _, unref as d, withCtx as Q, resolveComponent as X, createBlock as E, createCommentVNode as $, toDisplayString as I, onMounted as Y, onUnmounted as Z, Fragment as z, renderList as q, normalizeClass as L, normalizeStyle as x, renderSlot as K, computed as P } from "vue";
|
|
4
4
|
import { Spin as V } from "@arco-design/web-vue";
|
|
5
|
-
import { a as B } from "./useAuthkitUsersProfile-
|
|
6
|
-
import { u as R } from "./
|
|
7
|
-
import { u as D } from "./useAuthkitAppsAuthPageInfo-
|
|
8
|
-
|
|
9
|
-
import "
|
|
10
|
-
import { a as O, w as A, b as G, d as W, f as ee, c as te } from "./useSEO-BKJkX1nG.js";
|
|
11
|
-
import "./useUploadCos-D5k1YLb7.js";
|
|
5
|
+
import { a as B } from "./useAuthkitUsersProfile-DNYZ87Bt.js";
|
|
6
|
+
import { u as R, a as ee } from "./auth-DtA2gxxa.js";
|
|
7
|
+
import { u as D } from "./useAuthkitAppsAuthPageInfo-C1IsAlcM.js";
|
|
8
|
+
import { a as O, w as A, b as G, d as W, f as te, c as ne } from "./useSEO-BGk6cyAs.js";
|
|
9
|
+
import "./useUploadCos-BMEbLTPK.js";
|
|
12
10
|
import { useRouter as N, useRoute as F } from "vue-router";
|
|
13
11
|
/* empty css */
|
|
14
12
|
/* empty css */
|
|
15
|
-
import { d as
|
|
13
|
+
import { d as oe, c as j } from "./UserAccountMenu-DgfGUlvA.js";
|
|
16
14
|
import "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
17
15
|
/* empty css */
|
|
18
16
|
import "./index-Cr5RQSnA.js";
|
|
19
17
|
/* empty css */
|
|
20
|
-
import { M as
|
|
18
|
+
import { M as se } from "./Menu-ejsosUdV.js";
|
|
21
19
|
import "./CollapseItem-Cw1vcdLu.js";
|
|
22
20
|
/* empty css */
|
|
23
21
|
import "./CustomTable-BGm0KdAy.js";
|
|
24
22
|
import "./index-Bb-d5pBq.js";
|
|
25
23
|
import "@iconify/vue";
|
|
26
24
|
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
27
|
-
import { a as se } from "./globalConfig-C1YOJcxa.js";
|
|
28
25
|
const ae = {
|
|
29
26
|
class: "SidebarCom"
|
|
30
27
|
}, ie = {
|
|
@@ -92,12 +89,12 @@ const ae = {
|
|
|
92
89
|
icon: d(i).applicationLogoUrl,
|
|
93
90
|
name: d(i).name,
|
|
94
91
|
onTo: S
|
|
95
|
-
}, null, 8, ["icon", "name"])]), r("div", re, [_(
|
|
92
|
+
}, null, 8, ["icon", "name"])]), r("div", re, [_(se, {
|
|
96
93
|
"selected-keys": b.value,
|
|
97
94
|
"onUpdate:selectedKeys": s[0] || (s[0] = (v) => b.value = v),
|
|
98
95
|
menus: d(u),
|
|
99
96
|
onChange: w
|
|
100
|
-
}, null, 8, ["selected-keys", "menus"])]), r("div", ce, [_(d(
|
|
97
|
+
}, null, 8, ["selected-keys", "menus"])]), r("div", ce, [_(d(oe), {
|
|
101
98
|
onArrowClick: s[2] || (s[2] = (v) => f.value = !f.value)
|
|
102
99
|
}, {
|
|
103
100
|
avatar: Q(() => [_(d(j), {
|
|
@@ -150,7 +147,7 @@ const ae = {
|
|
|
150
147
|
}))])])])]);
|
|
151
148
|
};
|
|
152
149
|
}
|
|
153
|
-
}),
|
|
150
|
+
}), gt = /* @__PURE__ */ h(ve, [["__scopeId", "data-v-1778eb2d"]]), ge = {
|
|
154
151
|
class: "ContentHead"
|
|
155
152
|
}, ye = {
|
|
156
153
|
class: "title"
|
|
@@ -175,7 +172,7 @@ const ae = {
|
|
|
175
172
|
const e = n;
|
|
176
173
|
return (a, c) => (t(), o("div", ge, [r("h1", ye, I(e.title), 1), e.description ? (t(), o("p", be, I(e.description), 1)) : $("", !0)]));
|
|
177
174
|
}
|
|
178
|
-
}),
|
|
175
|
+
}), yt = /* @__PURE__ */ h(ke, [["__scopeId", "data-v-209a7bef"]]), Se = {
|
|
179
176
|
class: "HeaderMenus"
|
|
180
177
|
}, we = {
|
|
181
178
|
key: 0,
|
|
@@ -360,7 +357,7 @@ const ae = {
|
|
|
360
357
|
});
|
|
361
358
|
}
|
|
362
359
|
return H(() => S.path, () => {
|
|
363
|
-
y.value =
|
|
360
|
+
y.value = te(S.matched, e.menuType, S.path);
|
|
364
361
|
}, {
|
|
365
362
|
immediate: !0
|
|
366
363
|
}), (w, l) => (t(), o("div", Ae, [r("div", Ue, [_(J, {
|
|
@@ -399,8 +396,8 @@ const ae = {
|
|
|
399
396
|
setup(n) {
|
|
400
397
|
const e = n, {
|
|
401
398
|
setGlobalSEO: a
|
|
402
|
-
} =
|
|
403
|
-
a(
|
|
399
|
+
} = ne();
|
|
400
|
+
a(ee);
|
|
404
401
|
const {
|
|
405
402
|
isChecking: c
|
|
406
403
|
} = G();
|
|
@@ -419,7 +416,7 @@ const ae = {
|
|
|
419
416
|
key: 1
|
|
420
417
|
}, void 0, !0)])], 4));
|
|
421
418
|
}
|
|
422
|
-
}),
|
|
419
|
+
}), bt = /* @__PURE__ */ h(Be, [["__scopeId", "data-v-690c2133"]]), Re = /* @__PURE__ */ g({
|
|
423
420
|
__name: "Gradientbackground",
|
|
424
421
|
props: {
|
|
425
422
|
width: {
|
|
@@ -480,7 +477,7 @@ const ae = {
|
|
|
480
477
|
style: x(c.value)
|
|
481
478
|
}, null, 4)], 4));
|
|
482
479
|
}
|
|
483
|
-
}),
|
|
480
|
+
}), kt = /* @__PURE__ */ h(Re, [["__scopeId", "data-v-b6461ac4"]]), De = {
|
|
484
481
|
class: "SvgIcon"
|
|
485
482
|
}, Oe = ["href", "fill"], Ge = /* @__PURE__ */ g({
|
|
486
483
|
__name: "SvgIcon",
|
|
@@ -507,22 +504,22 @@ const ae = {
|
|
|
507
504
|
fill: e.color
|
|
508
505
|
}, null, 8, Oe)]));
|
|
509
506
|
}
|
|
510
|
-
}),
|
|
507
|
+
}), St = /* @__PURE__ */ h(Ge, [["__scopeId", "data-v-0a9de94e"]]), We = {}, Ne = {
|
|
511
508
|
class: "WidthContainer"
|
|
512
509
|
};
|
|
513
510
|
function Fe(n, e) {
|
|
514
511
|
return t(), o("div", Ne, [K(n.$slots, "default", {}, void 0, !0)]);
|
|
515
512
|
}
|
|
516
|
-
const
|
|
513
|
+
const wt = /* @__PURE__ */ h(We, [["render", Fe], ["__scopeId", "data-v-d06aac1f"]]);
|
|
517
514
|
export {
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
515
|
+
gt as A,
|
|
516
|
+
yt as C,
|
|
517
|
+
bt as D,
|
|
518
|
+
kt as G,
|
|
522
519
|
He as H,
|
|
523
520
|
J as L,
|
|
524
|
-
|
|
525
|
-
|
|
521
|
+
St as S,
|
|
522
|
+
wt as W,
|
|
526
523
|
le as a,
|
|
527
524
|
Te as b
|
|
528
525
|
};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { Message as u } from "@arco-design/web-vue";
|
|
3
|
+
import { api as n } from "@huyooo/api";
|
|
4
|
+
import { ref as k } from "vue";
|
|
5
|
+
function A(e, r = 3) {
|
|
6
|
+
const t = e.indexOf("@");
|
|
7
|
+
if (t > 1) {
|
|
8
|
+
const o = e.slice(0, r), l = e.slice(t);
|
|
9
|
+
return o + "***" + l;
|
|
10
|
+
}
|
|
11
|
+
return e;
|
|
12
|
+
}
|
|
13
|
+
function p() {
|
|
14
|
+
try {
|
|
15
|
+
localStorage.removeItem("jwtToken"), localStorage.removeItem("refreshToken");
|
|
16
|
+
} catch (e) {
|
|
17
|
+
console.warn("Failed to clear localStorage:", e);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function m() {
|
|
21
|
+
try {
|
|
22
|
+
return localStorage.getItem("refreshToken");
|
|
23
|
+
} catch (e) {
|
|
24
|
+
return console.warn("Failed to get refreshToken from localStorage:", e), null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function g(e) {
|
|
28
|
+
try {
|
|
29
|
+
localStorage.setItem("jwtToken", e);
|
|
30
|
+
} catch (r) {
|
|
31
|
+
console.warn("Failed to update jwtToken in localStorage:", r);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
let s = {
|
|
35
|
+
appId: "",
|
|
36
|
+
prefixUrl: "",
|
|
37
|
+
authPrefixUrl: "",
|
|
38
|
+
avatarBucketId: "68350c206888f565dc7d09e9",
|
|
39
|
+
feedbackBucketId: "6826e4db6888f565dc775dce",
|
|
40
|
+
bucket: "ones-1358549778",
|
|
41
|
+
region: "ap-beijing",
|
|
42
|
+
web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
|
|
43
|
+
}, b = {};
|
|
44
|
+
function S(e) {
|
|
45
|
+
Object.assign(b, e);
|
|
46
|
+
}
|
|
47
|
+
function U(e) {
|
|
48
|
+
s.appId = e.appId, s.prefixUrl = e.prefixUrl, s.authPrefixUrl = e.authPrefixUrl, e.avatarBucketId !== void 0 && (s.avatarBucketId = e.avatarBucketId), e.feedbackBucketId !== void 0 && (s.feedbackBucketId = e.feedbackBucketId), e.bucket !== void 0 && (s.bucket = e.bucket), e.region !== void 0 && (s.region = e.region), e.web3formsAccessKey !== void 0 && (s.web3formsAccessKey = e.web3formsAccessKey);
|
|
49
|
+
}
|
|
50
|
+
const T = k(!1);
|
|
51
|
+
function I() {
|
|
52
|
+
return {
|
|
53
|
+
show: T
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
let f = !1, d = [];
|
|
57
|
+
function h(e, r = null) {
|
|
58
|
+
d.forEach(({
|
|
59
|
+
resolve: t,
|
|
60
|
+
reject: o
|
|
61
|
+
}) => {
|
|
62
|
+
e ? o(e) : t(r);
|
|
63
|
+
}), d = [];
|
|
64
|
+
}
|
|
65
|
+
async function P() {
|
|
66
|
+
var r;
|
|
67
|
+
const e = m();
|
|
68
|
+
if (!e)
|
|
69
|
+
throw new Error("No refresh token available");
|
|
70
|
+
try {
|
|
71
|
+
const t = await w(e), {
|
|
72
|
+
data: o
|
|
73
|
+
} = t;
|
|
74
|
+
if (o.success && ((r = o.data) != null && r.jwtToken))
|
|
75
|
+
return g(o.data.jwtToken), o.data.refreshToken && localStorage.setItem("refreshToken", o.data.refreshToken), o.data.jwtToken;
|
|
76
|
+
throw new Error(o.message || "Token refresh failed");
|
|
77
|
+
} catch (t) {
|
|
78
|
+
throw console.error("Token refresh failed:", t), p(), t;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
n.interceptors.request.use((e) => {
|
|
82
|
+
console.log(e, "configconfig");
|
|
83
|
+
const r = localStorage.getItem("jwtToken");
|
|
84
|
+
return r && (e.headers.authorization = `Bearer ${r}`), e.headers["app-id"] = s.appId, e;
|
|
85
|
+
}, (e) => Promise.reject(e));
|
|
86
|
+
n.interceptors.response.use(async (e) => {
|
|
87
|
+
const r = (e == null ? void 0 : e.data) || {}, {
|
|
88
|
+
message: t,
|
|
89
|
+
success: o,
|
|
90
|
+
code: l
|
|
91
|
+
} = r;
|
|
92
|
+
if (console.log(r, "dsdsds"), o)
|
|
93
|
+
return r;
|
|
94
|
+
if (l === 40101) {
|
|
95
|
+
console.log(e, "response");
|
|
96
|
+
const c = e.config;
|
|
97
|
+
if (f)
|
|
98
|
+
return new Promise((a, i) => {
|
|
99
|
+
d.push({
|
|
100
|
+
resolve: a,
|
|
101
|
+
reject: i
|
|
102
|
+
});
|
|
103
|
+
}).then((a) => (c.headers.authorization = `Bearer ${a}`, n(c))).catch((a) => Promise.reject(a));
|
|
104
|
+
c._retry = !0, f = !0;
|
|
105
|
+
try {
|
|
106
|
+
const a = await P();
|
|
107
|
+
return h(null, a), c.headers.authorization = `Bearer ${a}`, n(c);
|
|
108
|
+
} catch (a) {
|
|
109
|
+
h(a, null), p();
|
|
110
|
+
const {
|
|
111
|
+
show: i
|
|
112
|
+
} = I();
|
|
113
|
+
return i.value = !0, Promise.reject(a);
|
|
114
|
+
} finally {
|
|
115
|
+
f = !1;
|
|
116
|
+
}
|
|
117
|
+
} else
|
|
118
|
+
return u.error(t || "请求失败"), Promise.reject(r);
|
|
119
|
+
}, (e) => {
|
|
120
|
+
if (e.response) {
|
|
121
|
+
const {
|
|
122
|
+
data: r
|
|
123
|
+
} = e.response, {
|
|
124
|
+
message: t
|
|
125
|
+
} = r || {};
|
|
126
|
+
console.log(e.response, "error.response"), console.error("Error Response:", e.response), u.error(t || "服务错误");
|
|
127
|
+
} else e.request ? (console.error("Error Request:", e.request), u.error("网络错误,请检查网络连接")) : (console.error("Error Message:", e.message), u.error(e.message || "服务错误"));
|
|
128
|
+
return Promise.reject(e);
|
|
129
|
+
});
|
|
130
|
+
function B(e) {
|
|
131
|
+
return n({
|
|
132
|
+
url: `${s.authPrefixUrl}/restfulApi/auth/signIn`,
|
|
133
|
+
method: "post",
|
|
134
|
+
data: e
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function E(e) {
|
|
138
|
+
return n({
|
|
139
|
+
url: `${s.authPrefixUrl}/restfulApi/auth/resetPassword`,
|
|
140
|
+
method: "post",
|
|
141
|
+
data: e
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function R(e) {
|
|
145
|
+
return n({
|
|
146
|
+
url: `${s.authPrefixUrl}/restfulApi/auth/signUp`,
|
|
147
|
+
method: "post",
|
|
148
|
+
data: e
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
function $(e) {
|
|
152
|
+
return n({
|
|
153
|
+
url: `${s.authPrefixUrl}/restfulApi/oauth2/authorize`,
|
|
154
|
+
method: "post",
|
|
155
|
+
data: e
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
function w(e) {
|
|
159
|
+
return n({
|
|
160
|
+
url: "/restfulApi/auth/refresh",
|
|
161
|
+
method: "post",
|
|
162
|
+
data: {
|
|
163
|
+
refreshToken: e
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
export {
|
|
168
|
+
b as a,
|
|
169
|
+
S as b,
|
|
170
|
+
E as c,
|
|
171
|
+
R as d,
|
|
172
|
+
B as e,
|
|
173
|
+
s as g,
|
|
174
|
+
A as h,
|
|
175
|
+
$ as o,
|
|
176
|
+
U as s,
|
|
177
|
+
I as u
|
|
178
|
+
};
|
package/dist/authkit.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as a, a as s, c as u, b as A, n as h, E as e, k as r, l as o, _ as k, O as n, f as d, o as p, P as f, j as m, R as P, S, i as g, m as l, d as w, e as U, g as c, h as x } from "./AuthkitAuthModal-
|
|
2
|
-
import { A as y, a as E } from "./AuthkitAuthorize-
|
|
3
|
-
import { u as C } from "./useAuthkitAppsAuthPageInfo-
|
|
4
|
-
import { u as V, a as b } from "./useAuthkitUsersProfile-
|
|
5
|
-
import { u as B } from "./
|
|
6
|
-
import { u as j } from "./useAuthkitCreateAndUpdate-
|
|
1
|
+
import { A as a, a as s, c as u, b as A, n as h, E as e, k as r, l as o, _ as k, O as n, f as d, o as p, P as f, j as m, R as P, S, i as g, m as l, d as w, e as U, g as c, h as x } from "./AuthkitAuthModal-_jUbPMfY.js";
|
|
2
|
+
import { A as y, a as E } from "./AuthkitAuthorize-wqXxP_K2.js";
|
|
3
|
+
import { u as C } from "./useAuthkitAppsAuthPageInfo-C1IsAlcM.js";
|
|
4
|
+
import { u as V, a as b } from "./useAuthkitUsersProfile-DNYZ87Bt.js";
|
|
5
|
+
import { u as B } from "./auth-DtA2gxxa.js";
|
|
6
|
+
import { u as j } from "./useAuthkitCreateAndUpdate-BpTxxKc0.js";
|
|
7
7
|
export {
|
|
8
8
|
a as AuthkitAppSetting,
|
|
9
9
|
s as AuthkitAuth,
|
package/dist/common.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-
|
|
1
|
+
import { A as s, a as o, C as t, D as r, G as p, H as n, b as l, L as u, S as C, W as d } from "./WidthContainer-CERr6Dzf.js";
|
|
2
2
|
import { C as i, a as f } from "./CollapseItem-Cw1vcdLu.js";
|
|
3
3
|
import { C as x, E as H } from "./CustomTable-BGm0KdAy.js";
|
|
4
4
|
import { M, a as g } from "./Menu-ejsosUdV.js";
|
package/dist/composables.js
CHANGED
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { u } from "./
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as c } from "./
|
|
9
|
-
import {
|
|
10
|
-
import { u as R } from "./useUploadCos-D5k1YLb7.js";
|
|
1
|
+
import { u as a, a as o } from "./useAuthkitUsersProfile-DNYZ87Bt.js";
|
|
2
|
+
import { g as u, a as r, s as i, b as f, u as n } from "./auth-DtA2gxxa.js";
|
|
3
|
+
import { u as p } from "./useAuthkitAppsAuthPageInfo-C1IsAlcM.js";
|
|
4
|
+
import { u as m } from "./useAuthkitCreateAndUpdate-BpTxxKc0.js";
|
|
5
|
+
import { u as d } from "./useMessageNotifications-CHgy0HWC.js";
|
|
6
|
+
import { u as x, a as C } from "./useDownloads-BpQUd6AV.js";
|
|
7
|
+
import { u as k } from "./useTableHandle-DujKY4Bl.js";
|
|
8
|
+
import { f as w, u as E, a as M, b as O, d as P, c as S, w as U } from "./useSEO-BGk6cyAs.js";
|
|
9
|
+
import { u as G } from "./useUploadCos-BMEbLTPK.js";
|
|
11
10
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
11
|
+
w as findMenuPath,
|
|
12
|
+
u as globalConfig,
|
|
13
|
+
r as globalSEOConfig,
|
|
14
|
+
i as setGlobalConfig,
|
|
15
|
+
f as setGlobalSEOConfig,
|
|
16
|
+
E as useActiveDoc,
|
|
17
|
+
M as useAuthMenu,
|
|
18
|
+
p as useAuthkitAppsAuthPageInfo,
|
|
19
|
+
a as useAuthkitAuth,
|
|
20
|
+
n as useAuthkitAuthModal,
|
|
21
|
+
m as useAuthkitCreateAndUpdate,
|
|
22
|
+
o as useAuthkitUsersProfile,
|
|
23
|
+
x as useCommonCreateAndUpdate,
|
|
24
|
+
C as useDownloads,
|
|
25
|
+
d as useMessageNotifications,
|
|
26
|
+
O as useRoutePermission,
|
|
27
|
+
P as useRouteSEO,
|
|
28
|
+
S as useSEO,
|
|
29
|
+
k as useTableHandle,
|
|
30
|
+
G as useUploadCos,
|
|
31
|
+
U as withViewTransition
|
|
33
32
|
};
|
package/dist/feedback.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-
|
|
2
|
-
import { C as r } from "./Clipboard-
|
|
3
|
-
import { F as m, a as n, c as f, b as i, d as p } from "./FeedbackItem-
|
|
1
|
+
import { _ as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-Cgc59WUD.js";
|
|
2
|
+
import { C as r } from "./Clipboard-CIWjWQOZ.js";
|
|
3
|
+
import { F as m, a as n, c as f, b as i, d as p } from "./FeedbackItem-CFst7U0_.js";
|
|
4
4
|
export {
|
|
5
5
|
r as Clipboard,
|
|
6
6
|
b as FeedbackBubbleEnd,
|