@huyooo/ui 1.0.2 → 1.0.4
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-BN8-xgNq.js +2674 -0
- package/dist/{Contact-M6iyuyNL.js → Contact-DBH8CyKp.js} +105 -113
- package/dist/CustomTable-BzGfaAVH.js +276 -0
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-B9BqGWm8.js +1480 -0
- package/dist/LandingPageDescription-BczWZHKy.js +12 -0
- package/dist/{LandingPageLinkGroup-DDNRivMt.js → LandingPageLinkGroup-r-t3H1X0.js} +87 -88
- package/dist/LandingPageSectionHeader-CVAqc7bx.js +137 -0
- package/dist/{LandingPageSectionTabs-Ce3_Rc2L.js → LandingPageSectionTabs-DhKpOj5F.js} +300 -309
- package/dist/LegalDocViewer-DlaLKGyX.js +2501 -0
- package/dist/Menu-uCexrsKP.js +199 -0
- package/dist/MessageHandle-mEkCsv9e.js +1173 -0
- package/dist/MessageList-Ce-_LNTk.js +244 -0
- package/dist/PaySubscriptions-CXkEjqr2.js +1326 -0
- package/dist/PricingPlans-DoWP5aX7.js +427 -0
- package/dist/ReferrerReferees-DgygiIiE.js +237 -0
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-B6NOZjK0.js → Upload.vue_vue_type_script_setup_true_lang-VGh2V4o0.js} +1 -1
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-zgjpFVln.js +592 -0
- package/dist/WidthContainer-PeWkCK0p.js +721 -0
- package/dist/{apiClients-DrGX2iJy.js → apiClients-BcXOLuYu.js} +131 -98
- package/dist/authkit.d.ts +6 -2
- package/dist/authkit.js +53 -44
- package/dist/common/authProviderIcons.d.ts +12 -0
- package/dist/common/globalConfig.d.ts +5 -0
- package/dist/common/tableColumnWidths.d.ts +11 -0
- package/dist/common.js +3 -3
- package/dist/components/AuthProviderIcon.vue.d.ts +12 -0
- package/dist/components/Authkit/AppSetting/AuthkitEmailVerify.vue.d.ts +2 -2
- package/dist/components/Authkit/AppSetting/AuthkitOAuthBinding.vue.d.ts +2 -1
- package/dist/components/Authkit/AppSetting/AuthkitPasskeyBinding.vue.d.ts +14 -0
- package/dist/components/Authkit/AppSetting/AuthkitPasswordUpdate.vue.d.ts +11 -1
- package/dist/components/Authkit/AppSetting/AuthkitPersonalInformation.vue.d.ts +1 -3
- package/dist/components/Authkit/AppSetting/AuthkitPhoneVerify.vue.d.ts +13 -3
- package/dist/components/Authkit/Auth/AuthkitBindEmail.vue.d.ts +29 -2
- package/dist/components/Authkit/Auth/AuthkitBindPhone.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitEmailUpdate.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitOauthItem.vue.d.ts +37 -9
- package/dist/components/Authkit/Auth/AuthkitOauthList.vue.d.ts +7 -11
- package/dist/components/Authkit/Auth/AuthkitPasswordUpdateAndVerify.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitPhonePasswordUpdateAndVerify.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitServiceAgreementAndPrivacyProtection.vue.d.ts +11 -7
- package/dist/components/Authkit/Auth/AuthkitSignInEmailCode.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitSignInPhone.vue.d.ts +3 -62
- package/dist/components/Authkit/Auth/AuthkitSignUpPhone.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitSwitchSignUpOrResetPassword.vue.d.ts +9 -0
- package/dist/components/Authkit/AuthkitAuth.vue.d.ts +2 -8
- package/dist/components/Authkit/AuthkitAuthModal.vue.d.ts +0 -4
- package/dist/components/Authkit/AuthkitProvider.vue.d.ts +5 -2
- package/dist/components/Authkit/AuthkitSendVerifyCode.vue.d.ts +2 -1
- package/dist/components/CustomTable.vue.d.ts +27 -1
- package/dist/components/Ellipsis.vue.d.ts +2 -6
- package/dist/components/Feedback/FeedbackList.vue.d.ts +4 -1
- package/dist/components/Gradientbackground.vue.d.ts +2 -2
- package/dist/components/HeaderMenus.vue.d.ts +4 -1
- package/dist/components/InfiniteLoading.vue.d.ts +1 -1
- package/dist/components/LandingPage/LandingPageContainer.vue.d.ts +2 -2
- package/dist/components/LandingPage/LandingPagePageContent.vue.d.ts +2 -2
- package/dist/components/LegalDoc/LegalDocViewer.vue.d.ts +7 -0
- package/dist/components/Menu.vue.d.ts +2 -1
- package/dist/components/MenuItem.vue.d.ts +3 -1
- package/dist/components/Message/MessageAppMessage.vue.d.ts +12 -2
- package/dist/components/Message/MessageDetails.vue.d.ts +9 -161
- package/dist/components/Message/MessageHandle.vue.d.ts +16 -4
- package/dist/components/Message/MessageList.vue.d.ts +4 -3
- package/dist/components/Message/MessageNotificationDetails.vue.d.ts +13 -0
- package/dist/components/Message/messageBody/DescriptionsMessageBody.vue.d.ts +3 -0
- package/dist/components/Message/messageBody/JsonMessageBodyFallback.vue.d.ts +3 -0
- package/dist/components/Message/messageBody/TextMessageBody.vue.d.ts +3 -0
- package/dist/components/Message/messageBody/descriptionRows.d.ts +14 -0
- package/dist/components/Message/messageBody/descriptionsMessageBody.d.ts +32 -0
- package/dist/components/Message/messageBody/descriptionsValueRender.d.ts +4 -0
- package/dist/components/Message/messageBody/messageBodyRegistry.d.ts +9 -0
- package/dist/components/Message/messageBody/registerBuiltinMessageBodies.d.ts +2 -0
- package/dist/components/Message/messageBody/types.d.ts +7 -0
- package/dist/components/Referrer/ReferrerRefereeCell.vue.d.ts +7 -0
- package/dist/components/Referrer/ReferrerReferees.vue.d.ts +1 -0
- package/dist/components/UserMenu/UserAccountMenu.vue.d.ts +1 -16
- package/dist/components/UserMenu/UserMenuItem.vue.d.ts +4 -0
- package/dist/components/UserMenu/UserMenuModals.vue.d.ts +18 -4
- package/dist/components/UserMenu/parts/UserAvatar.vue.d.ts +6 -0
- package/dist/components/UserMenu/parts/UserBasicInformation.vue.d.ts +7 -2
- package/dist/composables/Authkit/fetchAuthPageAboutUs.d.ts +3 -0
- package/dist/composables/Authkit/resolveRoutePermission.d.ts +2 -0
- package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +16 -0
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +2 -0
- package/dist/composables/Authkit/useAuthkitPasskey.d.ts +10 -0
- package/dist/composables/Authkit/useLegalDocHostActions.d.ts +6 -0
- package/dist/composables/Authkit/useLegalDocs.d.ts +19 -0
- package/dist/composables/Authkit/useOauth.d.ts +17 -4
- package/dist/composables/Authkit/useRegistrationTerms.d.ts +24 -0
- package/dist/composables/Authkit/verifyCodeCooldown.d.ts +19 -0
- package/dist/composables/Billing/useBillingPlans.d.ts +0 -4
- package/dist/composables/Billing/useBillingStatusOptions.d.ts +2 -6
- package/dist/composables/Billing/useBillingSubscriptionSummary.d.ts +16 -0
- package/dist/composables/Billing/usePaidProductOptions.d.ts +5 -0
- package/dist/composables/Message/messageCenterBadgeCounts.d.ts +28 -0
- package/dist/composables/UserMenu/useUserMenuBadgeCounts.d.ts +9 -0
- package/dist/composables/useInfiniteList.d.ts +19 -0
- package/dist/composables/useMessageNotifications.d.ts +3 -6
- package/dist/composables.d.ts +4 -2
- package/dist/composables.js +50 -45
- package/dist/feedback.d.ts +1 -0
- package/dist/feedback.js +12 -11
- package/dist/fetchAuthPageAboutUs-dzTSwRsB.js +25 -0
- package/dist/{Clipboard-Bo7gdpR6.js → index-BkLvw1PU.js} +1 -1
- package/dist/landingPage.js +21 -21
- package/dist/legalDocs/buildBuiltinUrl.d.ts +3 -0
- package/dist/{utils/legalLinks.d.ts → legalDocs/constants.d.ts} +0 -10
- package/dist/legalDocs/index.d.ts +7 -0
- package/dist/legalDocs/isConfigured.d.ts +7 -0
- package/dist/legalDocs/open.d.ts +3 -0
- package/dist/legalDocs/resolveAppId.d.ts +8 -0
- package/dist/legalDocs/resolveTarget.d.ts +4 -0
- package/dist/legalDocs/types.d.ts +12 -0
- package/dist/main.js +320 -308
- package/dist/message.d.ts +3 -0
- package/dist/message.js +301 -21
- package/dist/pay.d.ts +1 -1
- package/dist/pay.js +14 -17
- 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 +1385 -328
- package/dist/types/api/billing.generated.d.ts +907 -76
- package/dist/types/api/ones.generated.d.ts +131 -2
- package/dist/types/api.d.ts +1 -0
- package/dist/types/app.d.ts +10 -0
- package/dist/types/user.d.ts +1 -0
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-C2yKgl8t.js → useAuthkitAppsAuthPageInfo-CNudJd04.js} +18 -17
- package/dist/useAuthkitAuth-3m0yW6uP.js +267 -0
- package/dist/{useAuthkitCreateAndUpdate-oo9517Gj.js → useAuthkitCreateAndUpdate-BsINsI-E.js} +1 -1
- package/dist/{useAuthkitUsersProfile-BZDk21c8.js → useAuthkitUsersProfile-DJlMsftY.js} +3 -3
- package/dist/useBillingStatusOptions-CfHQOFNw.js +71 -0
- package/dist/{useEnsureAuthenticated-BuIbxqsO.js → useEnsureAuthenticated-DNkCCy_Y.js} +2 -2
- package/dist/useLegalDocs-DQP_Yq6B.js +106 -0
- package/dist/{useMessageNotifications-D85_-mDq.js → useMessageNotifications-CAphguOm.js} +21 -24
- package/dist/useRoutePermission-CEiya9AM.js +218 -0
- package/dist/useSEO-CDWxbk8B.js +221 -0
- package/dist/useSubscriptionCheckout-d_M_rKRa.js +368 -0
- package/dist/{useUploadCos-BRKRzSy3.js → useUploadCos-C8BqFPkx.js} +1 -1
- package/dist/user.js +1 -1
- package/dist/userMenuModal-D-nDaYqM.js +66 -0
- package/dist/utils/apiMiddlewares.d.ts +5 -5
- package/dist/utils/apiResponse.d.ts +11 -0
- package/dist/utils/authProviderIcon.d.ts +3 -0
- package/dist/utils/authkit.d.ts +20 -7
- package/dist/utils/formatPoints.d.ts +8 -0
- package/dist/utils/messageNotificationContent.d.ts +4 -0
- package/dist/utils/messageTextLink.d.ts +9 -0
- package/dist/utils/passkeySupport.d.ts +8 -0
- package/dist/utils/pointsFlowTypes.d.ts +10 -0
- package/dist/utils/pointsHistoryDisplay.d.ts +8 -0
- package/dist/utils/refundStatusDisplay.d.ts +1 -0
- package/dist/utils/subscriptionDisplay.d.ts +7 -0
- package/dist/utils/userDisplay.d.ts +41 -0
- package/package.json +11 -3
- package/dist/AuthkitAppSetting-C-0uuLSg.js +0 -1921
- package/dist/AuthkitGithubBinding-C5zEy9zN.js +0 -2207
- package/dist/CustomTable-CCOQxfxr.js +0 -279
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-M1NQ-rx-.js +0 -1396
- package/dist/LandingPageFAQ-CZJXvor9.js +0 -80
- package/dist/LandingPageSectionHeader-D_74W4My.js +0 -69
- package/dist/Menu-Cy2ZPeaz.js +0 -170
- package/dist/MessageHandle-BG12aX0i.js +0 -924
- package/dist/MessageList-CrCF8mU6.js +0 -233
- package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-gsjL6yAe.js +0 -142
- package/dist/PaySubscriptions-C3KiTsQS.js +0 -1241
- package/dist/PricingPlans-uwlFiiJx.js +0 -404
- package/dist/ReferrerReferees-Zb5Bd-_e.js +0 -106
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-QWUNRjGh.js +0 -520
- package/dist/WidthContainer-BVBk0kJN.js +0 -688
- package/dist/components/Feedback/FeedbackDetails.vue.d.ts +0 -178
- package/dist/composables/Authkit/useLegalLinks.d.ts +0 -34
- package/dist/index-D3Kp6R4z.js +0 -4
- package/dist/useAuthkitAuth-DmS-H7M2.js +0 -175
- package/dist/useBillingStatusOptions-B7xLU3fs.js +0 -145
- package/dist/useLegalLinks-Cwr45PBT.js +0 -60
- package/dist/useRoutePermission-CaWtjLRA.js +0 -212
- package/dist/useSEO-BSMQdBR9.js +0 -158
- package/dist/useSubscriptionCheckout-BRk5h9aC.js +0 -365
- package/dist/useTableHandle-BdujaiNX.js +0 -69
- /package/dist/components/{Feedback/FeedbackVideoPreview.vue.d.ts → VideoPreview.vue.d.ts} +0 -0
package/dist/feedback.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { B as b, a as s, F, b as
|
|
2
|
-
import { C as
|
|
3
|
-
import { F as m, a as f, b as
|
|
1
|
+
import { B as b, a as s, F as d, b as F, _ as o, c, R as t, V as r } from "./FeedbackModal.vue_vue_type_script_setup_true_lang-B9BqGWm8.js";
|
|
2
|
+
import { C as i } from "./index-BkLvw1PU.js";
|
|
3
|
+
import { F as m, a as f, b as n, c as p } from "./FeedbackItem-BP-SiJ2u.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
i as Clipboard,
|
|
6
6
|
b as FeedbackBubbleEnd,
|
|
7
7
|
s as FeedbackBubbleStart,
|
|
8
8
|
m as FeedbackContainer,
|
|
9
9
|
f as FeedbackCustomTabs,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
t as FeedbackRefresh
|
|
10
|
+
d as FeedbackDetails,
|
|
11
|
+
n as FeedbackFloatButton,
|
|
12
|
+
F as FeedbackForm,
|
|
13
|
+
p as FeedbackItem,
|
|
14
|
+
o as FeedbackList,
|
|
15
|
+
c as FeedbackModal,
|
|
16
|
+
t as FeedbackRefresh,
|
|
17
|
+
r as VideoPreview
|
|
17
18
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { g as r } from "./apiClients-BcXOLuYu.js";
|
|
2
|
+
import { n as a } from "./useAuthkitAppsAuthPageInfo-CNudJd04.js";
|
|
3
|
+
async function i(n) {
|
|
4
|
+
if (!n)
|
|
5
|
+
return null;
|
|
6
|
+
try {
|
|
7
|
+
const e = await fetch(`${r.authPrefixUrl}/apps/authPageInfo`, {
|
|
8
|
+
method: "POST",
|
|
9
|
+
headers: {
|
|
10
|
+
"Content-Type": "application/json",
|
|
11
|
+
"app-id": n
|
|
12
|
+
},
|
|
13
|
+
body: "{}"
|
|
14
|
+
});
|
|
15
|
+
if (!e.ok)
|
|
16
|
+
return null;
|
|
17
|
+
const t = await e.json(), o = t == null ? void 0 : t.aboutUs;
|
|
18
|
+
return !o || typeof o != "object" ? null : a(o);
|
|
19
|
+
} catch {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
i as f
|
|
25
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import "./apiClients-
|
|
2
|
+
import "./apiClients-BcXOLuYu.js";
|
|
3
3
|
import { defineComponent as X, ref as J, openBlock as K, createBlock as Q, unref as W } from "vue";
|
|
4
4
|
import { Message as Z } from "@arco-design/web-vue";
|
|
5
5
|
import { Icon as $ } from "@iconify/vue";
|
package/dist/landingPage.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { L as g, a as e, b as i, B as s, C as d, c as L, d as P, e as o, f as t, g as r, h as c, i as u, j as m, k as C, l as p, m as T, n as F, o as f, p as S, q as
|
|
2
|
-
import { L as v, a as w } from "./
|
|
3
|
-
import { L as
|
|
4
|
-
import { D as
|
|
1
|
+
import { L as g, a as e, b as i, B as s, C as d, c as L, d as P, e as o, f as t, g as r, h as c, i as u, j as m, k as C, l as p, m as T, n as F, o as f, p as S, q as b, r as l, s as k, t as x, u as B, T as D, v as G, w as H, x as h, y, z as A, P as I } from "./LandingPageSectionTabs-DhKpOj5F.js";
|
|
2
|
+
import { L as v, a as w, b as q } from "./LandingPageSectionHeader-CVAqc7bx.js";
|
|
3
|
+
import { L as M, a as Q, b as E, c as J, D as K, d as N, e as O, f as R, g as U, h as V, i as W, j as X, k as Y } from "./LandingPageLinkGroup-r-t3H1X0.js";
|
|
4
|
+
import { D as _ } from "./LandingPageDescription-BczWZHKy.js";
|
|
5
5
|
import { L as aa } from "./Logo-D7fyXyB-.js";
|
|
6
6
|
export {
|
|
7
7
|
g as LandingPageAbout,
|
|
8
8
|
e as LandingPageAside,
|
|
9
9
|
i as LandingPageBlockHeader,
|
|
10
10
|
v as LandingPageBlockLayout,
|
|
11
|
-
|
|
11
|
+
M as LandingPageBrandInfo,
|
|
12
12
|
s as LandingPageButton,
|
|
13
13
|
d as LandingPageCard,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
Q as LandingPageContact,
|
|
15
|
+
E as LandingPageContactForm,
|
|
16
|
+
J as LandingPageContainer,
|
|
17
17
|
L as LandingPageCta,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
_ as LandingPageDescription,
|
|
19
|
+
K as LandingPageDivider,
|
|
20
20
|
w as LandingPageFAQ,
|
|
21
21
|
P as LandingPageFeatureCard,
|
|
22
22
|
o as LandingPageFeatureSectionHeader,
|
|
@@ -24,29 +24,29 @@ export {
|
|
|
24
24
|
r as LandingPageFeatures2,
|
|
25
25
|
c as LandingPageFeaturesGrid,
|
|
26
26
|
u as LandingPageFooter,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
N as LandingPageFooterContact,
|
|
28
|
+
O as LandingPageFooterLayout,
|
|
29
29
|
m as LandingPageHero,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
R as LandingPageLink,
|
|
31
|
+
U as LandingPageLinkGroup,
|
|
32
|
+
V as LandingPageListItem,
|
|
33
33
|
aa as LandingPageLogo,
|
|
34
34
|
C as LandingPageLogos,
|
|
35
|
-
|
|
35
|
+
W as LandingPageMission,
|
|
36
36
|
p as LandingPagePageContent,
|
|
37
37
|
T as LandingPagePriceGroup,
|
|
38
38
|
F as LandingPagePricingCard,
|
|
39
39
|
f as LandingPagePricingGrid,
|
|
40
|
-
|
|
40
|
+
q as LandingPageSectionHeader,
|
|
41
41
|
S as LandingPageSectionTabs,
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
b as LandingPageSections,
|
|
43
|
+
l as LandingPageShowcase,
|
|
44
44
|
k as LandingPageStats,
|
|
45
45
|
x as LandingPageSteps,
|
|
46
46
|
B as LandingPageSubTitle,
|
|
47
47
|
D as LandingPageTabs,
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
X as LandingPageTeamInfo,
|
|
49
|
+
Y as LandingPageTeamList,
|
|
50
50
|
G as LandingPageTestimonial,
|
|
51
51
|
H as LandingPageTestimonialCard,
|
|
52
52
|
h as LandingPageTips,
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 法律 / 协议类文档字典:将后端 aboutUs 的字段名映射到中文标签。
|
|
3
|
-
* 维护此处即可同步更新所有展示位(登录页底部、用户面板、关于我们等)。
|
|
4
|
-
*
|
|
5
|
-
* key ↔ aboutUs 字段名(保持与后端 schema 一致)
|
|
6
|
-
* label ↔ UI 展示文案
|
|
7
3
|
*/
|
|
8
4
|
export declare const LEGAL_DOCS: {
|
|
9
5
|
readonly userServiceAgreement: "用户服务协议";
|
|
@@ -14,9 +10,3 @@ export declare const LEGAL_DOCS: {
|
|
|
14
10
|
};
|
|
15
11
|
export type LegalDocKey = keyof typeof LEGAL_DOCS;
|
|
16
12
|
export declare const LEGAL_DOC_KEYS: LegalDocKey[];
|
|
17
|
-
/**
|
|
18
|
-
* 构造法律文档外链。
|
|
19
|
-
* @param type 文档类型(与 aboutUs 字段名一致)
|
|
20
|
-
* @param appId 当前应用 ID(来自 globalConfig.appId)
|
|
21
|
-
*/
|
|
22
|
-
export declare function buildLegalLinkUrl(type: LegalDocKey, appId: string): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { LEGAL_DOCS, LEGAL_DOC_KEYS, type LegalDocKey } from './constants';
|
|
2
|
+
export { buildBuiltinLegalDocUrl } from './buildBuiltinUrl';
|
|
3
|
+
export { isLegalDocConfigured } from './isConfigured';
|
|
4
|
+
export { resolveLegalAppId } from './resolveAppId';
|
|
5
|
+
export { resolveLegalDocTargetFromData } from './resolveTarget';
|
|
6
|
+
export { openInNewTab, openLegalDocTarget } from './open';
|
|
7
|
+
export type { LegalDocTarget, LegalDocSource, LegalDocsMode } from './types';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LegalDocKey } from './constants';
|
|
2
|
+
import { LegalDocSource, LegalDocTarget } from './types';
|
|
3
|
+
/** 根据 aboutUs 内容解析内置法律文档打开目标 */
|
|
4
|
+
export declare function resolveLegalDocTargetFromData(key: LegalDocKey, data: LegalDocSource, appId: string): LegalDocTarget | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LegalDocKey } from './constants';
|
|
2
|
+
import { LegalDocContent } from './isConfigured';
|
|
3
|
+
export interface LegalDocTarget {
|
|
4
|
+
key: LegalDocKey;
|
|
5
|
+
label: string;
|
|
6
|
+
url: string;
|
|
7
|
+
configured: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface LegalDocSource {
|
|
10
|
+
aboutUs?: Partial<Record<LegalDocKey, LegalDocContent>>;
|
|
11
|
+
}
|
|
12
|
+
export type LegalDocsMode = 'builtin' | 'delegate';
|