@huyooo/ui 0.17.3 → 1.0.2
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-Chqg3OI1.js → AuthkitAppSetting-C-0uuLSg.js} +1 -1
- package/dist/{AuthkitGithubBinding-Bi1ybbDX.js → AuthkitGithubBinding-C5zEy9zN.js} +3 -3
- package/dist/{Contact-Dv1CMS3J.js → Contact-M6iyuyNL.js} +1 -1
- package/dist/{CustomTable-BT-cnhLR.js → CustomTable-CCOQxfxr.js} +23 -24
- package/dist/{PaySubscriptions-BFq89DCI.js → PaySubscriptions-C3KiTsQS.js} +1 -1
- package/dist/{PricingPlans-TZT6j_Jq.js → PricingPlans-uwlFiiJx.js} +1 -1
- package/dist/{ReferrerReferees-jWOIvXrk.js → ReferrerReferees-Zb5Bd-_e.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Cumx2rfc.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-QWUNRjGh.js} +3 -3
- package/dist/{WidthContainer-fMC6ZQEc.js → WidthContainer-BVBk0kJN.js} +4 -4
- package/dist/authkit.js +4 -4
- package/dist/common.js +2 -2
- package/dist/composables.js +3 -3
- package/dist/main.js +12 -12
- 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/auth.generated.d.ts +22 -8
- package/dist/{useAuthkitAppsAuthPageInfo-B2F2AKoh.js → useAuthkitAppsAuthPageInfo-C2yKgl8t.js} +47 -40
- package/dist/{useLegalLinks-DG-SIR3U.js → useLegalLinks-Cwr45PBT.js} +1 -1
- package/dist/{useRoutePermission-CV3Wq1_G.js → useRoutePermission-CaWtjLRA.js} +1 -1
- package/dist/user.js +1 -1
- package/dist/utils/tiptapDoc.d.ts +9 -0
- package/package.json +2 -2
|
@@ -475,10 +475,10 @@ export type Api = {
|
|
|
475
475
|
post: {
|
|
476
476
|
body: {
|
|
477
477
|
name: string;
|
|
478
|
+
applicationLogo: string;
|
|
479
|
+
description: string;
|
|
478
480
|
homePageUrl?: string;
|
|
479
481
|
authorizationCallback?: string;
|
|
480
|
-
applicationLogo?: string;
|
|
481
|
-
description?: string;
|
|
482
482
|
extensions?: Record<string, string>;
|
|
483
483
|
};
|
|
484
484
|
return: any;
|
|
@@ -498,11 +498,11 @@ export type Api = {
|
|
|
498
498
|
post: {
|
|
499
499
|
body: {
|
|
500
500
|
id: string;
|
|
501
|
+
applicationLogo: string;
|
|
502
|
+
description: string;
|
|
501
503
|
name?: string;
|
|
502
504
|
homePageUrl?: string;
|
|
503
505
|
authorizationCallback?: string;
|
|
504
|
-
applicationLogo?: string;
|
|
505
|
-
description?: string;
|
|
506
506
|
defaultRoleId?: string;
|
|
507
507
|
};
|
|
508
508
|
return: any;
|
|
@@ -1632,6 +1632,9 @@ export type Api = {
|
|
|
1632
1632
|
body: {
|
|
1633
1633
|
appId?: string;
|
|
1634
1634
|
type?: "whitelist" | "blacklist";
|
|
1635
|
+
ip?: string;
|
|
1636
|
+
startTime?: string;
|
|
1637
|
+
endTime?: string;
|
|
1635
1638
|
page?: number;
|
|
1636
1639
|
pageSize?: number;
|
|
1637
1640
|
};
|
|
@@ -1692,6 +1695,8 @@ export type Api = {
|
|
|
1692
1695
|
type?: string;
|
|
1693
1696
|
riskLevel?: "low" | "medium" | "high" | "critical";
|
|
1694
1697
|
resolved?: boolean;
|
|
1698
|
+
startTime?: string;
|
|
1699
|
+
endTime?: string;
|
|
1695
1700
|
page?: number;
|
|
1696
1701
|
pageSize?: number;
|
|
1697
1702
|
};
|
|
@@ -1712,6 +1717,8 @@ export type Api = {
|
|
|
1712
1717
|
post: {
|
|
1713
1718
|
body: {
|
|
1714
1719
|
appId?: string;
|
|
1720
|
+
startTime?: string;
|
|
1721
|
+
endTime?: string;
|
|
1715
1722
|
};
|
|
1716
1723
|
return: any;
|
|
1717
1724
|
};
|
|
@@ -2092,10 +2099,10 @@ export interface ApiClient {
|
|
|
2092
2099
|
/** 创建新应用 */
|
|
2093
2100
|
post: (body: {
|
|
2094
2101
|
name: string;
|
|
2102
|
+
applicationLogo: string;
|
|
2103
|
+
description: string;
|
|
2095
2104
|
homePageUrl?: string;
|
|
2096
2105
|
authorizationCallback?: string;
|
|
2097
|
-
applicationLogo?: string;
|
|
2098
|
-
description?: string;
|
|
2099
2106
|
extensions?: Record<string, string>;
|
|
2100
2107
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2101
2108
|
};
|
|
@@ -2109,11 +2116,11 @@ export interface ApiClient {
|
|
|
2109
2116
|
/** 更新应用信息 */
|
|
2110
2117
|
post: (body: {
|
|
2111
2118
|
id: string;
|
|
2119
|
+
applicationLogo: string;
|
|
2120
|
+
description: string;
|
|
2112
2121
|
name?: string;
|
|
2113
2122
|
homePageUrl?: string;
|
|
2114
2123
|
authorizationCallback?: string;
|
|
2115
|
-
applicationLogo?: string;
|
|
2116
|
-
description?: string;
|
|
2117
2124
|
defaultRoleId?: string;
|
|
2118
2125
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
2119
2126
|
emailConfig: {
|
|
@@ -2941,6 +2948,9 @@ export interface ApiClient {
|
|
|
2941
2948
|
post: (body: {
|
|
2942
2949
|
appId?: string;
|
|
2943
2950
|
type?: "whitelist" | "blacklist";
|
|
2951
|
+
ip?: string;
|
|
2952
|
+
startTime?: string;
|
|
2953
|
+
endTime?: string;
|
|
2944
2954
|
page?: number;
|
|
2945
2955
|
pageSize?: number;
|
|
2946
2956
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
@@ -2986,6 +2996,8 @@ export interface ApiClient {
|
|
|
2986
2996
|
type?: string;
|
|
2987
2997
|
riskLevel?: "low" | "medium" | "high" | "critical";
|
|
2988
2998
|
resolved?: boolean;
|
|
2999
|
+
startTime?: string;
|
|
3000
|
+
endTime?: string;
|
|
2989
3001
|
page?: number;
|
|
2990
3002
|
pageSize?: number;
|
|
2991
3003
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
@@ -3000,6 +3012,8 @@ export interface ApiClient {
|
|
|
3000
3012
|
/** 获取安全告警统计数据 */
|
|
3001
3013
|
post: (body: {
|
|
3002
3014
|
appId?: string;
|
|
3015
|
+
startTime?: string;
|
|
3016
|
+
endTime?: string;
|
|
3003
3017
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
3004
3018
|
};
|
|
3005
3019
|
};
|
package/dist/{useAuthkitAppsAuthPageInfo-B2F2AKoh.js → useAuthkitAppsAuthPageInfo-C2yKgl8t.js}
RENAMED
|
@@ -1,6 +1,39 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as r } from "vue";
|
|
2
2
|
import { e as l } from "./apiClients-DrGX2iJy.js";
|
|
3
|
-
|
|
3
|
+
function i() {
|
|
4
|
+
return {
|
|
5
|
+
type: "doc",
|
|
6
|
+
content: [{
|
|
7
|
+
type: "paragraph"
|
|
8
|
+
}]
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function u(e) {
|
|
12
|
+
return e.type === "doc" && Array.isArray(e.content) && e.content.length > 0;
|
|
13
|
+
}
|
|
14
|
+
function o(e) {
|
|
15
|
+
return typeof e == "string" || e == null ? i() : u(e) ? e : i();
|
|
16
|
+
}
|
|
17
|
+
function s(e) {
|
|
18
|
+
return {
|
|
19
|
+
personalInformationCollectionList: o(e.personalInformationCollectionList),
|
|
20
|
+
thirdPartyInformationSharingList: o(e.thirdPartyInformationSharingList),
|
|
21
|
+
userServiceAgreement: o(e.userServiceAgreement),
|
|
22
|
+
privacyPolicy: o(e.privacyPolicy),
|
|
23
|
+
licenseInformation: o(e.licenseInformation)
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function c() {
|
|
27
|
+
const e = i();
|
|
28
|
+
return {
|
|
29
|
+
personalInformationCollectionList: e,
|
|
30
|
+
thirdPartyInformationSharingList: e,
|
|
31
|
+
userServiceAgreement: e,
|
|
32
|
+
privacyPolicy: e,
|
|
33
|
+
licenseInformation: e
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
const a = r({
|
|
4
37
|
id: "",
|
|
5
38
|
name: "",
|
|
6
39
|
description: "",
|
|
@@ -48,33 +81,7 @@ const a = n({
|
|
|
48
81
|
}
|
|
49
82
|
},
|
|
50
83
|
authorizationCallback: "",
|
|
51
|
-
aboutUs:
|
|
52
|
-
// 个人信息收集清单
|
|
53
|
-
personalInformationCollectionList: {
|
|
54
|
-
type: "doc",
|
|
55
|
-
content: []
|
|
56
|
-
},
|
|
57
|
-
// 第三方信息共享清单
|
|
58
|
-
thirdPartyInformationSharingList: {
|
|
59
|
-
type: "doc",
|
|
60
|
-
content: []
|
|
61
|
-
},
|
|
62
|
-
// 用户服务协议
|
|
63
|
-
userServiceAgreement: {
|
|
64
|
-
type: "doc",
|
|
65
|
-
content: []
|
|
66
|
-
},
|
|
67
|
-
// 隐私协议
|
|
68
|
-
privacyPolicy: {
|
|
69
|
-
type: "doc",
|
|
70
|
-
content: []
|
|
71
|
-
},
|
|
72
|
-
// 证照信息
|
|
73
|
-
licenseInformation: {
|
|
74
|
-
type: "doc",
|
|
75
|
-
content: []
|
|
76
|
-
}
|
|
77
|
-
},
|
|
84
|
+
aboutUs: c(),
|
|
78
85
|
brand: {
|
|
79
86
|
theme: "dark",
|
|
80
87
|
logo: "",
|
|
@@ -84,32 +91,32 @@ const a = n({
|
|
|
84
91
|
backgroundImageUrl: "",
|
|
85
92
|
backgroundImage: "/66a0d5b35203890887f0e1a4/6714e2458fe86895bf3da8ae/1ef8ed72-1731-6e00-93d1-fa24165f1a3e.webp"
|
|
86
93
|
}
|
|
87
|
-
}),
|
|
88
|
-
function
|
|
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;
|
|
94
|
+
}), n = r(!1), t = r(!1);
|
|
95
|
+
function p(e) {
|
|
96
|
+
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 = s(e.aboutUs), a.value.brand = e.brand;
|
|
90
97
|
}
|
|
91
|
-
async function
|
|
92
|
-
|
|
98
|
+
async function f() {
|
|
99
|
+
n.value = !0, t.value = !1;
|
|
93
100
|
try {
|
|
94
101
|
const {
|
|
95
102
|
data: e
|
|
96
103
|
} = await l.apps.authPageInfo.post({});
|
|
97
|
-
e && (
|
|
104
|
+
e && (p(e), t.value = !0);
|
|
98
105
|
} finally {
|
|
99
|
-
|
|
106
|
+
n.value = !1;
|
|
100
107
|
}
|
|
101
108
|
}
|
|
102
|
-
function
|
|
109
|
+
function m() {
|
|
103
110
|
async function e() {
|
|
104
|
-
t.value ||
|
|
111
|
+
t.value || n.value || await f();
|
|
105
112
|
}
|
|
106
113
|
return {
|
|
107
114
|
appsData: a,
|
|
108
115
|
appsAuthPageInfoApi: e,
|
|
109
|
-
appsAuthPageInfoLoading:
|
|
116
|
+
appsAuthPageInfoLoading: n,
|
|
110
117
|
appsAuthPageInfoSuccess: t
|
|
111
118
|
};
|
|
112
119
|
}
|
|
113
120
|
export {
|
|
114
|
-
|
|
121
|
+
m as u
|
|
115
122
|
};
|
|
@@ -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-C2yKgl8t.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-C2yKgl8t.js";
|
|
4
4
|
import { u as M } from "./useAuthkitUsersProfile-BZDk21c8.js";
|
|
5
5
|
const y = w({
|
|
6
6
|
key: "",
|
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-QWUNRjGh.js";
|
|
2
2
|
export {
|
|
3
3
|
a as UserAccountMenu,
|
|
4
4
|
n as UserAvatar,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AboutUs, AboutUsDoc } from '../types/app';
|
|
2
|
+
/** TipTap 空文档:doc 至少包含一个 block 节点 */
|
|
3
|
+
export declare function emptyTiptapDoc(): AboutUsDoc;
|
|
4
|
+
type TiptapDocInput = AboutUsDoc | string | null | undefined;
|
|
5
|
+
/** 将 API / 默认值中的非法 doc(含 content: []、空字符串)规范为 TipTap 可渲染结构 */
|
|
6
|
+
export declare function normalizeTiptapDoc(value: TiptapDocInput): AboutUsDoc;
|
|
7
|
+
export declare function normalizeAboutUs(aboutUs: AboutUs): AboutUs;
|
|
8
|
+
export declare function emptyAboutUs(): AboutUs;
|
|
9
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huyooo/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"@arco-design/web-vue": ">=2.56.3",
|
|
92
|
-
"@huyooo/vue-tiptap": "
|
|
92
|
+
"@huyooo/vue-tiptap": "^1.0.0",
|
|
93
93
|
"@iconify/vue": ">=4.1.2",
|
|
94
94
|
"@unhead/vue": ">=2.0.19",
|
|
95
95
|
"@vueuse/core": ">=11.3.0",
|