@huyooo/ui 0.17.1 → 0.17.3
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-jfSU-9BO.js → AuthkitAppSetting-Chqg3OI1.js} +1 -1
- package/dist/{AuthkitGithubBinding-Co5Z_cD0.js → AuthkitGithubBinding-Bi1ybbDX.js} +4 -6
- package/dist/{Contact-B09Z0y_t.js → Contact-Dv1CMS3J.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BVtXbwch.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Cumx2rfc.js} +1 -1
- package/dist/{WidthContainer-Ct44rKyS.js → WidthContainer-fMC6ZQEc.js} +3 -3
- package/dist/authkit.js +4 -4
- package/dist/common.js +1 -1
- package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +0 -2
- package/dist/composables/useSEO.d.ts +1 -1
- package/dist/composables.js +4 -4
- package/dist/main.js +10 -10
- package/dist/privateCom.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api/auth.generated.d.ts +0 -8
- package/dist/types/app.d.ts +0 -1
- package/dist/{useAuthkitAppsAuthPageInfo-DWd0bDP-.js → useAuthkitAppsAuthPageInfo-B2F2AKoh.js} +1 -2
- package/dist/{useLegalLinks--qFGF7lO.js → useLegalLinks-DG-SIR3U.js} +1 -1
- package/dist/{useRoutePermission-chEi45Nb.js → useRoutePermission-CV3Wq1_G.js} +1 -1
- package/dist/useSEO-BSMQdBR9.js +158 -0
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/useSEO-C6DLicfe.js +0 -153
|
@@ -474,7 +474,6 @@ export type Api = {
|
|
|
474
474
|
/** 创建新应用 */
|
|
475
475
|
post: {
|
|
476
476
|
body: {
|
|
477
|
-
appKey: string;
|
|
478
477
|
name: string;
|
|
479
478
|
homePageUrl?: string;
|
|
480
479
|
authorizationCallback?: string;
|
|
@@ -499,7 +498,6 @@ export type Api = {
|
|
|
499
498
|
post: {
|
|
500
499
|
body: {
|
|
501
500
|
id: string;
|
|
502
|
-
appKey?: string;
|
|
503
501
|
name?: string;
|
|
504
502
|
homePageUrl?: string;
|
|
505
503
|
authorizationCallback?: string;
|
|
@@ -652,7 +650,6 @@ export type Api = {
|
|
|
652
650
|
pageSize: number;
|
|
653
651
|
where: {
|
|
654
652
|
id?: string;
|
|
655
|
-
appKey?: string;
|
|
656
653
|
name?: string;
|
|
657
654
|
homePageUrl?: string;
|
|
658
655
|
extensions?: Record<string, string>;
|
|
@@ -667,7 +664,6 @@ export type Api = {
|
|
|
667
664
|
body: {
|
|
668
665
|
where: {
|
|
669
666
|
id?: string;
|
|
670
|
-
appKey?: string;
|
|
671
667
|
name?: string;
|
|
672
668
|
homePageUrl?: string;
|
|
673
669
|
extensions?: Record<string, string>;
|
|
@@ -2095,7 +2091,6 @@ export interface ApiClient {
|
|
|
2095
2091
|
create: {
|
|
2096
2092
|
/** 创建新应用 */
|
|
2097
2093
|
post: (body: {
|
|
2098
|
-
appKey: string;
|
|
2099
2094
|
name: string;
|
|
2100
2095
|
homePageUrl?: string;
|
|
2101
2096
|
authorizationCallback?: string;
|
|
@@ -2114,7 +2109,6 @@ export interface ApiClient {
|
|
|
2114
2109
|
/** 更新应用信息 */
|
|
2115
2110
|
post: (body: {
|
|
2116
2111
|
id: string;
|
|
2117
|
-
appKey?: string;
|
|
2118
2112
|
name?: string;
|
|
2119
2113
|
homePageUrl?: string;
|
|
2120
2114
|
authorizationCallback?: string;
|
|
@@ -2228,7 +2222,6 @@ export interface ApiClient {
|
|
|
2228
2222
|
pageSize: number;
|
|
2229
2223
|
where: {
|
|
2230
2224
|
id?: string;
|
|
2231
|
-
appKey?: string;
|
|
2232
2225
|
name?: string;
|
|
2233
2226
|
homePageUrl?: string;
|
|
2234
2227
|
extensions?: Record<string, string>;
|
|
@@ -2240,7 +2233,6 @@ export interface ApiClient {
|
|
|
2240
2233
|
post: (body: {
|
|
2241
2234
|
where: {
|
|
2242
2235
|
id?: string;
|
|
2243
|
-
appKey?: string;
|
|
2244
2236
|
name?: string;
|
|
2245
2237
|
homePageUrl?: string;
|
|
2246
2238
|
extensions?: Record<string, string>;
|
package/dist/types/app.d.ts
CHANGED
package/dist/{useAuthkitAppsAuthPageInfo-DWd0bDP-.js → useAuthkitAppsAuthPageInfo-B2F2AKoh.js}
RENAMED
|
@@ -2,7 +2,6 @@ import { ref as n } from "vue";
|
|
|
2
2
|
import { e as l } from "./apiClients-DrGX2iJy.js";
|
|
3
3
|
const a = n({
|
|
4
4
|
id: "",
|
|
5
|
-
appKey: "",
|
|
6
5
|
name: "",
|
|
7
6
|
description: "",
|
|
8
7
|
homePageUrl: "",
|
|
@@ -87,7 +86,7 @@ const a = n({
|
|
|
87
86
|
}
|
|
88
87
|
}), o = n(!1), t = n(!1);
|
|
89
88
|
function u(e) {
|
|
90
|
-
a.value.id = e.id, a.value.
|
|
89
|
+
a.value.id = e.id, 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
90
|
}
|
|
92
91
|
async function i() {
|
|
93
92
|
o.value = !0, t.value = !1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as c } from "vue";
|
|
2
2
|
import { g as L } from "./apiClients-DrGX2iJy.js";
|
|
3
|
-
import { u as m } from "./useAuthkitAppsAuthPageInfo-
|
|
3
|
+
import { u as m } from "./useAuthkitAppsAuthPageInfo-B2F2AKoh.js";
|
|
4
4
|
const l = {
|
|
5
5
|
userServiceAgreement: "用户服务协议",
|
|
6
6
|
privacyPolicy: "隐私协议",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as w, computed as b, watch as S } from "vue";
|
|
2
2
|
import { useRouter as I, useRoute as T } from "vue-router";
|
|
3
|
-
import { u as k } from "./useAuthkitAppsAuthPageInfo-
|
|
3
|
+
import { u as k } from "./useAuthkitAppsAuthPageInfo-B2F2AKoh.js";
|
|
4
4
|
import { u as M } from "./useAuthkitUsersProfile-BZDk21c8.js";
|
|
5
5
|
const y = w({
|
|
6
6
|
key: "",
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { g } from "./apiClients-DrGX2iJy.js";
|
|
3
|
+
import { Message as f } from "@arco-design/web-vue";
|
|
4
|
+
import { ref as i, getCurrentInstance as w, computed as a } from "vue";
|
|
5
|
+
import { useHead as p, useSeoMeta as m } from "@unhead/vue";
|
|
6
|
+
import { useRoute as v } from "vue-router";
|
|
7
|
+
function C(o) {
|
|
8
|
+
const n = i(!1), t = i(), e = i(!1), s = i(""), u = i("");
|
|
9
|
+
function l(c) {
|
|
10
|
+
f.success(c), e.value = !1, n.value = !1, o("confirm");
|
|
11
|
+
}
|
|
12
|
+
function r() {
|
|
13
|
+
e.value = !1, o("cancel");
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
loading: n,
|
|
17
|
+
formRef: t,
|
|
18
|
+
submitSuccess: l,
|
|
19
|
+
modelType: s,
|
|
20
|
+
changeType: u,
|
|
21
|
+
show: e,
|
|
22
|
+
handleCancel: r
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function I() {
|
|
26
|
+
const o = i([]), n = i(!1), t = i(""), e = i("");
|
|
27
|
+
async function s() {
|
|
28
|
+
n.value = !0, t.value = "";
|
|
29
|
+
try {
|
|
30
|
+
const l = await (await fetch(`${g.onesPrefixUrl}/releases/latest`, {
|
|
31
|
+
method: "POST",
|
|
32
|
+
headers: {
|
|
33
|
+
"Content-Type": "application/json",
|
|
34
|
+
"app-id": g.appId
|
|
35
|
+
},
|
|
36
|
+
body: JSON.stringify({})
|
|
37
|
+
})).json();
|
|
38
|
+
e.value = l.version, o.value = l.downloads.map((r) => {
|
|
39
|
+
const c = {
|
|
40
|
+
id: r.id,
|
|
41
|
+
name: r.name,
|
|
42
|
+
description: r.description,
|
|
43
|
+
version: r.version,
|
|
44
|
+
updateDate: r.updateDate,
|
|
45
|
+
icon: "",
|
|
46
|
+
downloadUrl: r.downloadUrl,
|
|
47
|
+
platform: r.platform,
|
|
48
|
+
requirements: r.requirements
|
|
49
|
+
};
|
|
50
|
+
return r.arch && (c.arch = r.arch), r.badge && (c.badge = r.badge), c;
|
|
51
|
+
});
|
|
52
|
+
} catch {
|
|
53
|
+
t.value = "获取版本信息失败,请刷新重试";
|
|
54
|
+
} finally {
|
|
55
|
+
n.value = !1;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
downloads: o,
|
|
60
|
+
loading: n,
|
|
61
|
+
error: t,
|
|
62
|
+
version: e,
|
|
63
|
+
fetchDownloads: s
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function O() {
|
|
67
|
+
function o(t) {
|
|
68
|
+
m({
|
|
69
|
+
ogSiteName: t.siteName,
|
|
70
|
+
ogLocale: t.locale
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function n(t) {
|
|
74
|
+
const {
|
|
75
|
+
title: e,
|
|
76
|
+
description: s,
|
|
77
|
+
keywords: u,
|
|
78
|
+
image: l,
|
|
79
|
+
url: r,
|
|
80
|
+
type: c = "website"
|
|
81
|
+
} = t, d = s && s.length > 155 ? `${s.substring(0, 152)}...` : s;
|
|
82
|
+
p({
|
|
83
|
+
title: e,
|
|
84
|
+
link: r ? [{
|
|
85
|
+
rel: "canonical",
|
|
86
|
+
href: r
|
|
87
|
+
}] : []
|
|
88
|
+
}), m({
|
|
89
|
+
description: d || s,
|
|
90
|
+
keywords: u,
|
|
91
|
+
ogTitle: e,
|
|
92
|
+
ogDescription: d || s,
|
|
93
|
+
ogType: c === "product" ? void 0 : c,
|
|
94
|
+
// product 类型不被支持,跳过
|
|
95
|
+
ogUrl: r,
|
|
96
|
+
ogImage: l,
|
|
97
|
+
twitterCard: "summary_large_image",
|
|
98
|
+
twitterTitle: e,
|
|
99
|
+
twitterDescription: d || s,
|
|
100
|
+
twitterImage: l
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
setGlobalSEO: o,
|
|
105
|
+
setPageSEO: n
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function U() {
|
|
109
|
+
if (!w())
|
|
110
|
+
return;
|
|
111
|
+
const o = v();
|
|
112
|
+
if (!(o != null && o.meta))
|
|
113
|
+
return;
|
|
114
|
+
const n = () => o.meta;
|
|
115
|
+
p({
|
|
116
|
+
title: a(() => n().title || ""),
|
|
117
|
+
link: a(() => {
|
|
118
|
+
const t = n();
|
|
119
|
+
return t.url ? [{
|
|
120
|
+
rel: "canonical",
|
|
121
|
+
href: t.url
|
|
122
|
+
}] : [];
|
|
123
|
+
})
|
|
124
|
+
}), m({
|
|
125
|
+
description: a(() => {
|
|
126
|
+
const e = n().description;
|
|
127
|
+
if (e)
|
|
128
|
+
return e.length > 155 ? `${e.substring(0, 152)}...` : e;
|
|
129
|
+
}),
|
|
130
|
+
keywords: a(() => n().keywords),
|
|
131
|
+
ogTitle: a(() => n().title),
|
|
132
|
+
ogDescription: a(() => {
|
|
133
|
+
const e = n().description;
|
|
134
|
+
if (e)
|
|
135
|
+
return e.length > 155 ? `${e.substring(0, 152)}...` : e;
|
|
136
|
+
}),
|
|
137
|
+
ogType: a(() => {
|
|
138
|
+
const e = n().type || "website";
|
|
139
|
+
return e === "product" ? void 0 : e;
|
|
140
|
+
}),
|
|
141
|
+
ogUrl: a(() => n().url),
|
|
142
|
+
ogImage: a(() => n().image),
|
|
143
|
+
twitterCard: "summary_large_image",
|
|
144
|
+
twitterTitle: a(() => n().title),
|
|
145
|
+
twitterDescription: a(() => {
|
|
146
|
+
const e = n().description;
|
|
147
|
+
if (e)
|
|
148
|
+
return e.length > 155 ? `${e.substring(0, 152)}...` : e;
|
|
149
|
+
}),
|
|
150
|
+
twitterImage: a(() => n().image)
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
export {
|
|
154
|
+
I as a,
|
|
155
|
+
U as b,
|
|
156
|
+
O as c,
|
|
157
|
+
C as u
|
|
158
|
+
};
|
package/dist/user.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Cumx2rfc.js";
|
|
2
2
|
export {
|
|
3
3
|
a as UserAccountMenu,
|
|
4
4
|
n as UserAvatar,
|
package/package.json
CHANGED
package/dist/useSEO-C6DLicfe.js
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
import { g } from "./apiClients-DrGX2iJy.js";
|
|
3
|
-
import { Message as f } from "@arco-design/web-vue";
|
|
4
|
-
import { ref as i, computed as r } from "vue";
|
|
5
|
-
import { useHead as p, useSeoMeta as m } from "@unhead/vue";
|
|
6
|
-
import { useRoute as w } from "vue-router";
|
|
7
|
-
function S(s) {
|
|
8
|
-
const o = i(!1), t = i(), e = i(!1), a = i(""), u = i("");
|
|
9
|
-
function l(c) {
|
|
10
|
-
f.success(c), e.value = !1, o.value = !1, s("confirm");
|
|
11
|
-
}
|
|
12
|
-
function n() {
|
|
13
|
-
e.value = !1, s("cancel");
|
|
14
|
-
}
|
|
15
|
-
return {
|
|
16
|
-
loading: o,
|
|
17
|
-
formRef: t,
|
|
18
|
-
submitSuccess: l,
|
|
19
|
-
modelType: a,
|
|
20
|
-
changeType: u,
|
|
21
|
-
show: e,
|
|
22
|
-
handleCancel: n
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
function C() {
|
|
26
|
-
const s = i([]), o = i(!1), t = i(""), e = i("");
|
|
27
|
-
async function a() {
|
|
28
|
-
o.value = !0, t.value = "";
|
|
29
|
-
try {
|
|
30
|
-
const l = await (await fetch(`${g.onesPrefixUrl}/releases/latest`, {
|
|
31
|
-
method: "POST",
|
|
32
|
-
headers: {
|
|
33
|
-
"Content-Type": "application/json",
|
|
34
|
-
"app-id": g.appId
|
|
35
|
-
},
|
|
36
|
-
body: JSON.stringify({})
|
|
37
|
-
})).json();
|
|
38
|
-
e.value = l.version, s.value = l.downloads.map((n) => {
|
|
39
|
-
const c = {
|
|
40
|
-
id: n.id,
|
|
41
|
-
name: n.name,
|
|
42
|
-
description: n.description,
|
|
43
|
-
version: n.version,
|
|
44
|
-
updateDate: n.updateDate,
|
|
45
|
-
icon: "",
|
|
46
|
-
downloadUrl: n.downloadUrl,
|
|
47
|
-
platform: n.platform,
|
|
48
|
-
requirements: n.requirements
|
|
49
|
-
};
|
|
50
|
-
return n.arch && (c.arch = n.arch), n.badge && (c.badge = n.badge), c;
|
|
51
|
-
});
|
|
52
|
-
} catch {
|
|
53
|
-
t.value = "获取版本信息失败,请刷新重试";
|
|
54
|
-
} finally {
|
|
55
|
-
o.value = !1;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
downloads: s,
|
|
60
|
-
loading: o,
|
|
61
|
-
error: t,
|
|
62
|
-
version: e,
|
|
63
|
-
fetchDownloads: a
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function O() {
|
|
67
|
-
function s(t) {
|
|
68
|
-
m({
|
|
69
|
-
ogSiteName: t.siteName,
|
|
70
|
-
ogLocale: t.locale
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function o(t) {
|
|
74
|
-
const {
|
|
75
|
-
title: e,
|
|
76
|
-
description: a,
|
|
77
|
-
keywords: u,
|
|
78
|
-
image: l,
|
|
79
|
-
url: n,
|
|
80
|
-
type: c = "website"
|
|
81
|
-
} = t, d = a && a.length > 155 ? `${a.substring(0, 152)}...` : a;
|
|
82
|
-
p({
|
|
83
|
-
title: e,
|
|
84
|
-
link: n ? [{
|
|
85
|
-
rel: "canonical",
|
|
86
|
-
href: n
|
|
87
|
-
}] : []
|
|
88
|
-
}), m({
|
|
89
|
-
description: d || a,
|
|
90
|
-
keywords: u,
|
|
91
|
-
ogTitle: e,
|
|
92
|
-
ogDescription: d || a,
|
|
93
|
-
ogType: c === "product" ? void 0 : c,
|
|
94
|
-
// product 类型不被支持,跳过
|
|
95
|
-
ogUrl: n,
|
|
96
|
-
ogImage: l,
|
|
97
|
-
twitterCard: "summary_large_image",
|
|
98
|
-
twitterTitle: e,
|
|
99
|
-
twitterDescription: d || a,
|
|
100
|
-
twitterImage: l
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
return {
|
|
104
|
-
setGlobalSEO: s,
|
|
105
|
-
setPageSEO: o
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
function U() {
|
|
109
|
-
const s = w(), o = () => s.meta;
|
|
110
|
-
p({
|
|
111
|
-
title: r(() => o().title || ""),
|
|
112
|
-
link: r(() => {
|
|
113
|
-
const t = o();
|
|
114
|
-
return t.url ? [{
|
|
115
|
-
rel: "canonical",
|
|
116
|
-
href: t.url
|
|
117
|
-
}] : [];
|
|
118
|
-
})
|
|
119
|
-
}), m({
|
|
120
|
-
description: r(() => {
|
|
121
|
-
const e = o().description;
|
|
122
|
-
if (e)
|
|
123
|
-
return e.length > 155 ? `${e.substring(0, 152)}...` : e;
|
|
124
|
-
}),
|
|
125
|
-
keywords: r(() => o().keywords),
|
|
126
|
-
ogTitle: r(() => o().title),
|
|
127
|
-
ogDescription: r(() => {
|
|
128
|
-
const e = o().description;
|
|
129
|
-
if (e)
|
|
130
|
-
return e.length > 155 ? `${e.substring(0, 152)}...` : e;
|
|
131
|
-
}),
|
|
132
|
-
ogType: r(() => {
|
|
133
|
-
const e = o().type || "website";
|
|
134
|
-
return e === "product" ? void 0 : e;
|
|
135
|
-
}),
|
|
136
|
-
ogUrl: r(() => o().url),
|
|
137
|
-
ogImage: r(() => o().image),
|
|
138
|
-
twitterCard: "summary_large_image",
|
|
139
|
-
twitterTitle: r(() => o().title),
|
|
140
|
-
twitterDescription: r(() => {
|
|
141
|
-
const e = o().description;
|
|
142
|
-
if (e)
|
|
143
|
-
return e.length > 155 ? `${e.substring(0, 152)}...` : e;
|
|
144
|
-
}),
|
|
145
|
-
twitterImage: r(() => o().image)
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
export {
|
|
149
|
-
C as a,
|
|
150
|
-
U as b,
|
|
151
|
-
O as c,
|
|
152
|
-
S as u
|
|
153
|
-
};
|