@huyooo/ui 0.7.20 → 0.7.24

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 (62) hide show
  1. package/dist/{AuthkitAuthModal-DxxZlUbh.js → AuthkitAuthModal-DcZ69VKT.js} +670 -685
  2. package/dist/{AuthkitSignInPhone-BfqNvheZ.js → AuthkitSignInPhone-CJLeElZ1.js} +224 -232
  3. package/dist/{Clipboard-C_4QFg2W.js → Clipboard-BVSUEtX_.js} +2 -2
  4. package/dist/{Contact-DJtDuS50.js → Contact-DWQjd6yu.js} +2 -2
  5. package/dist/{FeedbackItem-CI-w_fOt.js → FeedbackItem-qppn-rOs.js} +3 -3
  6. package/dist/{FeedbackModal-3k-cMuoY.js → FeedbackModal-28L6QJaB.js} +329 -342
  7. package/dist/{MessageHandle-Pxxvhs-7.js → MessageHandle-DaczDI82.js} +212 -236
  8. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BVvzvLUA.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DHO6VGx-.js} +26 -28
  9. package/dist/{MessageNotifications-FkiOW4qU.js → MessageNotifications-IluYhczu.js} +1 -1
  10. package/dist/{PaySubscriptions-BHTKDYFN.js → PaySubscriptions-BqtXFPHR.js} +50 -74
  11. package/dist/{ReferrerReferees-9wk0_tGC.js → ReferrerReferees-D6CNoqs4.js} +30 -32
  12. package/dist/{Upload.vue_vue_type_script_setup_true_lang-RZzfS9p1.js → Upload.vue_vue_type_script_setup_true_lang-D2gY_z-p.js} +1 -1
  13. package/dist/{UserAccountMenu-CKGTR8GB.js → UserAccountMenu--fY2QkYw.js} +7 -7
  14. package/dist/{WidthContainer-BC30d-AV.js → WidthContainer-DMJSBs_q.js} +7 -7
  15. package/dist/api/Authkit/Users.d.ts +7 -7
  16. package/dist/api/Authkit/apps.d.ts +2 -2
  17. package/dist/api/Authkit/auth.d.ts +10 -10
  18. package/dist/api/Authkit/oauth.d.ts +3 -3
  19. package/dist/api/Authkit/verify.d.ts +18 -5
  20. package/dist/api/Buckets/Files.d.ts +7 -7
  21. package/dist/api/Buckets.d.ts +2 -2
  22. package/dist/api/Invoices.d.ts +6 -6
  23. package/dist/api/Message/ChangelogNotifications.d.ts +2 -31
  24. package/dist/api/Message/EventNotifications.d.ts +2 -35
  25. package/dist/api/Message/MessageNotifications.d.ts +5 -35
  26. package/dist/api/Message/NoticeNotifications.d.ts +5 -42
  27. package/dist/api/Messages.d.ts +2 -2
  28. package/dist/api/Orders.d.ts +9 -9
  29. package/dist/api/Products.d.ts +6 -6
  30. package/dist/api/Quotas.d.ts +6 -6
  31. package/dist/api/Referrer.d.ts +1 -1
  32. package/dist/api/Subscriptions.d.ts +7 -7
  33. package/dist/api/index.d.ts +8 -8
  34. package/dist/authkit.js +6 -6
  35. package/dist/common.js +1 -1
  36. package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +1 -1
  37. package/dist/composables/Authkit/useAuthkitAuth.d.ts +3 -3
  38. package/dist/composables/useMessageNotifications.d.ts +3 -3
  39. package/dist/composables.js +9 -9
  40. package/dist/feedback.js +3 -3
  41. package/dist/index.js +24 -24
  42. package/dist/message.js +3 -3
  43. package/dist/pay.js +1 -1
  44. package/dist/privateCom.js +1 -1
  45. package/dist/referrer.js +1 -1
  46. package/dist/request-BkNyIDws.js +196 -0
  47. package/dist/style.css +1 -1
  48. package/dist/upload.js +2 -2
  49. package/dist/{useAuthkitAppsAuthPageInfo-AFq46sfo.js → useAuthkitAppsAuthPageInfo-Bu-Q-44G.js} +17 -19
  50. package/dist/{useAuthkitCreateAndUpdate-BZXteclG.js → useAuthkitCreateAndUpdate-DHGgpk14.js} +1 -1
  51. package/dist/useAuthkitUsersProfile-D58I5n2T.js +257 -0
  52. package/dist/{useDownloads-2DzDw0ic.js → useDownloads-jzTsK6S6.js} +1 -1
  53. package/dist/useMessageNotifications-CLowHpNV.js +78 -0
  54. package/dist/{useSEO-BmD-Tu3B.js → useSEO-Curqg3Re.js} +2 -2
  55. package/dist/{useTableHandle-SmqaOxbN.js → useTableHandle-MuavycJ7.js} +1 -1
  56. package/dist/{useUploadCos-8imaHXLO.js → useUploadCos-C4mpMNhT.js} +10 -7
  57. package/dist/user.js +1 -1
  58. package/dist/utils/request.d.ts +25 -2
  59. package/package.json +1 -1
  60. package/dist/auth-CfexrvhT.js +0 -188
  61. package/dist/useAuthkitUsersProfile-B26kPQrp.js +0 -234
  62. package/dist/useMessageNotifications-DiF1CPlT.js +0 -84
