@huyooo/ui 0.4.88 → 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-DCx9UFiy.js → AuthkitAuthModal-4u1nye5k.js} +42 -42
- package/dist/{AuthkitAuthorize-BlEC4PlY.js → AuthkitAuthorize-ScwqrsOC.js} +1 -1
- package/dist/{UserAccountMenu-Bx18RJcq.js → UserAccountMenu-DDyh3Rjo.js} +2 -2
- package/dist/authkit.d.ts +2 -1
- package/dist/authkit.js +6 -6
- package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +25 -66
- package/dist/composables.d.ts +1 -1
- package/dist/composables.js +6 -6
- package/dist/index.js +5 -5
- package/dist/style.css +1 -1
- package/dist/types/app.d.ts +54 -0
- package/dist/{useAuthkitAppsAuthPageInfo-COeq29Tn.js → useAuthkitAppsAuthPageInfo-Dy0Snk6O.js} +11 -10
- package/dist/user.js +1 -1
- package/package.json +1 -1
|
@@ -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-COeq29Tn.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
|
});
|
|
@@ -108,7 +109,7 @@ function h() {
|
|
|
108
109
|
};
|
|
109
110
|
}
|
|
110
111
|
export {
|
|
111
|
-
|
|
112
|
-
g as
|
|
113
|
-
|
|
112
|
+
f as a,
|
|
113
|
+
g as b,
|
|
114
|
+
h as u
|
|
114
115
|
};
|
package/dist/user.js
CHANGED