@huyooo/ui 0.11.13 → 0.11.15

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 (43) hide show
  1. package/dist/{AuthkitAppSetting-DrX6fwKt.js → AuthkitAppSetting-p_ZzaAK3.js} +6 -6
  2. package/dist/{AuthkitGithubBinding-B3GHsKLa.js → AuthkitGithubBinding-Cwly1un7.js} +6 -6
  3. package/dist/{Clipboard-ChMNfcO5.js → Clipboard-k0jtK4CJ.js} +1 -1
  4. package/dist/{Contact-Yqmjh47e.js → Contact-BGZm3i5l.js} +2 -2
  5. package/dist/{FeedbackItem-DHp_C0pN.js → FeedbackItem-opB6y-f2.js} +3 -3
  6. package/dist/{FeedbackModal-Dzl0Alp7.js → FeedbackModal-9CNnFC6B.js} +3 -3
  7. package/dist/{MessageHandle-BcRjYeVi.js → MessageHandle-BZBT7Ii1.js} +2 -2
  8. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BOtgTje-.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BbKvsNKj.js} +2 -2
  9. package/dist/{PaySubscriptions-BsU0XmXf.js → PaySubscriptions-DS4kJNb_.js} +187 -171
  10. package/dist/PricingPlans-D6dM3BKy.js +277 -0
  11. package/dist/{ReferrerReferees-B-ISyXHw.js → ReferrerReferees-DhS91Ulf.js} +4 -4
  12. package/dist/{Upload.vue_vue_type_script_setup_true_lang-CDWyo3RL.js → Upload.vue_vue_type_script_setup_true_lang-DOHui-lA.js} +1 -1
  13. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Czix4_tj.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-9cF5hBYc.js} +91 -91
  14. package/dist/{WidthContainer-CYYbzXj0.js → WidthContainer-ektCstwj.js} +8 -8
  15. package/dist/{apiClients-KFp-rs-C.js → apiClients-B8bOvWw_.js} +28 -27
  16. package/dist/authkit.js +9 -9
  17. package/dist/common/globalConfig.d.ts +8 -0
  18. package/dist/common.js +1 -1
  19. package/dist/composables.js +12 -12
  20. package/dist/feedback.js +3 -3
  21. package/dist/main.js +30 -30
  22. package/dist/message.js +3 -3
  23. package/dist/pay.js +3 -3
  24. package/dist/privateCom.js +1 -1
  25. package/dist/referrer.js +1 -1
  26. package/dist/style.css +1 -1
  27. package/dist/upload.js +2 -2
  28. package/dist/{useAuthkitAppsAuthPageInfo-B9_VzVkQ.js → useAuthkitAppsAuthPageInfo-6ncIP9RT.js} +1 -1
  29. package/dist/{useAuthkitAuth-Doj5VYjK.js → useAuthkitAuth-Bj8XxPtO.js} +1 -1
  30. package/dist/{useAuthkitCreateAndUpdate-DomftQMK.js → useAuthkitCreateAndUpdate-CUf8HARI.js} +1 -1
  31. package/dist/{useAuthkitUsersProfile-FJnHJad-.js → useAuthkitUsersProfile-CoQceogN.js} +2 -2
  32. package/dist/{useDownloads-CzC3gLUV.js → useDownloads-B8FzX8T_.js} +1 -1
  33. package/dist/{useEnsureAuthenticated-D78tsddF.js → useEnsureAuthenticated-MpHmn2co.js} +2 -2
  34. package/dist/{useLegalLinks-OGVbqXVy.js → useLegalLinks-CVHYmza0.js} +2 -2
  35. package/dist/{useMessageNotifications-DeHFJFcX.js → useMessageNotifications-Bstn2qtG.js} +1 -1
  36. package/dist/{useSEO-BZhVKEZr.js → useSEO-DU86KCMJ.js} +2 -2
  37. package/dist/{useSubscriptionCheckout-DmxORGSV.js → useSubscriptionCheckout-DNLuRGmx.js} +3 -3
  38. package/dist/{useTableHandle-jw0P7-2a.js → useTableHandle-B9aFmwYM.js} +1 -1
  39. package/dist/{useUploadCos-keDKcs0j.js → useUploadCos-DTMIoW7p.js} +1 -1
  40. package/dist/user.js +1 -1
  41. package/dist/utils/pricing.d.ts +1 -0
  42. package/package.json +1 -1
  43. package/dist/PricingPlans-C3a622rv.js +0 -266
@@ -3,25 +3,25 @@
3
3
  /* empty css */
4
4
  import { defineComponent as d, openBlock as a, createElementBlock as l, toDisplayString as g, createCommentVNode as b, createVNode as f, unref as s, createBlock as _, withCtx as U, createTextVNode as B, createElementVNode as u, ref as S, computed as A, onMounted as G, Fragment as F, renderSlot as C, normalizeClass as J, watch as x } from "vue";
5
5
  import { Avatar as L, Button as R, Dropdown as K } from "@arco-design/web-vue";
6
- import { u as N } from "./useAuthkitUsersProfile-FJnHJad-.js";
6
+ import { u as N } from "./useAuthkitUsersProfile-CoQceogN.js";
7
7
  import { u as k } from "./useUserMenu-ClPBlvaM.js";
8
8
  /* empty css */
9
9
  import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  /* empty css */
