@huyooo/ui 0.4.4 → 0.4.7

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 (167) hide show
  1. package/dist/AuthkitAppSetting-CufEYL2W.js +1815 -0
  2. package/dist/AuthkitAuthorize-DnvypjyO.js +250 -0
  3. package/dist/CollapseItem-Cw1vcdLu.js +57 -0
  4. package/dist/CustomTable-Cd6RiAPX.js +1337 -0
  5. package/dist/FeedbackFeedBackItem-DYUIzqYg.js +526 -0
  6. package/dist/FeedbackFeedBackModal-DKgZZ8OR.js +1731 -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-CFKM4gyf.js +278 -0
  12. package/dist/ReferrerReferees-q8H-v-Hq.js +185 -0
  13. package/dist/Upload.vue_vue_type_script_setup_true_lang-DqfW_OJJ.js +96 -0
  14. package/dist/UserPanel-azycBFZP.js +511 -0
  15. package/dist/WidthContainer-D795bWdT.js +128 -0
  16. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  17. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  18. package/dist/authkit.d.ts +32 -0
  19. package/dist/authkit.js +36 -0
  20. package/dist/common.d.ts +24 -0
  21. package/dist/common.js +39 -0
  22. package/dist/components/Authkit/Auth/AuthkitAuthorize.vue.d.ts +104 -0
  23. package/dist/components/Feedback/FeedbackFeedBack.vue.d.ts +53 -0
  24. package/dist/components/Feedback/FeedbackFeedBackItem.vue.d.ts +32 -0
  25. package/dist/components/Feedback/FeedbackFloatButton.vue.d.ts +42 -0
  26. package/dist/components/Gradientbackground.vue.d.ts +1 -1
  27. package/dist/components/LandingPage/LandingPageAbout.vue.d.ts +2 -0
  28. package/dist/components/LandingPage/LandingPageAside.vue.d.ts +2 -0
  29. package/dist/components/LandingPage/LandingPageBlockHeader.vue.d.ts +18 -0
  30. package/dist/components/LandingPage/LandingPageBlockLayout.vue.d.ts +41 -0
  31. package/dist/components/LandingPage/LandingPageBrandInfo.vue.d.ts +47 -0
  32. package/dist/components/LandingPage/LandingPageButton.vue.d.ts +20 -0
  33. package/dist/components/LandingPage/LandingPageContact.vue.d.ts +29 -0
  34. package/dist/components/LandingPage/LandingPageContactForm.vue.d.ts +2 -0
  35. package/dist/components/LandingPage/LandingPageContainer.vue.d.ts +17 -0
  36. package/dist/components/LandingPage/LandingPageCta.vue.d.ts +25 -0
  37. package/dist/components/LandingPage/LandingPageDescription.vue.d.ts +17 -0
  38. package/dist/components/LandingPage/LandingPageDivider.vue.d.ts +2 -0
  39. package/dist/components/LandingPage/LandingPageFAQ.vue.d.ts +13 -0
  40. package/dist/components/LandingPage/LandingPageFeatures.vue.d.ts +16 -0
  41. package/dist/components/LandingPage/LandingPageFeatures2.vue.d.ts +13 -0
  42. package/dist/components/LandingPage/LandingPageFooter.vue.d.ts +2 -0
  43. package/dist/components/LandingPage/LandingPageFooterLayout.vue.d.ts +19 -0
  44. package/dist/components/LandingPage/LandingPageHero.vue.d.ts +49 -0
  45. package/dist/components/LandingPage/LandingPageLink.vue.d.ts +17 -0
  46. package/dist/components/LandingPage/LandingPageLinkGroup.vue.d.ts +22 -0
  47. package/dist/components/LandingPage/LandingPageListItem.vue.d.ts +7 -0
  48. package/dist/components/LandingPage/LandingPageLogo.vue.d.ts +53 -0
  49. package/dist/components/LandingPage/LandingPageLogos.vue.d.ts +14 -0
  50. package/dist/components/LandingPage/LandingPageMission.vue.d.ts +10 -0
  51. package/dist/components/LandingPage/LandingPagePageContent.vue.d.ts +31 -0
  52. package/dist/components/LandingPage/LandingPagePriceGroup.vue.d.ts +17 -0
  53. package/dist/components/LandingPage/LandingPagePricingGrid.vue.d.ts +17 -0
  54. package/dist/components/LandingPage/LandingPageSections.vue.d.ts +23 -0
  55. package/dist/components/LandingPage/LandingPageShowcase.vue.d.ts +26 -0
  56. package/dist/components/LandingPage/LandingPageStats.vue.d.ts +16 -0
  57. package/dist/components/LandingPage/LandingPageSteps.vue.d.ts +33 -0
  58. package/dist/components/LandingPage/LandingPageSubTitle.vue.d.ts +17 -0
  59. package/dist/components/LandingPage/LandingPageTabs.vue.d.ts +32 -0
  60. package/dist/components/LandingPage/LandingPageTeamInfo.vue.d.ts +6 -0
  61. package/dist/components/LandingPage/LandingPageTeamList.vue.d.ts +9 -0
  62. package/dist/components/LandingPage/LandingPageTestimonial.vue.d.ts +13 -0
  63. package/dist/components/LandingPage/LandingPageTips.vue.d.ts +23 -0
  64. package/dist/components/LandingPage/LandingPageTitle.vue.d.ts +17 -0
  65. package/dist/components/LandingPage/LandingPageToc.vue.d.ts +2 -0
  66. package/dist/components/Message/MessageCustomTabs.vue.d.ts +44 -0
  67. package/dist/components/{MessageCenter/MessageCenterHandle.vue.d.ts → Message/MessageHandle.vue.d.ts} +5 -5
  68. package/dist/components/Message/MessageMenu.vue.d.ts +27 -0
  69. package/dist/components/Message/MessageMenuItem.vue.d.ts +44 -0
  70. package/dist/components/Upload/Upload.vue.d.ts +80 -0
  71. package/dist/components/User/UserBasicInformation.vue.d.ts +1 -1
  72. package/dist/components/User/UserPanel.vue.d.ts +23 -23
  73. package/dist/composables/Authkit/{useAppsAuthPageInfo.d.ts → useAuthkitAppsAuthPageInfo.d.ts} +1 -1
  74. package/dist/composables/Authkit/{useAuth.d.ts → useAuthkitAuth.d.ts} +1 -1
  75. package/dist/composables/Authkit/{useAuthModal.d.ts → useAuthkitAuthModal.d.ts} +1 -1
  76. package/dist/composables/Authkit/{useCreateAndUpdate.d.ts → useAuthkitCreateAndUpdate.d.ts} +1 -1
  77. package/dist/composables/Authkit/{useOAuth.d.ts → useAuthkitOAuth.d.ts} +1 -1
  78. package/dist/composables/Authkit/useAuthkitProps.d.ts +7 -0
  79. package/dist/composables/Authkit/{useUsersProfile.d.ts → useAuthkitUsersProfile.d.ts} +2 -2
  80. package/dist/composables/Upload/{useCos.d.ts → useUploadCos.d.ts} +1 -1
  81. package/dist/composables.d.ts +12 -0
  82. package/dist/composables.js +21 -0
  83. package/dist/feedback.d.ts +14 -0
  84. package/dist/feedback.js +17 -0
  85. package/dist/index-Cr5RQSnA.js +73 -0
  86. package/dist/index.js +153 -98959
  87. package/dist/landingPage.d.ts +42 -0
  88. package/dist/landingPage.js +45 -0
  89. package/dist/main.d.ts +13 -42
  90. package/dist/message.d.ts +17 -0
  91. package/dist/message.js +22 -0
  92. package/dist/pay.d.ts +1 -0
  93. package/dist/pay.js +4 -0
  94. package/dist/plugin-vue_export-helper-LjDO2Zua.js +19 -0
  95. package/dist/referrer.d.ts +1 -0
  96. package/dist/referrer.js +4 -0
  97. package/dist/style.css +1 -1
  98. package/dist/styles.d.ts +1 -0
  99. package/dist/styles.js +4 -0
  100. package/dist/upload.d.ts +2 -0
  101. package/dist/upload.js +6 -0
  102. package/dist/useActiveDoc-BWHkOJhJ.js +39 -0
  103. package/dist/useAuthkitCreateAndUpdate-BpPW409v.js +25 -0
  104. package/dist/useAuthkitProps-ZAjekGnM.js +287 -0
  105. package/dist/useMessageNotifications-lmP0vJDM.js +105 -0
  106. package/dist/useTableHandle-DKUIdSSh.js +69 -0
  107. package/dist/useUploadCos-DpOqkozy.js +7395 -0
  108. package/dist/useUserPanelProps-Dt9zkMJw.js +14 -0
  109. package/dist/user.d.ts +7 -0
  110. package/dist/user.js +10 -0
  111. package/package.json +75 -23
  112. package/dist/composables/Authkit/useProps.d.ts +0 -7
  113. package/dist/api/{MessageCenter → Message}/ChangelogNotifications.d.ts +0 -0
  114. package/dist/api/{MessageCenter → Message}/EventNotifications.d.ts +0 -0
  115. package/dist/api/{MessageCenter → Message}/MessageNotifications.d.ts +0 -0
  116. package/dist/api/{MessageCenter → Message}/NoticeNotifications.d.ts +0 -0
  117. package/dist/components/Authkit/AppSetting/{EmailBinding.vue.d.ts → AuthkitEmailBinding.vue.d.ts} +0 -0
  118. package/dist/components/Authkit/AppSetting/{EmailVerify.vue.d.ts → AuthkitEmailVerify.vue.d.ts} +0 -0
  119. package/dist/components/Authkit/AppSetting/{GithubBinding.vue.d.ts → AuthkitGithubBinding.vue.d.ts} +0 -0
  120. package/dist/components/Authkit/AppSetting/{PasswordUpdate.vue.d.ts → AuthkitPasswordUpdate.vue.d.ts} +0 -0
  121. package/dist/components/Authkit/AppSetting/{PersonalInformation.vue.d.ts → AuthkitPersonalInformation.vue.d.ts} +0 -0
  122. package/dist/components/Authkit/AppSetting/{SetPassword.vue.d.ts → AuthkitSetPassword.vue.d.ts} +0 -0
  123. package/dist/components/Authkit/Auth/{AuthContainer.vue.d.ts → AuthkitAuthContainer.vue.d.ts} +0 -0
  124. package/dist/components/Authkit/Auth/{Title.vue.d.ts → AuthkitAuthTitle.vue.d.ts} +0 -0
  125. package/dist/components/Authkit/Auth/{EmailUpdate.vue.d.ts → AuthkitEmailUpdate.vue.d.ts} +0 -0
  126. package/dist/components/Authkit/Auth/{OAuthItem.vue.d.ts → AuthkitOAuthItem.vue.d.ts} +1 -1
  127. package/dist/components/Authkit/Auth/{OAuthList.vue.d.ts → AuthkitOAuthList.vue.d.ts} +1 -1
  128. package/dist/components/Authkit/Auth/{PasswordAuth.vue.d.ts → AuthkitPasswordAuth.vue.d.ts} +0 -0
  129. package/dist/components/Authkit/Auth/{PasswordUpdateAndVerify.vue.d.ts → AuthkitPasswordUpdateAndVerify.vue.d.ts} +2 -2
  130. package/dist/components/Authkit/Auth/{ResetPassword.vue.d.ts → AuthkitResetPassword.vue.d.ts} +0 -0
  131. package/dist/components/Authkit/Auth/{ServiceAgreementAndPrivacyProtection.vue.d.ts → AuthkitServiceAgreementAndPrivacyProtection.vue.d.ts} +0 -0
  132. package/dist/components/Authkit/Auth/{SignIn.vue.d.ts → AuthkitSignIn.vue.d.ts} +0 -0
  133. package/dist/components/Authkit/Auth/{SignUp.vue.d.ts → AuthkitSignUp.vue.d.ts} +0 -0
  134. package/dist/components/Authkit/Auth/{SwitchSignIn.vue.d.ts → AuthkitSwitchSignIn.vue.d.ts} +0 -0
  135. package/dist/components/Authkit/Auth/{SwitchSignUpOrResetPassword.vue.d.ts → AuthkitSwitchSignUpOrResetPassword.vue.d.ts} +0 -0
  136. package/dist/components/Authkit/{AppSetting.vue.d.ts → AuthkitAppSetting.vue.d.ts} +2 -2
  137. package/dist/components/Authkit/{Auth.vue.d.ts → AuthkitAuth.vue.d.ts} +0 -0
  138. package/dist/components/Authkit/{AuthModal.vue.d.ts → AuthkitAuthModal.vue.d.ts} +4 -4
  139. package/dist/components/Authkit/{SendVerifyCode.vue.d.ts → AuthkitSendVerifyCode.vue.d.ts} +0 -0
  140. package/dist/components/Feedback/{BubbleEnd.vue.d.ts → FeedbackBubbleEnd.vue.d.ts} +0 -0
  141. package/dist/components/Feedback/{BubbleStart.vue.d.ts → FeedbackBubbleStart.vue.d.ts} +0 -0
  142. package/dist/components/Feedback/{Clipboard.vue.d.ts → FeedbackClipboard.vue.d.ts} +0 -0
  143. package/dist/components/{MessageCenter/CustomTabs.vue.d.ts → Feedback/FeedbackCustomTabs.vue.d.ts} +0 -0
  144. package/dist/components/Feedback/{FeedBackDetails.vue.d.ts → FeedbackFeedBackDetails.vue.d.ts} +0 -0
  145. package/dist/components/Feedback/{FeedBackFrom.vue.d.ts → FeedbackFeedBackFrom.vue.d.ts} +0 -0
  146. package/dist/components/Feedback/{FeedBackList.vue.d.ts → FeedbackFeedBackList.vue.d.ts} +0 -0
  147. package/dist/components/Feedback/{FeedBackModal.vue.d.ts → FeedbackFeedBackModal.vue.d.ts} +2 -2
  148. package/dist/components/Feedback/{Refresh.vue.d.ts → FeedbackRefresh.vue.d.ts} +0 -0
  149. package/dist/components/Feedback/{Screenshots.vue.d.ts → FeedbackScreenshots.vue.d.ts} +0 -0
  150. package/dist/components/{Pay/PricingGrid.vue.d.ts → LandingPage/LandingPageCard.vue.d.ts} +0 -0
  151. package/dist/components/{FooterContact.vue.d.ts → LandingPage/LandingPageFooterContact.vue.d.ts} +0 -0
  152. package/dist/components/{Pay/PricingCard.vue.d.ts → LandingPage/LandingPagePricingCard.vue.d.ts} +0 -0
  153. package/dist/components/{MessageCenter/AppMessage.vue.d.ts → Message/MessageAppMessage.vue.d.ts} +2 -2
  154. package/dist/components/{MessageCenter/ChangelogNotifications.vue.d.ts → Message/MessageChangelogNotifications.vue.d.ts} +0 -0
  155. package/dist/components/{MessageCenter/ChangelogNotificationsDetails.vue.d.ts → Message/MessageChangelogNotificationsDetails.vue.d.ts} +0 -0
  156. package/dist/components/{MessageCenter/Details.vue.d.ts → Message/MessageDetails.vue.d.ts} +0 -0
  157. package/dist/components/{MessageCenter/EventNotifications.vue.d.ts → Message/MessageEventNotifications.vue.d.ts} +0 -0
  158. package/dist/components/{MessageCenter/EventNotificationsDetails.vue.d.ts → Message/MessageEventNotificationsDetails.vue.d.ts} +0 -0
  159. package/dist/components/{MessageCenter/InfiniteLoading.vue.d.ts → Message/MessageInfiniteLoading.vue.d.ts} +0 -0
  160. package/dist/components/{MessageCenter → Message}/MessageList.vue.d.ts +0 -0
  161. package/dist/components/{MessageCenter/MessageNotifications.vue.d.ts → Message/MessageNoticeNotifications.vue.d.ts} +0 -0
  162. package/dist/components/{MessageCenter/NoticeNotificationsDetails.vue.d.ts → Message/MessageNoticeNotificationsDetails.vue.d.ts} +0 -0
  163. package/dist/components/{MessageCenter/NoticeNotifications.vue.d.ts → Message/MessageNotifications.vue.d.ts} +0 -0
  164. package/dist/components/{MessageCenter → Message}/MessageTabs.vue.d.ts +0 -0
  165. package/dist/components/Pay/{Subscriptions.vue.d.ts → PaySubscriptions.vue.d.ts} +2 -2
  166. /package/dist/components/Referrer/{Referees.vue.d.ts → ReferrerReferees.vue.d.ts} +0 -0
  167. /package/dist/components/User/{SubscriptionBaseInformation.vue.d.ts → UserSubscriptionBaseInformation.vue.d.ts} +0 -0
@@ -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,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-DqfW_OJJ.js";
2
+ import { u as s } from "./useUploadCos-DpOqkozy.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
+ };