@@ -1,17 +1,17 @@
1
- import { ref as p, defineComponent as x, createBlock as _, openBlock as s, unref as i, withCtx as f, createVNode as A, createCommentVNode as $, createElementBlock as b, normalizeClass as K, createElementVNode as L, renderSlot as B, toDisplayString as T, createTextVNode as w, Fragment as P, renderList as Z, createSlots as ne, mergeProps as F, watch as ie, computed as Q, mergeModels as W, useModel as oe, isRef as le } from "vue";
1
+ import { ref as p, defineComponent as x, createBlock as _, openBlock as s, unref as i, withCtx as f, createVNode as A, createCommentVNode as $, createElementBlock as k, normalizeClass as K, createElementVNode as L, renderSlot as B, toDisplayString as T, createTextVNode as N, Fragment as P, renderList as Z, createSlots as ne, mergeProps as F, watch as ie, computed as Q, mergeModels as W, useModel as oe, isRef as le } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  import { Spin as ee, Empty as te, Tag as z, Button as re, Breadcrumb as H, BreadcrumbItem as R, Modal as ue } from "@arco-design/web-vue";
8
- import { c as U, g as O } from "./auth-CfexrvhT.js";
8
+ import { c as U, g as O } from "./request-BkNyIDws.js";
9
9
  import { TiptapEditor as de, TiptapTitle as ce } from "@huyooo/vue-tiptap";
10
10
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  import { useIntersectionObserver as fe } from "@vueuse/core";
12
- import { m as X, a as pe, b as ge, c as ve } from "./MessageNotifications-FkiOW4qU.js";
12
+ import { m as X, a as pe, b as ge, c as ve } from "./MessageNotifications-IluYhczu.js";
13
13
  import { Icon as me } from "@iconify/vue";
14
- import { u as ye } from "./useAuthkitCreateAndUpdate-BZXteclG.js";
14
+ import { u as ye } from "./useAuthkitCreateAndUpdate-DHGgpk14.js";
15
15
  import { M as _e } from "./Menu-H-LxepvQ.js";