11
- import { u as Q, f as W } from "./apiClients-KFp-rs-C.js";
12
- import { u as Z, P as ee } from "./PaySubscriptions-BsU0XmXf.js";
13
- import { C as ne } from "./Clipboard-ChMNfcO5.js";
14
- import { A as te } from "./AuthkitAppSetting-DrX6fwKt.js";
15
- import { d as se } from "./FeedbackModal-Dzl0Alp7.js";
16
- import { M as ae } from "./MessageHandle-BcRjYeVi.js";
17
- import { R as re } from "./ReferrerReferees-B-ISyXHw.js";
11
+ import { u as Q, f as W } from "./apiClients-B8bOvWw_.js";
12
+ import { u as Z, o as ee, P as ne } from "./PaySubscriptions-DS4kJNb_.js";
13
+ import { C as te } from "./Clipboard-k0jtK4CJ.js";
14
+ import { A as se } from "./AuthkitAppSetting-p_ZzaAK3.js";
15
+ import { d as ae } from "./FeedbackModal-9CNnFC6B.js";
16
+ import { M as re } from "./MessageHandle-BZBT7Ii1.js";
17
+ import { R as oe } from "./ReferrerReferees-DhS91Ulf.js";
18
18
  import { Icon as j } from "@iconify/vue";
