@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
@@ -1,105 +0,0 @@
1
- import { ref as a, computed as x } from "vue";
2
- import { c as f, g } from "./auth-bwwc2iT8.js";
3
- function z(t) {
4
- return f({
5
- url: `${g.prefixUrl}/restfulApi/messageCenter/messageNotifications/find`,
6
- method: "post",
7
- data: t
8
- });
9
- }
10
- function R(t) {
11
- return f({
12
- url: `${g.prefixUrl}/restfulApi/messageCenter/messageNotifications/read`,
13
- method: "post",
14
- data: t
15
- });
16
- }
17
- function S(t) {
18
- return f({
19
- url: `${g.prefixUrl}/restfulApi/messageCenter/messageNotifications/readAll`,
20
- method: "post",
21
- data: t
22
- });
23
- }
24
- function $(t = "system") {
25
- const u = a(!0), d = a(""), i = a(!1), v = a(!1), r = a([]), s = a({
26
- total: 0,
27
- current: 1,
28
- pageSize: 10
29
- }), n = a(!1), l = a(!1), c = a("unread"), A = [{
30
- label: "未读消息",
31
- key: "unread"
32
- }, {
33
- label: "已读消息",
34
- key: "read"
35
- }], m = x(() => c.value === "read");
36
- function N() {
37
- u.value = !0;
38
- }
39
- function b(e) {
40
- c.value = e, s.value.current = 1, o();
41
- }
42
- function p(e) {
43
- n.value = !0, R({
44
- messageId: e
45
- }).then(() => {
46
- n.value = !1;
47
- }).catch(() => {
48
- n.value = !1;
49
- });
50
- }
51
- function h(e) {
52
- l.value = !0, S({
53
- type: e
54
- }).then(() => {
55
- l.value = !1, o();
56
- }).catch(() => {
57
- l.value = !1;
58
- });
59
- }
60
- function C() {
61
- r.value.length !== 0 && h(t);
62
- }
63
- function o() {
64
- i.value = !0, z({
65
- current: s.value.current,
66
- pageSize: s.value.pageSize,
67
- where: {
68
- read: m.value,
69
- type: t
70
- }
71
- }).then(({
72
- data: e
73
- }) => {
74
- i.value = !1, r.value = e.items, s.value.total = e.count, v.value = e.items.length < s.value.pageSize;
75
- }).catch(() => {
76
- i.value = !1;
77
- });
78
- }
79
- function L(e) {
80
- d.value = e.id, u.value = !1, p(e.id);
81
- }
82
- return o(), {
83
- isList: u,
84
- id: d,
85
- loading: i,
86
- finished: v,
87
- messageList: r,
88
- pagination: s,
89
- readLoading: n,
90
- readAllLoading: l,
91
- activeTab: c,
92
- tabs: A,
93
- read: m,
94
- toList: N,
95
- onTabChange: b,
96
- messageNotificationsReadApi: p,
97
- messageNotificationsReadAllApi: h,
98
- readAll: C,
99
- getData: o,
100
- openDetails: L
101
- };
102
- }
103
- export {
104
- $ as u
105
- };