@huyooo/ui 0.13.8 → 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-u2kUUH6q.js → AuthkitAppSetting-Xe-QQSQ4.js} +403 -406
- package/dist/{AuthkitGithubBinding-B-YSWc50.js → AuthkitGithubBinding-CK6ijijV.js} +329 -330
- package/dist/{Contact-CIMfdt_b.js → Contact-mb7deQOs.js} +1 -1
- package/dist/CustomTable-BT-cnhLR.js +280 -0
- package/dist/{MessageHandle-D2dcvWVr.js → MessageHandle-CVueKPFG.js} +1 -1
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-CSAIRPOj.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DL4qP8DA.js} +1 -1
- package/dist/{PaySubscriptions-BaUlQE-p.js → PaySubscriptions-BkZaeTgv.js} +2 -2
- package/dist/{PricingPlans-B0nt843Q.js → PricingPlans-B-GWpft_.js} +1 -1
- package/dist/{ReferrerReferees-B50_V69q.js → ReferrerReferees-DFCwvXJ6.js} +2 -2
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BHXLN2Tu.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Iwq1MOFa.js} +5 -5
- package/dist/WidthContainer-jOX17pDu.js +691 -0
- package/dist/authkit.js +6 -6
- 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.js +6 -6
- package/dist/main.js +19 -19
- package/dist/message.js +2 -2
- package/dist/pay.js +2 -2
- 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 +378 -247
- package/dist/types/api/billing.generated.d.ts +1105 -374
- package/dist/{useAuthkitAppsAuthPageInfo-CjPdpZ64.js → useAuthkitAppsAuthPageInfo-nCjfAjiw.js} +17 -7
- package/dist/useAuthkitCreateAndUpdate-u-ceTc-m.js +25 -0
- package/dist/useAuthkitUsersProfile-BC5EsA2f.js +40 -0
- package/dist/{useDownloads-CxoyuqyY.js → useDownloads-BC0QyEFr.js} +9 -9
- package/dist/{useLegalLinks-DHqsVvIK.js → useLegalLinks-DeXLE-yv.js} +1 -1
- package/dist/{useSEO-DypqLVfr.js → useSEO-BWAREYk4.js} +238 -227
- package/dist/user.js +1 -1
- package/package.json +2 -1
- package/dist/CustomTable-BBcd4nNL.js +0 -278
- package/dist/WidthContainer-BQIboxrg.js +0 -695
- package/dist/useAuthkitCreateAndUpdate-CsYn-oYu.js +0 -25
- package/dist/useAuthkitUsersProfile-CIFqG3gd.js +0 -36
package/dist/{useAuthkitAppsAuthPageInfo-CjPdpZ64.js → useAuthkitAppsAuthPageInfo-nCjfAjiw.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as n } from "vue";
|
|
2
|
-
import { e as
|
|
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
|
};
|
|
@@ -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
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* empty css */
|
|
2
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 c } from "vue";
|
|
2
2
|
import { g as L } from "./apiClients-CkI47p36.js";
|
|
3
|
-
import { u as m } from "./useAuthkitAppsAuthPageInfo-
|
|
3
|
+
import { u as m } from "./useAuthkitAppsAuthPageInfo-nCjfAjiw.js";
|
|
4
4
|
const l = {
|
|
5
5
|
userServiceAgreement: "用户服务协议",
|
|
6
6
|
privacyPolicy: "隐私协议",
|