@huyooo/ui 0.4.3 → 0.4.6

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.
Files changed (203) hide show
  1. package/dist/AuthkitAppSetting-ByuMspBg.js +1815 -0
  2. package/dist/AuthkitAuthorize-DnvypjyO.js +250 -0
  3. package/dist/CollapseItem-Cw1vcdLu.js +57 -0
  4. package/dist/CustomTable-Qav4d3j4.js +501 -0
  5. package/dist/FeedbackFeedBackItem-CCAnPYVM.js +526 -0
  6. package/dist/FeedbackFeedBackModal-DXJjUF4M.js +1203 -0
  7. package/dist/LandingPageToc-BkL7mxo7.js +1555 -0
  8. package/dist/Menu-2SePYCYT.js +115 -0
  9. package/dist/MessageHandle-C9nSNw5A.js +867 -0
  10. package/dist/MessageMenu-x26lfAeK.js +114 -0
  11. package/dist/PaySubscriptions-CMLsF7br.js +278 -0
  12. package/dist/ReferrerReferees-BibWkriX.js +185 -0
  13. package/dist/Upload.vue_vue_type_script_setup_true_lang-DmGODzj_.js +96 -0
  14. package/dist/UserPanel-MgNs75eD.js +511 -0
  15. package/dist/WidthContainer-D795bWdT.js +128 -0
  16. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  17. package/dist/api/Authkit/OAuth.d.ts +3 -0
  18. package/dist/api/Authkit/Users.d.ts +5 -0
  19. package/dist/api/Authkit/apps.d.ts +2 -0
  20. package/dist/api/Authkit/auth.d.ts +5 -0
  21. package/dist/api/Authkit/verify.d.ts +3 -0
  22. package/dist/api/Buckets/Files.d.ts +7 -0
  23. package/dist/api/Buckets.d.ts +2 -0
  24. package/dist/api/Message/ChangelogNotifications.d.ts +2 -0
  25. package/dist/api/Message/EventNotifications.d.ts +2 -0
  26. package/dist/api/Message/MessageNotifications.d.ts +5 -0
  27. package/dist/api/Message/NoticeNotifications.d.ts +2 -0
  28. package/dist/api/Messages.d.ts +2 -0
  29. package/dist/api/Orders.d.ts +9 -0
  30. package/dist/api/Referrer.d.ts +1 -0
  31. package/dist/api/index.d.ts +8 -0
  32. package/dist/authkit.d.ts +32 -0
  33. package/dist/authkit.js +36 -0
  34. package/dist/common/MessageCenterOptions.d.ts +12 -0
  35. package/dist/common/feedbackOptions.d.ts +12 -0
  36. package/dist/common/payOptions.d.ts +8 -0
  37. package/dist/common/referrerOptions.d.ts +9 -0
  38. package/dist/common.d.ts +24 -0
  39. package/dist/common.js +39 -0
  40. package/dist/components/Authkit/AppSetting/AuthkitEmailBinding.vue.d.ts +14 -0
  41. package/dist/components/Authkit/AppSetting/AuthkitEmailVerify.vue.d.ts +70 -0
  42. package/dist/components/Authkit/AppSetting/AuthkitGithubBinding.vue.d.ts +14 -0
  43. package/dist/components/Authkit/AppSetting/AuthkitPasswordUpdate.vue.d.ts +20 -0
  44. package/dist/components/Authkit/AppSetting/AuthkitPersonalInformation.vue.d.ts +20 -0
  45. package/dist/components/Authkit/AppSetting/AuthkitSetPassword.vue.d.ts +14 -0
  46. package/dist/components/Authkit/Auth/AuthkitAuthContainer.vue.d.ts +104 -0
  47. package/dist/components/Authkit/Auth/AuthkitAuthTitle.vue.d.ts +53 -0
  48. package/dist/components/Authkit/Auth/AuthkitAuthorize.vue.d.ts +104 -0
  49. package/dist/components/Authkit/Auth/AuthkitEmailUpdate.vue.d.ts +68 -0
  50. package/dist/components/Authkit/Auth/AuthkitOAuthItem.vue.d.ts +37 -0
  51. package/dist/components/Authkit/Auth/AuthkitOAuthList.vue.d.ts +25 -0
  52. package/dist/components/Authkit/Auth/AuthkitPasswordAuth.vue.d.ts +30 -0
  53. package/dist/components/Authkit/Auth/AuthkitPasswordUpdateAndVerify.vue.d.ts +70 -0
  54. package/dist/components/Authkit/Auth/AuthkitResetPassword.vue.d.ts +34 -0
  55. package/dist/components/Authkit/Auth/AuthkitServiceAgreementAndPrivacyProtection.vue.d.ts +8 -0
  56. package/dist/components/Authkit/Auth/AuthkitSignIn.vue.d.ts +47 -0
  57. package/dist/components/Authkit/Auth/AuthkitSignUp.vue.d.ts +30 -0
  58. package/dist/components/Authkit/Auth/AuthkitSwitchSignIn.vue.d.ts +6 -0
  59. package/dist/components/Authkit/Auth/AuthkitSwitchSignUpOrResetPassword.vue.d.ts +8 -0
  60. package/dist/components/Authkit/AuthkitAppSetting.vue.d.ts +11 -0
  61. package/dist/components/Authkit/AuthkitAuth.vue.d.ts +30 -0
  62. package/dist/components/Authkit/AuthkitAuthModal.vue.d.ts +34 -0
  63. package/dist/components/Authkit/AuthkitSendVerifyCode.vue.d.ts +31 -0
  64. package/dist/components/Collapse.vue.d.ts +32 -0
  65. package/dist/components/CollapseItem.vue.d.ts +23 -0
  66. package/dist/components/ContentHead.vue.d.ts +27 -0
  67. package/dist/components/CustomTable.vue.d.ts +87 -0
  68. package/dist/components/Ellipsis.vue.d.ts +35 -0
  69. package/dist/components/Feedback/FeedbackBubbleEnd.vue.d.ts +71 -0
  70. package/dist/components/Feedback/FeedbackBubbleStart.vue.d.ts +62 -0
  71. package/dist/components/Feedback/FeedbackClipboard.vue.d.ts +24 -0
  72. package/dist/components/Feedback/FeedbackCustomTabs.vue.d.ts +44 -0
  73. package/dist/components/Feedback/FeedbackFeedBack.vue.d.ts +53 -0
  74. package/dist/components/Feedback/FeedbackFeedBackDetails.vue.d.ts +215 -0
  75. package/dist/components/Feedback/FeedbackFeedBackFrom.vue.d.ts +26 -0
  76. package/dist/components/Feedback/FeedbackFeedBackItem.vue.d.ts +32 -0
  77. package/dist/components/Feedback/FeedbackFeedBackList.vue.d.ts +48 -0
  78. package/dist/components/Feedback/FeedbackFeedBackModal.vue.d.ts +53 -0
  79. package/dist/components/Feedback/FeedbackFloatButton.vue.d.ts +42 -0
  80. package/dist/components/Feedback/FeedbackRefresh.vue.d.ts +2 -0
  81. package/dist/components/Feedback/FeedbackScreenshots.vue.d.ts +67 -0
  82. package/dist/components/Gradientbackground.vue.d.ts +79 -0
  83. package/dist/components/InfiniteLoading.vue.d.ts +29 -0
  84. package/dist/components/LandingPage/LandingPageAbout.vue.d.ts +2 -0
  85. package/dist/components/LandingPage/LandingPageAside.vue.d.ts +2 -0
  86. package/dist/components/LandingPage/LandingPageBlockHeader.vue.d.ts +18 -0
  87. package/dist/components/LandingPage/LandingPageBlockLayout.vue.d.ts +41 -0
  88. package/dist/components/LandingPage/LandingPageBrandInfo.vue.d.ts +47 -0
  89. package/dist/components/LandingPage/LandingPageButton.vue.d.ts +20 -0
  90. package/dist/components/LandingPage/LandingPageCard.vue.d.ts +17 -0
  91. package/dist/components/LandingPage/LandingPageContact.vue.d.ts +29 -0
  92. package/dist/components/LandingPage/LandingPageContactForm.vue.d.ts +2 -0
  93. package/dist/components/LandingPage/LandingPageContainer.vue.d.ts +17 -0
  94. package/dist/components/LandingPage/LandingPageCta.vue.d.ts +25 -0
  95. package/dist/components/LandingPage/LandingPageDescription.vue.d.ts +17 -0
  96. package/dist/components/LandingPage/LandingPageDivider.vue.d.ts +2 -0
  97. package/dist/components/LandingPage/LandingPageFAQ.vue.d.ts +13 -0
  98. package/dist/components/LandingPage/LandingPageFeatures.vue.d.ts +16 -0
  99. package/dist/components/LandingPage/LandingPageFeatures2.vue.d.ts +13 -0
  100. package/dist/components/LandingPage/LandingPageFooter.vue.d.ts +2 -0
  101. package/dist/components/LandingPage/LandingPageFooterContact.vue.d.ts +29 -0
  102. package/dist/components/LandingPage/LandingPageFooterLayout.vue.d.ts +19 -0
  103. package/dist/components/LandingPage/LandingPageHero.vue.d.ts +49 -0
  104. package/dist/components/LandingPage/LandingPageLink.vue.d.ts +17 -0
  105. package/dist/components/LandingPage/LandingPageLinkGroup.vue.d.ts +22 -0
  106. package/dist/components/LandingPage/LandingPageListItem.vue.d.ts +7 -0
  107. package/dist/components/LandingPage/LandingPageLogo.vue.d.ts +53 -0
  108. package/dist/components/LandingPage/LandingPageLogos.vue.d.ts +14 -0
  109. package/dist/components/LandingPage/LandingPageMission.vue.d.ts +10 -0
  110. package/dist/components/LandingPage/LandingPagePageContent.vue.d.ts +31 -0
  111. package/dist/components/LandingPage/LandingPagePriceGroup.vue.d.ts +17 -0
  112. package/dist/components/LandingPage/LandingPagePricingCard.vue.d.ts +130 -0
  113. package/dist/components/LandingPage/LandingPagePricingGrid.vue.d.ts +17 -0
  114. package/dist/components/LandingPage/LandingPageSections.vue.d.ts +23 -0
  115. package/dist/components/LandingPage/LandingPageShowcase.vue.d.ts +26 -0
  116. package/dist/components/LandingPage/LandingPageStats.vue.d.ts +16 -0
  117. package/dist/components/LandingPage/LandingPageSteps.vue.d.ts +33 -0
  118. package/dist/components/LandingPage/LandingPageSubTitle.vue.d.ts +17 -0
  119. package/dist/components/LandingPage/LandingPageTabs.vue.d.ts +32 -0
  120. package/dist/components/LandingPage/LandingPageTeamInfo.vue.d.ts +6 -0
  121. package/dist/components/LandingPage/LandingPageTeamList.vue.d.ts +9 -0
  122. package/dist/components/LandingPage/LandingPageTestimonial.vue.d.ts +13 -0
  123. package/dist/components/LandingPage/LandingPageTips.vue.d.ts +23 -0
  124. package/dist/components/LandingPage/LandingPageTitle.vue.d.ts +17 -0
  125. package/dist/components/LandingPage/LandingPageToc.vue.d.ts +2 -0
  126. package/dist/components/Menu.vue.d.ts +27 -0
  127. package/dist/components/MenuItem.vue.d.ts +44 -0
  128. package/dist/components/Message/MessageAppMessage.vue.d.ts +53 -0
  129. package/dist/components/Message/MessageChangelogNotifications.vue.d.ts +12 -0
  130. package/dist/components/Message/MessageChangelogNotificationsDetails.vue.d.ts +20 -0
  131. package/dist/components/Message/MessageCustomTabs.vue.d.ts +44 -0
  132. package/dist/components/Message/MessageDetails.vue.d.ts +175 -0
  133. package/dist/components/Message/MessageEventNotifications.vue.d.ts +12 -0
  134. package/dist/components/Message/MessageEventNotificationsDetails.vue.d.ts +20 -0
  135. package/dist/components/Message/MessageHandle.vue.d.ts +106 -0
  136. package/dist/components/Message/MessageInfiniteLoading.vue.d.ts +29 -0
  137. package/dist/components/Message/MessageList.vue.d.ts +101 -0
  138. package/dist/components/Message/MessageMenu.vue.d.ts +27 -0
  139. package/dist/components/Message/MessageMenuItem.vue.d.ts +44 -0
  140. package/dist/components/Message/MessageNoticeNotifications.vue.d.ts +12 -0
  141. package/dist/components/Message/MessageNoticeNotificationsDetails.vue.d.ts +20 -0
  142. package/dist/components/Message/MessageNotifications.vue.d.ts +12 -0
  143. package/dist/components/Message/MessageTabs.vue.d.ts +43 -0
  144. package/dist/components/Pay/PaySubscriptions.vue.d.ts +11 -0
  145. package/dist/components/Referrer/ReferrerReferees.vue.d.ts +19 -0
  146. package/dist/components/SvgIcon.vue.d.ts +35 -0
  147. package/dist/components/Upload/Upload.vue.d.ts +80 -0
  148. package/dist/components/User/UserAvatar.vue.d.ts +23 -0
  149. package/dist/components/User/UserBasicInformation.vue.d.ts +32 -0
  150. package/dist/components/User/UserButton.vue.d.ts +23 -0
  151. package/dist/components/User/UserPanel.vue.d.ts +300 -0
  152. package/dist/components/User/UserSubscriptionBaseInformation.vue.d.ts +32 -0
  153. package/dist/components/WidthContainer.vue.d.ts +17 -0
  154. package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +163 -0
  155. package/dist/composables/Authkit/useAuthkitAuth.d.ts +32 -0
  156. package/dist/composables/Authkit/useAuthkitAuthModal.d.ts +3 -0
  157. package/dist/composables/Authkit/useAuthkitCreateAndUpdate.d.ts +9 -0
  158. package/dist/composables/Authkit/useAuthkitOAuth.d.ts +9 -0
  159. package/dist/composables/Authkit/useAuthkitProps.d.ts +7 -0
  160. package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +84 -0
  161. package/dist/composables/Upload/useUploadCos.d.ts +18 -0
  162. package/dist/composables/useActiveDoc.d.ts +13 -0
  163. package/dist/composables/useCreateAndUpdate.d.ts +9 -0
  164. package/dist/composables/useMessageNotifications.d.ts +35 -0
  165. package/dist/composables/useTableHandle.d.ts +41 -0
  166. package/dist/composables/useUserPanelProps.d.ts +7 -0
  167. package/dist/composables.d.ts +12 -0
  168. package/dist/composables.js +21 -0
  169. package/dist/feedback.d.ts +14 -0
  170. package/dist/feedback.js +17 -0
  171. package/dist/index-Cr5RQSnA.js +73 -0
  172. package/dist/index.js +153 -98959
  173. package/dist/landingPage.d.ts +42 -0
  174. package/dist/landingPage.js +45 -0
  175. package/dist/main.d.ts +13 -1
  176. package/dist/message.d.ts +17 -0
  177. package/dist/message.js +22 -0
  178. package/dist/pay.d.ts +1 -0
  179. package/dist/pay.js +4 -0
  180. package/dist/plugin-vue_export-helper-LjDO2Zua.js +19 -0
  181. package/dist/referrer.d.ts +1 -0
  182. package/dist/referrer.js +4 -0
  183. package/dist/style.css +1 -1
  184. package/dist/styles.d.ts +1 -0
  185. package/dist/styles.js +4 -0
  186. package/dist/types/auth.d.ts +27 -0
  187. package/dist/types/feedback.d.ts +76 -0
  188. package/dist/types/users.d.ts +21 -0
  189. package/dist/upload.d.ts +2 -0
  190. package/dist/upload.js +6 -0
  191. package/dist/useActiveDoc-BWHkOJhJ.js +39 -0
  192. package/dist/useAuthkitCreateAndUpdate-BpPW409v.js +25 -0
  193. package/dist/useAuthkitProps-ZAjekGnM.js +287 -0
  194. package/dist/useMessageNotifications-lmP0vJDM.js +105 -0
  195. package/dist/useTableHandle-DKUIdSSh.js +69 -0
  196. package/dist/useUploadCos-DZK5oasq.js +128 -0
  197. package/dist/useUserPanelProps-Dt9zkMJw.js +14 -0
  198. package/dist/user.d.ts +7 -0
  199. package/dist/user.js +10 -0
  200. package/dist/utils/authkit.d.ts +2 -0
  201. package/dist/utils/index.d.ts +54 -0
  202. package/dist/utils/landingPage.d.ts +1 -0
  203. package/package.json +71 -19
