@huyooo/ui 1.0.6 → 2.0.0

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 (75) hide show
  1. package/dist/AuthkitAppSetting-rtYZcSAR.js +2677 -0
  2. package/dist/{Contact-BWuVR9ho.js → Contact-CcWf3UEZ.js} +9 -9
  3. package/dist/{CustomTable-BzGfaAVH.js → CustomTable-HDwqEcmB.js} +1 -1
  4. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-DpOmbAg-.js +1491 -0
  5. package/dist/{LegalDocViewer-DM8FYBpf.js → LegalDocViewer-C0tsIbz9.js} +747 -748
  6. package/dist/MessageHandle-BUufez4S.js +1233 -0
  7. package/dist/{MessageList-Ce-_LNTk.js → MessageList-rttvPmxV.js} +4 -4
  8. package/dist/PaySubscriptions-p75aBnHm.js +1331 -0
  9. package/dist/{PricingPlans-CV97ck9p.js → PricingPlans-CQ0qk9Hb.js} +99 -105
  10. package/dist/{ReferrerReferees-DgygiIiE.js → ReferrerReferees-BU9IEQgz.js} +47 -46
  11. package/dist/Upload.vue_vue_type_script_setup_true_lang-bh0NFq9E.js +78 -0
  12. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-zgjpFVln.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DG4AuHiO.js} +64 -65
  13. package/dist/WidthContainer-DSE4QbW0.js +717 -0
  14. package/dist/api/billingSubscriptionApi.d.ts +4 -1
  15. package/dist/apiClients-Ctcq8NZs.js +245 -0
  16. package/dist/authkit.js +10 -10
  17. package/dist/common/globalConfig.d.ts +36 -18
  18. package/dist/common.js +2 -2
  19. package/dist/components/Authkit/Auth/AuthkitOauthCallback.vue.d.ts +2 -2
  20. package/dist/components/Authkit/AuthkitProvider.vue.d.ts +0 -5
  21. package/dist/components/Feedback/FeedbackDetails.vue.d.ts +30 -0
  22. package/dist/components/Upload/Upload.vue.d.ts +6 -6
  23. package/dist/composables/Authkit/useAuthkitAuth.d.ts +3 -0
  24. package/dist/composables/Billing/usePaymentReturn.d.ts +1 -0
  25. package/dist/composables/uploadFeedbackAttachment.d.ts +2 -1
  26. package/dist/composables/useMessageList.d.ts +2 -1
  27. package/dist/composables.d.ts +2 -2
  28. package/dist/composables.js +46 -46
  29. package/dist/feedback.js +2 -2
  30. package/dist/{fetchAuthPageAboutUs-dzTSwRsB.js → fetchAuthPageAboutUs-DiCqMUX3.js} +4 -4
  31. package/dist/{index-BkLvw1PU.js → index-Cn6LcfZO.js} +1 -1
  32. package/dist/legalDocs/resolveAppId.d.ts +1 -1
  33. package/dist/main.d.ts +4 -3
  34. package/dist/main.js +464 -469
  35. package/dist/message.js +53 -52
  36. package/dist/pay.js +4 -4
  37. package/dist/privateCom.js +1 -1
  38. package/dist/referrer.js +1 -1
  39. package/dist/{useUploadCos-C8BqFPkx.js → runtime-BzCSCUNv.js} +2712 -2609
  40. package/dist/runtime.d.ts +18 -0
  41. package/dist/style.css +1 -1
  42. package/dist/types/api/auth.generated.d.ts +0 -10
  43. package/dist/upload/browserCosTransport.d.ts +25 -0
  44. package/dist/upload/browserUploadService.d.ts +20 -0
  45. package/dist/upload.d.ts +2 -1
  46. package/dist/upload.js +5 -4
  47. package/dist/{useAuthkitAppsAuthPageInfo-CNudJd04.js → useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js} +18 -21
  48. package/dist/useAuthkitAuth-BPTZUSkM.js +272 -0
  49. package/dist/{useAuthkitCreateAndUpdate-BsINsI-E.js → useAuthkitCreateAndUpdate-Bbv7vZZn.js} +1 -1
  50. package/dist/useAuthkitUsersProfile-CW_exa7E.js +39 -0
  51. package/dist/useBillingStatusOptions-Br-iL77Z.js +61 -0
  52. package/dist/{useEnsureAuthenticated-DNkCCy_Y.js → useEnsureAuthenticated-CncOvj2H.js} +2 -2
  53. package/dist/{useLegalDocs-DQP_Yq6B.js → useLegalDocs-D44qU_q0.js} +25 -25
  54. package/dist/useMessageNotifications-D9uikt21.js +80 -0
  55. package/dist/{useRoutePermission-CEiya9AM.js → useRoutePermission-BrQX7NTq.js} +2 -2
  56. package/dist/{useSEO-CDWxbk8B.js → useSEO-_TNouXE_.js} +89 -86
  57. package/dist/useSubscriptionCheckout-BDDCRxSs.js +353 -0
  58. package/dist/user.js +1 -1
  59. package/dist/utils/apiClients.d.ts +20 -12
  60. package/dist/utils/apiMiddlewares.d.ts +9 -23
  61. package/package.json +1 -1
  62. package/dist/AuthkitAppSetting-BN8-xgNq.js +0 -2674
  63. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-B9BqGWm8.js +0 -1480
  64. package/dist/MessageHandle-mEkCsv9e.js +0 -1173
  65. package/dist/PaySubscriptions-CXkEjqr2.js +0 -1326
  66. package/dist/Upload.vue_vue_type_script_setup_true_lang-VGh2V4o0.js +0 -76
  67. package/dist/WidthContainer-PeWkCK0p.js +0 -721
  68. package/dist/apiClients-BcXOLuYu.js +0 -272
  69. package/dist/composables/Upload/useUploadCos.d.ts +0 -12
  70. package/dist/useAuthkitAuth-3m0yW6uP.js +0 -267
  71. package/dist/useAuthkitUsersProfile-DJlMsftY.js +0 -40
  72. package/dist/useBillingStatusOptions-CfHQOFNw.js +0 -71
  73. package/dist/useMessageNotifications-CAphguOm.js +0 -75
  74. package/dist/useSubscriptionCheckout-d_M_rKRa.js +0 -368
  75. package/dist/utils/billingFetch.d.ts +0 -1
