@huyooo/ui 0.6.6 → 0.6.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 (29) hide show
  1. package/dist/{AuthkitAuthModal-GorxR6ZJ.js → AuthkitAuthModal-Bfcu3xeg.js} +132 -133
  2. package/dist/{AuthkitSignInPhone-CLW_u8AY.js → AuthkitSignInPhone-CZGGn8Ax.js} +1 -1
  3. package/dist/{FeedbackItem-r5WNpUmu.js → FeedbackItem-8-jd3QUl.js} +1 -1
  4. package/dist/{FeedbackModal-BmRx3EOj.js → FeedbackModal-scDtV6-8.js} +319 -321
  5. package/dist/MessageHandle-CRKV0GBm.js +1182 -0
  6. package/dist/MessageNotifications-CJtKlzc3.js +35 -0
  7. package/dist/{UserAccountMenu-DHDAWoPE.js → UserAccountMenu-B8dw6I3n.js} +22 -23
  8. package/dist/{WidthContainer-DzPQ94uA.js → WidthContainer-CdCvKjzU.js} +2 -2
  9. package/dist/api/Message/ChangelogNotifications.d.ts +46 -2
  10. package/dist/api/Message/EventNotifications.d.ts +49 -2
  11. package/dist/api/Message/MessageNotifications.d.ts +55 -5
  12. package/dist/api/Message/NoticeNotifications.d.ts +54 -2
  13. package/dist/authkit.js +2 -2
  14. package/dist/common.js +1 -1
  15. package/dist/components/LandingPage/LandingPageContact.vue.d.ts +1 -1
  16. package/dist/components/Message/MessageItem.vue.d.ts +40 -0
  17. package/dist/components/Message/MessageList.vue.d.ts +31 -92
  18. package/dist/composables/useMessageList.d.ts +52 -0
  19. package/dist/composables/useMessageNotifications.d.ts +40 -4
  20. package/dist/composables.js +1 -1
  21. package/dist/feedback.js +2 -2
  22. package/dist/index.js +8 -8
  23. package/dist/message.js +2 -2
  24. package/dist/style.css +1 -1
  25. package/dist/useMessageNotifications-CnWbDToT.js +84 -0
  26. package/dist/user.js +1 -1
  27. package/package.json +1 -1
  28. package/dist/MessageHandle-BlsLRmdj.js +0 -820
  29. package/dist/useMessageNotifications-BT84SOgI.js +0 -105
@@ -0,0 +1,84 @@
1
+ import { ref as a, computed as L } from "vue";
2
+ import { m as z, a as R, b as S } from "./MessageNotifications-CJtKlzc3.js";
3
+ function w(r = "system") {
4
+ const u = a(!0), f = a(""), s = a(!1), v = a(!1), o = a([]), t = a({
5
+ total: 0,
6
+ current: 1,
7
+ pageSize: 10
8
+ }), n = a(!1), i = a(!1), c = a("unread"), p = [{
9
+ label: "未读消息",
10
+ key: "unread"
11
+ }, {
12
+ label: "已读消息",
13
+ key: "read"
14
+ }], d = L(() => c.value === "read");
15
+ function h() {
16
+ u.value = !0;
17
+ }
18
+ function b(e) {
19
+ c.value = e, t.value.current = 1, l();
20
+ }
21
+ function g(e) {
22
+ n.value = !0, S({
23
+ messageId: e
24
+ }).then(() => {
25
+ n.value = !1;
26
+ }).catch(() => {
27
+ n.value = !1;
28
+ });
29
+ }
30
+ function m(e) {
31
+ i.value = !0, R({
32
+ type: e
33
+ }).then(() => {
34
+ i.value = !1, l();
35
+ }).catch(() => {
36
+ i.value = !1;
37
+ });
38
+ }
39
+ function A() {
40
+ o.value.length !== 0 && m(r);
41
+ }
42
+ function l() {
43
+ s.value = !0, z({
44
+ current: t.value.current,
45
+ pageSize: t.value.pageSize,
46
+ where: {
47
+ read: d.value,
48
+ type: r
49
+ }
50
+ }).then(({
51
+ data: e
52
+ }) => {
53
+ s.value = !1, o.value = e.items, t.value.total = e.count, v.value = e.items.length < t.value.pageSize;
54
+ }).catch(() => {
55
+ s.value = !1;
56
+ });
57
+ }
58
+ function N(e) {
59
+ f.value = e.id, u.value = !1, g(e.id);
60
+ }
61
+ return l(), {
62
+ isList: u,
63
+ id: f,
64
+ loading: s,
65
+ finished: v,
66
+ messageList: o,
67
+ pagination: t,
68
+ readLoading: n,
69
+ readAllLoading: i,
70
+ activeTab: c,
71
+ tabs: p,
72
+ read: d,
73
+ toList: h,
74
+ onTabChange: b,
75
+ messageNotificationsReadApi: g,
76
+ messageNotificationsReadAllApi: m,
77
+ readAll: A,
78
+ getData: l,
79
+ openDetails: N
80
+ };
81
+ }
82
+ export {
83
+ w as u
84
+ };
package/dist/user.js CHANGED
@@ -1,4 +1,4 @@
1
- import { d as r, U as e, a as n, b as o, c as t, S as U } from "./UserAccountMenu-DHDAWoPE.js";
1
+ import { d as r, U as e, a as n, b as o, c as t, S as U } from "./UserAccountMenu-B8dw6I3n.js";
2
2
  export {
3
3
  r as UserAccountMenu,
4
4
  e as UserAvatar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "0.6.6",
3
+ "version": "0.6.12",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [