@huyooo/ui 0.4.89 → 0.4.90
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-CIbwFN8S.js → AuthkitAuthModal-4u1nye5k.js} +1 -1
- package/dist/{AuthkitAuthorize-RvYEB3VO.js → AuthkitAuthorize-ScwqrsOC.js} +1 -1
- package/dist/{UserAccountMenu-BR-ms1Pp.js → UserAccountMenu-DDyh3Rjo.js} +2 -2
- package/dist/authkit.d.ts +1 -0
- package/dist/authkit.js +3 -3
- package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +24 -65
- package/dist/composables.js +1 -1
- package/dist/index.js +4 -4
- package/dist/types/app.d.ts +54 -0
- package/dist/{useAuthkitAppsAuthPageInfo-Ria0l-Pk.js → useAuthkitAppsAuthPageInfo-Dy0Snk6O.js} +8 -7
- package/dist/user.js +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ import { _ as Se, g as ke, i as Ae } from "./plugin-vue_export-helper-LjDO2Zua.j
|
|
|
13
13
|
import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
import { M as Pe } from "./Menu-Cxo8Rpu3.js";
|
|
15
15
|
import { u as Ie } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
|
|
16
|
-
import { u as J, a as Ve } from "./useAuthkitAppsAuthPageInfo-
|
|
16
|
+
import { u as J, a as Ve } from "./useAuthkitAppsAuthPageInfo-Dy0Snk6O.js";
|
|
17
17
|
/* empty css */
|
|
18
18
|
import { api as H } from "@huyooo/api";
|
|
19
19
|
import { Icon as Ue } from "@iconify/vue";
|
|
@@ -8,7 +8,7 @@ import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { List as w, ListItem as d, ListItemMeta as p, Avatar as c, Button as x } from "@arco-design/web-vue";
|
|
11
|
-
import { b as $ } from "./useAuthkitAppsAuthPageInfo-
|
|
11
|
+
import { b as $ } from "./useAuthkitAppsAuthPageInfo-Dy0Snk6O.js";
|
|
12
12
|
import { o as T } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
|
|
13
13
|
const U = {
|
|
14
14
|
class: "header"
|
|
@@ -7,9 +7,9 @@ import { Tag as Ce, Button as X, Avatar as Y, Dropdown as $e, Divider as G, Dopt
|
|
|
7
7
|
import { S as we } from "./PaySubscriptions-l6VlqvBy.js";
|
|
8
8
|
import { R as Ie } from "./ReferrerReferees-BclAtmgX.js";
|
|
9
9
|
import { a as N, u as he } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
|
|
10
|
-
import { a as Ue } from "./useAuthkitAppsAuthPageInfo-
|
|
10
|
+
import { a as Ue } from "./useAuthkitAppsAuthPageInfo-Dy0Snk6O.js";
|
|
11
11
|
import { g as q } from "./globalConfig-DZIhLe1R.js";
|
|
12
|
-
import { c as Ae, A as Me } from "./AuthkitAuthModal-
|
|
12
|
+
import { c as Ae, A as Me } from "./AuthkitAuthModal-4u1nye5k.js";
|
|
13
13
|
import { d as xe } from "./FeedbackModal-D1htK7xY.js";
|
|
14
14
|
import { M as Be } from "./MessageHandle-DkNum5-u.js";
|
|
15
15
|
/* empty css */
|
package/dist/authkit.d.ts
CHANGED
|
@@ -28,3 +28,4 @@ export { useAuthkitAuthModal } from './composables/Authkit/useAuthkitAuthModal';
|
|
|
28
28
|
export { useAuthkitUsersProfile } from './composables/Authkit/useAuthkitUsersProfile';
|
|
29
29
|
export { useAuthkitCreateAndUpdate } from './composables/Authkit/useAuthkitCreateAndUpdate';
|
|
30
30
|
export type * from './types/auth';
|
|
31
|
+
export type { AppsData, PublicRoute } from './types/app';
|
package/dist/authkit.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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 k, _ as o, 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, a as R } from "./useAuthkitAppsAuthPageInfo-
|
|
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 k, _ as o, 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-4u1nye5k.js";
|
|
2
|
+
import { A as y, a as E } from "./AuthkitAuthorize-ScwqrsOC.js";
|
|
3
|
+
import { u as C, a as R } from "./useAuthkitAppsAuthPageInfo-Dy0Snk6O.js";
|
|
4
4
|
import { u as b, a as v } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
|
|
5
5
|
import { u as M } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
|
|
6
6
|
export {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AppsData } from '../../types/app';
|
|
1
2
|
export declare function useAuthkitAppsAuthPageInfo(): {
|
|
2
3
|
appsData: import('vue').Ref<{
|
|
3
4
|
id: string;
|
|
@@ -7,6 +8,12 @@ export declare function useAuthkitAppsAuthPageInfo(): {
|
|
|
7
8
|
homePageUrl: string;
|
|
8
9
|
applicationLogo: string;
|
|
9
10
|
applicationLogoUrl: string;
|
|
11
|
+
publicRoutes: {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
permissionKey: string;
|
|
15
|
+
description: string;
|
|
16
|
+
}[];
|
|
10
17
|
oauth: {
|
|
11
18
|
google: {
|
|
12
19
|
enabled: boolean;
|
|
@@ -25,23 +32,23 @@ export declare function useAuthkitAppsAuthPageInfo(): {
|
|
|
25
32
|
aboutUs: {
|
|
26
33
|
personalInformationCollectionList: {
|
|
27
34
|
type: string;
|
|
28
|
-
content:
|
|
35
|
+
content: any[];
|
|
29
36
|
};
|
|
30
37
|
thirdPartyInformationSharingList: {
|
|
31
38
|
type: string;
|
|
32
|
-
content:
|
|
39
|
+
content: any[];
|
|
33
40
|
};
|
|
34
41
|
userServiceAgreement: {
|
|
35
42
|
type: string;
|
|
36
|
-
content:
|
|
43
|
+
content: any[];
|
|
37
44
|
};
|
|
38
45
|
privacyPolicy: {
|
|
39
46
|
type: string;
|
|
40
|
-
content:
|
|
47
|
+
content: any[];
|
|
41
48
|
};
|
|
42
49
|
licenseInformation: {
|
|
43
50
|
type: string;
|
|
44
|
-
content:
|
|
51
|
+
content: any[];
|
|
45
52
|
};
|
|
46
53
|
};
|
|
47
54
|
brand: {
|
|
@@ -53,7 +60,7 @@ export declare function useAuthkitAppsAuthPageInfo(): {
|
|
|
53
60
|
backgroundImageUrl: string;
|
|
54
61
|
backgroundImage: string;
|
|
55
62
|
};
|
|
56
|
-
}, {
|
|
63
|
+
}, AppsData | {
|
|
57
64
|
id: string;
|
|
58
65
|
appKey: string;
|
|
59
66
|
name: string;
|
|
@@ -61,6 +68,12 @@ export declare function useAuthkitAppsAuthPageInfo(): {
|
|
|
61
68
|
homePageUrl: string;
|
|
62
69
|
applicationLogo: string;
|
|
63
70
|
applicationLogoUrl: string;
|
|
71
|
+
publicRoutes: {
|
|
72
|
+
id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
permissionKey: string;
|
|
75
|
+
description: string;
|
|
76
|
+
}[];
|
|
64
77
|
oauth: {
|
|
65
78
|
google: {
|
|
66
79
|
enabled: boolean;
|
|
@@ -79,77 +92,23 @@ export declare function useAuthkitAppsAuthPageInfo(): {
|
|
|
79
92
|
aboutUs: {
|
|
80
93
|
personalInformationCollectionList: {
|
|
81
94
|
type: string;
|
|
82
|
-
content:
|
|
95
|
+
content: any[];
|
|
83
96
|
};
|
|
84
97
|
thirdPartyInformationSharingList: {
|
|
85
98
|
type: string;
|
|
86
|
-
content:
|
|
99
|
+
content: any[];
|
|
87
100
|
};
|
|
88
101
|
userServiceAgreement: {
|
|
89
102
|
type: string;
|
|
90
|
-
content:
|
|
103
|
+
content: any[];
|
|
91
104
|
};
|
|
92
105
|
privacyPolicy: {
|
|
93
106
|
type: string;
|
|
94
|
-
content:
|
|
107
|
+
content: any[];
|
|
95
108
|
};
|
|
96
109
|
licenseInformation: {
|
|
97
110
|
type: string;
|
|
98
|
-
content:
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
brand: {
|
|
102
|
-
theme: string;
|
|
103
|
-
logo: string;
|
|
104
|
-
favicon: string;
|
|
105
|
-
backgroundType: string;
|
|
106
|
-
backgroundColor: string;
|
|
107
|
-
backgroundImageUrl: string;
|
|
108
|
-
backgroundImage: string;
|
|
109
|
-
};
|
|
110
|
-
} | {
|
|
111
|
-
id: string;
|
|
112
|
-
appKey: string;
|
|
113
|
-
name: string;
|
|
114
|
-
description: string;
|
|
115
|
-
homePageUrl: string;
|
|
116
|
-
applicationLogo: string;
|
|
117
|
-
applicationLogoUrl: string;
|
|
118
|
-
oauth: {
|
|
119
|
-
google: {
|
|
120
|
-
enabled: boolean;
|
|
121
|
-
};
|
|
122
|
-
microsoft: {
|
|
123
|
-
enabled: boolean;
|
|
124
|
-
};
|
|
125
|
-
github: {
|
|
126
|
-
enabled: boolean;
|
|
127
|
-
};
|
|
128
|
-
wechat: {
|
|
129
|
-
enabled: boolean;
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
authorizationCallback: string;
|
|
133
|
-
aboutUs: {
|
|
134
|
-
personalInformationCollectionList: {
|
|
135
|
-
type: string;
|
|
136
|
-
content: never[];
|
|
137
|
-
};
|
|
138
|
-
thirdPartyInformationSharingList: {
|
|
139
|
-
type: string;
|
|
140
|
-
content: never[];
|
|
141
|
-
};
|
|
142
|
-
userServiceAgreement: {
|
|
143
|
-
type: string;
|
|
144
|
-
content: never[];
|
|
145
|
-
};
|
|
146
|
-
privacyPolicy: {
|
|
147
|
-
type: string;
|
|
148
|
-
content: never[];
|
|
149
|
-
};
|
|
150
|
-
licenseInformation: {
|
|
151
|
-
type: string;
|
|
152
|
-
content: never[];
|
|
111
|
+
content: any[];
|
|
153
112
|
};
|
|
154
113
|
};
|
|
155
114
|
brand: {
|
package/dist/composables.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as o, a } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
|
|
2
|
-
import { u, a as r } from "./useAuthkitAppsAuthPageInfo-
|
|
2
|
+
import { u, a as r } from "./useAuthkitAppsAuthPageInfo-Dy0Snk6O.js";
|
|
3
3
|
import { u as f } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
|
|
4
4
|
import { u as A } from "./useMessageNotifications-DOH1MS61.js";
|
|
5
5
|
import { g as l, s as m } from "./globalConfig-DZIhLe1R.js";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as B0, a as b0 } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
|
|
2
|
-
import { u as O0, a as I0 } from "./useAuthkitAppsAuthPageInfo-
|
|
2
|
+
import { u as O0, a as I0 } from "./useAuthkitAppsAuthPageInfo-Dy0Snk6O.js";
|
|
3
3
|
import { u as $0 } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
|
|
4
4
|
import { u as R0 } from "./useMessageNotifications-DOH1MS61.js";
|
|
5
5
|
import { g as z0, s as q0 } from "./globalConfig-DZIhLe1R.js";
|
|
@@ -7,8 +7,8 @@ import { b as N } from "./useDownloads-BkDo_wOR.js";
|
|
|
7
7
|
import { a as Q0, u as J0, w as K0 } from "./useDownloads-BkDo_wOR.js";
|
|
8
8
|
import { u as Y0 } from "./useTableHandle-DKUIdSSh.js";
|
|
9
9
|
import { u as t3 } from "./useUploadCos-B5P_PDcy.js";
|
|
10
|
-
import { A as a3, a as s3, c as i3, b as n3, n as C3, E as r3, k as c3, l as l3, _ as d3, O as p3, f as f3, o as _3, P as h3, j as g3, R as u3, S as L3, i as F3, m as m3, d as w3, e as y3, g as M3, h as v3 } from "./AuthkitAuthModal-
|
|
11
|
-
import { A as x3, a as V3 } from "./AuthkitAuthorize-
|
|
10
|
+
import { A as a3, a as s3, c as i3, b as n3, n as C3, E as r3, k as c3, l as l3, _ as d3, O as p3, f as f3, o as _3, P as h3, j as g3, R as u3, S as L3, i as F3, m as m3, d as w3, e as y3, g as M3, h as v3 } from "./AuthkitAuthModal-4u1nye5k.js";
|
|
11
|
+
import { A as x3, a as V3 } from "./AuthkitAuthorize-ScwqrsOC.js";
|
|
12
12
|
import { I as U3, A as E3, C as k3, _ as G3, a as S3, D as A3, E as D3, b as B3, M as b3, c as P3, N as O3, f as I3, d as T3, e as $3 } from "./MessageHandle-DkNum5-u.js";
|
|
13
13
|
import { M as R3, a as W3 } from "./MessageMenu-_RZJ9Mbi.js";
|
|
14
14
|
import { _ as q3, a as j3, F as Q3, b as J3, c as K3, d as X3, R as Y3 } from "./FeedbackModal-D1htK7xY.js";
|
|
@@ -22,7 +22,7 @@ import { M as u6, a as L6 } from "./Menu-Cxo8Rpu3.js";
|
|
|
22
22
|
import { S as m6 } from "./PaySubscriptions-l6VlqvBy.js";
|
|
23
23
|
import { R as y6 } from "./ReferrerReferees-BclAtmgX.js";
|
|
24
24
|
import { _ as v6 } from "./Upload.vue_vue_type_script_setup_true_lang-CDyUt05d.js";
|
|
25
|
-
import { d as x6, U as V6, a as H6, b as U6, c as E6, S as k6 } from "./UserAccountMenu-
|
|
25
|
+
import { d as x6, U as V6, a as H6, b as U6, c as E6, S as k6 } from "./UserAccountMenu-DDyh3Rjo.js";
|
|
26
26
|
import { defineComponent as v, computed as x, createElementBlock as i, openBlock as t, normalizeStyle as Y, normalizeClass as R, createElementVNode as e, createCommentVNode as u, toDisplayString as f, createVNode as F, unref as L, createTextVNode as W, withModifiers as z, renderSlot as e2, withCtx as B, Fragment as S, renderList as A, createBlock as E, onMounted as q, ref as D, watch as t2, onUnmounted as o2, withDirectives as a2, createStaticVNode as s2, vShow as i2 } from "vue";
|
|
27
27
|
import { Icon as V } from "@iconify/vue";
|
|
28
28
|
import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export interface PublicRoute {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
permissionKey: string;
|
|
5
|
+
description: string;
|
|
6
|
+
}
|
|
7
|
+
export interface OAuthConfig {
|
|
8
|
+
google: {
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
};
|
|
11
|
+
microsoft: {
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
};
|
|
14
|
+
github: {
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
};
|
|
17
|
+
wechat: {
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface AboutUsDoc {
|
|
22
|
+
type: string;
|
|
23
|
+
content: any[];
|
|
24
|
+
}
|
|
25
|
+
export interface AboutUs {
|
|
26
|
+
personalInformationCollectionList: AboutUsDoc;
|
|
27
|
+
thirdPartyInformationSharingList: AboutUsDoc;
|
|
28
|
+
userServiceAgreement: AboutUsDoc;
|
|
29
|
+
privacyPolicy: AboutUsDoc;
|
|
30
|
+
licenseInformation: AboutUsDoc;
|
|
31
|
+
}
|
|
32
|
+
export interface Brand {
|
|
33
|
+
theme: string;
|
|
34
|
+
logo: string;
|
|
35
|
+
favicon: string;
|
|
36
|
+
backgroundType: string;
|
|
37
|
+
backgroundColor: string;
|
|
38
|
+
backgroundImageUrl: string;
|
|
39
|
+
backgroundImage: string;
|
|
40
|
+
}
|
|
41
|
+
export interface AppsData {
|
|
42
|
+
id: string;
|
|
43
|
+
appKey: string;
|
|
44
|
+
name: string;
|
|
45
|
+
description: string;
|
|
46
|
+
homePageUrl: string;
|
|
47
|
+
applicationLogo: string;
|
|
48
|
+
applicationLogoUrl: string;
|
|
49
|
+
publicRoutes: Array<PublicRoute>;
|
|
50
|
+
oauth: OAuthConfig;
|
|
51
|
+
authorizationCallback: string;
|
|
52
|
+
aboutUs: AboutUs;
|
|
53
|
+
brand: Brand;
|
|
54
|
+
}
|
package/dist/{useAuthkitAppsAuthPageInfo-Ria0l-Pk.js → useAuthkitAppsAuthPageInfo-Dy0Snk6O.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as n } from "vue";
|
|
2
2
|
import { api as i } from "@huyooo/api";
|
|
3
3
|
import { g as r } from "./globalConfig-DZIhLe1R.js";
|
|
4
|
-
const l =
|
|
4
|
+
const l = n(!1);
|
|
5
5
|
function f() {
|
|
6
6
|
return {
|
|
7
7
|
show: l
|
|
@@ -14,13 +14,13 @@ function g(a) {
|
|
|
14
14
|
data: a
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function u() {
|
|
18
18
|
return i({
|
|
19
19
|
url: `${r.authPrefixUrl}/restfulApi/apps/authPageInfo`,
|
|
20
20
|
method: "post"
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
const o =
|
|
23
|
+
const o = n({
|
|
24
24
|
id: "",
|
|
25
25
|
appKey: "",
|
|
26
26
|
name: "",
|
|
@@ -28,6 +28,7 @@ const o = t({
|
|
|
28
28
|
homePageUrl: "",
|
|
29
29
|
applicationLogo: "",
|
|
30
30
|
applicationLogoUrl: "",
|
|
31
|
+
publicRoutes: [],
|
|
31
32
|
oauth: {
|
|
32
33
|
google: {
|
|
33
34
|
// redirectURI: '',
|
|
@@ -93,11 +94,11 @@ const o = t({
|
|
|
93
94
|
}
|
|
94
95
|
});
|
|
95
96
|
function h() {
|
|
96
|
-
function a(
|
|
97
|
-
|
|
97
|
+
function a(t) {
|
|
98
|
+
u().then(({
|
|
98
99
|
data: e
|
|
99
100
|
}) => {
|
|
100
|
-
o.value.id = e.id, o.value.appKey = e.appKey, o.value.name = e.name, o.value.description = e.description, o.value.homePageUrl = e.homePageUrl, o.value.applicationLogo = e.applicationLogo, o.value.applicationLogoUrl = e.applicationLogoUrl, o.value.oauth = e.oauth, o.value.authorizationCallback = e.authorizationCallback, o.value.aboutUs = e.aboutUs, o.value.brand = e.brand,
|
|
101
|
+
o.value.id = e.id, o.value.appKey = e.appKey, o.value.name = e.name, o.value.description = e.description, o.value.homePageUrl = e.homePageUrl, o.value.applicationLogo = e.applicationLogo, o.value.applicationLogoUrl = e.applicationLogoUrl, o.value.publicRoutes = e.publicRoutes || [], o.value.oauth = e.oauth, o.value.authorizationCallback = e.authorizationCallback, o.value.aboutUs = e.aboutUs, o.value.brand = e.brand, t && t();
|
|
101
102
|
}).catch((e) => {
|
|
102
103
|
console.error("获取应用认证页面信息失败:", e);
|
|
103
104
|
});
|
package/dist/user.js
CHANGED