@huyooo/ui 0.4.9 → 0.4.12

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