@@ -0,0 +1 @@
1
+ export declare const stylePath = "~/styles/var.css";
package/dist/styles.js ADDED
@@ -0,0 +1,4 @@
1
+ const s = "~/styles/var.css";
2
+ export {
3
+ s as stylePath
4
+ };
@@ -0,0 +1,27 @@
1
+ export type OAuthType = {
2
+ label: string;
3
+ value: string;
4
+ icon: string;
5
+ show: boolean;
6
+ };
7
+ export type FormSizeType = 'mini' | 'small' | 'medium' | 'large';
8
+ export type JSONContent = {
9
+ type?: string;
10
+ attrs?: Record<string, any>;
11
+ content?: JSONContent[];
12
+ marks?: {
13
+ type: string;
14
+ attrs?: Record<string, any>;
15
+ [key: string]: any;
16
+ }[];
17
+ text?: string;
18
+ [key: string]: any;
19
+ };
20
+ export type AboutUsType = {
21
+ personalInformationCollectionList: JSONContent;
22
+ thirdPartyInformationSharingList: JSONContent;
23
+ userServiceAgreement: JSONContent;
24
+ privacyPolicy: JSONContent;
25
+ licenseInformation: JSONContent;
26
+ };
27
+ export type AboutUsTypes = 'personalInformationCollectionList' | 'thirdPartyInformationSharingList' | 'userServiceAgreement' | 'privacyPolicy' | 'licenseInformation';
@@ -0,0 +1,76 @@
1
+ import { Editor as CoreEditor } from '@tiptap/core';
2
+ import { EditorState } from '@tiptap/pm/state';
3
+ import { EditorView } from '@tiptap/pm/view';
4
+ export type ModelType = {
5
+ name: string;
6
+ key: string;
7
+ children?: ModelType[];
8
+ };
9
+ export interface Option {
10
+ label: string;
11
+ value: number | string;
12
+ icon?: string;
13
+ active?: boolean;
14
+ disabled?: boolean;
15
+ click: () => void;
16
+ }
17
+ export interface ShouldShowProps {
18
+ editor?: CoreEditor;
19
+ view: EditorView;
20
+ state?: EditorState;
21
+ oldState?: EditorState;
22
+ from?: number;
23
+ to?: number;
24
+ }
25
+ type MessageText = {
26
+ messageId: string;
27
+ senderRole: string;
28
+ type: 'text';
29
+ content: string;
30
+ ext?: any;
31
+ senderInfo?: any;
32
+ };
33
+ type MessageImage = {
34
+ messageId: string;
35
+ senderRole: string;
36
+ type: 'image';
37
+ key: string;
38
+ url?: string;
39
+ thumbUrl?: string;
40
+ ext?: any;
41
+ senderInfo?: any;
42
+ };
43
+ type MessageFile = {
44
+ messageId: string;
45
+ senderRole: string;
46
+ type: 'file';
47
+ key: string;
48
+ url?: string;
49
+ fileName: string;
50
+ fileSize: number;
51
+ ext?: any;
52
+ senderInfo?: any;
53
+ };
54
+ type MessageAudio = {
55
+ messageId: string;
56
+ senderRole: string;
57
+ type: 'audio';
58
+ key: string;
59
+ url?: string;
60
+ duration: number;
61
+ ext?: any;
62
+ senderInfo?: any;
63
+ };
64
+ type MessageVideo = {
65
+ messageId: string;
66
+ senderRole: string;
67
+ type: 'video';
68
+ key: string;
69
+ url?: string;
70
+ duration: number;
71
+ thumbUrl?: string;
72
+ ext?: any;
73
+ senderInfo?: any;
74
+ };
75
+ export type MessageType = MessageText | MessageImage | MessageFile | MessageAudio | MessageVideo;
76
+ export {};
@@ -0,0 +1,21 @@
1
+ export type UserStatusType = 'inactive' | 'normal';
2
+ export type UsersType = {
3
+ password: string;
4
+ email: string;
5
+ nickname: string;
6
+ description: string;
7
+ phone: string;
8
+ avatar: string;
9
+ status: UserStatusType;
10
+ organizations: string[];
11
+ };
12
+ export type UsersResponseType = {
13
+ userId: string;
14
+ nickname: string;
15
+ description: string;
16
+ email: string;
17
+ phone: string;
18
+ avatar: string;
19
+ status: UserStatusType;
20
+ organizations: string[];
21
+ };
@@ -0,0 +1,2 @@
1
+ export { default as Upload } from './components/Upload/Upload.vue';
2
+ export { useUploadCos } from './composables/Upload/useUploadCos';
package/dist/upload.js ADDED
@@ -0,0 +1,6 @@
1
+ import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-DmGODzj_.js";
2
+ import { u as s } from "./useUploadCos-DZK5oasq.js";
3
+ export {
4
+ p as Upload,
5
+ s as useUploadCos
6
+ };
@@ -0,0 +1,39 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ import { Message as i } from "@arco-design/web-vue";
4
+ import { ref as e } from "vue";
5
+ function g(o) {
6
+ const n = e(!1), c = e(), s = e(!1), t = e(""), l = e("");
7
+ function u(r) {
8
+ i.success(r), s.value = !1, n.value = !1, o("confirm");
9
+ }
10
+ function f() {
11
+ s.value = !1, console.log("handleClose"), o("cancel");
12
+ }
13
+ return {
14
+ loading: n,
15
+ formRef: c,
16
+ submitSuccess: u,
17
+ modelType: t,
18
+ changeType: l,
19
+ show: s,
20
+ handleCancel: f
21
+ };
22
+ }
23
+ const a = e({
24
+ key: "",
25
+ name: ""
26
+ });
27
+ function h() {
28
+ function o(n, c) {
29
+ a.value.key = n, a.value.name = c;
30
+ }
31
+ return {
32
+ activeDoc: a,
33
+ setActiveDoc: o
34
+ };
35
+ }
36
+ export {
37
+ h as a,
38
+ g as u
39
+ };
@@ -0,0 +1,25 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ import { Message as u } from "@arco-design/web-vue";
4
+ import { ref as e } from "vue";
5
+ function h(s) {
6
+ const n = e(!1), a = e(), o = e(!1), c = e(""), t = e("");
7
+ function l(r) {
8
+ u.success(r), o.value = !1, n.value = !1, s("confirm");
9
+ }
10
+ function f() {
11
+ o.value = !1, console.log("handleClose"), s("cancel");
12
+ }
13
+ return {
14
+ loading: n,
15
+ formRef: a,
16
+ submitSuccess: l,
17
+ modelType: c,
18
+ changeType: t,
19
+ show: o,
20
+ handleCancel: f
21
+ };
22
+ }
23
+ export {
24
+ h as u
25
+ };
@@ -0,0 +1,287 @@
1
+ import { ref as o } from "vue";
2
+ import { api as s } from "@huyooo/api";
3
+ function B(e, u) {
4
+ return s({
5
+ url: `${e}/restfulApi/apps/findOne`,
6
+ method: "post",
7
+ data: u
8
+ });
9
+ }
10
+ function U() {
11
+ return s({
12
+ url: "/restfulApi/apps/authPageInfo",
13
+ method: "post"
14
+ });
15
+ }
16
+ const t = o({
17
+ id: "",
18
+ appKey: "",
19
+ name: "",
20
+ description: "",
21
+ homePageUrl: "",
22
+ applicationLogo: "",
23
+ applicationLogoUrl: "",
24
+ oauth: {
25
+ google: {
26
+ // redirectURI: '',
27
+ // clientID: '',
28
+ // clientSecret: '',
29
+ enabled: !1
30
+ },
31
+ microsoft: {
32
+ // redirectURI: '',
33
+ // clientID: '',
34
+ // clientSecret: '',
35
+ enabled: !1
36
+ },
37
+ github: {
38
+ // redirectURI: '',
39
+ // clientID: '',
40
+ // clientSecret: '',
41
+ enabled: !1
42
+ },
43
+ wechat: {
44
+ // redirectURI: '',
45
+ // clientID: '',
46
+ // clientSecret: '',
47
+ enabled: !1
48
+ }
49
+ },
50
+ 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
+ },
78
+ brand: {
79
+ theme: "dark",
80
+ logo: "",
81
+ favicon: "",
82
+ backgroundType: "image",
83
+ backgroundColor: "",
84
+ backgroundImage: "/66a0d5b35203890887f0e1a4/6714e2458fe86895bf3da8ae/1ef8ed72-1731-6e00-93d1-fa24165f1a3e.webp"
85
+ }
86
+ });
87
+ function D() {
88
+ function e(u) {
89
+ U().then(({
90
+ data: n
91
+ }) => {
92
+ t.value.id = n.id, t.value.appKey = n.appKey, t.value.name = n.name, t.value.description = n.description, t.value.homePageUrl = n.homePageUrl, t.value.applicationLogo = n.applicationLogo, t.value.applicationLogoUrl = n.applicationLogoUrl, t.value.oauth = n.oauth, t.value.authorizationCallback = n.authorizationCallback, t.value.aboutUs = n.aboutUs, t.value.brand = n.brand, u && u();
93
+ }).catch((n) => {
94
+ console.log(n);
95
+ });
96
+ }
97
+ return {
98
+ appsData: t,
99
+ appsAuthPageInfoApi: e
100
+ };
101
+ }
102
+ function k(e) {
103
+ return s({
104
+ url: "/restfulApi/auth/signIn",
105
+ method: "post",
106
+ data: e
107
+ });
108
+ }
109
+ function A(e) {
110
+ return s({
111
+ url: "/restfulApi/auth/resetPassword",
112
+ method: "post",
113
+ data: e
114
+ });
115
+ }
116
+ function P(e) {
117
+ return s({
118
+ url: "/restfulApi/auth/signUp",
119
+ method: "post",
120
+ data: e
121
+ });
122
+ }
123
+ function F(e) {
124
+ return s({
125
+ url: "/restfulApi/oauth2/authorize",
126
+ method: "post",
127
+ data: e
128
+ });
129
+ }
130
+ const i = o("signIn"), c = [], p = [], f = [];
131
+ function y(e) {
132
+ c.push(e);
133
+ }
134
+ function S(e) {
135
+ p.push(e);
136
+ }
137
+ function C(e) {
138
+ f.push(e);
139
+ }
140
+ function M() {
141
+ const e = o(!1), u = o(!1), n = o(!1);
142
+ function h(a) {
143
+ e.value = !0, k({
144
+ email: a.email,
145
+ password: a.password
146
+ }).then(({
147
+ data: r
148
+ }) => {
149
+ e.value = !1, localStorage.setItem("jwtToken", r.jwtToken), c.forEach((w) => w(r));
150
+ }).catch(() => {
151
+ e.value = !1;
152
+ });
153
+ }
154
+ function g(a) {
155
+ u.value = !0, P({
156
+ email: a.email,
157
+ userToken: a.userToken,
158
+ emailVerifyId: a.emailVerifyId,
159
+ password: a.password,
160
+ source: "searchEngine",
161
+ isRecommend: !1
162
+ }).then(() => {
163
+ u.value = !1, i.value = "signIn", p.forEach((r) => r());
164
+ }).catch(() => {
165
+ u.value = !1;
166
+ });
167
+ }
168
+ function m(a) {
169
+ n.value = !0, A({
170
+ email: a.email,
171
+ userToken: a.userToken,
172
+ emailVerifyId: a.emailVerifyId,
173
+ password: a.password
174
+ }).then(() => {
175
+ n.value = !1, i.value = "signIn", f.forEach((r) => r());
176
+ }).catch(() => {
177
+ n.value = !1;
178
+ });
179
+ }
180
+ function b() {
181
+ i.value = "signUp";
182
+ }
183
+ function v() {
184
+ i.value = "resetPassword";
185
+ }
186
+ function I() {
187
+ i.value = "signIn";
188
+ }
189
+ return {
190
+ signInSubmit: h,
191
+ signUpSubmit: g,
192
+ resetPasswordSubmit: m,
193
+ currentView: i,
194
+ authSignInLoading: e,
195
+ authSignUpLoading: u,
196
+ resetPasswordLoading: n,
197
+ switchSignUp: b,
198
+ switchResetPassword: v,
199
+ switchSignIn: I,
200
+ addSignInCallback: y,
201
+ addSignUpCallback: S,
202
+ addResetPasswordCallback: C
203
+ };
204
+ }
205
+ const L = o(!1);
206
+ function $() {
207
+ return {
208
+ show: L
209
+ };
210
+ }
211
+ function T(e) {
212
+ return s({
213
+ url: "/restfulApi/users/profile",
214
+ method: "post",
215
+ data: e
216
+ });
217
+ }
218
+ function q(e) {
219
+ return s({
220
+ url: "/restfulApi/users/update/baseInfo",
221
+ method: "post",
222
+ data: e
223
+ });
224
+ }
225
+ function G(e) {
226
+ return s({
227
+ url: "/restfulApi/users/update/email",
228
+ method: "post",
229
+ data: e
230
+ });
231
+ }
232
+ function H(e) {
233
+ return s({
234
+ url: "/restfulApi/users/update/password",
235
+ method: "post",
236
+ data: e
237
+ });
238
+ }
239
+ function J() {
240
+ return s({
241
+ url: "/restfulApi/users//unbind/email",
242
+ method: "post"
243
+ });
244
+ }
245
+ const d = o(), l = o(!1);
246
+ async function E() {
247
+ l.value = !0;
248
+ try {
249
+ const {
250
+ data: e
251
+ } = await T();
252
+ d.value = e;
253
+ } finally {
254
+ l.value = !1;
255
+ }
256
+ }
257
+ function N() {
258
+ return {
259
+ userProfile: d,
260
+ loading: l,
261
+ fetchUserProfile: E
262
+ };
263
+ }
264
+ const z = o(""), V = o(""), R = o(""), K = o(""), j = o("");
265
+ function Q() {
266
+ return {
267
+ appId: z,
268
+ prefixUrl: V,
269
+ bucket: R,
270
+ bucketId: K,
271
+ region: j
272
+ };
273
+ }
274
+ export {
275
+ D as U,
276
+ N as a,
277
+ $ as b,
278
+ Q as c,
279
+ B as d,
280
+ T as e,
281
+ q as f,
282
+ H as g,
283
+ G as h,
284
+ J as i,
285
+ F as o,
286
+ M as u
287
+ };
@@ -0,0 +1,105 @@
1
+ import { ref as t, computed as C } from "vue";
2
+ import { api as d } from "@huyooo/api";
3
+ function R(a, s) {
4
+ return d({
5
+ url: `${a}/restfulApi/messageCenter/messageNotifications/find`,
6
+ method: "post",
7
+ data: s
8
+ });
9
+ }
10
+ function S(a, s) {
11
+ return d({
12
+ url: `${a}/restfulApi/messageCenter/messageNotifications/read`,
13
+ method: "post",
14
+ data: s
15
+ });
16
+ }
17
+ function y(a, s) {
18
+ return d({
19
+ url: `${a}/restfulApi/messageCenter/messageNotifications/readAll`,
20
+ method: "post",
21
+ data: s
22
+ });
23
+ }
24
+ function D(a, s = "system") {
25
+ const r = t(!0), g = t(""), i = t(!1), v = t(!1), c = t([]), n = t({
26
+ total: 0,
27
+ current: 1,
28
+ pageSize: 10
29
+ }), o = t(!1), u = t(!1), f = t("unread"), A = [{
30
+ label: "未读消息",
31
+ key: "unread"
32
+ }, {
33
+ label: "已读消息",
34
+ key: "read"
35
+ }], m = C(() => f.value === "read");
36
+ function N() {
37
+ r.value = !0;
38
+ }
39
+ function b(e) {
40
+ f.value = e, n.value.current = 1, l();
41
+ }
42
+ function p(e) {
43
+ o.value = !0, S(a, {
44
+ messageId: e
45
+ }).then(() => {
46
+ o.value = !1;
47
+ }).catch(() => {
48
+ o.value = !1;
49
+ });
50
+ }
51
+ function h(e) {
52
+ u.value = !0, y(a, {
53
+ type: e
54
+ }).then(() => {
55
+ u.value = !1, l();
56
+ }).catch(() => {
57
+ u.value = !1;
58
+ });
59
+ }
60
+ function L() {
61
+ c.value.length !== 0 && h(s);
62
+ }
63
+ function l() {
64
+ i.value = !0, R(a, {
65
+ current: n.value.current,
66
+ pageSize: n.value.pageSize,
67
+ where: {
68
+ read: m.value,
69
+ type: s
70
+ }
71
+ }).then(({
72
+ data: e
73
+ }) => {
74
+ i.value = !1, c.value = e.items, n.value.total = e.count, v.value = e.items.length < n.value.pageSize;
75
+ }).catch(() => {
76
+ i.value = !1;
77
+ });
78
+ }
79
+ function z(e) {
80
+ g.value = e.id, r.value = !1, p(e.id);
81
+ }
82
+ return l(), {
83
+ isList: r,
84
+ id: g,
85
+ loading: i,
86
+ finished: v,
87
+ messageList: c,
88
+ pagination: n,
89
+ readLoading: o,
90
+ readAllLoading: u,
91
+ activeTab: f,
92
+ tabs: A,
93
+ read: m,
94
+ toList: N,
95
+ onTabChange: b,
96
+ messageNotificationsReadApi: p,
97
+ messageNotificationsReadAllApi: h,
98
+ readAll: L,
99
+ getData: l,
100
+ openDetails: z
101
+ };
102
+ }
103
+ export {
104
+ D as u
105
+ };
@@ -0,0 +1,69 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ import { Message as O } from "@arco-design/web-vue";
4
+ import { ref as t } from "vue";
5
+ function A(r) {
6
+ const f = t(r), p = t(!1), u = t(!1), a = t({
7
+ total: 0,
8
+ current: 1,
9
+ pageSize: 10,
10
+ showTotal: !0,
11
+ showPageSize: !0
12
+ }), m = t([]), o = t(), i = t(Symbol("key")), l = t(), s = t(Symbol("key")), n = t(), c = t(Symbol("key"));
13
+ function v(e) {
14
+ o.value.setData(e, !0, "edit");
15
+ }
16
+ function y(e) {
17
+ n.value.setData(e, !0, "view");
18
+ }
19
+ function g() {
20
+ o.value.setData(null, !0, "create");
21
+ }
22
+ const d = (e, C) => {
23
+ a.value.current = e, a.value.pageSize = C;
24
+ };
25
+ function S() {
26
+ i.value = Symbol("key");
27
+ }
28
+ function D() {
29
+ s.value = Symbol("key");
30
+ }
31
+ function b(e) {
32
+ l.value.setData(e, !0);
33
+ }
34
+ function k() {
35
+ c.value = Symbol("key");
36
+ }
37
+ function L(e) {
38
+ n.value.setData(e, !0);
39
+ }
40
+ function w(e) {
41
+ O.success(e), u.value = !1;
42
+ }
43
+ return {
44
+ CreateAndUpdateRef: o,
45
+ CreateAndUpdateKey: i,
46
+ OperationLogRef: l,
47
+ OperationLogKey: s,
48
+ DetailsRef: n,
49
+ DetailsKey: c,
50
+ pagination: a,
51
+ title: f,
52
+ edit: v,
53
+ create: g,
54
+ view: y,
55
+ dataSource: m,
56
+ setPage: d,
57
+ cancel: S,
58
+ OperationLogCancel: D,
59
+ openOperationLog: b,
60
+ DetailsCancel: k,
61
+ openDetails: L,
62
+ loading: p,
63
+ submitRemove: w,
64
+ removeLoading: u
65
+ };
66
+ }
67
+ export {
68
+ A as u
69
+ };