@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
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ref as l, computed as f } from "vue";
|
|
2
|
-
import { f as c } from "./apiClients-D56ALwwO.js";
|
|
3
|
-
import { u as i } from "./useAuthkitAuth-B8aO6aMa.js";
|
|
4
|
-
const o = l(null), u = l(!1), t = l(!1), r = f(() => !!o.value);
|
|
5
|
-
async function v() {
|
|
6
|
-
const {
|
|
7
|
-
getToken: n,
|
|
8
|
-
clearAuth: a
|
|
9
|
-
} = i();
|
|
10
|
-
if (!n()) {
|
|
11
|
-
console.warn("No authentication token found"), o.value = null;
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
u.value = !0, t.value = !1;
|
|
15
|
-
const {
|
|
16
|
-
data: s,
|
|
17
|
-
error: e
|
|
18
|
-
} = await c.users.profile.post({});
|
|
19
|
-
u.value = !1, s ? (o.value = s, t.value = !0) : (o.value = null, t.value = !1, ((e == null ? void 0 : e.code) === 401 || (e == null ? void 0 : e.code) === 40101) && (console.warn("认证已过期,清除认证状态"), a()));
|
|
20
|
-
}
|
|
21
|
-
function d() {
|
|
22
|
-
o.value = null;
|
|
23
|
-
}
|
|
24
|
-
function P() {
|
|
25
|
-
return {
|
|
26
|
-
userProfile: o,
|
|
27
|
-
loading: u,
|
|
28
|
-
usersProfileSuccess: t,
|
|
29
|
-
isLoggedIn: r,
|
|
30
|
-
fetchUserProfile: v,
|
|
31
|
-
clearUserProfile: d
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
P as u
|
|
36
|
-
};
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { ref as y } from "vue";
|
|
2
|
-
import { e as u } from "./apiClients-D56ALwwO.js";
|
|
3
|
-
const b = [{
|
|
4
|
-
key: "pending",
|
|
5
|
-
label: "待支付",
|
|
6
|
-
color: "orange"
|
|
7
|
-
}, {
|
|
8
|
-
key: "paying",
|
|
9
|
-
label: "支付中",
|
|
10
|
-
color: "blue"
|
|
11
|
-
}, {
|
|
12
|
-
key: "paid",
|
|
13
|
-
label: "已支付",
|
|
14
|
-
color: "green"
|
|
15
|
-
}, {
|
|
16
|
-
key: "cancelled",
|
|
17
|
-
label: "已取消",
|
|
18
|
-
color: "gray"
|
|
19
|
-
}, {
|
|
20
|
-
key: "expired",
|
|
21
|
-
label: "已过期",
|
|
22
|
-
color: "red"
|
|
23
|
-
}, {
|
|
24
|
-
key: "refunded",
|
|
25
|
-
label: "已退款",
|
|
26
|
-
color: "purple"
|
|
27
|
-
}], f = [{
|
|
28
|
-
key: "pending",
|
|
29
|
-
label: "待审核",
|
|
30
|
-
color: "orange"
|
|
31
|
-
}, {
|
|
32
|
-
key: "approved",
|
|
33
|
-
label: "已通过",
|
|
34
|
-
color: "blue"
|
|
35
|
-
}, {
|
|
36
|
-
key: "rejected",
|
|
37
|
-
label: "已拒绝",
|
|
38
|
-
color: "gray"
|
|
39
|
-
}, {
|
|
40
|
-
key: "processing",
|
|
41
|
-
label: "退款中",
|
|
42
|
-
color: "blue"
|
|
43
|
-
}, {
|
|
44
|
-
key: "success",
|
|
45
|
-
label: "已退款",
|
|
46
|
-
color: "green"
|
|
47
|
-
}, {
|
|
48
|
-
key: "failed",
|
|
49
|
-
label: "退款失败",
|
|
50
|
-
color: "red"
|
|
51
|
-
}], d = [{
|
|
52
|
-
key: "draft",
|
|
53
|
-
label: "草稿",
|
|
54
|
-
color: "gray"
|
|
55
|
-
}, {
|
|
56
|
-
key: "open",
|
|
57
|
-
label: "待支付",
|
|
58
|
-
color: "orange"
|
|
59
|
-
}, {
|
|
60
|
-
key: "paid",
|
|
61
|
-
label: "已支付",
|
|
62
|
-
color: "green"
|
|
63
|
-
}, {
|
|
64
|
-
key: "void",
|
|
65
|
-
label: "已作废",
|
|
66
|
-
color: "gray"
|
|
67
|
-
}, {
|
|
68
|
-
key: "uncollectible",
|
|
69
|
-
label: "无法收款",
|
|
70
|
-
color: "red"
|
|
71
|
-
}];
|
|
72
|
-
function g(c, o, r, e) {
|
|
73
|
-
var t;
|
|
74
|
-
const i = ((t = o == null ? void 0 : o.toLowerCase) == null ? void 0 : t.call(o)) ?? o, n = c.find((a) => a.key === o || a.key === i);
|
|
75
|
-
return n != null && n[r] ? n[r] : e;
|
|
76
|
-
}
|
|
77
|
-
function p(c, o) {
|
|
78
|
-
const r = y(!1), e = y([]);
|
|
79
|
-
async function i() {
|
|
80
|
-
if (e.value.length > 0)
|
|
81
|
-
return e.value;
|
|
82
|
-
r.value = !0;
|
|
83
|
-
try {
|
|
84
|
-
const {
|
|
85
|
-
data: l,
|
|
86
|
-
error: s
|
|
87
|
-
} = await c();
|
|
88
|
-
return s || !(l != null && l.length) ? (s && console.error("获取状态选项失败:", s), e.value = o, e.value) : (e.value = l, e.value);
|
|
89
|
-
} finally {
|
|
90
|
-
r.value = !1;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
function n() {
|
|
94
|
-
return e.value.length > 0 ? e.value : o;
|
|
95
|
-
}
|
|
96
|
-
function t(l) {
|
|
97
|
-
return g(n(), l, "label", l);
|
|
98
|
-
}
|
|
99
|
-
function a(l) {
|
|
100
|
-
return g(n(), l, "color", "gray");
|
|
101
|
-
}
|
|
102
|
-
return {
|
|
103
|
-
statusOptionsLoading: r,
|
|
104
|
-
statusOptionsList: e,
|
|
105
|
-
statusOptionsApi: i,
|
|
106
|
-
getStatusLabel: t,
|
|
107
|
-
getStatusColor: a
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
function S() {
|
|
111
|
-
return p(async () => u.pointsRecharge.statusOptions.post({}), b);
|
|
112
|
-
}
|
|
113
|
-
function O() {
|
|
114
|
-
return p(async () => u.refund.statusOptions.post({}), f);
|
|
115
|
-
}
|
|
116
|
-
function A() {
|
|
117
|
-
return p(async () => u.invoices.statusOptions.post({}), d);
|
|
118
|
-
}
|
|
119
|
-
export {
|
|
120
|
-
d as I,
|
|
121
|
-
b as P,
|
|
122
|
-
f as R,
|
|
123
|
-
S as a,
|
|
124
|
-
O as b,
|
|
125
|
-
p as c,
|
|
126
|
-
A as u
|
|
127
|
-
};
|