@@ -0,0 +1,80 @@
1
+ import { ref as a, computed as y } from "vue";
2
+ import { g as f } from "./apiClients-Ctcq8NZs.js";
3
+ function z() {
4
+ const n = a(!0), d = a(""), i = a(!1), g = a(!1), o = a([]), t = a({
5
+ total: 0,
6
+ current: 1,
7
+ pageSize: 10
8
+ }), r = a(!1), l = a(!1), u = a("unread"), A = [{
9
+ label: "未读消息",
10
+ key: "unread"
11
+ }, {
12
+ label: "已读消息",
13
+ key: "read"
14
+ }], v = y(() => u.value === "read");
15
+ function N() {
16
+ n.value = !0;
17
+ }
18
+ function b(e) {
19
+ u.value = e, t.value.current = 1, s();
20
+ }
21
+ async function p(e) {
22
+ r.value = !0;
23
+ const {
24
+ error: c
25
+ } = await f().ones.messageCenter.messageNotifications.read.post({
26
+ messageId: e
27
+ });
28
+ r.value = !1;
29
+ }
30
+ async function m() {
31
+ l.value = !0;
32
+ const {
33
+ error: e
34
+ } = await f().ones.messageCenter.messageNotifications.readAll.post({});
35
+ l.value = !1, e || s();
36
+ }
37
+ function h() {
38
+ o.value.length !== 0 && m();
39
+ }
40
+ async function s() {
41
+ i.value = !0;
42
+ const {
43
+ data: e,
44
+ error: c
45
+ } = await f().ones.messageCenter.messageNotifications.own.post({
46
+ current: t.value.current,
47
+ pageSize: t.value.pageSize,
48
+ where: {
49
+ read: v.value
50
+ }
51
+ });
52
+ i.value = !1, !c && e && (o.value = e.items, t.value.total = e.count, g.value = e.items.length < t.value.pageSize);
53
+ }
54
+ function w(e) {
55
+ d.value = e.id, n.value = !1, p(e.id);
56
+ }
57
+ return s(), {
58
+ isList: n,
59
+ id: d,
60
+ loading: i,
61
+ finished: g,
62
+ messageList: o,
63
+ pagination: t,
64
+ readLoading: r,
65
+ readAllLoading: l,
66
+ activeTab: u,
67
+ tabs: A,
68
+ read: v,
69
+ toList: N,
70
+ onTabChange: b,
71
+ messageNotificationsReadApi: p,
72
+ messageNotificationsReadAllApi: m,
73
+ readAll: h,
74
+ getData: s,
75
+ openDetails: w
76
+ };
77
+ }
78
+ export {
79
+ z as u
80
+ };
@@ -1,7 +1,7 @@
1
1
  import { ref as I, computed as w, watch as S } from "vue";
