@huyooo/ui 0.13.6 → 0.13.9
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/{AuthkitAppSetting-EL2ZvAVT.js → AuthkitAppSetting-Xe-QQSQ4.js} +405 -408
- package/dist/{AuthkitGithubBinding-Ba9sbNEh.js → AuthkitGithubBinding-CK6ijijV.js} +330 -331
- package/dist/{Clipboard-CdJtMvg6.js → Clipboard-C8ncjaAJ.js} +1 -1
- package/dist/{Contact-Z2VFVeKK.js → Contact-mb7deQOs.js} +2 -2
- package/dist/CustomTable-BT-cnhLR.js +280 -0
- package/dist/{FeedbackItem-B_MDdk4s.js → FeedbackItem-C9FQThXG.js} +3 -3
- package/dist/{FeedbackModal-qrcBDDQM.js → FeedbackModal-R3NKRxr7.js} +3 -3
- package/dist/{MessageHandle-Y96z-IXv.js → MessageHandle-CVueKPFG.js} +2 -2
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-CfmjFcay.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DL4qP8DA.js} +2 -2
- package/dist/{PaySubscriptions-C75OtmYw.js → PaySubscriptions-BkZaeTgv.js} +5 -5
- package/dist/{PricingPlans-DCYIVuuT.js → PricingPlans-B-GWpft_.js} +4 -4
- package/dist/{ReferrerReferees-8eSsuPfa.js → ReferrerReferees-DFCwvXJ6.js} +5 -5
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-BAibfVEN.js → Upload.vue_vue_type_script_setup_true_lang-dLSky4Yx.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BEVmBNlU.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Iwq1MOFa.js} +33 -34
- package/dist/WidthContainer-jOX17pDu.js +691 -0
- package/dist/api/billingSubscriptionApi.d.ts +3 -0
- package/dist/{apiClients-D56ALwwO.js → apiClients-CkI47p36.js} +11 -7
- package/dist/authkit.js +9 -9
- package/dist/common.js +2 -2
- package/dist/composables/Authkit/resolveRoutePermission.d.ts +4 -0
- package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +1 -1
- package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +1 -1
- package/dist/composables/useMessageList.d.ts +2 -2
- package/dist/composables.js +13 -13
- package/dist/feedback.js +3 -3
- package/dist/main.js +32 -32
- package/dist/message.js +3 -3
- package/dist/pay.js +4 -4
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api/ai.generated.d.ts +3248 -335
- package/dist/types/api/billing.generated.d.ts +2162 -500
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-RMs8sOwk.js → useAuthkitAppsAuthPageInfo-nCjfAjiw.js} +17 -7
- package/dist/{useAuthkitAuth-B8aO6aMa.js → useAuthkitAuth-C--qS6UE.js} +1 -1
- package/dist/useAuthkitCreateAndUpdate-u-ceTc-m.js +25 -0
- package/dist/useAuthkitUsersProfile-BC5EsA2f.js +40 -0
- package/dist/useBillingStatusOptions-D5Ehwtbj.js +145 -0
- package/dist/{useDownloads-DqF1USJ7.js → useDownloads-BC0QyEFr.js} +10 -10
- package/dist/{useEnsureAuthenticated-D99GiwEk.js → useEnsureAuthenticated-C4tsSfv6.js} +2 -2
- package/dist/{useLegalLinks-DRTOYp3n.js → useLegalLinks-DeXLE-yv.js} +2 -2
- package/dist/{useMessageNotifications-CUpk6zCE.js → useMessageNotifications-BMUx5xfX.js} +1 -1
- package/dist/{useSEO-CUKPmGRx.js → useSEO-BWAREYk4.js} +238 -227
- package/dist/{useSubscriptionCheckout-CAgy1CFj.js → useSubscriptionCheckout-CHAF20s-.js} +102 -108
- package/dist/{useTableHandle-CCKjahT0.js → useTableHandle-9alnSWt0.js} +1 -1
- package/dist/{useUploadCos-Bxctd4E6.js → useUploadCos-DGPnLOC9.js} +1 -1
- package/dist/user.js +1 -1
- package/package.json +3 -2
- package/dist/CustomTable-BBcd4nNL.js +0 -278
- package/dist/WidthContainer-Dqf_-qGk.js +0 -694
- package/dist/useAuthkitCreateAndUpdate-DkiLs143.js +0 -25
- package/dist/useAuthkitUsersProfile-CWAr0CNv.js +0 -36
- package/dist/useBillingStatusOptions-CottFcAr.js +0 -127
package/dist/upload.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { u as s } from "./useUploadCos-
|
|
1
|
+
import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-dLSky4Yx.js";
|
|
2
|
+
import { u as s } from "./useUploadCos-DGPnLOC9.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Upload,
|
|
5
5
|
s as useUploadCos
|
package/dist/{useAuthkitAppsAuthPageInfo-RMs8sOwk.js → useAuthkitAppsAuthPageInfo-nCjfAjiw.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as n } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { e as l } from "./apiClients-CkI47p36.js";
|
|
3
3
|
const a = n({
|
|
4
4
|
id: "",
|
|
5
5
|
appKey: "",
|
|
@@ -86,17 +86,27 @@ const a = n({
|
|
|
86
86
|
backgroundImage: "/66a0d5b35203890887f0e1a4/6714e2458fe86895bf3da8ae/1ef8ed72-1731-6e00-93d1-fa24165f1a3e.webp"
|
|
87
87
|
}
|
|
88
88
|
}), o = n(!1), t = n(!1);
|
|
89
|
-
function
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
function u(e) {
|
|
90
|
+
a.value.id = e.id, a.value.appKey = e.appKey, a.value.name = e.name, a.value.description = e.description, a.value.homePageUrl = e.homePageUrl, a.value.applicationLogo = e.applicationLogo, a.value.applicationLogoUrl = e.applicationLogoUrl, a.value.publicRoutes = e.publicRoutes || [], a.value.oauth = e.oauth, a.value.authMethods = e.authMethods || a.value.authMethods, a.value.authorizationCallback = e.authorizationCallback, a.value.aboutUs = e.aboutUs, a.value.brand = e.brand;
|
|
91
|
+
}
|
|
92
|
+
async function i() {
|
|
93
|
+
o.value = !0, t.value = !1;
|
|
94
|
+
try {
|
|
92
95
|
const {
|
|
93
96
|
data: e
|
|
94
|
-
} = await
|
|
95
|
-
|
|
97
|
+
} = await l.apps.authPageInfo.post({});
|
|
98
|
+
e && (u(e), t.value = !0);
|
|
99
|
+
} finally {
|
|
100
|
+
o.value = !1;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function r() {
|
|
104
|
+
async function e() {
|
|
105
|
+
t.value || o.value || await i();
|
|
96
106
|
}
|
|
97
107
|
return {
|
|
98
108
|
appsData: a,
|
|
99
|
-
appsAuthPageInfoApi:
|
|
109
|
+
appsAuthPageInfoApi: e,
|
|
100
110
|
appsAuthPageInfoLoading: o,
|
|
101
111
|
appsAuthPageInfoSuccess: t
|
|
102
112
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as s, readonly as P } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { e as c } from "./apiClients-CkI47p36.js";
|
|
3
3
|
const a = s("signIn"), m = /* @__PURE__ */ new Set(), I = /* @__PURE__ */ new Set(), S = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set(), t = s(null), p = "jwtToken";
|
|
4
4
|
function k() {
|
|
5
5
|
try {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import "./apiClients-CkI47p36.js";
|
|
3
|
+
import { Message as u } from "@arco-design/web-vue";
|
|
4
|
+
import { ref as e } from "vue";
|
|
5
|
+
function h(o) {
|
|
6
|
+
const n = e(!1), t = e(), s = e(!1), a = e(""), c = e("");
|
|
7
|
+
function f(r) {
|
|
8
|
+
u.success(r), s.value = !1, n.value = !1, o("confirm");
|
|
9
|
+
}
|
|
10
|
+
function l() {
|
|
11
|
+
s.value = !1, o("cancel");
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
loading: n,
|
|
15
|
+
formRef: t,
|
|
16
|
+
submitSuccess: f,
|
|
17
|
+
modelType: a,
|
|
18
|
+
changeType: c,
|
|
19
|
+
show: s,
|
|
20
|
+
handleCancel: l
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
h as u
|
|
25
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ref as o, computed as r } from "vue";
|
|
2
|
+
import { e as f } from "./apiClients-CkI47p36.js";
|
|
3
|
+
import { u as i } from "./useAuthkitAuth-C--qS6UE.js";
|
|
4
|
+
const t = o(null), l = o(!1), u = o(!1), c = r(() => !!t.value);
|
|
5
|
+
async function v() {
|
|
6
|
+
const {
|
|
7
|
+
getToken: a,
|
|
8
|
+
clearAuth: s
|
|
9
|
+
} = i();
|
|
10
|
+
if (!a()) {
|
|
11
|
+
console.warn("No authentication token found"), t.value = null, u.value = !0;
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
l.value = !0, u.value = !1;
|
|
15
|
+
try {
|
|
16
|
+
const {
|
|
17
|
+
data: n,
|
|
18
|
+
error: e
|
|
19
|
+
} = await f.users.profile.post({});
|
|
20
|
+
n ? t.value = n : (t.value = null, ((e == null ? void 0 : e.code) === 401 || (e == null ? void 0 : e.code) === 40101) && (console.warn("认证已过期,清除认证状态"), s()));
|
|
21
|
+
} finally {
|
|
22
|
+
l.value = !1, u.value = !0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function d() {
|
|
26
|
+
t.value = null, u.value = !0;
|
|
27
|
+
}
|
|
28
|
+
function P() {
|
|
29
|
+
return {
|
|
30
|
+
userProfile: t,
|
|
31
|
+
loading: l,
|
|
32
|
+
usersProfileReady: u,
|
|
33
|
+
isLoggedIn: c,
|
|
34
|
+
fetchUserProfile: v,
|
|
35
|
+
clearUserProfile: d
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
P as u
|
|
40
|
+
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { createClient as y } from "@vafast/api-client";
|
|
2
|
+
import { g as f, h as b, t as k, i as v, j as S, f as u } from "./apiClients-CkI47p36.js";
|
|
3
|
+
import { ref as g } from "vue";
|
|
4
|
+
async function O(t, o) {
|
|
5
|
+
const {
|
|
6
|
+
data: r,
|
|
7
|
+
error: e
|
|
8
|
+
} = await A.request("POST", t, o);
|
|
9
|
+
if (e)
|
|
10
|
+
throw new Error(e.message ?? "请求失败");
|
|
11
|
+
if (r == null)
|
|
12
|
+
throw new Error("请求失败");
|
|
13
|
+
return r;
|
|
14
|
+
}
|
|
15
|
+
const A = y({
|
|
16
|
+
baseURL: f.billingPrefixUrl,
|
|
17
|
+
timeout: 3e4
|
|
18
|
+
}).use(b).use(k).use(v).use(S), m = {
|
|
19
|
+
productOptions: () => O("/products/options")
|
|
20
|
+
}, w = [{
|
|
21
|
+
key: "pending",
|
|
22
|
+
label: "待支付",
|
|
23
|
+
color: "orange"
|
|
24
|
+
}, {
|
|
25
|
+
key: "paying",
|
|
26
|
+
label: "支付中",
|
|
27
|
+
color: "blue"
|
|
28
|
+
}, {
|
|
29
|
+
key: "paid",
|
|
30
|
+
label: "已支付",
|
|
31
|
+
color: "green"
|
|
32
|
+
}, {
|
|
33
|
+
key: "cancelled",
|
|
34
|
+
label: "已取消",
|
|
35
|
+
color: "gray"
|
|
36
|
+
}, {
|
|
37
|
+
key: "expired",
|
|
38
|
+
label: "已过期",
|
|
39
|
+
color: "red"
|
|
40
|
+
}, {
|
|
41
|
+
key: "refunded",
|
|
42
|
+
label: "已退款",
|
|
43
|
+
color: "purple"
|
|
44
|
+
}], L = [{
|
|
45
|
+
key: "pending",
|
|
46
|
+
label: "待审核",
|
|
47
|
+
color: "orange"
|
|
48
|
+
}, {
|
|
49
|
+
key: "approved",
|
|
50
|
+
label: "已通过",
|
|
51
|
+
color: "blue"
|
|
52
|
+
}, {
|
|
53
|
+
key: "rejected",
|
|
54
|
+
label: "已拒绝",
|
|
55
|
+
color: "gray"
|
|
56
|
+
}, {
|
|
57
|
+
key: "processing",
|
|
58
|
+
label: "退款中",
|
|
59
|
+
color: "blue"
|
|
60
|
+
}, {
|
|
61
|
+
key: "success",
|
|
62
|
+
label: "已退款",
|
|
63
|
+
color: "green"
|
|
64
|
+
}, {
|
|
65
|
+
key: "failed",
|
|
66
|
+
label: "退款失败",
|
|
67
|
+
color: "red"
|
|
68
|
+
}], C = [{
|
|
69
|
+
key: "draft",
|
|
70
|
+
label: "草稿",
|
|
71
|
+
color: "gray"
|
|
72
|
+
}, {
|
|
73
|
+
key: "open",
|
|
74
|
+
label: "待支付",
|
|
75
|
+
color: "orange"
|
|
76
|
+
}, {
|
|
77
|
+
key: "paid",
|
|
78
|
+
label: "已支付",
|
|
79
|
+
color: "green"
|
|
80
|
+
}, {
|
|
81
|
+
key: "void",
|
|
82
|
+
label: "已作废",
|
|
83
|
+
color: "gray"
|
|
84
|
+
}, {
|
|
85
|
+
key: "uncollectible",
|
|
86
|
+
label: "无法收款",
|
|
87
|
+
color: "red"
|
|
88
|
+
}];
|
|
89
|
+
function d(t, o, r, e) {
|
|
90
|
+
var a;
|
|
91
|
+
const s = ((a = o == null ? void 0 : o.toLowerCase) == null ? void 0 : a.call(o)) ?? o, l = t.find((i) => i.key === o || i.key === s);
|
|
92
|
+
return l != null && l[r] ? l[r] : e;
|
|
93
|
+
}
|
|
94
|
+
function p(t, o) {
|
|
95
|
+
const r = g(!1), e = g([]);
|
|
96
|
+
async function s() {
|
|
97
|
+
if (e.value.length > 0)
|
|
98
|
+
return e.value;
|
|
99
|
+
r.value = !0;
|
|
100
|
+
try {
|
|
101
|
+
const {
|
|
102
|
+
data: n,
|
|
103
|
+
error: c
|
|
104
|
+
} = await t();
|
|
105
|
+
return c || !(n != null && n.length) ? (c && console.error("获取状态选项失败:", c), e.value = o, e.value) : (e.value = n, e.value);
|
|
106
|
+
} finally {
|
|
107
|
+
r.value = !1;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function l() {
|
|
111
|
+
return e.value.length > 0 ? e.value : o;
|
|
112
|
+
}
|
|
113
|
+
function a(n) {
|
|
114
|
+
return d(l(), n, "label", n);
|
|
115
|
+
}
|
|
116
|
+
function i(n) {
|
|
117
|
+
return d(l(), n, "color", "gray");
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
statusOptionsLoading: r,
|
|
121
|
+
statusOptionsList: e,
|
|
122
|
+
statusOptionsApi: s,
|
|
123
|
+
getStatusLabel: a,
|
|
124
|
+
getStatusColor: i
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function _() {
|
|
128
|
+
return p(async () => u.pointsRecharge.statusOptions.post({}), w);
|
|
129
|
+
}
|
|
130
|
+
function E() {
|
|
131
|
+
return p(async () => u.refund.statusOptions.post({}), L);
|
|
132
|
+
}
|
|
133
|
+
function I() {
|
|
134
|
+
return p(async () => u.invoices.statusOptions.post({}), C);
|
|
135
|
+
}
|
|
136
|
+
export {
|
|
137
|
+
C as I,
|
|
138
|
+
w as P,
|
|
139
|
+
L as R,
|
|
140
|
+
_ as a,
|
|
141
|
+
E as b,
|
|
142
|
+
p as c,
|
|
143
|
+
m as d,
|
|
144
|
+
I as u
|
|
145
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { g as f } from "./apiClients-
|
|
2
|
+
import { g as f } from "./apiClients-CkI47p36.js";
|
|
3
3
|
import { Message as u } from "@arco-design/web-vue";
|
|
4
|
-
import { ref as
|
|
4
|
+
import { ref as e } from "vue";
|
|
5
5
|
function h(s) {
|
|
6
|
-
const
|
|
6
|
+
const o = e(!1), r = e(), n = e(!1), c = e(""), d = e("");
|
|
7
7
|
function t(l) {
|
|
8
|
-
u.success(l), n.value = !1,
|
|
8
|
+
u.success(l), n.value = !1, o.value = !1, s("confirm");
|
|
9
9
|
}
|
|
10
10
|
function a() {
|
|
11
|
-
n.value = !1,
|
|
11
|
+
n.value = !1, s("cancel");
|
|
12
12
|
}
|
|
13
13
|
return {
|
|
14
|
-
loading:
|
|
14
|
+
loading: o,
|
|
15
15
|
formRef: r,
|
|
16
16
|
submitSuccess: t,
|
|
17
17
|
modelType: c,
|
|
@@ -21,9 +21,9 @@ function h(s) {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
function w() {
|
|
24
|
-
const s =
|
|
24
|
+
const s = e([]), o = e(!1), r = e(""), n = e("");
|
|
25
25
|
async function c() {
|
|
26
|
-
|
|
26
|
+
o.value = !0, r.value = "";
|
|
27
27
|
try {
|
|
28
28
|
const t = await (await fetch(`${f.onesPrefixUrl}/releases/latest`, {
|
|
29
29
|
method: "POST",
|
|
@@ -50,12 +50,12 @@ function w() {
|
|
|
50
50
|
} catch {
|
|
51
51
|
r.value = "获取版本信息失败,请刷新重试";
|
|
52
52
|
} finally {
|
|
53
|
-
|
|
53
|
+
o.value = !1;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
return {
|
|
57
57
|
downloads: s,
|
|
58
|
-
loading:
|
|
58
|
+
loading: o,
|
|
59
59
|
error: r,
|
|
60
60
|
version: n,
|
|
61
61
|
fetchDownloads: c
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as f } from "vue";
|
|
2
|
-
import { u as r } from "./useAuthkitAuth-
|
|
3
|
-
import { u as d } from "./apiClients-
|
|
2
|
+
import { u as r } from "./useAuthkitAuth-C--qS6UE.js";
|
|
3
|
+
import { u as d } from "./apiClients-CkI47p36.js";
|
|
4
4
|
const A = "jwtToken";
|
|
5
5
|
let e = null, i = !1;
|
|
6
6
|
async function h(n) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as c } from "vue";
|
|
2
|
-
import { g as L } from "./apiClients-
|
|
3
|
-
import { u as m } from "./useAuthkitAppsAuthPageInfo-
|
|
2
|
+
import { g as L } from "./apiClients-CkI47p36.js";
|
|
3
|
+
import { u as m } from "./useAuthkitAppsAuthPageInfo-nCjfAjiw.js";
|
|
4
4
|
const l = {
|
|
5
5
|
userServiceAgreement: "用户服务协议",
|
|
6
6
|
privacyPolicy: "隐私协议",
|