16
16
  function he(e) {
17
17
  return U({
@@ -53,7 +53,7 @@ function ae(e, l = {}) {
53
53
  }
54
54
  }
55
55
  }
56
- async function k() {
56
+ async function C() {
57
57
  if (!(o.value || n.value)) {
58
58
  c.value.current += 1, o.value = !0;
59
59
  try {
@@ -80,12 +80,12 @@ function ae(e, l = {}) {
80
80
  t.value = M.id, r.value = !1, V(M.id);
81
81
  }
82
82
  function V(M) {
83
- const C = u.value.find((v) => v.id === M);
84
- C && C.read !== void 0 && (C.read = !0);
83
+ const b = u.value.find((v) => v.id === M);
84
+ b && b.read !== void 0 && (b.read = !0);
85
85
  }
86
86
  function E(M) {
87
- const C = u.value.find((v) => v.id === M);
88
- C && C.read !== void 0 && (C.read = !1);
87
+ const b = u.value.find((v) => v.id === M);
88
+ b && b.read !== void 0 && (b.read = !1);
89
89
  }
90
90
  return S(), {
91
91
  // 状态
@@ -97,7 +97,7 @@ function ae(e, l = {}) {
97
97
  pagination: c,
98
98
  // 方法
99
99
  loadData: S,
100
- loadMore: k,
100
+ loadMore: C,
101
101
  refresh: y,
102
102
  toList: h,
103
103
  openDetail: D,
@@ -162,16 +162,14 @@ const ke = /* @__PURE__ */ x({
162
162
  },
163
163
  setup(e) {
164
164
  const l = p(!1), a = p(null), d = p(""), r = e;
165
- function t() {
166
- l.value = !0, be({
167
- id: r.id
168
- }).then(({
165
+ async function t() {
166
+ l.value = !0;
167
+ const {
169
168
  data: o
170
- }) => {
171
- a.value = o.content, d.value = o.title, l.value = !1;
172
- }).catch((o) => {
173
- console.error("获取变更日志详情失败:", o), l.value = !1;
169
+ } = await be({
170
+ id: r.id
174
171
  });
172
+ l.value = !1, o && (a.value = o.content, d.value = o.title);
175
173
  }
176
174
  return t(), (o, n) => (s(), _(j, {
177
175
  content: a.value,
@@ -185,7 +183,7 @@ const ke = /* @__PURE__ */ x({
185
183
  }, Ae = {
186
184
  key: 1,
187
185
  class: "none"
188
- }, Ne = /* @__PURE__ */ x({
186
+ }, we = /* @__PURE__ */ x({
189
187
  __name: "InfiniteLoading",
190
188
  props: {
191
189
  loading: {
@@ -225,17 +223,17 @@ const ke = /* @__PURE__ */ x({
225
223
  !a.loading && !a.finished && d("infinite");
226
224
  }, {
227
225
  threshold: a.threshold
228
- }), (t, o) => (s(), b("div", {
226
+ }), (t, o) => (s(), k("div", {
229
227
  ref_key: "container",
230
228
  ref: r,
231
229
  class: "infinite-loading"
232
- }, [e.loading ? (s(), b("div", $e, [A(i(ee), {
230
+ }, [e.loading ? (s(), k("div", $e, [A(i(ee), {
233
231
  tip: e.loadingText
234
- }, null, 8, ["tip"])])) : $("", !0), e.finished && e.showFinishedText ? (s(), b("div", Ae, [A(i(te), {
232
+ }, null, 8, ["tip"])])) : $("", !0), e.finished && e.showFinishedText ? (s(), k("div", Ae, [A(i(te), {
235
233
  description: e.finishedText
236
234
  }, null, 8, ["description"])])) : $("", !0)], 512));
237
235
  }
238
- }), we = /* @__PURE__ */ I(Ne, [["__scopeId", "data-v-b513f798"]]), Se = {
236
+ }), Ne = /* @__PURE__ */ I(we, [["__scopeId", "data-v-b513f798"]]), Se = {
239
237
  class: "message-item__content"
240
238
  }, Me = {
241
239
  class: "message-item__header"
@@ -264,12 +262,12 @@ const ke = /* @__PURE__ */ x({
264
262
  },
265
263
  emits: ["click"],
266
264
  setup(e) {
267
- return (l, a) => (s(), b("div", {
265
+ return (l, a) => (s(), k("div", {
268
266
  class: K(["message-item", {
269
267
  "message-item--unread": e.showReadStatus && !e.item.read
270
268
  }]),
271
269
  onClick: a[0] || (a[0] = (d) => l.$emit("click", e.item))
272
- }, [L("div", Se, [L("div", Me, [e.showReadStatus ? (s(), b("span", {
270
+ }, [L("div", Se, [L("div", Me, [e.showReadStatus ? (s(), k("span", {
273
271
  key: 0,
274
272
  class: K(["message-item__dot", {
275
273
  "message-item__dot--unread": !e.item.read
@@ -281,7 +279,7 @@ const ke = /* @__PURE__ */ x({
281
279
  color: "arcoblue",
282
280
  size: "small"
283
281
  }, {
284
- default: f(() => [...a[1] || (a[1] = [w("置顶", -1)])]),
282
+ default: f(() => [...a[1] || (a[1] = [N("置顶", -1)])]),
285
283
  _: 1
286
284
  })) : $("", !0), B(l.$slots, "tags", {
287
285
  item: e.item
@@ -290,25 +288,25 @@ const ke = /* @__PURE__ */ x({
290
288
  color: "red",
291
289
  size: "small"
292
290
  }, {
293
- default: f(() => [...a[2] || (a[2] = [w("紧急", -1)])]),
291
+ default: f(() => [...a[2] || (a[2] = [N("紧急", -1)])]),
294
292
  _: 1
295
293
  })) : e.item.priority === "important" ? (s(), _(i(z), {
296
294
  key: 1,
297
295
  color: "orange",
298
296
  size: "small"
299
297
  }, {
300
- default: f(() => [...a[3] || (a[3] = [w("重要", -1)])]),
298
+ default: f(() => [...a[3] || (a[3] = [N("重要", -1)])]),
301
299
  _: 1
302
300
  })) : e.item.priority === "high" ? (s(), _(i(z), {
303
301
  key: 2,
304
302
  color: "orange",
305
303
  size: "small"
306
304
  }, {
307
- default: f(() => [...a[4] || (a[4] = [w("高", -1)])]),
305
+ default: f(() => [...a[4] || (a[4] = [N("高", -1)])]),
308
306
  _: 1
309
307
  })) : $("", !0)], !0)])]), L("div", Te, [B(l.$slots, "description", {
310
308
  item: e.item
311
- }, () => [w(T(e.item.description), 1)], !0)]), L("div", Ie, [L("span", ze, T(e.item.createAt), 1), B(l.$slots, "footer", {
309
+ }, () => [N(T(e.item.description), 1)], !0)]), L("div", Ie, [L("span", ze, T(e.item.createAt), 1), B(l.$slots, "footer", {
312
310
  item: e.item
313
311
  }, void 0, !0)])]), L("div", Be, [B(l.$slots, "actions", {
314
312
  item: e.item
@@ -317,7 +315,7 @@ const ke = /* @__PURE__ */ x({
317
315
  type: "text",
318
316
  size: "small"
319
317
  }, {
320
- default: f(() => [...a[5] || (a[5] = [w("查看", -1)])]),
318
+ default: f(() => [...a[5] || (a[5] = [N("查看", -1)])]),
321
319
  _: 1
322
320
  })) : $("", !0)], !0)])], 2));
323
321
  }
@@ -351,11 +349,11 @@ const ke = /* @__PURE__ */ x({
351
349
  function r(t) {
352
350
  d("itemClick", t);
353
351
  }
354
- return (t, o) => (s(), b("div", Ue, [a.messageList.length === 0 && !a.loading ? (s(), b("div", Oe, [A(i(te), {
352
+ return (t, o) => (s(), k("div", Ue, [a.messageList.length === 0 && !a.loading ? (s(), k("div", Oe, [A(i(te), {
355
353
  description: "暂无消息"
356
- })])) : (s(), b(P, {
354
+ })])) : (s(), k(P, {
357
355
  key: 1
358
- }, [(s(!0), b(P, null, Z(a.messageList, (n) => (s(), _(Re, {
356
+ }, [(s(!0), k(P, null, Z(a.messageList, (n) => (s(), _(Re, {
359
357
  key: n.id,
360
358
  item: n,
361
359
  "show-read-status": a.showReadStatus,
@@ -393,7 +391,7 @@ const ke = /* @__PURE__ */ x({
393
391
  ref_for: !0
394
392
  }, u), void 0, !0)]),
395
393
  key: "4"
396
- } : void 0]), 1032, ["item", "show-read-status", "show-view-button", "onClick"]))), 128)), A(we, {
394
+ } : void 0]), 1032, ["item", "show-read-status", "show-view-button", "onClick"]))), 128)), A(Ne, {
397
395
  loading: a.loading,
398
396
  finished: a.finished,
399
397
  onInfinite: o[0] || (o[0] = (n) => t.$emit("loadMore"))
@@ -422,35 +420,35 @@ const ke = /* @__PURE__ */ x({
422
420
  toList: n,
423
421
  openDetail: u
424
422
  } = ae(he);
425
- function c(k) {
423
+ function c(C) {
426
424
  return {
427
425
  feature: "green",
428
426
  improvement: "blue",
429
427
  fix: "orange",
430
428
  security: "red",
431
429
  breaking: "magenta"
432
- }[k] || "blue";
430
+ }[C] || "blue";
433
431
  }
434
- function S(k) {
432
+ function S(C) {
435
433
  return {
436
434
  feature: "新功能",
437
435
  improvement: "优化",
438
436
  fix: "修复",
439
437
  security: "安全",
440
438
  breaking: "重大变更"
441
- }[k] || "更新";
439
+ }[C] || "更新";
442
440
  }
443
- return (k, y) => (s(), b("div", Ee, [i(l) ? $("", !0) : (s(), _(i(H), {
441
+ return (C, y) => (s(), k("div", Ee, [i(l) ? $("", !0) : (s(), _(i(H), {
444
442
  key: 0,
445
443
  class: "message-panel__breadcrumb"
446
444
  }, {
447
445
  default: f(() => [A(i(R), {
448
446
  onClick: i(n)
449
447
  }, {
450
- default: f(() => [...y[0] || (y[0] = [w("更新日志", -1)])]),
448
+ default: f(() => [...y[0] || (y[0] = [N("更新日志", -1)])]),
451
449
  _: 1
452
450
  }, 8, ["onClick"]), A(i(R), null, {
453
- default: f(() => [...y[1] || (y[1] = [w("详情", -1)])]),
451
+ default: f(() => [...y[1] || (y[1] = [N("详情", -1)])]),
454
452
  _: 1
455
453
  })]),
456
454
  _: 1
@@ -471,14 +469,14 @@ const ke = /* @__PURE__ */ x({
471
469
  color: c(h.changeType),
472
470
  size: "small"
473
471
  }, {
474
- default: f(() => [w(T(S(h.changeType)), 1)]),
472
+ default: f(() => [N(T(S(h.changeType)), 1)]),
475
473
  _: 2
476
474
  }, 1032, ["color"])]),
477
475
  footer: f(({
478
476
  item: h
479
- }) => [h.publishedAt ? (s(), b("span", Fe, " 发布于 " + T(h.publishedAt), 1)) : $("", !0)]),
477
+ }) => [h.publishedAt ? (s(), k("span", Fe, " 发布于 " + T(h.publishedAt), 1)) : $("", !0)]),
480
478
  _: 1
481
- }, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (s(), b("div", Ke, [A(Ce, {
479
+ }, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (s(), k("div", Ke, [A(Ce, {
482
480
  id: i(a)
483
481
  }, null, 8, ["id"])]))]));
484
482
  }
@@ -507,16 +505,14 @@ const Je = /* @__PURE__ */ x({
507
505
  },
508
506
  setup(e) {
509
507
  const l = p(!1), a = p(null), d = p(""), r = e;
510
- function t() {
511
- l.value = !0, Ge({
512
- id: r.id
513
- }).then(({
508
+ async function t() {
509
+ l.value = !0;
510
+ const {
514
511
  data: o
515
- }) => {
516
- a.value = o.content, d.value = o.title, l.value = !1;
517
- }).catch((o) => {
518
- console.error("获取事件通知详情失败:", o), l.value = !1;
512
+ } = await Ge({
513
+ id: r.id
519
514
  });
515
+ l.value = !1, o && (a.value = o.content, d.value = o.title);
520
516
  }
521
517
  return t(), (o, n) => (s(), _(j, {
522
518
  content: a.value,
@@ -544,39 +540,39 @@ const Je = /* @__PURE__ */ x({
544
540
  loadMore: o,
545
541
  toList: n,
546
542
  openDetail: u
547
- } = ae((k) => je({
548
- ...k,
543
+ } = ae((C) => je({
544
+ ...C,
549
545
  where: {
550
546
  status: "published"
551
547
  }
552
548
  }));
553
- function c(k) {
549
+ function c(C) {
554
550
  return {
555
551
  upcoming: "blue",
556
552
  ongoing: "green",
557
553
  ended: "gray",
558
554
  published: "arcoblue"
559
- }[k] || "gray";
555
+ }[C] || "gray";
560
556
  }
561
- function S(k) {
557
+ function S(C) {
562
558
  return {
563
559
  upcoming: "即将开始",
564
560
  ongoing: "进行中",
565
561
  ended: "已结束",
566
562
  published: "已发布"
567
- }[k] || "未知";
563
+ }[C] || "未知";
568
564
  }
569
- return (k, y) => (s(), b("div", Qe, [i(l) ? $("", !0) : (s(), _(i(H), {
565
+ return (C, y) => (s(), k("div", Qe, [i(l) ? $("", !0) : (s(), _(i(H), {
570
566
  key: 0,
571
567
  class: "message-panel__breadcrumb"
572
568
  }, {
573
569
  default: f(() => [A(i(R), {
574
570
  onClick: i(n)
575
571
  }, {
576
- default: f(() => [...y[0] || (y[0] = [w("活动通知", -1)])]),
572
+ default: f(() => [...y[0] || (y[0] = [N("活动通知", -1)])]),
577
573
  _: 1
578
574
  }, 8, ["onClick"]), A(i(R), null, {
579
- default: f(() => [...y[1] || (y[1] = [w("详情", -1)])]),
575
+ default: f(() => [...y[1] || (y[1] = [N("详情", -1)])]),
580
576
  _: 1
581
577
  })]),
582
578
  _: 1
@@ -594,14 +590,14 @@ const Je = /* @__PURE__ */ x({
594
590
  color: c(h.displayStatus),
595
591
  size: "small"
596
592
  }, {
597
- default: f(() => [w(T(S(h.displayStatus)), 1)]),
593
+ default: f(() => [N(T(S(h.displayStatus)), 1)]),
598
594
  _: 2
599
595
  }, 1032, ["color"])]),
600
596
  footer: f(({
601
597
  item: h
602
- }) => [h.startAt || h.endAt ? (s(), b("span", We, T(h.startAt || "无") + " ~ " + T(h.endAt || "无"), 1)) : $("", !0)]),
598
+ }) => [h.startAt || h.endAt ? (s(), k("span", We, T(h.startAt || "无") + " ~ " + T(h.endAt || "无"), 1)) : $("", !0)]),
603
599
  _: 1
604
- }, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (s(), b("div", Xe, [A(Je, {
600
+ }, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (s(), k("div", Xe, [A(Je, {
605
601
  id: i(a)
606
602
  }, null, 8, ["id"])]))]));
607
603
  }
@@ -636,7 +632,7 @@ const Je = /* @__PURE__ */ x({
636
632
  function r(t) {
637
633
  t !== a.modelValue && (d("update:modelValue", t), d("change", t));
638
634
  }
639
- return (t, o) => (s(), b("div", et, [(s(!0), b(P, null, Z(e.tabs, (n) => (s(), b("span", {
635
+ return (t, o) => (s(), k("div", et, [(s(!0), k(P, null, Z(e.tabs, (n) => (s(), k("span", {
640
636
  key: n.key,
641
637
  class: K(["custom-tab", [{
642
638
  active: e.modelValue === n.key
@@ -676,12 +672,12 @@ const Je = /* @__PURE__ */ x({
676
672
  function o() {
677
673
  a.messageList.length !== 0 && d("readAll");
678
674
  }
679
- return (n, u) => (s(), b("div", nt, [A(st, {
675
+ return (n, u) => (s(), k("div", nt, [A(st, {
680
676
  modelValue: r.value,
681
677
  "onUpdate:modelValue": u[0] || (u[0] = (c) => r.value = c),
682
678
  tabs: e.tabs,
683
679
  onChange: t
684
- }, null, 8, ["modelValue", "tabs"]), r.value === "unread" ? (s(), b("div", {
680
+ }, null, 8, ["modelValue", "tabs"]), r.value === "unread" ? (s(), k("div", {
685
681
  key: 0,
686
682
  class: K(["readAll", {
687
683
  disabled: e.messageList.length === 0
@@ -713,63 +709,57 @@ const Je = /* @__PURE__ */ x({
713
709
  }, {
714
710
  label: "已读消息",
715
711
  key: "read"
716
- }], k = Q(() => u.value === "read");
712
+ }], C = Q(() => u.value === "read");
717
713
  async function y() {
718
714
  t.value = !0;
719
- try {
720
- const {
721
- data: C
722
- } = await X({
723
- current: c.value.current,
724
- pageSize: c.value.pageSize,
725
- where: {
726
- type: J,
727
- read: k.value
728
- }
729
- });
730
- n.value = C.items.map((v) => ({
731
- id: v.id,
732
- title: v.title,
733
- description: v.description,
734
- createAt: v.createAt,
735
- updateAt: v.updateAt,
736
- type: v.type,
737
- priority: v.priority,
738
- read: v.read ?? !1,
739
- readAt: v.readAt ?? null
740
- })), c.value.total = C.count, o.value = C.items.length < c.value.pageSize;
741
- } finally {
742
- t.value = !1;
743
- }
715
+ const {
716
+ data: b
717
+ } = await X({
718
+ current: c.value.current,
719
+ pageSize: c.value.pageSize,
720
+ where: {
721
+ type: J,
722
+ read: C.value
723
+ }
724
+ });
725
+ t.value = !1, b && (n.value = b.items.map((v) => ({
726
+ id: v.id,
727
+ title: v.title,
728
+ description: v.description,
729
+ createAt: v.createAt,
730
+ updateAt: v.updateAt,
731
+ type: v.type,
732
+ priority: v.priority,
733
+ read: v.read ?? !1,
734
+ readAt: v.readAt ?? null
735
+ })), c.value.total = b.count, o.value = b.items.length < c.value.pageSize);
744
736
  }
745
737
  async function h() {
746
- if (!(t.value || o.value)) {
747
- c.value.current += 1, t.value = !0;
748
- try {
749
- const {
750
- data: C
751
- } = await X({
752
- current: c.value.current,
753
- pageSize: c.value.pageSize,
754
- where: {
755
- type: J,
756
- read: k.value
757
- }
758
- }), v = C.items.map((g) => ({
759
- id: g.id,
760
- title: g.title,
761
- description: g.description,
762
- createAt: g.createAt,
763
- updateAt: g.updateAt,
764
- type: g.type,
765
- priority: g.priority,
766
- read: g.read ?? !1,
767
- readAt: g.readAt ?? null
768
- }));
769
- n.value = [...n.value, ...v], o.value = C.items.length < c.value.pageSize;
770
- } finally {
771
- t.value = !1;
738
+ if (t.value || o.value) return;
739
+ c.value.current += 1, t.value = !0;
740
+ const {
741
+ data: b
742
+ } = await X({
743
+ current: c.value.current,
744
+ pageSize: c.value.pageSize,
745
+ where: {
746
+ type: J,
747
+ read: C.value
772
748
  }
749
+ });
750
+ if (t.value = !1, b) {
751
+ const v = b.items.map((g) => ({
752
+ id: g.id,
753
+ title: g.title,
754
+ description: g.description,
755
+ createAt: g.createAt,
756
+ updateAt: g.updateAt,
757
+ type: g.type,
758
+ priority: g.priority,
759
+ read: g.read ?? !1,
760
+ readAt: g.readAt ?? null
761
+ }));
762
+ n.value = [...n.value, ...v], o.value = b.items.length < c.value.pageSize;
773
763
  }
774
764
  }
775
765
  function D() {
@@ -786,38 +776,34 @@ const Je = /* @__PURE__ */ x({
786
776
  content: null
787
777
  };
788
778
  }
789
- async function M(C) {
779
+ async function M(b) {
790
780
  d.value = !0;
791
- try {
792
- const {
793
- data: v
794
- } = await ve({
795
- id: C
796
- });
797
- r.value = {
798
- title: v.title,
799
- content: v.content
800
- };
801
- } finally {
802
- d.value = !1;
803
- }
781
+ const {
782
+ data: v
783
+ } = await ve({
784
+ id: b
785
+ });
786
+ d.value = !1, v && (r.value = {
787
+ title: v.title,
788
+ content: v.content
789
+ });
804
790
  }
805
- async function q(C) {
806
- a.value = C.id, l.value = !1, C.read || (await ge({
807
- messageId: C.id
808
- }), k.value || (n.value = n.value.filter((v) => v.id !== C.id))), M(C.id);
791
+ async function q(b) {
792
+ a.value = b.id, l.value = !1, b.read || (await ge({
793
+ messageId: b.id
794
+ }), C.value || (n.value = n.value.filter((v) => v.id !== b.id))), M(b.id);
809
795
  }
810
- return y(), (C, v) => (s(), b("div", ot, [l.value ? $("", !0) : (s(), _(i(H), {
796
+ return y(), (b, v) => (s(), k("div", ot, [l.value ? $("", !0) : (s(), _(i(H), {
811
797
  key: 0,
812
798
  class: "message-panel__breadcrumb"
813
799
  }, {
814
800
  default: f(() => [A(i(R), {
815
801
  onClick: E
816
802
  }, {
817
- default: f(() => [...v[1] || (v[1] = [w("消息通知", -1)])]),
803
+ default: f(() => [...v[1] || (v[1] = [N("消息通知", -1)])]),
818
804
  _: 1
819
805
  }), A(i(R), null, {
820
- default: f(() => [...v[2] || (v[2] = [w("详情", -1)])]),
806
+ default: f(() => [...v[2] || (v[2] = [N("详情", -1)])]),
821
807
  _: 1
822
808
  })]),
823
809
  _: 1
@@ -846,24 +832,24 @@ const Je = /* @__PURE__ */ x({
846
832
  color: "red",
847
833
  size: "small"
848
834
  }, {
849
- default: f(() => [...v[3] || (v[3] = [w("紧急", -1)])]),
835
+ default: f(() => [...v[3] || (v[3] = [N("紧急", -1)])]),
850
836
  _: 1
851
837
  })) : g.priority === "high" ? (s(), _(i(z), {
852
838
  key: 1,
853
839
  color: "orange",
854
840
  size: "small"
855
841
  }, {
856
- default: f(() => [...v[4] || (v[4] = [w("高", -1)])]),
842
+ default: f(() => [...v[4] || (v[4] = [N("高", -1)])]),
857
843
  _: 1
858
844
  })) : $("", !0)]),
859
845
  _: 1
860
- }, 8, ["message-list", "loading", "finished"])) : (s(), b("div", lt, [A(j, {
846
+ }, 8, ["message-list", "loading", "finished"])) : (s(), k("div", lt, [A(j, {
861
847
  title: r.value.title,
862
848
  content: r.value.content,
863
849
  loading: d.value
864
850
  }, null, 8, ["title", "content", "loading"])]))]));
865
851
  }
866
- }), ut = /* @__PURE__ */ I(rt, [["__scopeId", "data-v-118e16b5"]]);
852
+ }), ut = /* @__PURE__ */ I(rt, [["__scopeId", "data-v-b474436c"]]);
867
853
  function dt(e) {
868
854
  return U({
869
855
  url: `${O.onesPrefixUrl}/messageCenter/noticeNotifications/findOne`,
@@ -916,67 +902,61 @@ const pt = {
916
902
  }, {
917
903
  label: "已读公告",
918
904
  key: "read"
919
- }], k = Q(() => u.value === "read");
905
+ }], C = Q(() => u.value === "read");
920
906
  async function y() {
921
907
  t.value = !0;
922
- try {
923
- const {
924
- data: g
925
- } = await Y({
926
- current: c.value.current,
927
- pageSize: c.value.pageSize,
928
- where: {
929
- read: k.value
930
- }
931
- });
932
- n.value = g.items.map((m) => ({
933
- id: m.id,
934
- title: m.title,
935
- description: m.description,
936
- createAt: m.createAt,
937
- updateAt: m.updateAt,
938
- pinned: m.pinned,
939
- priority: m.priority,
940
- displayStatus: m.displayStatus,
941
- expireAt: m.expireAt,
942
- requireConfirm: m.requireConfirm,
943
- read: m.read ?? !1,
944
- readAt: m.readAt ?? null
945
- })), c.value.total = g.count, o.value = g.items.length < c.value.pageSize;
946
- } finally {
947
- t.value = !1;
948
- }
908
+ const {
909
+ data: g
910
+ } = await Y({
911
+ current: c.value.current,
912
+ pageSize: c.value.pageSize,
913
+ where: {
914
+ read: C.value
915
+ }
916
+ });
917
+ t.value = !1, g && (n.value = g.items.map((m) => ({
918
+ id: m.id,
919
+ title: m.title,
920
+ description: m.description,
921
+ createAt: m.createAt,
922
+ updateAt: m.updateAt,
923
+ pinned: m.pinned,
924
+ priority: m.priority,
925
+ displayStatus: m.displayStatus,
926
+ expireAt: m.expireAt,
927
+ requireConfirm: m.requireConfirm,
928
+ read: m.read ?? !1,
929
+ readAt: m.readAt ?? null
930
+ })), c.value.total = g.count, o.value = g.items.length < c.value.pageSize);
949
931
  }
950
932
  async function h() {
951
- if (!(t.value || o.value)) {
952
- c.value.current += 1, t.value = !0;
953
- try {
954
- const {
955
- data: g
956
- } = await Y({
957
- current: c.value.current,
958
- pageSize: c.value.pageSize,
959
- where: {
960
- read: k.value
961
- }
962
- }), m = g.items.map((N) => ({
963
- id: N.id,
964
- title: N.title,
965
- description: N.description,
966
- createAt: N.createAt,
967
- updateAt: N.updateAt,
968
- pinned: N.pinned,
969
- priority: N.priority,
970
- displayStatus: N.displayStatus,
971
- expireAt: N.expireAt,
972
- requireConfirm: N.requireConfirm,
973
- read: N.read ?? !1,
974
- readAt: N.readAt ?? null
975
- }));
976
- n.value = [...n.value, ...m], o.value = g.items.length < c.value.pageSize;
977
- } finally {
978
- t.value = !1;
933
+ if (t.value || o.value) return;
934
+ c.value.current += 1, t.value = !0;
935
+ const {
936
+ data: g
937
+ } = await Y({
938
+ current: c.value.current,
939
+ pageSize: c.value.pageSize,
940
+ where: {
941
+ read: C.value
979
942
  }
943
+ });
944
+ if (t.value = !1, g) {
945
+ const m = g.items.map((w) => ({
946
+ id: w.id,
947
+ title: w.title,
948
+ description: w.description,
949
+ createAt: w.createAt,
950
+ updateAt: w.updateAt,
951
+ pinned: w.pinned,
952
+ priority: w.priority,
953
+ displayStatus: w.displayStatus,
954
+ expireAt: w.expireAt,
955
+ requireConfirm: w.requireConfirm,
956
+ read: w.read ?? !1,
957
+ readAt: w.readAt ?? null
958
+ }));
959
+ n.value = [...n.value, ...m], o.value = g.items.length < c.value.pageSize;
980
960
  }
981
961
  }
982
962
  function D() {
@@ -993,26 +973,22 @@ const pt = {
993
973
  }
994
974
  async function M(g) {
995
975
  d.value = !0;
996
- try {
997
- const {
998
- data: m
999
- } = await dt({
1000
- id: g
1001
- });
1002
- r.value = {
1003
- title: m.title,
1004
- content: m.content
1005
- };
1006
- } finally {
1007
- d.value = !1;
1008
- }
976
+ const {
977
+ data: m
978
+ } = await dt({
979
+ id: g
980
+ });
981
+ d.value = !1, m && (r.value = {
982
+ title: m.title,
983
+ content: m.content
984
+ });
1009
985
  }
1010
986
  async function q(g) {
1011
987
  a.value = g.id, l.value = !1, g.read || (await ct({
1012
988
  noticeId: g.id
1013
- }), k.value || (n.value = n.value.filter((m) => m.id !== g.id))), M(g.id);
989
+ }), C.value || (n.value = n.value.filter((m) => m.id !== g.id))), M(g.id);
1014
990
  }
1015
- function C(g) {
991
+ function b(g) {
1016
992
  return {
1017
993
  published: "green",
1018
994
  expired: "gray"
@@ -1024,24 +1000,24 @@ const pt = {
1024
1000
  expired: "已过期"
1025
1001
  }[g] || "未知";
1026
1002
  }
1027
- return y(), (g, m) => (s(), b("div", pt, [l.value ? $("", !0) : (s(), _(i(H), {
1003
+ return y(), (g, m) => (s(), k("div", pt, [l.value ? $("", !0) : (s(), _(i(H), {
1028
1004
  key: 0,
1029
1005
  class: "message-panel__breadcrumb"
1030
1006
  }, {
1031
1007
  default: f(() => [A(i(R), {
1032
1008
  onClick: E
1033
1009
  }, {
1034
- default: f(() => [...m[1] || (m[1] = [w("公告通知", -1)])]),
1010
+ default: f(() => [...m[1] || (m[1] = [N("公告通知", -1)])]),
1035
1011
  _: 1
1036
1012
  }), A(i(R), null, {
1037
- default: f(() => [...m[2] || (m[2] = [w("详情", -1)])]),
1013
+ default: f(() => [...m[2] || (m[2] = [N("详情", -1)])]),
1038
1014
  _: 1
1039
1015
  })]),
1040
1016
  _: 1
1041
1017
  })), l.value ? (s(), _(se, {
1042
1018
  key: 1,
1043
1019
  "active-tab": u.value,
1044
- "onUpdate:activeTab": m[0] || (m[0] = (N) => u.value = N),
1020
+ "onUpdate:activeTab": m[0] || (m[0] = (w) => u.value = w),
1045
1021
  tabs: S,
1046
1022
  "message-list": n.value,
1047
1023
  onChange: D,
@@ -1057,39 +1033,39 @@ const pt = {
1057
1033
  onLoadMore: h
1058
1034
  }, {
1059
1035
  tags: f(({
1060
- item: N
1061
- }) => [N.priority === "urgent" ? (s(), _(i(z), {
1036
+ item: w
1037
+ }) => [w.priority === "urgent" ? (s(), _(i(z), {
1062
1038
  key: 0,
1063
1039
  color: "red",
1064
1040
  size: "small"
1065
1041
  }, {
1066
- default: f(() => [...m[3] || (m[3] = [w("紧急", -1)])]),
1042
+ default: f(() => [...m[3] || (m[3] = [N("紧急", -1)])]),
1067
1043
  _: 1
1068
- })) : N.priority === "important" ? (s(), _(i(z), {
1044
+ })) : w.priority === "important" ? (s(), _(i(z), {
1069
1045
  key: 1,
1070
1046
  color: "orange",
1071
1047
  size: "small"
1072
1048
  }, {
1073
- default: f(() => [...m[4] || (m[4] = [w("重要", -1)])]),
1049
+ default: f(() => [...m[4] || (m[4] = [N("重要", -1)])]),
1074
1050
  _: 1
1075
1051
  })) : $("", !0), A(i(z), {
1076
- color: C(N.displayStatus),
1052
+ color: b(w.displayStatus),
1077
1053
  size: "small"
1078
1054
  }, {
1079
- default: f(() => [w(T(v(N.displayStatus)), 1)]),
1055
+ default: f(() => [N(T(v(w.displayStatus)), 1)]),
1080
1056
  _: 2
1081
1057
  }, 1032, ["color"])]),
1082
1058
  footer: f(({
1083
- item: N
1084
- }) => [N.expireAt ? (s(), b("span", gt, T(N.displayStatus === "expired" ? "已过期" : `过期时间: ${N.expireAt}`), 1)) : $("", !0)]),
1059
+ item: w
1060
+ }) => [w.expireAt ? (s(), k("span", gt, T(w.displayStatus === "expired" ? "已过期" : `过期时间: ${w.expireAt}`), 1)) : $("", !0)]),
1085
1061
  _: 1
1086
- }, 8, ["message-list", "loading", "finished"])) : (s(), b("div", vt, [A(j, {
1062
+ }, 8, ["message-list", "loading", "finished"])) : (s(), k("div", vt, [A(j, {
1087
1063
  title: r.value.title,
1088
1064
  content: r.value.content,
1089
1065
  loading: d.value
1090
1066
  }, null, 8, ["title", "content", "loading"])]))]));
1091
1067
  }
1092
- }), yt = /* @__PURE__ */ I(mt, [["__scopeId", "data-v-cbd2a754"]]), _t = {
1068
+ }), yt = /* @__PURE__ */ I(mt, [["__scopeId", "data-v-83623022"]]), _t = {
1093
1069
  class: "content"
1094
1070
  }, ht = {
1095
1071
  class: "left"
@@ -1123,11 +1099,11 @@ const pt = {
1123
1099
  changeType: c,
1124
1100
  show: S
1125
1101
  } = ye(r);
1126
- function k(y) {
1102
+ function C(y) {
1127
1103
  S.value = y, c.value = "编辑";
1128
1104
  }
1129
1105
  return l({
1130
- setData: k
1106
+ setData: C
1131
1107
  }), (y, h) => (s(), _(i(ue), {
1132
1108
  visible: i(S),
1133
1109
  "onUpdate:visible": h[1] || (h[1] = (D) => le(S) ? S.value = D : null),
@@ -1144,7 +1120,7 @@ const pt = {
1144
1120
  "onUpdate:selectedKeys": h[0] || (h[0] = (D) => t.value = D),
1145
1121
  menus: d.menus,
1146
1122
  onChange: u
1147
- }, null, 8, ["selected-keys", "menus"])]), i(S) ? (s(), b(P, {
1123
+ }, null, 8, ["selected-keys", "menus"])]), i(S) ? (s(), k(P, {
1148
1124
  key: 0
1149
1125
  }, [o.value === "ChangelogNotifications" ? (s(), _(He, {
1150
1126
  key: 0
@@ -1205,7 +1181,7 @@ const pt = {
1205
1181
  ref: d,
1206
1182
  key: r.value,
1207
1183
  "selected-keys": a.value,
1208
- "onUpdate:selectedKeys": S[0] || (S[0] = (k) => a.value = k),
1184
+ "onUpdate:selectedKeys": S[0] || (S[0] = (C) => a.value = C),
1209
1185
  menus: u.value,
1210
1186
  title: "消息中心",
1211
1187
  onConfirm: n,
@@ -1218,7 +1194,7 @@ export {
1218
1194
  He as C,
1219
1195
  j as D,
1220
1196
  Ze as E,
1221
- we as I,
1197
+ Ne as I,
1222
1198
  Ot as M,
1223
1199
  yt as N,
1224
1200
  Ce as _,