2
2
  import { useRouter as M, useRoute as T } from "vue-router";
3
- import { u as k } from "./useAuthkitAppsAuthPageInfo-CNudJd04.js";
4
- import { u as L } from "./useAuthkitUsersProfile-DJlMsftY.js";
3
+ import { u as k } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
4
+ import { u as L } from "./useAuthkitUsersProfile-CW_exa7E.js";
5
5
  const y = I({
6
6
  key: "",
7
7
  name: ""
@@ -1,133 +1,136 @@
1
1
  /* empty css */
2
- import { g as v } from "./apiClients-BcXOLuYu.js";
2
+ import "./apiClients-Ctcq8NZs.js";
3
3
  import { Message as y } from "@arco-design/web-vue";
4
- import { ref as o, getCurrentInstance as L, computed as i } from "vue";
5
- import { useHead as w, useSeoMeta as g } from "@unhead/vue";
4
+ import { ref as a, getCurrentInstance as I, computed as i } from "vue";
5
+ import { u as L } from "./runtime-BzCSCUNv.js";
6
+ import { useHead as v, useSeoMeta as p } from "@unhead/vue";
6
7
  import { useRoute as P } from "vue-router";
7
8
  function M(s) {
8
- const n = o(!1), t = o(), e = o(!1), r = o(""), d = o("");
9
- function c(l) {
10
- y.success(l), e.value = !1, n.value = !1, s("confirm");
9
+ const n = a(!1), t = a(), e = a(!1), r = a(""), m = a("");
10
+ function d(o) {
11
+ y.success(o), e.value = !1, n.value = !1, s("confirm");
11
12
  }
12
- function a() {
13
+ function c() {
13
14
  e.value = !1, s("cancel");
14
15
  }
15
16
  return {
16
17
  loading: n,
17
18
  formRef: t,
18
- submitSuccess: c,
19
+ submitSuccess: d,
19
20
  modelType: r,
20
- changeType: d,
21
+ changeType: m,
21
22
  show: e,
22
- handleCancel: a
23
+ handleCancel: c
23
24
  };
24
25
  }
25
26
  function N(s) {
26
- const n = o(s), t = o(!1), e = o(!1), r = o({
27
+ const n = a(s), t = a(!1), e = a(!1), r = a({
27
28
  total: 0,
28
29
  current: 1,
29
30
  pageSize: 10,
30
31
  showTotal: !0,
31
32
  showPageSize: !0
32
- }), d = o([]), c = o(), a = o(Symbol("key")), l = o(), m = o(Symbol("key")), f = o(), p = o(Symbol("key"));
33
- function b(u) {
34
- c.value.setData(u, !0, "edit");
33
+ }), m = a([]), d = a(), c = a(Symbol("key")), o = a(), l = a(Symbol("key")), f = a(), g = a(Symbol("key"));
34
+ function w(u) {
35
+ d.value.setData(u, !0, "edit");
35
36
  }
36
- function h(u) {
37
+ function b(u) {
37
38
  f.value.setData(u, !0, "view");
38
39
  }
39
- function S() {
40
- c.value.setData(null, !0, "create");
40
+ function h() {
41
+ d.value.setData(null, !0, "create");
41
42
  }
42
- const D = (u, I) => {
43
- r.value.current = u, r.value.pageSize = I;
43
+ const S = (u, U) => {
44
+ r.value.current = u, r.value.pageSize = U;
44
45
  };
45
- function T() {
46
- a.value = Symbol("key");
46
+ function D() {
47
+ c.value = Symbol("key");
47
48
  }
48
- function k() {
49
- m.value = Symbol("key");
49
+ function T() {
50
+ l.value = Symbol("key");
50
51
  }
51
- function C(u) {
52
- l.value.setData(u, !0);
52
+ function k(u) {
53
+ o.value.setData(u, !0);
53
54
  }
54
- function O() {
55
- p.value = Symbol("key");
55
+ function C() {
56
+ g.value = Symbol("key");
56
57
  }
57
- function U(u) {
58
+ function O(u) {
58
59
  f.value.setData(u, !0);
59
60
  }
60
61
  function R(u) {
61
62
  y.success(u), e.value = !1;
62
63
  }
63
64
  return {
64
- CreateAndUpdateRef: c,
65
- CreateAndUpdateKey: a,
66
- OperationLogRef: l,
67
- OperationLogKey: m,
65
+ CreateAndUpdateRef: d,
66
+ CreateAndUpdateKey: c,
67
+ OperationLogRef: o,
68
+ OperationLogKey: l,
68
69
  DetailsRef: f,
69
- DetailsKey: p,
70
+ DetailsKey: g,
70
71
  pagination: r,
71
72
  title: n,
72
- edit: b,
73
- create: S,
74
- view: h,
75
- dataSource: d,
76
- setPage: D,
77
- cancel: T,
78
- OperationLogCancel: k,
79
- openOperationLog: C,
80
- DetailsCancel: O,
81
- openDetails: U,
73
+ edit: w,
74
+ create: h,
75
+ view: b,
76
+ dataSource: m,
77
+ setPage: S,
78
+ cancel: D,
79
+ OperationLogCancel: T,
80
+ openOperationLog: k,
81
+ DetailsCancel: C,
82
+ openDetails: O,
82
83
  loading: t,
83
84
  submitRemove: R,
84
85
  removeLoading: e
85
86
  };
86
87
  }
87
88
  function j() {
88
- const s = o([]), n = o(!1), t = o(""), e = o("");
89
- async function r() {
90
- n.value = !0, t.value = "";
89
+ const {
90
+ config: s
91
+ } = L(), n = a([]), t = a(!1), e = a(""), r = a("");
92
+ async function m() {
93
+ t.value = !0, e.value = "";
91
94
  try {
92
- const c = await (await fetch(`${v.onesPrefixUrl}/releases/latest`, {
95
+ const c = await (await fetch(`${s.onesPrefixUrl}/releases/latest`, {
93
96
  method: "POST",
94
97
  headers: {
95
98
  "Content-Type": "application/json",
96
- "app-id": v.appId
99
+ "app-id": s.appId
97
100
  },
98
101
  body: JSON.stringify({})
99
102
  })).json();
100
- e.value = c.version, s.value = c.downloads.map((a) => {
103
+ r.value = c.version, n.value = c.downloads.map((o) => {
101
104
  const l = {
102
- id: a.id,
103
- name: a.name,
104
- description: a.description,
105
- version: a.version,
106
- updateDate: a.updateDate,
105
+ id: o.id,
106
+ name: o.name,
107
+ description: o.description,
108
+ version: o.version,
109
+ updateDate: o.updateDate,
107
110
  icon: "",
108
- downloadUrl: a.downloadUrl,
109
- platform: a.platform,
110
- requirements: a.requirements
111
+ downloadUrl: o.downloadUrl,
112
+ platform: o.platform,
113
+ requirements: o.requirements
111
114
  };
112
- return a.arch && (l.arch = a.arch), a.badge && (l.badge = a.badge), l;
115
+ return o.arch && (l.arch = o.arch), o.badge && (l.badge = o.badge), l;
113
116
  });
114
117
  } catch {
115
- t.value = "获取版本信息失败,请刷新重试";
118
+ e.value = "获取版本信息失败,请刷新重试";
116
119
  } finally {
117
- n.value = !1;
120
+ t.value = !1;
118
121
  }
119
122
  }
120
123
  return {
121
- downloads: s,
122
- loading: n,
123
- error: t,
124
- version: e,
125
- fetchDownloads: r
124
+ downloads: n,
125
+ loading: t,
126
+ error: e,
127
+ version: r,
128
+ fetchDownloads: m
126
129
  };
127
130
  }
128
131
  function q() {
129
132
  function s(t) {
130
- g({
133
+ p({
131
134
  ogSiteName: t.siteName,
132
135
  ogLocale: t.locale
133
136
  });
@@ -136,30 +139,30 @@ function q() {
136
139
  const {
137
140
  title: e,
138
141
  description: r,
139
- keywords: d,
140
- image: c,
141
- url: a,
142
- type: l = "website"
143
- } = t, m = r && r.length > 155 ? `${r.substring(0, 152)}...` : r;
144
- w({
142
+ keywords: m,
143
+ image: d,
144
+ url: c,
145
+ type: o = "website"
146
+ } = t, l = r && r.length > 155 ? `${r.substring(0, 152)}...` : r;
147
+ v({
145
148
  title: e,
146
- link: a ? [{
149
+ link: c ? [{
147
150
  rel: "canonical",
148
- href: a
151
+ href: c
149
152
  }] : []
150
- }), g({
151
- description: m || r,
152
- keywords: d,
153
+ }), p({
154
+ description: l || r,
155
+ keywords: m,
153
156
  ogTitle: e,
154
- ogDescription: m || r,
155
- ogType: l === "product" ? void 0 : l,
157
+ ogDescription: l || r,
158
+ ogType: o === "product" ? void 0 : o,
156
159
  // product 类型不被支持,跳过
157
- ogUrl: a,
158
- ogImage: c,
160
+ ogUrl: c,
161
+ ogImage: d,
159
162
  twitterCard: "summary_large_image",
160
163
  twitterTitle: e,
161
- twitterDescription: m || r,
162
- twitterImage: c
164
+ twitterDescription: l || r,
165
+ twitterImage: d
163
166
  });
164
167
  }
165
168
  return {
@@ -168,13 +171,13 @@ function q() {
168
171
  };
169
172
  }
170
173
  function x() {
171
- if (!L())
174
+ if (!I())
172
175
  return;
173
176
  const s = P();
174
177
  if (!(s != null && s.meta))
175
178
  return;
176
179
  const n = () => s.meta;
177
- w({
180
+ v({
178
181
  title: i(() => n().title || ""),
179
182
  link: i(() => {
180
183
  const t = n();
@@ -183,7 +186,7 @@ function x() {
183
186
  href: t.url
184
187
  }] : [];
185
188
  })
186
- }), g({
189
+ }), p({
187
190
  description: i(() => {
188
191
  const e = n().description;
189
192
  if (e)