@huyooo/ui 0.5.26 → 0.5.28
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-_jUbPMfY.js → AuthkitAuthModal-P9GI9wIQ.js} +8 -9
- package/dist/{AuthkitAuthorize-wqXxP_K2.js → AuthkitAuthorize-Bv2MspFC.js} +2 -2
- package/dist/{Contact-BYK4A8LY.js → Contact-DTGCcXv9.js} +2 -2
- package/dist/{FeedbackItem-CFst7U0_.js → FeedbackItem-DLJhHHDM.js} +3 -3
- package/dist/{FeedbackModal-Cgc59WUD.js → FeedbackModal-OsCK3NqC.js} +4 -5
- package/dist/LandingPageSectionTabs-B-MarOHk.js +67530 -0
- package/dist/{MessageHandle-BnkgjTdM.js → MessageHandle-CdOMmp4n.js} +16 -17
- package/dist/{PaySubscriptions-x4b3a-nG.js → PaySubscriptions-DVhnjdi3.js} +7 -8
- package/dist/{ReferrerReferees-CyOeIbwr.js → ReferrerReferees-Bfu2z-0W.js} +17 -18
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-D7mv66o9.js → Upload.vue_vue_type_script_setup_true_lang-CoOnOaNP.js} +2 -2
- package/dist/{UserAccountMenu-DgfGUlvA.js → UserAccountMenu-AhID9xxq.js} +7 -7
- package/dist/{WidthContainer-CERr6Dzf.js → WidthContainer-BACUO8zY.js} +6 -6
- package/dist/{auth-DtA2gxxa.js → auth-B864DrVx.js} +49 -42
- package/dist/authkit.js +5 -5
- package/dist/common.js +1 -1
- package/dist/components/Authkit/Auth/AuthkitAuthorize.vue.d.ts +1 -1
- package/dist/components/LandingPage/LandingPageShowcase.vue.d.ts +20 -17
- package/dist/composables.js +6 -6
- package/dist/feedback.js +2 -2
- package/dist/index.js +176 -177
- package/dist/landingPage.js +10 -10
- 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-C1IsAlcM.js → useAuthkitAppsAuthPageInfo-Ct-ElH04.js} +16 -17
- package/dist/{useAuthkitUsersProfile-DNYZ87Bt.js → useAuthkitUsersProfile-B1y2nleU.js} +30 -31
- package/dist/{useMessageNotifications-CHgy0HWC.js → useMessageNotifications-BUJtc-Us.js} +25 -26
- package/dist/{useSEO-BGk6cyAs.js → useSEO-CFQMgnVq.js} +2 -2
- package/dist/{useUploadCos-BMEbLTPK.js → useUploadCos-Ca4Mo5FD.js} +3 -4
- package/dist/user.js +1 -1
- package/dist/utils/request.d.ts +2 -1
- package/package.json +2 -2
- package/dist/LandingPageSectionTabs-BdtJ_ajh.js +0 -47484
|
@@ -4,26 +4,25 @@ 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 { api as D } from "@huyooo/api";
|
|
7
|
+
import { c as S, g as D } from "./auth-B864DrVx.js";
|
|
9
8
|
import { TiptapEditor as Q, TiptapTitle as W } from "@huyooo/vue-tiptap";
|
|
10
9
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
10
|
/* empty css */
|
|
12
11
|
import { useIntersectionObserver as X } from "@vueuse/core";
|
|
13
|
-
import { u as Y } from "./useMessageNotifications-
|
|
12
|
+
import { u as Y } from "./useMessageNotifications-BUJtc-Us.js";
|
|
14
13
|
import { Icon as Z } from "@iconify/vue";
|
|
15
14
|
import { u as ee } from "./useAuthkitCreateAndUpdate-BpTxxKc0.js";
|
|
16
15
|
import { M as te } from "./Menu-ejsosUdV.js";
|
|
17
16
|
function ne(a) {
|
|
18
|
-
return
|
|
19
|
-
url: `${
|
|
17
|
+
return S({
|
|
18
|
+
url: `${D.prefixUrl}/restfulApi/messageCenter/changelogNotifications/find`,
|
|
20
19
|
method: "post",
|
|
21
20
|
data: a
|
|
22
21
|
});
|
|
23
22
|
}
|
|
24
23
|
function se(a) {
|
|
25
|
-
return
|
|
26
|
-
url: `${
|
|
24
|
+
return S({
|
|
25
|
+
url: `${D.prefixUrl}/restfulApi/messageCenter/changelogNotifications/findOne`,
|
|
27
26
|
method: "post",
|
|
28
27
|
data: a
|
|
29
28
|
});
|
|
@@ -318,15 +317,15 @@ const ie = /* @__PURE__ */ b({
|
|
|
318
317
|
}
|
|
319
318
|
}), Ne = /* @__PURE__ */ C(ke, [["__scopeId", "data-v-e755c9b4"]]);
|
|
320
319
|
function Ce(a) {
|
|
321
|
-
return
|
|
322
|
-
url: `${
|
|
320
|
+
return S({
|
|
321
|
+
url: `${D.prefixUrl}/restfulApi/messageCenter/eventNotifications/find`,
|
|
323
322
|
method: "post",
|
|
324
323
|
data: a
|
|
325
324
|
});
|
|
326
325
|
}
|
|
327
326
|
function $e(a) {
|
|
328
|
-
return
|
|
329
|
-
url: `${
|
|
327
|
+
return S({
|
|
328
|
+
url: `${D.prefixUrl}/restfulApi/messageCenter/eventNotifications/findOne`,
|
|
330
329
|
method: "post",
|
|
331
330
|
data: a
|
|
332
331
|
});
|
|
@@ -573,15 +572,15 @@ const xe = /* @__PURE__ */ b({
|
|
|
573
572
|
}
|
|
574
573
|
}), Ee = /* @__PURE__ */ C(ze, [["__scopeId", "data-v-7310aa38"]]);
|
|
575
574
|
function Fe(a) {
|
|
576
|
-
return
|
|
577
|
-
url: `${
|
|
575
|
+
return S({
|
|
576
|
+
url: `${D.prefixUrl}/restfulApi/messageCenter/noticeNotifications/find`,
|
|
578
577
|
method: "post",
|
|
579
578
|
data: a
|
|
580
579
|
});
|
|
581
580
|
}
|
|
582
581
|
function Ve(a) {
|
|
583
|
-
return
|
|
584
|
-
url: `${
|
|
582
|
+
return S({
|
|
583
|
+
url: `${D.prefixUrl}/restfulApi/messageCenter/noticeNotifications/findOne`,
|
|
585
584
|
method: "post",
|
|
586
585
|
data: a
|
|
587
586
|
});
|
|
@@ -802,14 +801,14 @@ const Ke = /* @__PURE__ */ b({
|
|
|
802
801
|
onCancel: t
|
|
803
802
|
}, null, 8, ["selected-keys", "menus"]));
|
|
804
803
|
}
|
|
805
|
-
}),
|
|
804
|
+
}), dt = /* @__PURE__ */ C(Qe, [["__scopeId", "data-v-dd5fd3b4"]]);
|
|
806
805
|
export {
|
|
807
806
|
Pe as A,
|
|
808
807
|
Ne as C,
|
|
809
808
|
U as D,
|
|
810
809
|
Te as E,
|
|
811
810
|
ce as I,
|
|
812
|
-
|
|
811
|
+
dt as M,
|
|
813
812
|
He as N,
|
|
814
813
|
ae as _,
|
|
815
814
|
Le as a,
|
|
@@ -6,23 +6,22 @@
|
|
|
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 { api as x } from "@huyooo/api";
|
|
9
|
+
import { c as _, g as x } from "./auth-B864DrVx.js";
|
|
11
10
|
import { u as H } from "./useAuthkitCreateAndUpdate-BpTxxKc0.js";
|
|
12
11
|
import { u as j } from "./useTableHandle-DujKY4Bl.js";
|
|
13
12
|
import { f as y } from "./index-Bb-d5pBq.js";
|
|
14
13
|
import { C as q } from "./CustomTable-BGm0KdAy.js";
|
|
15
14
|
import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
15
|
function G(m) {
|
|
17
|
-
return
|
|
18
|
-
url: `${
|
|
16
|
+
return _({
|
|
17
|
+
url: `${x.prefixUrl}/restfulApi/orders/cancel`,
|
|
19
18
|
method: "post",
|
|
20
19
|
data: m
|
|
21
20
|
});
|
|
22
21
|
}
|
|
23
22
|
function J(m) {
|
|
24
|
-
return
|
|
25
|
-
url: `${
|
|
23
|
+
return _({
|
|
24
|
+
url: `${x.prefixUrl}/restfulApi/orders/myOrders`,
|
|
26
25
|
method: "post",
|
|
27
26
|
data: m
|
|
28
27
|
});
|
|
@@ -274,7 +273,7 @@ const K = [{
|
|
|
274
273
|
_: 1
|
|
275
274
|
}, 8, ["visible", "onCancel"]));
|
|
276
275
|
}
|
|
277
|
-
}),
|
|
276
|
+
}), bt = /* @__PURE__ */ F(at, [["__scopeId", "data-v-8d63590c"]]);
|
|
278
277
|
export {
|
|
279
|
-
|
|
278
|
+
bt as S
|
|
280
279
|
};
|
|
@@ -3,18 +3,17 @@
|
|
|
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 { api as y } from "@huyooo/api";
|
|
6
|
+
import { c as U, g as y } from "./auth-B864DrVx.js";
|
|
8
7
|
import { u as B } from "./useTableHandle-DujKY4Bl.js";
|
|
9
8
|
import { C as D } from "./CustomTable-BGm0KdAy.js";
|
|
10
9
|
import { C as E } from "./Clipboard-CIWjWQOZ.js";
|
|
11
|
-
import { a as H } from "./useAuthkitUsersProfile-
|
|
10
|
+
import { a as H } from "./useAuthkitUsersProfile-B1y2nleU.js";
|
|
12
11
|
import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
function $(
|
|
14
|
-
return
|
|
15
|
-
url: `${
|
|
12
|
+
function $(c) {
|
|
13
|
+
return U({
|
|
14
|
+
url: `${y.prefixUrl}/restfulApi/referrer/referees`,
|
|
16
15
|
method: "post",
|
|
17
|
-
data:
|
|
16
|
+
data: c
|
|
18
17
|
});
|
|
19
18
|
}
|
|
20
19
|
const j = {
|
|
@@ -24,13 +23,13 @@ const j = {
|
|
|
24
23
|
}, F = /* @__PURE__ */ z({
|
|
25
24
|
__name: "ReferrerReferees",
|
|
26
25
|
emits: ["cancel"],
|
|
27
|
-
setup(
|
|
26
|
+
setup(c, {
|
|
28
27
|
expose: h,
|
|
29
28
|
emit: b
|
|
30
29
|
}) {
|
|
31
30
|
const x = b, {
|
|
32
31
|
pagination: t,
|
|
33
|
-
dataSource:
|
|
32
|
+
dataSource: f,
|
|
34
33
|
setPage: m
|
|
35
34
|
} = B("被邀请人"), {
|
|
36
35
|
userProfile: s
|
|
@@ -54,7 +53,7 @@ const j = {
|
|
|
54
53
|
}).then(({
|
|
55
54
|
data: e
|
|
56
55
|
}) => {
|
|
57
|
-
o.value = !1,
|
|
56
|
+
o.value = !1, f.value = e.items, t.value.total = e.count;
|
|
58
57
|
}).catch(() => {
|
|
59
58
|
o.value = !1;
|
|
60
59
|
});
|
|
@@ -74,9 +73,9 @@ const j = {
|
|
|
74
73
|
}
|
|
75
74
|
return h({
|
|
76
75
|
setData: P
|
|
77
|
-
}), (e,
|
|
76
|
+
}), (e, l) => (g(), v(a(T), {
|
|
78
77
|
visible: r.value,
|
|
79
|
-
"onUpdate:visible":
|
|
78
|
+
"onUpdate:visible": l[0] || (l[0] = (i) => r.value = i),
|
|
80
79
|
title: "被邀请人详情",
|
|
81
80
|
width: "60%",
|
|
82
81
|
"ok-loading": o.value,
|
|
@@ -86,16 +85,16 @@ const j = {
|
|
|
86
85
|
onCancel: N
|
|
87
86
|
}, {
|
|
88
87
|
default: _(() => {
|
|
89
|
-
var
|
|
90
|
-
return [n("div", j, [
|
|
88
|
+
var i, p;
|
|
89
|
+
return [n("div", j, [l[1] || (l[1] = n("div", {
|
|
91
90
|
class: "invite-code-label"
|
|
92
|
-
}, "我的邀请码:", -1)), n("div", q, [n("span", null, C(((
|
|
91
|
+
}, "我的邀请码:", -1)), n("div", q, [n("span", null, C(((i = a(s)) == null ? void 0 : i.referrerId) || "-"), 1), (p = a(s)) != null && p.referrerId ? (g(), v(E, {
|
|
93
92
|
key: 0,
|
|
94
93
|
value: a(s).referrerId,
|
|
95
94
|
message: "邀请码复制成功"
|
|
96
95
|
}, null, 8, ["value"])) : V("", !0)])]), A(D, {
|
|
97
96
|
columns: k,
|
|
98
|
-
data: a(
|
|
97
|
+
data: a(f),
|
|
99
98
|
loading: o.value,
|
|
100
99
|
pagination: a(t),
|
|
101
100
|
onPageChange: I,
|
|
@@ -110,7 +109,7 @@ const j = {
|
|
|
110
109
|
_: 1
|
|
111
110
|
}, 8, ["visible", "ok-loading"]));
|
|
112
111
|
}
|
|
113
|
-
}),
|
|
112
|
+
}), te = /* @__PURE__ */ M(F, [["__scopeId", "data-v-122fc8d6"]]);
|
|
114
113
|
export {
|
|
115
|
-
|
|
114
|
+
te as R
|
|
116
115
|
};
|
|
@@ -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 "./auth-
|
|
8
|
+
import { u as _ } from "./useUploadCos-Ca4Mo5FD.js";
|
|
9
|
+
import { g as l } from "./auth-B864DrVx.js";
|
|
10
10
|
const O = /* @__PURE__ */ q({
|
|
11
11
|
__name: "Upload",
|
|
12
12
|
props: {
|
|
@@ -5,13 +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, g as q } from "./auth-
|
|
12
|
-
import { c as Ae, A as Me } from "./AuthkitAuthModal-
|
|
13
|
-
import { d as xe } from "./FeedbackModal-
|
|
14
|
-
import { M as Be } from "./MessageHandle-
|
|
8
|
+
import { S as we } from "./PaySubscriptions-DVhnjdi3.js";
|
|
9
|
+
import { R as Ie } from "./ReferrerReferees-Bfu2z-0W.js";
|
|
10
|
+
import { a as N, u as he } from "./useAuthkitUsersProfile-B1y2nleU.js";
|
|
11
|
+
import { u as Ue, g as q } from "./auth-B864DrVx.js";
|
|
12
|
+
import { c as Ae, A as Me } from "./AuthkitAuthModal-P9GI9wIQ.js";
|
|
13
|
+
import { d as xe } from "./FeedbackModal-OsCK3NqC.js";
|
|
14
|
+
import { M as Be } from "./MessageHandle-CdOMmp4n.js";
|
|
15
15
|
/* empty css */
|
|
16
16
|
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
import { _ as J, g as Q, i as Z } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
@@ -2,15 +2,15 @@
|
|
|
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, a as ee } from "./auth-
|
|
7
|
-
import { u as D } from "./useAuthkitAppsAuthPageInfo-
|
|
8
|
-
import { a as O, w as A, b as G, d as W, f as te, c as ne } from "./useSEO-
|
|
9
|
-
import "./useUploadCos-
|
|
5
|
+
import { a as B } from "./useAuthkitUsersProfile-B1y2nleU.js";
|
|
6
|
+
import { u as R, a as ee } from "./auth-B864DrVx.js";
|
|
7
|
+
import { u as D } from "./useAuthkitAppsAuthPageInfo-Ct-ElH04.js";
|
|
8
|
+
import { a as O, w as A, b as G, d as W, f as te, c as ne } from "./useSEO-CFQMgnVq.js";
|
|
9
|
+
import "./useUploadCos-Ca4Mo5FD.js";
|
|
10
10
|
import { useRouter as N, useRoute as F } from "vue-router";
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { d as oe, c as j } from "./UserAccountMenu-
|
|
13
|
+
import { d as oe, c as j } from "./UserAccountMenu-AhID9xxq.js";
|
|
14
14
|
import "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
15
15
|
/* empty css */
|
|
16
16
|
import "./index-Cr5RQSnA.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { Message as u } from "@arco-design/web-vue";
|
|
3
|
-
import
|
|
4
|
-
import { ref as
|
|
5
|
-
function
|
|
3
|
+
import k from "axios";
|
|
4
|
+
import { ref as m } from "vue";
|
|
5
|
+
function S(e, r = 3) {
|
|
6
6
|
const t = e.indexOf("@");
|
|
7
7
|
if (t > 1) {
|
|
8
|
-
const o = e.slice(0, r),
|
|
9
|
-
return o + "***" +
|
|
8
|
+
const o = e.slice(0, r), i = e.slice(t);
|
|
9
|
+
return o + "***" + i;
|
|
10
10
|
}
|
|
11
11
|
return e;
|
|
12
12
|
}
|
|
@@ -17,14 +17,14 @@ function p() {
|
|
|
17
17
|
console.warn("Failed to clear localStorage:", e);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function g() {
|
|
21
21
|
try {
|
|
22
22
|
return localStorage.getItem("refreshToken");
|
|
23
23
|
} catch (e) {
|
|
24
24
|
return console.warn("Failed to get refreshToken from localStorage:", e), null;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function b(e) {
|
|
28
28
|
try {
|
|
29
29
|
localStorage.setItem("jwtToken", e);
|
|
30
30
|
} catch (r) {
|
|
@@ -40,19 +40,25 @@ let s = {
|
|
|
40
40
|
bucket: "ones-1358549778",
|
|
41
41
|
region: "ap-beijing",
|
|
42
42
|
web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
|
|
43
|
-
},
|
|
44
|
-
function S(e) {
|
|
45
|
-
Object.assign(b, e);
|
|
46
|
-
}
|
|
43
|
+
}, T = {};
|
|
47
44
|
function U(e) {
|
|
45
|
+
Object.assign(T, e);
|
|
46
|
+
}
|
|
47
|
+
function B(e) {
|
|
48
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
49
|
}
|
|
50
|
-
const
|
|
51
|
-
function
|
|
50
|
+
const I = m(!1);
|
|
51
|
+
function P() {
|
|
52
52
|
return {
|
|
53
|
-
show:
|
|
53
|
+
show: I
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
+
const n = k.create({
|
|
57
|
+
timeout: 3e4,
|
|
58
|
+
headers: {
|
|
59
|
+
"Content-Type": "application/json"
|
|
60
|
+
}
|
|
61
|
+
});
|
|
56
62
|
let f = !1, d = [];
|
|
57
63
|
function h(e, r = null) {
|
|
58
64
|
d.forEach(({
|
|
@@ -62,17 +68,17 @@ function h(e, r = null) {
|
|
|
62
68
|
e ? o(e) : t(r);
|
|
63
69
|
}), d = [];
|
|
64
70
|
}
|
|
65
|
-
async function
|
|
71
|
+
async function w() {
|
|
66
72
|
var r;
|
|
67
|
-
const e =
|
|
73
|
+
const e = g();
|
|
68
74
|
if (!e)
|
|
69
75
|
throw new Error("No refresh token available");
|
|
70
76
|
try {
|
|
71
|
-
const t = await
|
|
77
|
+
const t = await j(e), {
|
|
72
78
|
data: o
|
|
73
79
|
} = t;
|
|
74
80
|
if (o.success && ((r = o.data) != null && r.jwtToken))
|
|
75
|
-
return
|
|
81
|
+
return b(o.data.jwtToken), o.data.refreshToken && localStorage.setItem("refreshToken", o.data.refreshToken), o.data.jwtToken;
|
|
76
82
|
throw new Error(o.message || "Token refresh failed");
|
|
77
83
|
} catch (t) {
|
|
78
84
|
throw console.error("Token refresh failed:", t), p(), t;
|
|
@@ -81,36 +87,36 @@ async function P() {
|
|
|
81
87
|
n.interceptors.request.use((e) => {
|
|
82
88
|
console.log(e, "configconfig");
|
|
83
89
|
const r = localStorage.getItem("jwtToken");
|
|
84
|
-
return r && (e.headers.authorization = `Bearer ${r}`), e.headers["app-id"] = s.appId, e;
|
|
90
|
+
return r && e.headers && (e.headers.authorization = `Bearer ${r}`), e.headers && (e.headers["app-id"] = s.appId), e;
|
|
85
91
|
}, (e) => Promise.reject(e));
|
|
86
92
|
n.interceptors.response.use(async (e) => {
|
|
87
93
|
const r = (e == null ? void 0 : e.data) || {}, {
|
|
88
94
|
message: t,
|
|
89
95
|
success: o,
|
|
90
|
-
code:
|
|
96
|
+
code: i
|
|
91
97
|
} = r;
|
|
92
98
|
if (console.log(r, "dsdsds"), o)
|
|
93
99
|
return r;
|
|
94
|
-
if (
|
|
100
|
+
if (i === 40101) {
|
|
95
101
|
console.log(e, "response");
|
|
96
102
|
const c = e.config;
|
|
97
103
|
if (f)
|
|
98
|
-
return new Promise((a,
|
|
104
|
+
return new Promise((a, l) => {
|
|
99
105
|
d.push({
|
|
100
106
|
resolve: a,
|
|
101
|
-
reject:
|
|
107
|
+
reject: l
|
|
102
108
|
});
|
|
103
|
-
}).then((a) => (c.headers.authorization = `Bearer ${a}
|
|
109
|
+
}).then((a) => (c.headers && (c.headers.authorization = `Bearer ${a}`), n(c))).catch((a) => Promise.reject(a));
|
|
104
110
|
c._retry = !0, f = !0;
|
|
105
111
|
try {
|
|
106
|
-
const a = await
|
|
107
|
-
return h(null, a), c.headers.authorization = `Bearer ${a}
|
|
112
|
+
const a = await w();
|
|
113
|
+
return h(null, a), c.headers && (c.headers.authorization = `Bearer ${a}`), n(c);
|
|
108
114
|
} catch (a) {
|
|
109
115
|
h(a, null), p();
|
|
110
116
|
const {
|
|
111
|
-
show:
|
|
112
|
-
} =
|
|
113
|
-
return
|
|
117
|
+
show: l
|
|
118
|
+
} = P();
|
|
119
|
+
return l.value = !0, Promise.reject(a);
|
|
114
120
|
} finally {
|
|
115
121
|
f = !1;
|
|
116
122
|
}
|
|
@@ -127,35 +133,35 @@ n.interceptors.response.use(async (e) => {
|
|
|
127
133
|
} else e.request ? (console.error("Error Request:", e.request), u.error("网络错误,请检查网络连接")) : (console.error("Error Message:", e.message), u.error(e.message || "服务错误"));
|
|
128
134
|
return Promise.reject(e);
|
|
129
135
|
});
|
|
130
|
-
function
|
|
136
|
+
function E(e) {
|
|
131
137
|
return n({
|
|
132
138
|
url: `${s.authPrefixUrl}/restfulApi/auth/signIn`,
|
|
133
139
|
method: "post",
|
|
134
140
|
data: e
|
|
135
141
|
});
|
|
136
142
|
}
|
|
137
|
-
function
|
|
143
|
+
function R(e) {
|
|
138
144
|
return n({
|
|
139
145
|
url: `${s.authPrefixUrl}/restfulApi/auth/resetPassword`,
|
|
140
146
|
method: "post",
|
|
141
147
|
data: e
|
|
142
148
|
});
|
|
143
149
|
}
|
|
144
|
-
function
|
|
150
|
+
function $(e) {
|
|
145
151
|
return n({
|
|
146
152
|
url: `${s.authPrefixUrl}/restfulApi/auth/signUp`,
|
|
147
153
|
method: "post",
|
|
148
154
|
data: e
|
|
149
155
|
});
|
|
150
156
|
}
|
|
151
|
-
function
|
|
157
|
+
function q(e) {
|
|
152
158
|
return n({
|
|
153
159
|
url: `${s.authPrefixUrl}/restfulApi/oauth2/authorize`,
|
|
154
160
|
method: "post",
|
|
155
161
|
data: e
|
|
156
162
|
});
|
|
157
163
|
}
|
|
158
|
-
function
|
|
164
|
+
function j(e) {
|
|
159
165
|
return n({
|
|
160
166
|
url: "/restfulApi/auth/refresh",
|
|
161
167
|
method: "post",
|
|
@@ -165,14 +171,15 @@ function w(e) {
|
|
|
165
171
|
});
|
|
166
172
|
}
|
|
167
173
|
export {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
174
|
+
T as a,
|
|
175
|
+
U as b,
|
|
176
|
+
n as c,
|
|
171
177
|
R as d,
|
|
172
|
-
|
|
178
|
+
$ as e,
|
|
179
|
+
E as f,
|
|
173
180
|
s as g,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
181
|
+
S as h,
|
|
182
|
+
q as o,
|
|
183
|
+
B as s,
|
|
184
|
+
P as u
|
|
178
185
|
};
|
package/dist/authkit.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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 "./auth-
|
|
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-P9GI9wIQ.js";
|
|
2
|
+
import { A as y, a as E } from "./AuthkitAuthorize-Bv2MspFC.js";
|
|
3
|
+
import { u as C } from "./useAuthkitAppsAuthPageInfo-Ct-ElH04.js";
|
|
4
|
+
import { u as V, a as b } from "./useAuthkitUsersProfile-B1y2nleU.js";
|
|
5
|
+
import { u as B } from "./auth-B864DrVx.js";
|
|
6
6
|
import { u as j } from "./useAuthkitCreateAndUpdate-BpTxxKc0.js";
|
|
7
7
|
export {
|
|
8
8
|
a as AuthkitAppSetting,
|
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-BACUO8zY.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";
|
|
@@ -92,12 +92,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
92
92
|
default: () => string;
|
|
93
93
|
};
|
|
94
94
|
}>> & Readonly<{}>, {
|
|
95
|
+
responseType: string;
|
|
95
96
|
logo: string;
|
|
96
97
|
title: string;
|
|
97
98
|
state: string;
|
|
98
99
|
redirectUri: string;
|
|
99
100
|
clientId: string;
|
|
100
|
-
responseType: string;
|
|
101
101
|
scope: string;
|
|
102
102
|
userInfo: UserResponseType;
|
|
103
103
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
interface ShowcaseItem {
|
|
3
|
+
image: string;
|
|
4
|
+
alt: string;
|
|
2
5
|
title: string;
|
|
3
6
|
description: string;
|
|
4
|
-
|
|
5
|
-
iconPath: string;
|
|
7
|
+
[key: string]: any;
|
|
6
8
|
}
|
|
7
9
|
interface Props {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
reverse?: boolean;
|
|
10
|
+
items: ShowcaseItem[];
|
|
11
|
+
showControls?: boolean;
|
|
12
|
+
columns?: number;
|
|
13
|
+
cardHeight?: number;
|
|
14
|
+
objectFit?: CSSProperties['objectFit'];
|
|
14
15
|
}
|
|
15
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
17
|
+
cardClick: (item: ShowcaseItem) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
19
|
+
onCardClick?: ((item: ShowcaseItem) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
columns: number;
|
|
22
|
+
objectFit: import("csstype").Property.ObjectFit;
|
|
23
|
+
showControls: boolean;
|
|
24
|
+
cardHeight: number;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
26
|
export default _default;
|
package/dist/composables.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { u as a, a as o } from "./useAuthkitUsersProfile-
|
|
2
|
-
import { g as u, a as r, s as i, b as f, u as n } from "./auth-
|
|
3
|
-
import { u as p } from "./useAuthkitAppsAuthPageInfo-
|
|
1
|
+
import { u as a, a as o } from "./useAuthkitUsersProfile-B1y2nleU.js";
|
|
2
|
+
import { g as u, a as r, s as i, b as f, u as n } from "./auth-B864DrVx.js";
|
|
3
|
+
import { u as p } from "./useAuthkitAppsAuthPageInfo-Ct-ElH04.js";
|
|
4
4
|
import { u as m } from "./useAuthkitCreateAndUpdate-BpTxxKc0.js";
|
|
5
|
-
import { u as d } from "./useMessageNotifications-
|
|
5
|
+
import { u as d } from "./useMessageNotifications-BUJtc-Us.js";
|
|
6
6
|
import { u as x, a as C } from "./useDownloads-BpQUd6AV.js";
|
|
7
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-
|
|
9
|
-
import { u as G } from "./useUploadCos-
|
|
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-CFQMgnVq.js";
|
|
9
|
+
import { u as G } from "./useUploadCos-Ca4Mo5FD.js";
|
|
10
10
|
export {
|
|
11
11
|
w as findMenuPath,
|
|
12
12
|
u as globalConfig,
|
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-
|
|
1
|
+
import { _ as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-OsCK3NqC.js";
|
|
2
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-
|
|
3
|
+
import { F as m, a as n, c as f, b as i, d as p } from "./FeedbackItem-DLJhHHDM.js";
|
|
4
4
|
export {
|
|
5
5
|
r as Clipboard,
|
|
6
6
|
b as FeedbackBubbleEnd,
|