@huyooo/ui 1.0.3 → 1.0.5
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-BWuVR9ho.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-BZJ48Yss.js} +87 -88
- package/dist/{LandingPageFAQ-CZJXvor9.js → LandingPageSectionHeader-3hiuw6G0.js} +44 -25
- package/dist/{LandingPageSectionTabs-Ce3_Rc2L.js → LandingPageSectionTabs-jRjkWlM-.js} +475 -375
- package/dist/LegalDocViewer-DM8FYBpf.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-CV97ck9p.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/LandingPageButton.vue.d.ts +2 -2
- package/dist/components/LandingPage/LandingPageContainer.vue.d.ts +2 -2
- package/dist/components/LandingPage/LandingPageFeaturePanels.vue.d.ts +19 -0
- package/dist/components/LandingPage/LandingPageHero.vue.d.ts +9 -0
- package/dist/components/LandingPage/LandingPagePageContent.vue.d.ts +2 -2
- package/dist/components/LandingPage/LandingPageSectionHeader.vue.d.ts +1 -14
- package/dist/components/LandingPage/LandingPageSections.vue.d.ts +1 -1
- 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.d.ts +1 -0
- package/dist/landingPage.js +41 -40
- 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 +321 -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-nsxN4Ja4.js +0 -276
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-M1NQ-rx-.js +0 -1396
- 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-lWnEioX5.js +0 -1241
- package/dist/PricingPlans-DFcjOMWS.js +0 -404
- package/dist/ReferrerReferees-Cn7KaO8z.js +0 -106
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-P0X1Exyu.js +0 -520
- package/dist/WidthContainer-CF3qOLWW.js +0 -688
- package/dist/common/authPanelWidth.d.ts +0 -2
- 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
|
@@ -113,7 +113,7 @@ export type Api = {
|
|
|
113
113
|
/** 将所有消息标记为已读 */
|
|
114
114
|
post: {
|
|
115
115
|
body: {
|
|
116
|
-
type
|
|
116
|
+
type?: string;
|
|
117
117
|
};
|
|
118
118
|
return: any;
|
|
119
119
|
};
|
|
@@ -217,6 +217,21 @@ export type Api = {
|
|
|
217
217
|
return: any;
|
|
218
218
|
};
|
|
219
219
|
};
|
|
220
|
+
read: {
|
|
221
|
+
/** 将指定更新日志标记为已读 */
|
|
222
|
+
post: {
|
|
223
|
+
body: {
|
|
224
|
+
changelogId: string;
|
|
225
|
+
};
|
|
226
|
+
return: any;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
readAll: {
|
|
230
|
+
/** 将所有可见更新日志标记为已读 */
|
|
231
|
+
post: {
|
|
232
|
+
return: any;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
220
235
|
find: {
|
|
221
236
|
/** 分页查询更新日志列表 */
|
|
222
237
|
post: {
|
|
@@ -232,6 +247,21 @@ export type Api = {
|
|
|
232
247
|
return: any;
|
|
233
248
|
};
|
|
234
249
|
};
|
|
250
|
+
own: {
|
|
251
|
+
/** 查询用户可见的更新日志列表(支持已读过滤) */
|
|
252
|
+
post: {
|
|
253
|
+
body: {
|
|
254
|
+
current: number;
|
|
255
|
+
pageSize: number;
|
|
256
|
+
where?: {
|
|
257
|
+
title?: string;
|
|
258
|
+
changeType?: "feature" | "improvement" | "fix" | "security" | "breaking";
|
|
259
|
+
read?: boolean;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
return: any;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
235
265
|
findOne: {
|
|
236
266
|
/** 根据 ID 查询更新日志详情 */
|
|
237
267
|
post: {
|
|
@@ -294,6 +324,21 @@ export type Api = {
|
|
|
294
324
|
return: any;
|
|
295
325
|
};
|
|
296
326
|
};
|
|
327
|
+
read: {
|
|
328
|
+
/** 将指定活动通知标记为已读 */
|
|
329
|
+
post: {
|
|
330
|
+
body: {
|
|
331
|
+
eventId: string;
|
|
332
|
+
};
|
|
333
|
+
return: any;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
readAll: {
|
|
337
|
+
/** 将所有可见活动通知标记为已读 */
|
|
338
|
+
post: {
|
|
339
|
+
return: any;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
297
342
|
find: {
|
|
298
343
|
/** 分页查询活动通知列表 */
|
|
299
344
|
post: {
|
|
@@ -308,6 +353,20 @@ export type Api = {
|
|
|
308
353
|
return: any;
|
|
309
354
|
};
|
|
310
355
|
};
|
|
356
|
+
own: {
|
|
357
|
+
/** 查询用户可见的活动通知列表(支持已读过滤) */
|
|
358
|
+
post: {
|
|
359
|
+
body: {
|
|
360
|
+
current: number;
|
|
361
|
+
pageSize: number;
|
|
362
|
+
where?: {
|
|
363
|
+
title?: string;
|
|
364
|
+
read?: boolean;
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
return: any;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
311
370
|
findOne: {
|
|
312
371
|
/** 根据 ID 查询活动通知详情 */
|
|
313
372
|
post: {
|
|
@@ -882,6 +941,21 @@ export type Api = {
|
|
|
882
941
|
return: any;
|
|
883
942
|
};
|
|
884
943
|
};
|
|
944
|
+
unreadReplyCount: {
|
|
945
|
+
/** 统计末条客服消息尚未阅读的未关闭反馈数 */
|
|
946
|
+
post: {
|
|
947
|
+
return: any;
|
|
948
|
+
};
|
|
949
|
+
};
|
|
950
|
+
markRead: {
|
|
951
|
+
/** 将反馈会话中当前消息标记为已读 */
|
|
952
|
+
post: {
|
|
953
|
+
body: {
|
|
954
|
+
id: string;
|
|
955
|
+
};
|
|
956
|
+
return: any;
|
|
957
|
+
};
|
|
958
|
+
};
|
|
885
959
|
getTrafficStatistics: {
|
|
886
960
|
/** 获取反馈流量统计数据 */
|
|
887
961
|
post: {
|
|
@@ -1315,7 +1389,7 @@ export interface ApiClient {
|
|
|
1315
1389
|
readAll: {
|
|
1316
1390
|
/** 将所有消息标记为已读 */
|
|
1317
1391
|
post: (body: {
|
|
1318
|
-
type
|
|
1392
|
+
type?: string;
|
|
1319
1393
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1320
1394
|
};
|
|
1321
1395
|
find: {
|
|
@@ -1394,6 +1468,16 @@ export interface ApiClient {
|
|
|
1394
1468
|
publishedAt?: string;
|
|
1395
1469
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1396
1470
|
};
|
|
1471
|
+
read: {
|
|
1472
|
+
/** 将指定更新日志标记为已读 */
|
|
1473
|
+
post: (body: {
|
|
1474
|
+
changelogId: string;
|
|
1475
|
+
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1476
|
+
};
|
|
1477
|
+
readAll: {
|
|
1478
|
+
/** 将所有可见更新日志标记为已读 */
|
|
1479
|
+
post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1480
|
+
};
|
|
1397
1481
|
find: {
|
|
1398
1482
|
/** 分页查询更新日志列表 */
|
|
1399
1483
|
post: (body: {
|
|
@@ -1406,6 +1490,18 @@ export interface ApiClient {
|
|
|
1406
1490
|
};
|
|
1407
1491
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1408
1492
|
};
|
|
1493
|
+
own: {
|
|
1494
|
+
/** 查询用户可见的更新日志列表(支持已读过滤) */
|
|
1495
|
+
post: (body: {
|
|
1496
|
+
current: number;
|
|
1497
|
+
pageSize: number;
|
|
1498
|
+
where?: {
|
|
1499
|
+
title?: string;
|
|
1500
|
+
changeType?: "feature" | "improvement" | "fix" | "security" | "breaking";
|
|
1501
|
+
read?: boolean;
|
|
1502
|
+
};
|
|
1503
|
+
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1504
|
+
};
|
|
1409
1505
|
findOne: {
|
|
1410
1506
|
/** 根据 ID 查询更新日志详情 */
|
|
1411
1507
|
post: (body: {
|
|
@@ -1453,6 +1549,16 @@ export interface ApiClient {
|
|
|
1453
1549
|
pinned?: boolean;
|
|
1454
1550
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1455
1551
|
};
|
|
1552
|
+
read: {
|
|
1553
|
+
/** 将指定活动通知标记为已读 */
|
|
1554
|
+
post: (body: {
|
|
1555
|
+
eventId: string;
|
|
1556
|
+
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1557
|
+
};
|
|
1558
|
+
readAll: {
|
|
1559
|
+
/** 将所有可见活动通知标记为已读 */
|
|
1560
|
+
post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1561
|
+
};
|
|
1456
1562
|
find: {
|
|
1457
1563
|
/** 分页查询活动通知列表 */
|
|
1458
1564
|
post: (body: {
|
|
@@ -1464,6 +1570,17 @@ export interface ApiClient {
|
|
|
1464
1570
|
};
|
|
1465
1571
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1466
1572
|
};
|
|
1573
|
+
own: {
|
|
1574
|
+
/** 查询用户可见的活动通知列表(支持已读过滤) */
|
|
1575
|
+
post: (body: {
|
|
1576
|
+
current: number;
|
|
1577
|
+
pageSize: number;
|
|
1578
|
+
where?: {
|
|
1579
|
+
title?: string;
|
|
1580
|
+
read?: boolean;
|
|
1581
|
+
};
|
|
1582
|
+
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1583
|
+
};
|
|
1467
1584
|
findOne: {
|
|
1468
1585
|
/** 根据 ID 查询活动通知详情 */
|
|
1469
1586
|
post: (body: {
|
|
@@ -1896,6 +2013,18 @@ export interface ApiClient {
|
|
|
1896
2013
|
pageSize: number;
|
|
1897
2014
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1898
2015
|
};
|
|
2016
|
+
unreadReplyCount: {
|
|
2017
|
+
/** 统计末条客服消息尚未阅读的未关闭反馈数 */
|
|
2018
|
+
post: (config?: RequestConfig) => Promise<ApiResponse<{
|
|
2019
|
+
count: number;
|
|
2020
|
+
}>>;
|
|
2021
|
+
};
|
|
2022
|
+
markRead: {
|
|
2023
|
+
/** 将反馈会话中当前消息标记为已读 */
|
|
2024
|
+
post: (body: {
|
|
2025
|
+
id: string;
|
|
2026
|
+
}, config?: RequestConfig) => Promise<ApiResponse<Record<string, never>>>;
|
|
2027
|
+
};
|
|
1899
2028
|
getTrafficStatistics: {
|
|
1900
2029
|
/** 获取反馈流量统计数据 */
|
|
1901
2030
|
post: (config?: RequestConfig) => Promise<ApiResponse<any>>;
|
package/dist/types/api.d.ts
CHANGED
package/dist/types/app.d.ts
CHANGED
|
@@ -31,6 +31,14 @@ export interface AuthMethodsConfig {
|
|
|
31
31
|
phone: boolean;
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
+
export interface RegistrationTermsInfo {
|
|
35
|
+
required: boolean;
|
|
36
|
+
userServiceAgreement: boolean;
|
|
37
|
+
privacyPolicy: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface SignUpAuthConfig {
|
|
40
|
+
enabled: boolean;
|
|
41
|
+
}
|
|
34
42
|
export interface AboutUsDoc {
|
|
35
43
|
type: string;
|
|
36
44
|
content: any[];
|
|
@@ -61,6 +69,8 @@ export interface AppsData {
|
|
|
61
69
|
publicRoutes: Array<PublicRoute>;
|
|
62
70
|
oauth: OAuthConfig;
|
|
63
71
|
authMethods: AuthMethodsConfig;
|
|
72
|
+
signUpAuth?: SignUpAuthConfig;
|
|
73
|
+
registrationTerms?: RegistrationTermsInfo;
|
|
64
74
|
authorizationCallback: string;
|
|
65
75
|
aboutUs: AboutUs;
|
|
66
76
|
brand: Brand;
|
package/dist/types/user.d.ts
CHANGED
package/dist/upload.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { u as s } from "./useUploadCos-
|
|
1
|
+
import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-VGh2V4o0.js";
|
|
2
|
+
import { u as s } from "./useUploadCos-C8BqFPkx.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Upload,
|
|
5
5
|
s as useUploadCos
|
package/dist/{useAuthkitAppsAuthPageInfo-C2yKgl8t.js → useAuthkitAppsAuthPageInfo-CNudJd04.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as r } from "vue";
|
|
2
|
-
import { e as l } from "./apiClients-
|
|
2
|
+
import { e as l } from "./apiClients-BcXOLuYu.js";
|
|
3
3
|
function i() {
|
|
4
4
|
return {
|
|
5
5
|
type: "doc",
|
|
@@ -8,22 +8,22 @@ function i() {
|
|
|
8
8
|
}]
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function s(e) {
|
|
12
12
|
return e.type === "doc" && Array.isArray(e.content) && e.content.length > 0;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
return typeof e == "string" || e == null ? i() :
|
|
14
|
+
function a(e) {
|
|
15
|
+
return typeof e == "string" || e == null ? i() : s(e) ? e : i();
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function u(e) {
|
|
18
18
|
return {
|
|
19
|
-
personalInformationCollectionList:
|
|
20
|
-
thirdPartyInformationSharingList:
|
|
21
|
-
userServiceAgreement:
|
|
22
|
-
privacyPolicy:
|
|
23
|
-
licenseInformation:
|
|
19
|
+
personalInformationCollectionList: a(e.personalInformationCollectionList),
|
|
20
|
+
thirdPartyInformationSharingList: a(e.thirdPartyInformationSharingList),
|
|
21
|
+
userServiceAgreement: a(e.userServiceAgreement),
|
|
22
|
+
privacyPolicy: a(e.privacyPolicy),
|
|
23
|
+
licenseInformation: a(e.licenseInformation)
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function p() {
|
|
27
27
|
const e = i();
|
|
28
28
|
return {
|
|
29
29
|
personalInformationCollectionList: e,
|
|
@@ -33,7 +33,7 @@ function c() {
|
|
|
33
33
|
licenseInformation: e
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
const
|
|
36
|
+
const o = r({
|
|
37
37
|
id: "",
|
|
38
38
|
name: "",
|
|
39
39
|
description: "",
|
|
@@ -81,7 +81,7 @@ const a = r({
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
authorizationCallback: "",
|
|
84
|
-
aboutUs:
|
|
84
|
+
aboutUs: p(),
|
|
85
85
|
brand: {
|
|
86
86
|
theme: "dark",
|
|
87
87
|
logo: "",
|
|
@@ -92,8 +92,8 @@ const a = r({
|
|
|
92
92
|
backgroundImage: "/66a0d5b35203890887f0e1a4/6714e2458fe86895bf3da8ae/1ef8ed72-1731-6e00-93d1-fa24165f1a3e.webp"
|
|
93
93
|
}
|
|
94
94
|
}), n = r(!1), t = r(!1);
|
|
95
|
-
function
|
|
96
|
-
|
|
95
|
+
function c(e) {
|
|
96
|
+
o.value.id = e.id, 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.authMethods = e.authMethods || o.value.authMethods, o.value.signUpAuth = e.signUpAuth, o.value.registrationTerms = e.registrationTerms, o.value.authorizationCallback = e.authorizationCallback, o.value.aboutUs = u(e.aboutUs), o.value.brand = e.brand;
|
|
97
97
|
}
|
|
98
98
|
async function f() {
|
|
99
99
|
n.value = !0, t.value = !1;
|
|
@@ -101,7 +101,7 @@ async function f() {
|
|
|
101
101
|
const {
|
|
102
102
|
data: e
|
|
103
103
|
} = await l.apps.authPageInfo.post({});
|
|
104
|
-
e && (
|
|
104
|
+
e && (c(e), t.value = !0);
|
|
105
105
|
} finally {
|
|
106
106
|
n.value = !1;
|
|
107
107
|
}
|
|
@@ -111,12 +111,13 @@ function m() {
|
|
|
111
111
|
t.value || n.value || await f();
|
|
112
112
|
}
|
|
113
113
|
return {
|
|
114
|
-
appsData:
|
|
114
|
+
appsData: o,
|
|
115
115
|
appsAuthPageInfoApi: e,
|
|
116
116
|
appsAuthPageInfoLoading: n,
|
|
117
117
|
appsAuthPageInfoSuccess: t
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
export {
|
|
121
|
+
u as n,
|
|
121
122
|
m as u
|
|
122
123
|
};
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { ref as a, computed as p, nextTick as C, readonly as B } from "vue";
|
|
2
|
+
import { k as _, r as x, l as P, e as h } from "./apiClients-BcXOLuYu.js";
|
|
3
|
+
import { u as M } from "./useAuthkitAppsAuthPageInfo-CNudJd04.js";
|
|
4
|
+
const g = a(!1), w = a(!1);
|
|
5
|
+
let I;
|
|
6
|
+
const $ = "请先阅读并同意用户协议与隐私政策", D = {
|
|
7
|
+
required: !1,
|
|
8
|
+
userServiceAgreement: !1,
|
|
9
|
+
privacyPolicy: !1
|
|
10
|
+
};
|
|
11
|
+
function A() {
|
|
12
|
+
I && clearTimeout(I), w.value = !1, C(() => {
|
|
13
|
+
w.value = !0, I = setTimeout(() => {
|
|
14
|
+
w.value = !1;
|
|
15
|
+
}, 450);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function G(e) {
|
|
19
|
+
return [{
|
|
20
|
+
validator: (r, t) => {
|
|
21
|
+
if (!e()) {
|
|
22
|
+
t();
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if (r === !0) {
|
|
26
|
+
t();
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
A(), t($);
|
|
30
|
+
}
|
|
31
|
+
}];
|
|
32
|
+
}
|
|
33
|
+
function K() {
|
|
34
|
+
const {
|
|
35
|
+
appsData: e
|
|
36
|
+
} = M(), r = p(() => e.value.registrationTerms ?? D), t = p(() => {
|
|
37
|
+
var n;
|
|
38
|
+
return ((n = e.value.signUpAuth) == null ? void 0 : n.enabled) !== !1;
|
|
39
|
+
}), l = p(() => t.value && !r.value.required);
|
|
40
|
+
function s() {
|
|
41
|
+
return t.value && r.value.required;
|
|
42
|
+
}
|
|
43
|
+
function i() {
|
|
44
|
+
return s();
|
|
45
|
+
}
|
|
46
|
+
function d() {
|
|
47
|
+
g.value = !1;
|
|
48
|
+
}
|
|
49
|
+
function f() {
|
|
50
|
+
return !i() || g.value ? !0 : (A(), !1);
|
|
51
|
+
}
|
|
52
|
+
function v(n) {
|
|
53
|
+
g.value = n;
|
|
54
|
+
}
|
|
55
|
+
function S(n) {
|
|
56
|
+
const o = p(() => n === "signUp" ? s() : i()), m = p(() => G(() => o.value));
|
|
57
|
+
return {
|
|
58
|
+
showTermsField: o,
|
|
59
|
+
termsRules: m
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
acceptedTerms: g,
|
|
64
|
+
termsShaking: w,
|
|
65
|
+
registrationTerms: r,
|
|
66
|
+
signUpAuthEnabled: t,
|
|
67
|
+
registrationBlocked: l,
|
|
68
|
+
requiresAcceptanceForSignUp: s,
|
|
69
|
+
requiresAcceptanceForOAuth: i,
|
|
70
|
+
resetAcceptedTerms: d,
|
|
71
|
+
shakeTerms: A,
|
|
72
|
+
syncAcceptedTerms: v,
|
|
73
|
+
ensureTermsAcceptedForSignIn: f,
|
|
74
|
+
useTermsFormField: S
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
const c = a("signIn"), E = /* @__PURE__ */ new Set(), F = /* @__PURE__ */ new Set(), R = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set(), u = a(null), O = "jwtToken";
|
|
78
|
+
function j() {
|
|
79
|
+
try {
|
|
80
|
+
const e = localStorage.getItem(O);
|
|
81
|
+
if (e)
|
|
82
|
+
return u.value = e, !0;
|
|
83
|
+
} catch (e) {
|
|
84
|
+
console.warn("Failed to access localStorage:", e);
|
|
85
|
+
}
|
|
86
|
+
return !1;
|
|
87
|
+
}
|
|
88
|
+
function N() {
|
|
89
|
+
try {
|
|
90
|
+
const e = new URL(window.location.href), r = e.searchParams.get("token");
|
|
91
|
+
if (!r) return !1;
|
|
92
|
+
const t = e.searchParams.get("refreshToken"), l = e.searchParams.get("userId"), s = e.searchParams.get("appId"), i = e.searchParams.get("needBindIdentity") === "true";
|
|
93
|
+
t ? P({
|
|
94
|
+
jwtToken: r,
|
|
95
|
+
refreshToken: t
|
|
96
|
+
}) : y(r), ["token", "refreshToken", "userId", "appId", "needBindIdentity", "expiresIn"].forEach((f) => e.searchParams.delete(f));
|
|
97
|
+
const d = `${e.pathname}${e.search}${e.hash}`;
|
|
98
|
+
return window.history.replaceState({}, "", d), V({
|
|
99
|
+
jwtToken: r,
|
|
100
|
+
userId: l,
|
|
101
|
+
appId: s,
|
|
102
|
+
needBindIdentity: i
|
|
103
|
+
}), !0;
|
|
104
|
+
} catch (e) {
|
|
105
|
+
return console.warn("Failed to handle OAuth callback:", e), !1;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
function Y() {
|
|
109
|
+
return N() ? !0 : j();
|
|
110
|
+
}
|
|
111
|
+
function z() {
|
|
112
|
+
return u.value || j() ? u.value : null;
|
|
113
|
+
}
|
|
114
|
+
function y(e) {
|
|
115
|
+
u.value = e;
|
|
116
|
+
try {
|
|
117
|
+
localStorage.setItem(O, e);
|
|
118
|
+
} catch (r) {
|
|
119
|
+
console.warn("Failed to save token to localStorage:", r);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
function k(e) {
|
|
123
|
+
e.refreshToken ? P({
|
|
124
|
+
jwtToken: e.jwtToken,
|
|
125
|
+
refreshToken: e.refreshToken
|
|
126
|
+
}) : y(e.jwtToken), V(e);
|
|
127
|
+
}
|
|
128
|
+
function H() {
|
|
129
|
+
u.value = null, X();
|
|
130
|
+
}
|
|
131
|
+
_(H);
|
|
132
|
+
function J() {
|
|
133
|
+
x();
|
|
134
|
+
}
|
|
135
|
+
function T(e, r) {
|
|
136
|
+
return e.add(r), () => {
|
|
137
|
+
e.delete(r);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
function V(e) {
|
|
141
|
+
E.forEach((r) => {
|
|
142
|
+
r(e);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function Q() {
|
|
146
|
+
F.forEach((e) => void e());
|
|
147
|
+
}
|
|
148
|
+
function W() {
|
|
149
|
+
R.forEach((e) => void e());
|
|
150
|
+
}
|
|
151
|
+
function X() {
|
|
152
|
+
L.forEach((e) => void e());
|
|
153
|
+
}
|
|
154
|
+
function Z(e) {
|
|
155
|
+
return T(E, e);
|
|
156
|
+
}
|
|
157
|
+
function ee(e) {
|
|
158
|
+
return T(F, e);
|
|
159
|
+
}
|
|
160
|
+
function ne(e) {
|
|
161
|
+
return T(R, e);
|
|
162
|
+
}
|
|
163
|
+
function re(e) {
|
|
164
|
+
return T(L, e);
|
|
165
|
+
}
|
|
166
|
+
function ie() {
|
|
167
|
+
const e = a(!1), r = a(!1), t = a(!1);
|
|
168
|
+
async function l(n) {
|
|
169
|
+
e.value = !0;
|
|
170
|
+
try {
|
|
171
|
+
const {
|
|
172
|
+
data: o,
|
|
173
|
+
error: m
|
|
174
|
+
} = await h.auth.signIn.unified.post({
|
|
175
|
+
identifier: n.identifier || n.email || "",
|
|
176
|
+
password: n.password,
|
|
177
|
+
code: n.code,
|
|
178
|
+
emailVerifyId: n.emailVerifyId,
|
|
179
|
+
method: n.method || "password"
|
|
180
|
+
});
|
|
181
|
+
if (m || !o)
|
|
182
|
+
return;
|
|
183
|
+
k(o);
|
|
184
|
+
} finally {
|
|
185
|
+
e.value = !1;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
function s(n) {
|
|
189
|
+
k(n);
|
|
190
|
+
}
|
|
191
|
+
async function i(n) {
|
|
192
|
+
const {
|
|
193
|
+
resetAcceptedTerms: o,
|
|
194
|
+
acceptedTerms: m,
|
|
195
|
+
requiresAcceptanceForSignUp: b
|
|
196
|
+
} = K();
|
|
197
|
+
r.value = !0;
|
|
198
|
+
const U = b() ? m.value : void 0, {
|
|
199
|
+
error: q
|
|
200
|
+
} = n.type === "phone" ? await h.auth.signUp.phone.post({
|
|
201
|
+
phone: n.phone || "",
|
|
202
|
+
code: n.code || "",
|
|
203
|
+
password: n.password,
|
|
204
|
+
inviteCode: n.inviteCode,
|
|
205
|
+
acceptedTerms: U === !0
|
|
206
|
+
}) : await h.auth.signUp.post({
|
|
207
|
+
email: n.email || "",
|
|
208
|
+
userToken: n.userToken || "",
|
|
209
|
+
emailVerifyId: n.emailVerifyId || "",
|
|
210
|
+
password: n.password || "",
|
|
211
|
+
inviteCode: n.inviteCode,
|
|
212
|
+
acceptedTerms: U === !0
|
|
213
|
+
});
|
|
214
|
+
r.value = !1, !q && (o(), c.value = "signIn", Q());
|
|
215
|
+
}
|
|
216
|
+
async function d(n) {
|
|
217
|
+
t.value = !0;
|
|
218
|
+
const {
|
|
219
|
+
error: o
|
|
220
|
+
} = await h.auth.resetPassword.post({
|
|
221
|
+
method: n.method || "email",
|
|
222
|
+
email: n.email,
|
|
223
|
+
phone: n.phone,
|
|
224
|
+
userToken: n.userToken,
|
|
225
|
+
code: n.code,
|
|
226
|
+
emailVerifyId: n.emailVerifyId,
|
|
227
|
+
password: n.password
|
|
228
|
+
});
|
|
229
|
+
t.value = !1, !o && (c.value = "signIn", W());
|
|
230
|
+
}
|
|
231
|
+
function f() {
|
|
232
|
+
c.value = "signUp";
|
|
233
|
+
}
|
|
234
|
+
function v() {
|
|
235
|
+
c.value = "resetPassword";
|
|
236
|
+
}
|
|
237
|
+
function S() {
|
|
238
|
+
c.value = "signIn";
|
|
239
|
+
}
|
|
240
|
+
return {
|
|
241
|
+
signInSubmit: l,
|
|
242
|
+
passkeySignInSubmit: s,
|
|
243
|
+
signUpSubmit: i,
|
|
244
|
+
resetPasswordSubmit: d,
|
|
245
|
+
currentView: c,
|
|
246
|
+
authSignInLoading: e,
|
|
247
|
+
authSignUpLoading: r,
|
|
248
|
+
resetPasswordLoading: t,
|
|
249
|
+
switchSignUp: f,
|
|
250
|
+
switchResetPassword: v,
|
|
251
|
+
switchSignIn: S,
|
|
252
|
+
onSignIn: Z,
|
|
253
|
+
onSignUp: ee,
|
|
254
|
+
onResetPassword: ne,
|
|
255
|
+
onSignOut: re,
|
|
256
|
+
jwtToken: B(u),
|
|
257
|
+
getToken: z,
|
|
258
|
+
setToken: y,
|
|
259
|
+
completeSignIn: k,
|
|
260
|
+
restoreSession: Y,
|
|
261
|
+
clearAuth: J
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
export {
|
|
265
|
+
K as a,
|
|
266
|
+
ie as u
|
|
267
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as o, computed as r } from "vue";
|
|
2
|
-
import { e as f } from "./apiClients-
|
|
3
|
-
import { u as i } from "./useAuthkitAuth-
|
|
2
|
+
import { e as f } from "./apiClients-BcXOLuYu.js";
|
|
3
|
+
import { u as i } from "./useAuthkitAuth-3m0yW6uP.js";
|
|
4
4
|
const t = o(null), l = o(!1), u = o(!1), c = r(() => !!t.value);
|
|
5
5
|
async function v() {
|
|
6
6
|
const {
|
|
@@ -17,7 +17,7 @@ async function v() {
|
|
|
17
17
|
data: n,
|
|
18
18
|
error: e
|
|
19
19
|
} = await f.users.profile.post({});
|
|
20
|
-
n ? t.value = n : (
|
|
20
|
+
n ? t.value = n : ((e == null ? void 0 : e.code) === 401 || (e == null ? void 0 : e.code) === 40101) && (t.value = null, console.warn("认证已过期,清除认证状态"), s());
|
|
21
21
|
} finally {
|
|
22
22
|
l.value = !1, u.value = !0;
|
|
23
23
|
}
|