19
- const oe = {
19
+ const ie = {
20
20
  class: "UserAvatar"
21
- }, ie = {
21
+ }, ce = {
22
22
  key: 0,
23
23
  class: "UserAvatar__nickname"
24
- }, ce = /* @__PURE__ */ d({
24
+ }, ue = /* @__PURE__ */ d({
25
25
  __name: "UserAvatar",
26
26
  props: {
27
27
  nickname: {
@@ -32,13 +32,13 @@ const oe = {
32
32
  }
33
33
  },
34
34
  setup(e) {
35
- return (n, r) => (a(), l("div", oe, [e.nickname ? (a(), l("span", ie, g(e.nickname), 1)) : b("", !0), f(s(L), {
35
+ return (n, r) => (a(), l("div", ie, [e.nickname ? (a(), l("span", ce, g(e.nickname), 1)) : b("", !0), f(s(L), {
36
36
  "image-url": e.avatar,
37
37
  size: 32,
38
38
  "object-fit": "cover"
39
39
  }, null, 8, ["image-url"])]));
40
40
  }
41
- }), ue = /* @__PURE__ */ M(ce, [["__scopeId", "data-v-cda7eee7"]]), le = /* @__PURE__ */ d({
41
+ }), le = /* @__PURE__ */ M(ue, [["__scopeId", "data-v-cda7eee7"]]), de = /* @__PURE__ */ d({
42
42
  __name: "UserSignInButton",
43
43
  setup(e) {
44
44
  const {
@@ -53,25 +53,25 @@ const oe = {
53
53
  _: 1
54
54
  }));
55
55
  }
56
- }), de = /* @__PURE__ */ M(le, [["__scopeId", "data-v-449a105c"]]), pe = {}, fe = {
56
+ }), pe = /* @__PURE__ */ M(de, [["__scopeId", "data-v-449a105c"]]), fe = {}, me = {
57
57
  class: "UserMenuDivider",
58
58
  role: "separator"
59
59
  };
60
- function me(e, n) {
61
- return a(), l("div", fe);
60
+ function _e(e, n) {
61
+ return a(), l("div", me);
62
62
  }
63
- const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97"]]), ve = {
63
+ const ve = /* @__PURE__ */ M(fe, [["render", _e], ["__scopeId", "data-v-c7d18d97"]]), ge = {
64
64
  class: "UserBasicInformation"
65
- }, ge = {
66
- class: "UserBasicInformation__extra"
67
65
  }, be = {
68
- class: "UserBasicInformation__nickname"
66
+ class: "UserBasicInformation__extra"
69
67
  }, Ue = {
70
- class: "UserBasicInformation__email"
68
+ class: "UserBasicInformation__nickname"
71
69
  }, ke = {
70
+ class: "UserBasicInformation__email"
71
+ }, ye = {
72
72
  key: 0,
73
73
  class: "UserBasicInformation__referrer"
74
- }, ye = /* @__PURE__ */ d({
74
+ }, Ie = /* @__PURE__ */ d({
75
75
  __name: "UserBasicInformation",
76
76
  props: {
77
77
  nickname: {
@@ -88,31 +88,31 @@ const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97
88
88
  }
89
89
  },
90
90
  setup(e) {
91
- return (n, r) => (a(), l("div", ve, [f(s(L), {
91
+ return (n, r) => (a(), l("div", ge, [f(s(L), {
92
92
  "image-url": e.avatarUrl,
93
93
  size: 42,
94
94
  "object-fit": "cover"
95
- }, null, 8, ["image-url"]), u("div", ge, [u("span", be, g(e.nickname), 1), u("span", Ue, g(e.email), 1), e.referrerId ? (a(), l("span", ke, [u("span", null, "我的邀请码:" + g(e.referrerId), 1), f(ne, {
95
+ }, null, 8, ["image-url"]), u("div", be, [u("span", Ue, g(e.nickname), 1), u("span", ke, g(e.email), 1), e.referrerId ? (a(), l("span", ye, [u("span", null, "我的邀请码:" + g(e.referrerId), 1), f(te, {
96
96
  value: e.referrerId,
97
97
  message: "邀请码复制成功"
98
98
  }, null, 8, ["value"])])) : b("", !0)])]));
99
99
  }
100
- }), Ie = /* @__PURE__ */ M(ye, [["__scopeId", "data-v-cc49789c"]]), $e = {
100
+ }), $e = /* @__PURE__ */ M(Ie, [["__scopeId", "data-v-cc49789c"]]), Be = {
101
101
  class: "UserSubscriptionBaseInformation"
102
- }, Be = {
103
- class: "UserSubscriptionBaseInformation__row"
104
102
  }, Me = {
105
- class: "UserSubscriptionBaseInformation__info"
103
+ class: "UserSubscriptionBaseInformation__row"
106
104
  }, he = {
107
- class: "UserSubscriptionBaseInformation__plan"
105
+ class: "UserSubscriptionBaseInformation__info"
108
106
  }, Se = {
109
- key: 0
107
+ class: "UserSubscriptionBaseInformation__plan"
110
108
  }, Ae = {
111
- key: 1
109
+ key: 0
112
110
  }, Ce = {
111
+ key: 1
112
+ }, xe = {
113
113
  key: 2,
114
114
  class: "UserSubscriptionBaseInformation__pending"
115
- }, xe = /* @__PURE__ */ d({
115
+ }, we = /* @__PURE__ */ d({
116
116
  __name: "UserSubscriptionBaseInformation",
117
117
  props: {
118
118
  currentVersionName: {
@@ -140,9 +140,9 @@ const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97
140
140
  emit: n
141
141
  }) {
142
142
  const r = n;
143
- return (t, o) => (a(), l("div", $e, [u("div", Be, [u("div", Me, [o[2] || (o[2] = u("span", {
143
+ return (t, o) => (a(), l("div", Be, [u("div", Me, [u("div", he, [o[2] || (o[2] = u("span", {
144
144
  class: "UserSubscriptionBaseInformation__label"
145
- }, "当前权益:", -1)), u("span", he, g(e.currentVersionName), 1)]), e.canUpgrade ? (a(), _(s(R), {
145
+ }, "当前权益:", -1)), u("span", Se, g(e.currentVersionName), 1)]), e.canUpgrade ? (a(), _(s(R), {
146
146
  key: 0,
147
147
  type: "primary",
148
148
  size: "mini",
@@ -152,7 +152,7 @@ const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97
152
152
  }, {
153
153
  default: U(() => [B(g(e.actionLabel), 1)]),
154
154
  _: 1
155
- }, 8, ["loading"])) : b("", !0)]), e.expireDate ? (a(), l("span", Se, "有效期至: " + g(e.expireDate), 1)) : b("", !0), typeof e.pointsBalance == "number" ? (a(), l("span", Ae, "积分余额: " + g(e.pointsBalance), 1)) : b("", !0), typeof e.pendingInvoiceTotal == "number" && e.pendingInvoiceTotal > 0 ? (a(), l("div", Ce, [o[4] || (o[4] = u("span", {
155
+ }, 8, ["loading"])) : b("", !0)]), e.expireDate ? (a(), l("span", Ae, "有效期至: " + g(e.expireDate), 1)) : b("", !0), typeof e.pointsBalance == "number" ? (a(), l("span", Ce, "积分余额: " + g(e.pointsBalance), 1)) : b("", !0), typeof e.pendingInvoiceTotal == "number" && e.pendingInvoiceTotal > 0 ? (a(), l("div", xe, [o[4] || (o[4] = u("span", {
156
156
  class: "UserSubscriptionBaseInformation__warning"
157
157
  }, " 有待支付账单 ", -1)), f(s(R), {
158
158
  type: "primary",
@@ -166,7 +166,7 @@ const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97
166
166
  _: 1
167
167
  }, 8, ["loading"])])) : b("", !0)]));
168
168
  }
169
- }), we = /* @__PURE__ */ M(xe, [["__scopeId", "data-v-918efa0e"]]), De = /* @__PURE__ */ d({
169
+ }), Pe = /* @__PURE__ */ M(we, [["__scopeId", "data-v-918efa0e"]]), De = /* @__PURE__ */ d({
170
170
  __name: "UserMenuHeader",
171
171
  props: {
172
172
  showSubscription: {
@@ -195,18 +195,18 @@ const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97
195
195
  pendingInvoice: i,
196
196
  loading: v,
197
197
  refresh: y
198
- } = Z(), h = S(0), I = A(() => o.value), D = A(() => {
198
+ } = Z(), h = S(0), I = A(() => o.value), P = A(() => {
199
199
  var m, $;
200
200
  return n.currentVersionName ? n.currentVersionName : ((m = I.value) == null ? void 0 : m.type) === "trial" ? "免费试用" : (($ = I.value) == null ? void 0 : $.productName) || "未订阅";
201
201
  }), c = A(() => {
202
202
  var m;
203
203
  return n.expireDate || ((m = I.value) == null ? void 0 : m.endAt) || "";
204
- }), P = A(() => {
204
+ }), D = A(() => {
205
205
  var m, $;
206
206
  return ((m = I.value) == null ? void 0 : m.type) === "trial" ? h.value > 0 ? "升级" : "" : (($ = I.value) == null ? void 0 : $.type) === "subscription" ? h.value > 1 ? "修改订阅" : "" : h.value > 0 ? "订阅" : "";
207
- }), X = A(() => n.canUpgrade && !!P.value);
207
+ }), X = A(() => n.canUpgrade && !!D.value);
208
208
  function Y() {
209
- window.location.assign("/Pricing");
209
+ ee();
210
210
  }
211
211
  async function q() {
212
212
  const {
@@ -218,32 +218,32 @@ const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97
218
218
  n.showSubscription && (y(), q());
219
219
  }), (m, $) => {
220
220
  var V, H, O, T, z, E;
221
- return a(), l(F, null, [f(Ie, {
221
+ return a(), l(F, null, [f($e, {
222
222
  "avatar-url": (V = s(r)) == null ? void 0 : V.avatarUrl,
223
223
  nickname: (H = s(r)) == null ? void 0 : H.nickname,
224
224
  email: (O = s(r)) == null ? void 0 : O.email,
225
225
  "referrer-id": (T = s(r)) == null ? void 0 : T.referrerId
226
- }, null, 8, ["avatar-url", "nickname", "email", "referrer-id"]), e.showSubscription ? (a(), _(we, {
226
+ }, null, 8, ["avatar-url", "nickname", "email", "referrer-id"]), e.showSubscription ? (a(), _(Pe, {
227
227
  key: 0,
228
- "current-version-name": D.value,
228
+ "current-version-name": P.value,
229
229
  "expire-date": c.value,
230
230
  "points-balance": (z = s(p)) == null ? void 0 : z.totalPoints,
231
231
  "pending-invoice-total": (E = s(i)) == null ? void 0 : E.total,
232
232
  loading: s(v),
233
233
  "can-upgrade": X.value,
234
- "action-label": P.value,
234
+ "action-label": D.value,
235
235
  onUpgradeHandle: Y,
236
- onPayHandle: $[0] || ($[0] = (Ye) => s(t)({
236
+ onPayHandle: $[0] || ($[0] = (qe) => s(t)({
237
237
  target: "invoices"
238
238
  }))
239
239
  }, null, 8, ["current-version-name", "expire-date", "points-balance", "pending-invoice-total", "loading", "can-upgrade", "action-label"])) : b("", !0)], 64);
240
240
  };
241
241
  }
242
- }), Pe = {
242
+ }), Re = {
243
243
  class: "UserMenu__content"
244
- }, Re = {
244
+ }, Ne = {
245
245
  class: "UserMenu__header"
246
- }, Ne = /* @__PURE__ */ d({
246
+ }, Ve = /* @__PURE__ */ d({
247
247
  __name: "UserMenu",
248
248
  props: {
249
249
  position: {
@@ -279,30 +279,30 @@ const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97
279
279
  "--user-menu-translate-y": e.dropdownOffsetY ?? "0"
280
280
  }
281
281
  }, {
282
- content: U(() => [u("div", Pe, [u("div", Re, [C(i.$slots, "header", {
282
+ content: U(() => [u("div", Re, [u("div", Ne, [C(i.$slots, "header", {
283
283
  user: s(n)
284
- }, () => [f(De)], !0)]), i.$slots.items ? (a(), _(_e, {
284
+ }, () => [f(De)], !0)]), i.$slots.items ? (a(), _(ve, {
285
285
  key: 0
286
286
  })) : b("", !0), C(i.$slots, "items", {}, void 0, !0)])]),
287
287
  default: U(() => [C(i.$slots, "trigger", {
288
288
  user: s(n)
289
289
  }, () => {
290
290
  var y;
291
- return [f(ue, {
291
+ return [f(le, {
292
292
  avatar: (y = s(n)) == null ? void 0 : y.avatarUrl
293
293
  }, null, 8, ["avatar"])];
294
294
  }, !0)]),
295
295
  _: 3
296
- }, 8, ["popup-visible", "position", "popup-style"])) : (a(), _(de, {
296
+ }, 8, ["popup-visible", "position", "popup-style"])) : (a(), _(pe, {
297
297
  key: 0
298
298
  }));
299
299
  }
300
- }), pn = /* @__PURE__ */ M(Ne, [["__scopeId", "data-v-bbd2c44f"]]), Ve = ["disabled"], He = {
300
+ }), fn = /* @__PURE__ */ M(Ve, [["__scopeId", "data-v-bbd2c44f"]]), He = ["disabled"], Oe = {
301
301
  class: "UserMenuItem__label"
302
- }, Oe = {
302
+ }, Te = {
303
303
  key: 0,
304
304
  class: "UserMenuItem__icon"
305
- }, Te = /* @__PURE__ */ d({
305
+ }, ze = /* @__PURE__ */ d({
306
306
  __name: "UserMenuItem",
307
307
  props: {
308
308
  icon: {
@@ -339,14 +339,14 @@ const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97
339
339
  }]),
340
340
  disabled: e.disabled,
341
341
  onClick: p
342
- }, [u("span", He, [C(i.$slots, "default", {}, void 0, !0)]), i.$slots.icon || e.icon ? (a(), l("span", Oe, [C(i.$slots, "icon", {}, () => [e.icon ? (a(), _(s(j), {
342
+ }, [u("span", Oe, [C(i.$slots, "default", {}, void 0, !0)]), i.$slots.icon || e.icon ? (a(), l("span", Te, [C(i.$slots, "icon", {}, () => [e.icon ? (a(), _(s(j), {
343
343
  key: 0,
344
344
  icon: e.icon,
345
345
  width: 16,
346
346
  height: 16
347
- }, null, 8, ["icon"])) : b("", !0)], !0)])) : b("", !0)], 10, Ve));
347
+ }, null, 8, ["icon"])) : b("", !0)], !0)])) : b("", !0)], 10, He));
348
348
  }
349
- }), w = /* @__PURE__ */ M(Te, [["__scopeId", "data-v-d357ac04"]]), fn = /* @__PURE__ */ d({
349
+ }), w = /* @__PURE__ */ M(ze, [["__scopeId", "data-v-d357ac04"]]), mn = /* @__PURE__ */ d({
350
350
  __name: "UserMenuModals",
351
351
  setup(e) {
352
352
  const {
@@ -356,7 +356,7 @@ const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97
356
356
  messagesTrigger: o,
357
357
  feedbackTrigger: p,
358
358
  invitationsTrigger: i
359
- } = k(), v = S(null), y = S(null), h = S(null), I = S(null), D = S(null);
359
+ } = k(), v = S(null), y = S(null), h = S(null), I = S(null), P = S(null);
360
360
  return x(n, () => {
361
361
  var c;
362
362
  (c = v.value) == null || c.setData(null, !0);
@@ -371,35 +371,35 @@ const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97
371
371
  (c = I.value) == null || c.setData(!0);
372
372
  }), x(i, () => {
373
373
  var c;
374
- (c = D.value) == null || c.setData(!0);
375
- }), (c, P) => (a(), l(F, null, [f(te, {
374
+ (c = P.value) == null || c.setData(!0);
375
+ }), (c, D) => (a(), l(F, null, [f(se, {
376
376
  ref_key: "appSettingRef",
377
377
  ref: v
378
- }, null, 512), f(ee, {
378
+ }, null, 512), f(ne, {
379
379
  ref_key: "paySubsRef",
380
380
  ref: y
381
- }, null, 512), f(ae, {
381
+ }, null, 512), f(re, {
382
382
  ref_key: "messageHandleRef",
383
383
  ref: h
384
- }, null, 512), f(se, {
384
+ }, null, 512), f(ae, {
385
385
  ref_key: "feedbackModalRef",
386
386
  ref: I
387
- }, null, 512), f(re, {
387
+ }, null, 512), f(oe, {
388
388
  ref_key: "refereesRef",
389
- ref: D
389
+ ref: P
390
390
  }, null, 512)], 64));
391
391
  }
392
- }), ze = {
392
+ }), Ee = {
393
393
  class: "UserAccountMenu"
394
- }, Ee = {
395
- class: "UserAccountMenu__avatar"
396
394
  }, Fe = {
397
- class: "UserAccountMenu__meta"
395
+ class: "UserAccountMenu__avatar"
398
396
  }, Le = {
399
- class: "UserAccountMenu__name"
397
+ class: "UserAccountMenu__meta"
400
398
  }, je = {
399
+ class: "UserAccountMenu__name"
400
+ }, Xe = {
401
401
  class: "UserAccountMenu__email"
402
- }, Xe = /* @__PURE__ */ d({
402
+ }, Ye = /* @__PURE__ */ d({
403
403
  __name: "UserAccountMenu",
404
404
  setup(e) {
405
405
  const {
@@ -409,7 +409,7 @@ const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97
409
409
  } = k();
410
410
  return (t, o) => {
411
411
  var p, i;
412
- return a(), l("div", ze, [u("div", Ee, [C(t.$slots, "avatar", {}, void 0, !0)]), u("div", Fe, [u("div", Le, g(((p = s(n)) == null ? void 0 : p.nickname) || ""), 1), u("div", je, g(((i = s(n)) == null ? void 0 : i.email) || ""), 1)]), u("div", {
412
+ return a(), l("div", Ee, [u("div", Fe, [C(t.$slots, "avatar", {}, void 0, !0)]), u("div", Le, [u("div", je, g(((p = s(n)) == null ? void 0 : p.nickname) || ""), 1), u("div", Xe, g(((i = s(n)) == null ? void 0 : i.email) || ""), 1)]), u("div", {
413
413
  class: "UserAccountMenu__arrow",
414
414
  onClick: o[0] || (o[0] = //@ts-ignore
415
415
  (...v) => s(r) && s(r)(...v))
@@ -418,7 +418,7 @@ const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97
418
418
  })])]);
419
419
  };
420
420
  }
421
- }), mn = /* @__PURE__ */ M(Xe, [["__scopeId", "data-v-cc0eb033"]]), _n = /* @__PURE__ */ d({
421
+ }), _n = /* @__PURE__ */ M(Ye, [["__scopeId", "data-v-cc0eb033"]]), vn = /* @__PURE__ */ d({
422
422
  __name: "UserMenuMessageItem",
423
423
  setup(e) {
424
424
  const {
@@ -432,7 +432,7 @@ const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97
432
432
  _: 1
433
433
  }, 8, ["onClick"]));
434
434
  }
435
- }), vn = /* @__PURE__ */ d({
435
+ }), gn = /* @__PURE__ */ d({
436
436
  __name: "UserMenuSettingItem",
437
437
  setup(e) {
438
438
  const {
@@ -446,7 +446,7 @@ const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97
446
446
  _: 1
447
447
  }, 8, ["onClick"]));
448
448
  }
449
- }), gn = /* @__PURE__ */ d({
449
+ }), bn = /* @__PURE__ */ d({
450
450
  __name: "UserMenuSubscriptionItem",
451
451
  setup(e) {
452
452
  const {
@@ -460,7 +460,7 @@ const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97
460
460
  _: 1
461
461
  }));
462
462
  }
463
- }), bn = /* @__PURE__ */ d({
463
+ }), Un = /* @__PURE__ */ d({
464
464
  __name: "UserMenuFeedbackItem",
465
465
  setup(e) {
466
466
  const {
@@ -474,7 +474,7 @@ const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97
474
474
  _: 1
475
475
  }, 8, ["onClick"]));
476
476
  }
477
- }), Un = /* @__PURE__ */ d({
477
+ }), kn = /* @__PURE__ */ d({
478
478
  __name: "UserMenuInvitationsItem",
479
479
  setup(e) {
480
480
  const {
@@ -490,19 +490,19 @@ const _e = /* @__PURE__ */ M(pe, [["render", me], ["__scopeId", "data-v-c7d18d97
490
490
  }
491
491
  });
492
492
  export {
493
- mn as U,
494
- bn as _,
495
- ue as a,
496
- Ie as b,
497
- pn as c,
498
- _e as d,
493
+ _n as U,
494
+ Un as _,
495
+ le as a,
496
+ $e as b,
497
+ fn as c,
498
+ ve as d,
499
499
  De as e,
500
- Un as f,
500
+ kn as f,
501
501
  w as g,
502
- _n as h,
503
- fn as i,
504
- vn as j,
505
- gn as k,
506
- de as l,
507
- we as m
502
+ vn as h,
503
+ mn as i,
504
+ gn as j,
505
+ bn as k,
506
+ pe as l,
507
+ Pe as m
508
508
  };
@@ -2,18 +2,18 @@
2
2
  import "./index-D3Kp6R4z.js";
3
3
  import { defineComponent as P, ref as U, watch as V, openBlock as t, createElementBlock as n, createElementVNode as s, createVNode as o, unref as u, withCtx as x, createTextVNode as H, renderSlot as N, toDisplayString as I, createCommentVNode as M, onMounted as j, onUnmounted as he, normalizeClass as S, Fragment as L, renderList as E, createBlock as pe, computed as B, onBeforeUnmount as fe, normalizeStyle as W } from "vue";
4
4
  import { Spin as q } from "@arco-design/web-vue";
5
- import { u as F } from "./useAuthkitAuth-Doj5VYjK.js";
6
- import { d as _e, b as ve, a as ge } from "./apiClients-KFp-rs-C.js";
7
- import { u as D } from "./useAuthkitAppsAuthPageInfo-B9_VzVkQ.js";
8
- import { u as J } from "./useAuthkitUsersProfile-FJnHJad-.js";
9
- import { b as Q, f as X, w as G, a as Y, c as Z, d as ee, e as ye } from "./useSEO-BZhVKEZr.js";
10
- import "./useUploadCos-keDKcs0j.js";
5
+ import { u as F } from "./useAuthkitAuth-Bj8XxPtO.js";
6
+ import { d as _e, b as ve, a as ge } from "./apiClients-B8bOvWw_.js";
7
+ import { u as D } from "./useAuthkitAppsAuthPageInfo-6ncIP9RT.js";
8
+ import { u as J } from "./useAuthkitUsersProfile-CoQceogN.js";
9
+ import { b as Q, f as X, w as G, a as Y, c as Z, d as ee, e as ye } from "./useSEO-DU86KCMJ.js";
10
+ import "./useUploadCos-DTMIoW7p.js";
11
11
  import { useRouter as te, useRoute as ne } from "vue-router";
12
12
  import "./useUserMenu-ClPBlvaM.js";
13
- import { U as ke, c as oe, h as se, k as ae, _ as re, f as ie, j as ue, d as le, g as K, i as ce } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Czix4_tj.js";
13
+ import { U as ke, c as oe, h as se, k as ae, _ as re, f as ie, j as ue, d as le, g as K, i as ce } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-9cF5hBYc.js";
14
14
  /* empty css */
15
15
  import { Icon as R } from "@iconify/vue";
16
- import "./Clipboard-ChMNfcO5.js";
16
+ import "./Clipboard-k0jtK4CJ.js";
17
17
  /* empty css */
18
18
  import { M as be } from "./Menu-Cy2ZPeaz.js";
19
19
  import "./CollapseItem-DUzZA6tx.js";
@@ -1,8 +1,8 @@
1
- import { eden as n, defineMiddleware as f, createClient as I } from "@vafast/api-client";
2
- import { ref as k, computed as b } from "vue";
1
+ import { eden as n, defineMiddleware as u, createClient as I } from "@vafast/api-client";
2
+ import { ref as p, computed as b } from "vue";
3
3
  /* empty css */
4
4
  import { Message as A } from "@arco-design/web-vue";
5
- const P = k(void 0);
5
+ const P = p(void 0);
6
6
  function U(e) {
7
7
  var t, r;
8
8
  return e === "system" ? typeof window < "u" && ((r = (t = window.matchMedia) == null ? void 0 : t.call(window, "(prefers-color-scheme: dark)")) != null && r.matches) ? "dark" : "light" : e;
@@ -22,6 +22,7 @@ let o = {
22
22
  aiPrefixUrl: "/aiRestfulApi",
23
23
  webhookPrefixUrl: "/webhookRestfulApi",
24
24
  oauthCallbackUrl: "",
25
+ pricingUrl: "/Pricing",
25
26
  avatarBucketId: "68350c206888f565dc7d09e9",
26
27
  feedbackBucketId: "6826e4db6888f565dc775dce",
27
28
  bucket: "ones-1358549778",
@@ -32,7 +33,7 @@ function H(e) {
32
33
  Object.assign(R, e);
33
34
  }
34
35
  function Q(e) {
35
- o.appId = e.appId, e.theme !== void 0 && (P.value = e.theme, v(U(e.theme))), o.authPrefixUrl = e.authPrefixUrl || "/authRestfulApi", (e.onesPrefixUrl !== void 0 || e.prefixUrl !== void 0) && (o.onesPrefixUrl = e.onesPrefixUrl ?? e.prefixUrl ?? o.onesPrefixUrl), e.billingPrefixUrl !== void 0 && (o.billingPrefixUrl = e.billingPrefixUrl), e.logPrefixUrl !== void 0 && (o.logPrefixUrl = e.logPrefixUrl), e.aiPrefixUrl !== void 0 && (o.aiPrefixUrl = e.aiPrefixUrl), e.webhookPrefixUrl !== void 0 && (o.webhookPrefixUrl = e.webhookPrefixUrl), e.oauthCallbackUrl !== void 0 ? o.oauthCallbackUrl = e.oauthCallbackUrl : typeof window < "u" && (o.oauthCallbackUrl = `${window.location.origin}/`), e.avatarBucketId !== void 0 && (o.avatarBucketId = e.avatarBucketId), e.feedbackBucketId !== void 0 && (o.feedbackBucketId = e.feedbackBucketId), e.bucket !== void 0 && (o.bucket = e.bucket), e.region !== void 0 && (o.region = e.region), e.web3formsAccessKey !== void 0 && (o.web3formsAccessKey = e.web3formsAccessKey);
36
+ o.appId = e.appId, e.theme !== void 0 && (P.value = e.theme, v(U(e.theme))), o.authPrefixUrl = e.authPrefixUrl || "/authRestfulApi", (e.onesPrefixUrl !== void 0 || e.prefixUrl !== void 0) && (o.onesPrefixUrl = e.onesPrefixUrl ?? e.prefixUrl ?? o.onesPrefixUrl), e.billingPrefixUrl !== void 0 && (o.billingPrefixUrl = e.billingPrefixUrl), e.logPrefixUrl !== void 0 && (o.logPrefixUrl = e.logPrefixUrl), e.aiPrefixUrl !== void 0 && (o.aiPrefixUrl = e.aiPrefixUrl), e.webhookPrefixUrl !== void 0 && (o.webhookPrefixUrl = e.webhookPrefixUrl), e.pricingUrl !== void 0 && (o.pricingUrl = e.pricingUrl || "/Pricing"), e.openPricing !== void 0 && (o.openPricing = e.openPricing), e.oauthCallbackUrl !== void 0 ? o.oauthCallbackUrl = e.oauthCallbackUrl : typeof window < "u" && (o.oauthCallbackUrl = `${window.location.origin}/`), e.avatarBucketId !== void 0 && (o.avatarBucketId = e.avatarBucketId), e.feedbackBucketId !== void 0 && (o.feedbackBucketId = e.feedbackBucketId), e.bucket !== void 0 && (o.bucket = e.bucket), e.region !== void 0 && (o.region = e.region), e.web3formsAccessKey !== void 0 && (o.web3formsAccessKey = e.web3formsAccessKey);
36
37
  }
37
38
  function j(e) {
38
39
  return n(e);
@@ -81,23 +82,23 @@ function K(e) {
81
82
  console.warn("Failed to update jwtToken in localStorage:", t);
82
83
  }
83
84
  }
84
- const p = k(!1), y = k("signIn");
85
+ const k = p(!1), y = p("signIn");
85
86
  function z(e) {
86
- e != null && e.view && (y.value = e.view), p.value = !0;
87
+ e != null && e.view && (y.value = e.view), k.value = !0;
87
88
  }
88
89
  function _() {
89
- p.value = !1;
90
+ k.value = !1;
90
91
  }
91
- function T() {
92
+ function g() {
92
93
  return {
93
94
  open: z,
94
95
  close: _,
95
- isOpen: b(() => p.value),
96
+ isOpen: b(() => k.value),
96
97
  view: b(() => y.value)
97
98
  };
98
99
  }
99
100
  const d = 40101;
100
- let u = !1, h = [];
101
+ let f = !1, h = [];
101
102
  function m(e, t = null) {
102
103
  h.forEach(({
103
104
  resolve: r,
@@ -128,31 +129,31 @@ async function F() {
128
129
  throw console.error("Token refresh failed:", t), t;
129
130
  }
130
131
  }
131
- const L = f(async (e, t) => (e.headers.set("app-id", o.appId), t()), {
132
+ const L = u(async (e, t) => (e.headers.set("app-id", o.appId), t()), {
132
133
  name: "app-id"
133
- }), N = f(async (e, t) => {
134
+ }), N = u(async (e, t) => {
134
135
  const r = localStorage.getItem("jwtToken");
135
136
  return r && e.headers.set("authorization", `Bearer ${r}`), t();
136
137
  }, {
137
138
  name: "token"
138
- }), q = f(async (e, t) => {
139
+ }), q = u(async (e, t) => {
139
140
  var a;
140
141
  const r = await t();
141
142
  if (((a = r.error) == null ? void 0 : a.code) === d) {
142
- if (u)
143
+ if (f)
143
144
  return new Promise((i, c) => {
144
145
  h.push({
145
- resolve: async (w) => {
146
- e.headers.set("authorization", `Bearer ${w}`);
147
- const g = await t();
148
- i(g);
146
+ resolve: async (T) => {
147
+ e.headers.set("authorization", `Bearer ${T}`);
148
+ const w = await t();
149
+ i(w);
149
150
  },
150
151
  reject: () => {
151
152
  c(r);
152
153
  }
153
154
  });
154
155
  });
155
- u = !0;
156
+ f = !0;
156
157
  try {
157
158
  const i = await F();
158
159
  return m(null, i), e.headers.set("authorization", `Bearer ${i}`), await t();
@@ -160,36 +161,36 @@ const L = f(async (e, t) => (e.headers.set("app-id", o.appId), t()), {
160
161
  m(i, null), x();
161
162
  const {
162
163
  open: c
163
- } = T();
164
+ } = g();
164
165
  return c(), r;
165
166
  } finally {
166
- u = !1;
167
+ f = !1;
167
168
  }
168
169
  }
169
170
  return r;
170
171
  }, {
171
172
  name: "token-refresh"
172
- }), D = f(async (e, t) => {
173
+ }), D = u(async (e, t) => {
173
174
  var a;
174
175
  const r = await t();
175
176
  if (r.status === 401 && ((a = r.error) == null ? void 0 : a.code) !== d) {
176
177
  x();
177
178
  const {
178
179
  open: i
179
- } = T();
180
+ } = g();
180
181
  return i(), r;
181
182
  }
182
183
  return r.error && r.error.code !== d && A.error(r.error.message || "请求失败"), r;
183
184
  }, {
184
185
  name: "error-message"
185
186
  });
186
- function s(e) {
187
+ function l(e) {
187
188
  return I({
188
189
  baseURL: e,
189
190
  timeout: 3e4
190
191
  }).use(L).use(N).use(q).use(D);
191
192
  }
192
- function l(e) {
193
+ function s(e) {
193
194
  let t = null;
194
195
  return new Proxy({}, {
195
196
  get(r, a) {
@@ -197,7 +198,7 @@ function l(e) {
197
198
  }
198
199
  });
199
200
  }
200
- const Z = l(() => S(s(o.authPrefixUrl))), C = l(() => B(s(o.billingPrefixUrl))), ee = l(() => M(s(o.onesPrefixUrl))), re = l(() => E(s(o.logPrefixUrl))), te = l(() => j(s(o.aiPrefixUrl))), oe = l(() => O(s(o.webhookPrefixUrl)));
201
+ const Z = s(() => S(l(o.authPrefixUrl))), C = s(() => B(l(o.billingPrefixUrl))), ee = s(() => M(l(o.onesPrefixUrl))), re = s(() => E(l(o.logPrefixUrl))), te = s(() => j(l(o.aiPrefixUrl))), oe = s(() => O(l(o.webhookPrefixUrl)));
201
202
  export {
202
203
  R as a,
203
204
  P as b,
@@ -211,6 +212,6 @@ export {
211
212
  re as l,
212
213
  ee as o,
213
214
  Q as s,
214
- T as u,
215
+ g as u,
215
216
  oe as w
216
217
  };
package/dist/authkit.js CHANGED
@@ -1,12 +1,12 @@
1
- import { A as a, B as s, E as u, a as e, b as h, O as A, P as r, c as o, _ as k, d as n, S as d, e as p, u as P } from "./AuthkitAppSetting-DrX6fwKt.js";
2
- import { A as l, a as m, b as g, c as S, d as O, e as c, f as L, _ as U, g as w, O as x, h as E, P as b, i as B, j as C, k as y, R as I, S as V, l as _, m as v, n as G, o as R, p as D, q as M } from "./AuthkitGithubBinding-B3GHsKLa.js";
3
- import { u as q } from "./useAuthkitAppsAuthPageInfo-B9_VzVkQ.js";
4
- import { u as K } from "./useAuthkitAuth-Doj5VYjK.js";
5
- import { u as Y } from "./apiClients-KFp-rs-C.js";
6
- import { u as H } from "./useEnsureAuthenticated-D78tsddF.js";
7
- import { L as N, a as Q, b as W, u as X } from "./useLegalLinks-OGVbqXVy.js";
8
- import { u as $ } from "./useAuthkitUsersProfile-FJnHJad-.js";
9
- import { u as it } from "./useAuthkitCreateAndUpdate-DomftQMK.js";
1
+ import { A as a, B as s, E as u, a as e, b as h, O as A, P as r, c as o, _ as k, d as n, S as d, e as p, u as P } from "./AuthkitAppSetting-p_ZzaAK3.js";
2
+ import { A as l, a as m, b as g, c as S, d as O, e as c, f as L, _ as U, g as w, O as x, h as E, P as b, i as B, j as C, k as y, R as I, S as V, l as _, m as v, n as G, o as R, p as D, q as M } from "./AuthkitGithubBinding-Cwly1un7.js";
3
+ import { u as q } from "./useAuthkitAppsAuthPageInfo-6ncIP9RT.js";
4
+ import { u as K } from "./useAuthkitAuth-Bj8XxPtO.js";
5
+ import { u as Y } from "./apiClients-B8bOvWw_.js";
6
+ import { u as H } from "./useEnsureAuthenticated-MpHmn2co.js";
7
+ import { L as N, a as Q, b as W, u as X } from "./useLegalLinks-CVHYmza0.js";
8
+ import { u as $ } from "./useAuthkitUsersProfile-CoQceogN.js";
9
+ import { u as it } from "./useAuthkitCreateAndUpdate-CUf8HARI.js";
10
10
  export {
11
11
  a as AuthkitAppSetting,
12
12
  l as AuthkitAuth,
@@ -28,6 +28,10 @@ export interface HuyoooUIConfig {
28
28
  webhookPrefixUrl: string;
29
29
  /** OAuth 回调地址(可选,默认当前应用首页) */
30
30
  oauthCallbackUrl: string;
31
+ /** 价格页地址(可选,默认当前应用 /Pricing) */
32
+ pricingUrl: string;
33
+ /** 自定义打开价格页逻辑(可选;例如桌面端切换到内置订阅页) */
34
+ openPricing?: () => void;
31
35
  avatarBucketId: string;
32
36
  feedbackBucketId: string;
33
37
  /** 默认存储桶名称 */
@@ -64,6 +68,10 @@ export interface SetGlobalConfigOptions {
64
68
  webhookPrefixUrl?: string;
65
69
  /** OAuth 回调地址(可选,默认当前应用首页) */
66
70
  oauthCallbackUrl?: string;
71
+ /** 价格页地址(可选,默认当前应用 /Pricing;桌面端可配置为官网价格页) */
72
+ pricingUrl?: string;
73
+ /** 自定义打开价格页逻辑;优先级高于 pricingUrl */
74
+ openPricing?: () => void;
67
75
  avatarBucketId?: string;
68
76
  feedbackBucketId?: string;
69
77
  /** 默认存储桶名称 */