@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,867 @@
1
+ import { defineComponent as k, mergeModels as q, useModel as F, createBlock as g, openBlock as o, unref as c, isRef as B, withCtx as _, createElementVNode as C, renderSlot as A, createVNode as y, ref as d, createCommentVNode as h, createElementBlock as v, Fragment as D, renderList as z, toDisplayString as I, createTextVNode as x, withModifiers as K, normalizeClass as E, watch as R, computed as H } from "vue";
2
+ /* empty css */
3
+ /* empty css */
4
+ /* empty css */
5
+ import { Modal as j, Spin as w, Empty as G, Button as J, Divider as P, Breadcrumb as L, BreadcrumbItem as M } from "@arco-design/web-vue";
6
+ import { u as Q } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
7
+ import { M as W } from "./Menu-2SePYCYT.js";
8
+ import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ /* empty css */
10
+ import { api as U } from "@huyooo/api";
11
+ import { TiptapEditor as X, TiptapTitle as Y } from "@huyooo/vue-tiptap";
12
+ /* empty css */
13
+ import { useIntersectionObserver as Z } from "@vueuse/core";
14
+ import { u as ee } from "./useMessageNotifications-lmP0vJDM.js";
15
+ import { Icon as te } from "@iconify/vue";
16
+ const ne = {
17
+ class: "content"
18
+ }, se = {
19
+ class: "left"
20
+ }, ie = /* @__PURE__ */ k({
21
+ __name: "MessageAppMessage",
22
+ props: /* @__PURE__ */ q({
23
+ prefixUrl: {
24
+ type: String,
25
+ required: !0
26
+ },
27
+ menus: {
28
+ type: Array,
29
+ required: !0
30
+ }
31
+ }, {
32
+ selectedKeys: {
33
+ default: ["ChangelogNotifications"]
34
+ },
35
+ selectedKeysModifiers: {}
36
+ }),
37
+ emits: /* @__PURE__ */ q(["cancel", "change"], ["update:selectedKeys"]),
38
+ setup(i, {
39
+ expose: t,
40
+ emit: s
41
+ }) {
42
+ const a = i, l = s, e = F(i, "selectedKeys");
43
+ function n() {
44
+ l("cancel");
45
+ }
46
+ function r(p, f) {
47
+ const $ = p.path;
48
+ e.value = [$], l("change", p, f);
49
+ }
50
+ const {
51
+ changeType: u,
52
+ show: m
53
+ } = Q(l);
54
+ function b(p) {
55
+ m.value = p, u.value = "编辑";
56
+ }
57
+ return t({
58
+ setData: b
59
+ }), (p, f) => (o(), g(c(j), {
60
+ visible: c(m),
61
+ "onUpdate:visible": f[1] || (f[1] = ($) => B(m) ? m.value = $ : null),
62
+ loading: !1,
63
+ "body-class": "AppMessagebodyClass",
64
+ "mask-closable": !1,
65
+ footer: !1,
66
+ "hide-title": !1,
67
+ width: "880px",
68
+ onCancel: n
69
+ }, {
70
+ default: _(() => [C("div", ne, [C("div", se, [y(W, {
71
+ "selected-keys": e.value,
72
+ "onUpdate:selectedKeys": f[0] || (f[0] = ($) => e.value = $),
73
+ menus: a.menus,
74
+ onChange: r
75
+ }, null, 8, ["selected-keys", "menus"])]), A(p.$slots, "default", {}, void 0, !0)])]),
76
+ _: 3
77
+ }, 8, ["visible"]));
78
+ }
79
+ }), ae = /* @__PURE__ */ N(ie, [["__scopeId", "data-v-944d5a11"]]);
80
+ function oe(i, t) {
81
+ return U({
82
+ url: `${i}/restfulApi/messageCenter/changelogNotifications/find`,
83
+ method: "post",
84
+ data: t
85
+ });
86
+ }
87
+ function le(i, t) {
88
+ return U({
89
+ url: `${i}/restfulApi/messageCenter/changelogNotifications/findOne`,
90
+ method: "post",
91
+ data: t
92
+ });
93
+ }
94
+ const re = /* @__PURE__ */ k({
95
+ __name: "MessageDetails",
96
+ props: {
97
+ content: {
98
+ type: Object,
99
+ default: null
100
+ },
101
+ title: {
102
+ type: String,
103
+ required: !0
104
+ },
105
+ loading: {
106
+ type: Boolean,
107
+ default: !1
108
+ }
109
+ },
110
+ emits: ["itemClick", "tableOfContentsUpdate", "update:title", "update:content"],
111
+ setup(i, {
112
+ emit: t
113
+ }) {
114
+ const s = d([]), a = i, l = d(!1), e = t, n = d();
115
+ function r(u) {
116
+ s.value = u, e("tableOfContentsUpdate", u);
117
+ }
118
+ return (u, m) => (o(), g(c(w), {
119
+ loading: a.loading,
120
+ tip: "文档加载中...",
121
+ class: "Spin",
122
+ dot: ""
123
+ }, {
124
+ default: _(() => [y(c(X), {
125
+ ref_key: "TiptapEditorRef",
126
+ ref: n,
127
+ "model-value": a.content,
128
+ editable: l.value,
129
+ "tiptap-editor-content-class": "tiptapEditorContentClass",
130
+ onTableOfContentsUpdate: r
131
+ }, {
132
+ title: _(() => [y(c(Y), {
133
+ "model-value": a.title,
134
+ editable: l.value
135
+ }, null, 8, ["model-value", "editable"])]),
136
+ _: 1
137
+ }, 8, ["model-value", "editable"]), h("", !0)]),
138
+ _: 1
139
+ }, 8, ["loading"]));
140
+ }
141
+ }), O = /* @__PURE__ */ N(re, [["__scopeId", "data-v-8eec0226"]]), ue = /* @__PURE__ */ k({
142
+ __name: "MessageChangelogNotificationsDetails",
143
+ props: {
144
+ prefixUrl: {
145
+ type: String,
146
+ required: !0
147
+ },
148
+ id: {
149
+ type: String,
150
+ required: !0
151
+ }
152
+ },
153
+ setup(i) {
154
+ const t = d(!1), s = d(null), a = d(""), l = i;
155
+ function e() {
156
+ t.value = !0, le(l.prefixUrl, {
157
+ id: l.id
158
+ }).then(({
159
+ data: n
160
+ }) => {
161
+ s.value = n.content, a.value = n.title, t.value = !1;
162
+ }).catch((n) => {
163
+ console.log(n), t.value = !1;
164
+ });
165
+ }
166
+ return e(), (n, r) => (o(), g(O, {
167
+ content: s.value,
168
+ title: a.value,
169
+ loading: t.value
170
+ }, null, 8, ["content", "title", "loading"]));
171
+ }
172
+ }), ce = {
173
+ key: 0,
174
+ class: "loading"
175
+ }, de = {
176
+ key: 1,
177
+ class: "none"
178
+ }, pe = /* @__PURE__ */ k({
179
+ __name: "MessageInfiniteLoading",
180
+ props: {
181
+ loading: {
182
+ type: Boolean,
183
+ default: () => !1
184
+ },
185
+ finished: {
186
+ type: Boolean,
187
+ default: () => !1
188
+ }
189
+ },
190
+ emits: ["infinite"],
191
+ setup(i, {
192
+ emit: t
193
+ }) {
194
+ const s = i, a = t, l = d(null);
195
+ return Z(l, ([{
196
+ isIntersecting: e
197
+ }]) => {
198
+ e && // 当loading和finished的值都为false时,就通知父组件调用方法继续向后台请求数据
199
+ !s.loading && !s.finished && (console.log(e, "isIntersecting"), a("infinite"));
200
+ }, {
201
+ threshold: 0
202
+ }), (e, n) => (o(), v("div", {
203
+ ref_key: "container",
204
+ ref: l,
205
+ class: "infinite-loading"
206
+ }, [i.loading ? (o(), v("div", ce, [y(c(w), {
207
+ tip: "数据加载中..."
208
+ })])) : h("", !0), i.finished ? (o(), v("div", de, [h("", !0)])) : h("", !0)], 512));
209
+ }
210
+ }), fe = /* @__PURE__ */ N(pe, [["__scopeId", "data-v-888e59f2"]]), ge = {
211
+ class: "message-list-container"
212
+ }, me = {
213
+ key: 0,
214
+ class: "empty-wrapper"
215
+ }, ve = {
216
+ class: "messsageItemBody"
217
+ }, _e = {
218
+ class: "messageBody"
219
+ }, ye = {
220
+ class: "messageHeader"
221
+ }, he = {
222
+ key: 1,
223
+ class: "title"
224
+ }, ke = {
225
+ class: "description"
226
+ }, be = {
227
+ class: "createAt"
228
+ }, xe = {
229
+ class: "messageHandle"
230
+ }, Ne = /* @__PURE__ */ k({
231
+ __name: "MessageList",
232
+ props: {
233
+ messageList: {
234
+ type: Array,
235
+ required: !0
236
+ },
237
+ loading: {
238
+ type: Boolean,
239
+ default: !1
240
+ },
241
+ finished: {
242
+ type: Boolean,
243
+ default: !1
244
+ },
245
+ showButton: {
246
+ type: Boolean,
247
+ default: !0
248
+ }
249
+ },
250
+ emits: ["openDetails", "infinite"],
251
+ setup(i, {
252
+ emit: t
253
+ }) {
254
+ const s = i, a = t;
255
+ function l(e, n) {
256
+ a("openDetails", e, n);
257
+ }
258
+ return (e, n) => (o(), v("div", ge, [s.messageList.length === 0 ? (o(), v("div", me, [y(c(G), {
259
+ description: "暂无消息"
260
+ })])) : (o(), v(D, {
261
+ key: 1
262
+ }, [(o(!0), v(D, null, z(s.messageList, (r, u) => (o(), v("div", {
263
+ key: u,
264
+ class: "messageItem"
265
+ }, [C("span", ve, [C("span", _e, [C("span", ye, [e.$slots.title ? A(e.$slots, "title", {
266
+ key: 0,
267
+ item: r,
268
+ index: u
269
+ }, void 0, !0) : (o(), v("span", he, I(r.title), 1))]), C("span", ke, [e.$slots.description ? A(e.$slots, "description", {
270
+ key: 0,
271
+ item: r,
272
+ index: u
273
+ }, void 0, !0) : (o(), v(D, {
274
+ key: 1
275
+ }, [x(I(r.description), 1)], 64))]), C("span", be, [e.$slots.createAt ? A(e.$slots, "createAt", {
276
+ key: 0,
277
+ item: r,
278
+ index: u
279
+ }, void 0, !0) : (o(), v(D, {
280
+ key: 1
281
+ }, [x(I(r.createAt), 1)], 64))])]), C("span", xe, [e.$slots.handle ? A(e.$slots, "handle", {
282
+ key: 0,
283
+ item: r,
284
+ index: u
285
+ }, void 0, !0) : s.showButton ? (o(), g(c(J), {
286
+ key: 1,
287
+ type: "text",
288
+ onClick: K((m) => l(r, u), ["stop"])
289
+ }, {
290
+ default: _(() => n[1] || (n[1] = [x("查看")])),
291
+ _: 2,
292
+ __: [1]
293
+ }, 1032, ["onClick"])) : h("", !0)])]), y(c(P), {
294
+ style: {
295
+ margin: "0px"
296
+ }
297
+ })]))), 128)), y(fe, {
298
+ loading: s.loading,
299
+ finished: s.finished,
300
+ onInfinite: n[0] || (n[0] = (r) => e.$emit("infinite"))
301
+ }, null, 8, ["loading", "finished"])], 64))]));
302
+ }
303
+ }), T = /* @__PURE__ */ N(Ne, [["__scopeId", "data-v-26722948"]]), Ce = {
304
+ class: "right"
305
+ }, $e = /* @__PURE__ */ k({
306
+ __name: "MessageChangelogNotifications",
307
+ props: {
308
+ prefixUrl: {
309
+ type: String,
310
+ required: !0
311
+ }
312
+ },
313
+ setup(i) {
314
+ const t = d(!0), s = i, a = d();
315
+ function l() {
316
+ t.value = !0;
317
+ }
318
+ const e = d(!1), n = d(!1), r = d([]), u = d({
319
+ total: 0,
320
+ current: 1,
321
+ pageSize: 10
322
+ });
323
+ function m() {
324
+ e.value = !0, oe(s.prefixUrl, {
325
+ current: u.value.current,
326
+ pageSize: u.value.pageSize,
327
+ where: {}
328
+ }).then(({
329
+ data: p
330
+ }) => {
331
+ e.value = !1, r.value = p.items, u.value.total = p.count, n.value = p.items.length < u.value.pageSize;
332
+ }).catch(() => {
333
+ e.value = !1;
334
+ });
335
+ }
336
+ function b(p) {
337
+ console.log(p, "itemitem"), a.value = p.id, t.value = !1;
338
+ }
339
+ return m(), (p, f) => (o(), v("div", Ce, [t.value ? h("", !0) : (o(), g(c(L), {
340
+ key: 0,
341
+ style: {
342
+ "margin-bottom": "10px",
343
+ cursor: "pointer"
344
+ }
345
+ }, {
346
+ default: _(() => [y(c(M), {
347
+ style: {
348
+ padding: "0px"
349
+ },
350
+ onClick: l
351
+ }, {
352
+ default: _(() => f[0] || (f[0] = [x("功能变更")])),
353
+ _: 1,
354
+ __: [0]
355
+ }), y(c(M), {
356
+ style: {
357
+ padding: "0px"
358
+ }
359
+ }, {
360
+ default: _(() => f[1] || (f[1] = [x("详情")])),
361
+ _: 1,
362
+ __: [1]
363
+ })]),
364
+ _: 1
365
+ })), t.value ? (o(), g(T, {
366
+ key: 1,
367
+ "message-list": r.value,
368
+ loading: e.value,
369
+ finished: n.value,
370
+ onOpenDetails: b,
371
+ onInfinite: m
372
+ }, null, 8, ["message-list", "loading", "finished"])) : (o(), g(ue, {
373
+ key: 2,
374
+ id: a.value,
375
+ "prefix-url": s.prefixUrl
376
+ }, null, 8, ["id", "prefix-url"]))]));
377
+ }
378
+ }), Me = /* @__PURE__ */ N($e, [["__scopeId", "data-v-bdfbbd9d"]]), Se = {
379
+ style: {
380
+ display: "flex",
381
+ gap: "16px"
382
+ }
383
+ }, Ue = ["onClick"], Ae = /* @__PURE__ */ k({
384
+ __name: "MessageCustomTabs",
385
+ props: {
386
+ modelValue: {
387
+ type: String,
388
+ default: "1"
389
+ },
390
+ tabs: {
391
+ type: Array,
392
+ default: () => [{
393
+ label: "未读消息",
394
+ key: "1"
395
+ }, {
396
+ label: "已读消息",
397
+ key: "2"
398
+ }]
399
+ }
400
+ },
401
+ emits: ["update:modelValue", "change"],
402
+ setup(i, {
403
+ emit: t
404
+ }) {
405
+ const s = i, a = t;
406
+ function l(e) {
407
+ e !== s.modelValue && (a("update:modelValue", e), a("change", e));
408
+ }
409
+ return (e, n) => (o(), v("div", Se, [(o(!0), v(D, null, z(i.tabs, (r) => (o(), v("span", {
410
+ key: r.key,
411
+ class: E(["custom-tab", [{
412
+ active: i.modelValue === r.key
413
+ }]]),
414
+ onClick: (u) => l(r.key)
415
+ }, I(r.label), 11, Ue))), 128))]));
416
+ }
417
+ }), De = /* @__PURE__ */ N(Ae, [["__scopeId", "data-v-fafcc3ad"]]);
418
+ function Ie(i, t) {
419
+ return U({
420
+ url: `${i}/restfulApi/messageCenter/eventNotifications/find`,
421
+ method: "post",
422
+ data: t
423
+ });
424
+ }
425
+ function Le(i, t) {
426
+ return U({
427
+ url: `${i}/restfulApi/messageCenter/eventNotifications/findOne`,
428
+ method: "post",
429
+ data: t
430
+ });
431
+ }
432
+ const Te = /* @__PURE__ */ k({
433
+ __name: "MessageEventNotificationsDetails",
434
+ props: {
435
+ prefixUrl: {
436
+ type: String,
437
+ required: !0
438
+ },
439
+ id: {
440
+ type: String,
441
+ required: !0
442
+ }
443
+ },
444
+ setup(i) {
445
+ const t = d(!1), s = d(null), a = d(""), l = i;
446
+ function e() {
447
+ t.value = !0, Le(l.prefixUrl, {
448
+ id: l.id
449
+ }).then(({
450
+ data: n
451
+ }) => {
452
+ s.value = n.content, a.value = n.title, t.value = !1;
453
+ }).catch((n) => {
454
+ console.log(n), t.value = !1;
455
+ });
456
+ }
457
+ return e(), (n, r) => (o(), g(O, {
458
+ content: s.value,
459
+ title: a.value,
460
+ loading: t.value
461
+ }, null, 8, ["content", "title", "loading"]));
462
+ }
463
+ }), Oe = {
464
+ class: "right"
465
+ }, qe = /* @__PURE__ */ k({
466
+ __name: "MessageEventNotifications",
467
+ props: {
468
+ prefixUrl: {
469
+ type: String,
470
+ required: !0
471
+ }
472
+ },
473
+ setup(i) {
474
+ const t = i, s = d(!0), a = d();
475
+ function l() {
476
+ s.value = !0;
477
+ }
478
+ const e = d(!1), n = d(!1), r = d([]), u = d({
479
+ total: 0,
480
+ current: 1,
481
+ pageSize: 10
482
+ });
483
+ function m() {
484
+ e.value = !0, Ie(t.prefixUrl, {
485
+ current: u.value.current,
486
+ pageSize: u.value.pageSize,
487
+ where: {}
488
+ }).then(({
489
+ data: p
490
+ }) => {
491
+ e.value = !1, r.value = p.items, u.value.total = p.count, n.value = p.items.length < u.value.pageSize;
492
+ }).catch(() => {
493
+ e.value = !1;
494
+ });
495
+ }
496
+ function b(p) {
497
+ a.value = p.id, s.value = !1;
498
+ }
499
+ return m(), (p, f) => (o(), v("div", Oe, [s.value ? h("", !0) : (o(), g(c(L), {
500
+ key: 0,
501
+ style: {
502
+ "margin-bottom": "10px",
503
+ cursor: "pointer"
504
+ }
505
+ }, {
506
+ default: _(() => [y(c(M), {
507
+ style: {
508
+ padding: "0px"
509
+ },
510
+ onClick: l
511
+ }, {
512
+ default: _(() => f[0] || (f[0] = [x("活动通知")])),
513
+ _: 1,
514
+ __: [0]
515
+ }), y(c(M), {
516
+ style: {
517
+ padding: "0px"
518
+ }
519
+ }, {
520
+ default: _(() => f[1] || (f[1] = [x("详情")])),
521
+ _: 1,
522
+ __: [1]
523
+ })]),
524
+ _: 1
525
+ })), s.value ? (o(), g(T, {
526
+ key: 1,
527
+ "message-list": r.value,
528
+ loading: e.value,
529
+ finished: n.value,
530
+ onOpenDetails: b,
531
+ onInfinite: m
532
+ }, null, 8, ["message-list", "loading", "finished"])) : (o(), g(Te, {
533
+ key: 2,
534
+ id: a.value,
535
+ "prefix-url": t.prefixUrl
536
+ }, null, 8, ["id", "prefix-url"]))]));
537
+ }
538
+ }), Be = /* @__PURE__ */ N(qe, [["__scopeId", "data-v-aac8ca02"]]), ze = {
539
+ class: "tabs"
540
+ }, Ee = /* @__PURE__ */ k({
541
+ __name: "MessageTabs",
542
+ props: {
543
+ tabs: {
544
+ type: Array,
545
+ required: !0
546
+ },
547
+ messageList: {
548
+ type: Array,
549
+ required: !0
550
+ },
551
+ activeTab: {
552
+ type: String,
553
+ required: !0
554
+ }
555
+ },
556
+ emits: ["update:activeTab", "change", "readAll"],
557
+ setup(i, {
558
+ emit: t
559
+ }) {
560
+ const s = i, a = t, l = d(s.activeTab);
561
+ R(() => s.activeTab, (r) => {
562
+ l.value = r;
563
+ });
564
+ function e(r) {
565
+ l.value = r, a("update:activeTab", r), a("change", r);
566
+ }
567
+ function n() {
568
+ s.messageList.length !== 0 && a("readAll");
569
+ }
570
+ return (r, u) => (o(), v("div", ze, [y(De, {
571
+ modelValue: l.value,
572
+ "onUpdate:modelValue": u[0] || (u[0] = (m) => l.value = m),
573
+ tabs: i.tabs,
574
+ onChange: e
575
+ }, null, 8, ["modelValue", "tabs"]), l.value === "unread" ? (o(), v("div", {
576
+ key: 0,
577
+ class: E(["readAll", {
578
+ disabled: i.messageList.length === 0
579
+ }]),
580
+ onClick: n
581
+ }, [y(c(te), {
582
+ class: "icon",
583
+ icon: "icon-park-outline:clear"
584
+ }), u[1] || (u[1] = C("span", null, " 全部已读", -1))], 2)) : h("", !0)]));
585
+ }
586
+ }), we = /* @__PURE__ */ N(Ee, [["__scopeId", "data-v-91277265"]]), Ve = {
587
+ class: "right"
588
+ }, Fe = /* @__PURE__ */ k({
589
+ __name: "MessageNotifications",
590
+ props: {
591
+ prefixUrl: {
592
+ type: String,
593
+ required: !0
594
+ }
595
+ },
596
+ setup(i) {
597
+ const t = i, {
598
+ isList: s,
599
+ loading: a,
600
+ finished: l,
601
+ messageList: e,
602
+ activeTab: n,
603
+ tabs: r,
604
+ toList: u,
605
+ onTabChange: m,
606
+ readAll: b,
607
+ getData: p,
608
+ openDetails: f
609
+ } = ee(t.prefixUrl, "system");
610
+ return ($, S) => (o(), v("div", Ve, [c(s) ? h("", !0) : (o(), g(c(L), {
611
+ key: 0,
612
+ style: {
613
+ "margin-bottom": "10px",
614
+ cursor: "pointer"
615
+ }
616
+ }, {
617
+ default: _(() => [y(c(M), {
618
+ style: {
619
+ padding: "0px"
620
+ },
621
+ onClick: c(u)
622
+ }, {
623
+ default: _(() => S[1] || (S[1] = [x("消息通知")])),
624
+ _: 1,
625
+ __: [1]
626
+ }, 8, ["onClick"]), y(c(M), {
627
+ style: {
628
+ padding: "0px"
629
+ }
630
+ }, {
631
+ default: _(() => S[2] || (S[2] = [x("详情")])),
632
+ _: 1,
633
+ __: [2]
634
+ })]),
635
+ _: 1
636
+ })), c(s) ? (o(), g(we, {
637
+ key: 1,
638
+ "active-tab": c(n),
639
+ "onUpdate:activeTab": S[0] || (S[0] = (V) => B(n) ? n.value = V : null),
640
+ tabs: c(r),
641
+ "message-list": c(e),
642
+ onChange: c(m),
643
+ onReadAll: c(b)
644
+ }, null, 8, ["active-tab", "tabs", "message-list", "onChange", "onReadAll"])) : h("", !0), c(s) ? (o(), g(T, {
645
+ key: 2,
646
+ "message-list": c(e),
647
+ loading: c(a),
648
+ finished: c(l),
649
+ "show-button": !1,
650
+ onOpenDetails: c(f),
651
+ onInfinite: c(p)
652
+ }, null, 8, ["message-list", "loading", "finished", "onOpenDetails", "onInfinite"])) : h("", !0)]));
653
+ }
654
+ }), Ke = /* @__PURE__ */ N(Fe, [["__scopeId", "data-v-8c964808"]]);
655
+ function Re(i, t) {
656
+ return U({
657
+ url: `${i}/restfulApi/messageCenter/noticeNotifications/find`,
658
+ method: "post",
659
+ data: t
660
+ });
661
+ }
662
+ function He(i, t) {
663
+ return U({
664
+ url: `${i}/restfulApi/messageCenter/noticeNotifications/findOne`,
665
+ method: "post",
666
+ data: t
667
+ });
668
+ }
669
+ const je = /* @__PURE__ */ k({
670
+ __name: "MessageNoticeNotificationsDetails",
671
+ props: {
672
+ prefixUrl: {
673
+ type: String,
674
+ required: !0
675
+ },
676
+ id: {
677
+ type: String,
678
+ required: !0
679
+ }
680
+ },
681
+ setup(i) {
682
+ const t = d(!1), s = d(null), a = d(""), l = i;
683
+ function e() {
684
+ t.value = !0, He(l.prefixUrl, {
685
+ id: l.id
686
+ }).then(({
687
+ data: n
688
+ }) => {
689
+ s.value = n.content, a.value = n.title, t.value = !1;
690
+ }).catch((n) => {
691
+ console.log(n), t.value = !1;
692
+ });
693
+ }
694
+ return e(), (n, r) => (o(), g(O, {
695
+ content: s.value,
696
+ title: a.value,
697
+ loading: t.value
698
+ }, null, 8, ["content", "title", "loading"]));
699
+ }
700
+ }), Ge = {
701
+ class: "right"
702
+ }, Je = /* @__PURE__ */ k({
703
+ __name: "MessageNoticeNotifications",
704
+ props: {
705
+ prefixUrl: {
706
+ type: String,
707
+ required: !0
708
+ }
709
+ },
710
+ setup(i) {
711
+ const t = i, s = d(), a = d(!0);
712
+ function l() {
713
+ a.value = !0;
714
+ }
715
+ const e = d(!1), n = d(!1), r = d([]), u = d({
716
+ total: 0,
717
+ current: 1,
718
+ pageSize: 10
719
+ });
720
+ function m() {
721
+ e.value = !0, Re(t.prefixUrl, {
722
+ current: u.value.current,
723
+ pageSize: u.value.pageSize,
724
+ where: {}
725
+ }).then(({
726
+ data: p
727
+ }) => {
728
+ e.value = !1, r.value = p.items, u.value.total = p.count, n.value = p.items.length < u.value.pageSize;
729
+ }).catch(() => {
730
+ e.value = !1;
731
+ });
732
+ }
733
+ function b(p) {
734
+ s.value = p.id, a.value = !1;
735
+ }
736
+ return m(), (p, f) => (o(), v("div", Ge, [a.value ? h("", !0) : (o(), g(c(L), {
737
+ key: 0,
738
+ style: {
739
+ "margin-bottom": "10px",
740
+ cursor: "pointer"
741
+ }
742
+ }, {
743
+ default: _(() => [y(c(M), {
744
+ style: {
745
+ padding: "0px"
746
+ },
747
+ onClick: l
748
+ }, {
749
+ default: _(() => f[0] || (f[0] = [x("公告")])),
750
+ _: 1,
751
+ __: [0]
752
+ }), y(c(M), {
753
+ style: {
754
+ padding: "0px"
755
+ }
756
+ }, {
757
+ default: _(() => f[1] || (f[1] = [x("详情")])),
758
+ _: 1,
759
+ __: [1]
760
+ })]),
761
+ _: 1
762
+ })), a.value ? (o(), g(T, {
763
+ key: 1,
764
+ "message-list": r.value,
765
+ loading: e.value,
766
+ finished: n.value,
767
+ onOpenDetails: b,
768
+ onInfinite: m
769
+ }, null, 8, ["message-list", "loading", "finished"])) : (o(), g(je, {
770
+ key: 2,
771
+ id: s.value,
772
+ "prefix-url": t.prefixUrl
773
+ }, null, 8, ["id", "prefix-url"]))]));
774
+ }
775
+ }), Pe = /* @__PURE__ */ N(Je, [["__scopeId", "data-v-21f62e2c"]]), Qe = /* @__PURE__ */ k({
776
+ __name: "MessageHandle",
777
+ props: {
778
+ prefixUrl: {
779
+ type: String,
780
+ required: !0
781
+ }
782
+ },
783
+ setup(i, {
784
+ expose: t
785
+ }) {
786
+ const s = i, a = d(["ChangelogNotifications"]), l = H(() => a.value.length !== 0 ? a.value[0] : ""), e = d(), n = d(Symbol("key"));
787
+ function r() {
788
+ e.value.setData(!0);
789
+ }
790
+ function u() {
791
+ n.value = Symbol("key");
792
+ }
793
+ function m() {
794
+ n.value = Symbol("key");
795
+ }
796
+ const b = d([{
797
+ name: "功能变更",
798
+ path: "ChangelogNotifications",
799
+ meta: {
800
+ icon: "mingcute:cube-3d-fill"
801
+ }
802
+ }, {
803
+ name: "活动通知",
804
+ path: "EventNotifications",
805
+ meta: {
806
+ icon: "mingcute:receive-money-fill"
807
+ }
808
+ }, {
809
+ name: "消息通知",
810
+ path: "MessageNotifications",
811
+ meta: {
812
+ icon: "mingcute:message-1-fill"
813
+ }
814
+ }, {
815
+ name: "公告",
816
+ path: "NoticeNotifications",
817
+ meta: {
818
+ icon: "mingcute:announcement-fill"
819
+ }
820
+ }]);
821
+ return t({
822
+ openNotification: r
823
+ }), (p, f) => (o(), g(ae, {
824
+ ref_key: "MessageNotificationsRef",
825
+ ref: e,
826
+ key: n.value,
827
+ "selected-keys": a.value,
828
+ "onUpdate:selectedKeys": f[0] || (f[0] = ($) => a.value = $),
829
+ menus: b.value,
830
+ "prefix-url": s.prefixUrl,
831
+ title: "消息中心",
832
+ onConfirm: m,
833
+ onCancel: u
834
+ }, {
835
+ default: _(() => [l.value === "ChangelogNotifications" ? (o(), g(Me, {
836
+ key: 0,
837
+ "prefix-url": s.prefixUrl
838
+ }, null, 8, ["prefix-url"])) : h("", !0), l.value === "EventNotifications" ? (o(), g(Be, {
839
+ key: 1,
840
+ "prefix-url": s.prefixUrl
841
+ }, null, 8, ["prefix-url"])) : h("", !0), l.value === "MessageNotifications" ? (o(), g(Ke, {
842
+ key: 2,
843
+ "prefix-url": s.prefixUrl
844
+ }, null, 8, ["prefix-url"])) : h("", !0), l.value === "NoticeNotifications" ? (o(), g(Pe, {
845
+ key: 3,
846
+ "prefix-url": s.prefixUrl
847
+ }, null, 8, ["prefix-url"])) : h("", !0)]),
848
+ _: 1
849
+ }, 8, ["selected-keys", "menus", "prefix-url"]));
850
+ }
851
+ }), dt = /* @__PURE__ */ N(Qe, [["__scopeId", "data-v-791afd23"]]);
852
+ export {
853
+ ae as A,
854
+ Me as C,
855
+ O as D,
856
+ Be as E,
857
+ fe as I,
858
+ dt as M,
859
+ Pe as N,
860
+ ue as _,
861
+ De as a,
862
+ Te as b,
863
+ T as c,
864
+ Ke as d,
865
+ we as e,
866
+ je as f
867
+ };