@huyooo/ui 0.14.10 → 0.15.1
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.
- package/dist/{AuthkitAppSetting-Xe-QQSQ4.js → AuthkitAppSetting-Ds7mYFV5.js} +6 -6
- package/dist/{AuthkitGithubBinding-CK6ijijV.js → AuthkitGithubBinding-LVDS1PNQ.js} +233 -226
- package/dist/{Clipboard-C8ncjaAJ.js → Clipboard-R3AURqvU.js} +1 -1
- package/dist/{Contact-mb7deQOs.js → Contact-B3AMSHoN.js} +2 -2
- package/dist/{FeedbackItem-C4MZUC-3.js → FeedbackItem-DkvSQT33.js} +3 -3
- package/dist/{FeedbackModal-yVKcsuaE.js → FeedbackModal-C45pNoiw.js} +3 -3
- package/dist/{MessageHandle-rRAQnE-q.js → MessageHandle-CEQtGyVZ.js} +2 -2
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-CsXEBH4f.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-87v_RIQa.js} +2 -2
- package/dist/{PaySubscriptions-B6R71CHm.js → PaySubscriptions-D3g1OhiA.js} +4 -4
- package/dist/{PricingPlans-Ddl98xpp.js → PricingPlans-ClKLdoVv.js} +4 -4
- package/dist/{ReferrerReferees-DFCwvXJ6.js → ReferrerReferees-BxmZ1w_L.js} +4 -4
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-dLSky4Yx.js → Upload.vue_vue_type_script_setup_true_lang-DLKSHzxG.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-f2mzNg6i.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-C7mV8kGe.js} +9 -9
- package/dist/{WidthContainer-DSxG-FRN.js → WidthContainer-DKasAIgU.js} +9 -9
- package/dist/{apiClients-CkI47p36.js → apiClients-DT7o0IpO.js} +124 -109
- package/dist/authkit.js +9 -9
- package/dist/common.js +1 -1
- package/dist/composables.js +13 -13
- package/dist/feedback.js +3 -3
- package/dist/main.d.ts +1 -0
- package/dist/main.js +248 -243
- package/dist/message.js +3 -3
- package/dist/pay.js +4 -4
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api/auth.generated.d.ts +3 -8
- package/dist/types/api/billing.generated.d.ts +2 -2
- package/dist/types/api/log.generated.d.ts +4 -2
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-nCjfAjiw.js → useAuthkitAppsAuthPageInfo-DScDQfj5.js} +1 -1
- package/dist/{useAuthkitAuth-C--qS6UE.js → useAuthkitAuth-DpdKRuJm.js} +65 -67
- package/dist/{useAuthkitCreateAndUpdate-u-ceTc-m.js → useAuthkitCreateAndUpdate-MzA4qtTh.js} +1 -1
- package/dist/{useAuthkitUsersProfile-BC5EsA2f.js → useAuthkitUsersProfile-aw_A7IWb.js} +2 -2
- package/dist/{useBillingStatusOptions-D5Ehwtbj.js → useBillingStatusOptions-CAsu1hrf.js} +3 -3
- package/dist/{useEnsureAuthenticated-C4tsSfv6.js → useEnsureAuthenticated-BEKhtQAl.js} +2 -2
- package/dist/{useLegalLinks-DeXLE-yv.js → useLegalLinks-BijRF_ZD.js} +2 -2
- package/dist/{useMessageNotifications-BMUx5xfX.js → useMessageNotifications-CFku0c2R.js} +1 -1
- package/dist/{useRoutePermission-CxRJlooW.js → useRoutePermission-v4_0B-aO.js} +2 -2
- package/dist/{useSEO-DFmbAH-7.js → useSEO-CbHCw4gq.js} +1 -1
- package/dist/{useSubscriptionCheckout-CHAF20s-.js → useSubscriptionCheckout-CfFdAhTR.js} +3 -3
- package/dist/{useTableHandle-9alnSWt0.js → useTableHandle-TDJa_Czn.js} +1 -1
- package/dist/{useUploadCos-DGPnLOC9.js → useUploadCos-CvG6EL5Q.js} +1 -1
- package/dist/user.js +1 -1
- package/dist/utils/apiMiddlewares.d.ts +3 -0
- package/dist/utils/authkit.d.ts +6 -0
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import "./apiClients-
|
|
2
|
+
import "./apiClients-DT7o0IpO.js";
|
|
3
3
|
import { defineComponent as X, ref as J, openBlock as K, createBlock as Q, unref as W } from "vue";
|
|
4
4
|
import { Message as Z } from "@arco-design/web-vue";
|
|
5
5
|
import { Icon as $ } from "@iconify/vue";
|
|
@@ -2,8 +2,8 @@ import { defineComponent as P, ref as q, openBlock as Q, createElementBlock as t
|
|
|
2
2
|
import { e as n, d as y, g as G, f as R, L as Z, c as h, j as b, k as J, i as S, a as O, b as d } from "./LandingPageLinkGroup-DDNRivMt.js";
|
|
3
3
|
import { L as Y } from "./LandingPageSectionHeader-D_74W4My.js";
|
|
4
4
|
import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import { u as M } from "./useAuthkitAppsAuthPageInfo-
|
|
6
|
-
import { g as L } from "./apiClients-
|
|
5
|
+
import { u as M } from "./useAuthkitAppsAuthPageInfo-DScDQfj5.js";
|
|
6
|
+
import { g as L } from "./apiClients-DT7o0IpO.js";
|
|
7
7
|
import { c as x } from "./index-D56hUMeD.js";
|
|
8
8
|
const j = {
|
|
9
9
|
class: "Footer"
|
|
@@ -8,9 +8,9 @@ import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
|
-
import { u as Z } from "./useUploadCos-
|
|
12
|
-
import { g as A } from "./apiClients-
|
|
13
|
-
import "./FeedbackModal-
|
|
11
|
+
import { u as Z } from "./useUploadCos-CvG6EL5Q.js";
|
|
12
|
+
import { g as A } from "./apiClients-DT7o0IpO.js";
|
|
13
|
+
import "./FeedbackModal-C45pNoiw.js";
|
|
14
14
|
import { Icon as Y } from "@iconify/vue";
|
|
15
15
|
const H = f({
|
|
16
16
|
name: "IconDown",
|
|
@@ -8,16 +8,16 @@ import { M as Oe } from "./Menu-Cy2ZPeaz.js";
|
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
|
-
import { o as V, g as Te } from "./apiClients-
|
|
11
|
+
import { o as V, g as Te } from "./apiClients-DT7o0IpO.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { u as je } from "./useUploadCos-
|
|
15
|
+
import { u as je } from "./useUploadCos-CvG6EL5Q.js";
|
|
16
16
|
import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
import { M as Ae } from "./MessageList-CrCF8mU6.js";
|
|
18
18
|
import { f as j } from "./index-D56hUMeD.js";
|
|
19
19
|
import { Bubble as ve, Prompts as Ne, Sender as Pe } from "ant-design-x-vue";
|
|
20
|
-
import { C as ye } from "./Clipboard-
|
|
20
|
+
import { C as ye } from "./Clipboard-R3AURqvU.js";
|
|
21
21
|
import { Icon as We } from "@iconify/vue";
|
|
22
22
|
import { _ as ge, g as be, i as ke } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
23
23
|
const Ke = B({
|
|
@@ -5,11 +5,11 @@ import { U as ee } from "./index-D3Kp6R4z.js";
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { M as q } from "./MessageList-CrCF8mU6.js";
|
|
7
7
|
import { Spin as te, Breadcrumb as K, BreadcrumbItem as D, Tag as U, Modal as ae } from "@arco-design/web-vue";
|
|
8
|
-
import { o as x } from "./apiClients-
|
|
8
|
+
import { o as x } from "./apiClients-DT7o0IpO.js";
|
|
9
9
|
import { TiptapEditor as se, TiptapTitle as ne } from "@huyooo/vue-tiptap";
|
|
10
10
|
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
import { Icon as le } from "@iconify/vue";
|
|
12
|
-
import { u as ie } from "./useAuthkitCreateAndUpdate-
|
|
12
|
+
import { u as ie } from "./useAuthkitCreateAndUpdate-MzA4qtTh.js";
|
|
13
13
|
import { M as oe } from "./Menu-Cy2ZPeaz.js";
|
|
14
14
|
function J(h, u = {}) {
|
|
15
15
|
const {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as f, ref as p, openBlock as t, createElementBlock as i, normalizeClass as K, createBlock as d, unref as S, createCommentVNode as v, createElementVNode as _, toDisplayString as A, Fragment as h, renderList as N } from "vue";
|
|
2
2
|
import { Icon as D } from "@iconify/vue";
|
|
3
3
|
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import { o as $ } from "./apiClients-
|
|
5
|
-
import { D as x } from "./MessageHandle-
|
|
4
|
+
import { o as $ } from "./apiClients-DT7o0IpO.js";
|
|
5
|
+
import { D as x } from "./MessageHandle-CEQtGyVZ.js";
|
|
6
6
|
const b = /* @__PURE__ */ f({
|
|
7
7
|
__name: "MessageMenuItem",
|
|
8
8
|
props: {
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import { U as Ct } from "./index-D3Kp6R4z.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
|
-
import {
|
|
9
|
+
import { h as B, g as X } from "./apiClients-DT7o0IpO.js";
|
|
10
10
|
import { ref as g, computed as A, onUnmounted as Ae, defineComponent as It, openBlock as l, createElementBlock as u, Fragment as te, createVNode as r, unref as n, isRef as xt, withCtx as s, createElementVNode as a, toDisplayString as o, createBlock as q, createTextVNode as v, createCommentVNode as z, renderList as Ne, normalizeClass as Oe } from "vue";
|
|
11
11
|
import { Message as S, Modal as We, Button as k, Popconfirm as ae, Tabs as Nt, TabPane as ne, Spin as me, Empty as Te, Progress as Ot, Tag as Q, Tooltip as Wt } from "@arco-design/web-vue";
|
|
12
|
-
import { u as Tt, b as zt, a as At } from "./useBillingStatusOptions-
|
|
13
|
-
import { u as Et } from "./useAuthkitCreateAndUpdate-
|
|
12
|
+
import { u as Tt, b as zt, a as At } from "./useBillingStatusOptions-CAsu1hrf.js";
|
|
13
|
+
import { u as Et } from "./useAuthkitCreateAndUpdate-MzA4qtTh.js";
|
|
14
14
|
import { C as fe } from "./CustomTable-BT-cnhLR.js";
|
|
15
|
-
import { C as Lt } from "./Clipboard-
|
|
15
|
+
import { C as Lt } from "./Clipboard-R3AURqvU.js";
|
|
16
16
|
import { _ as Rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
function ze() {
|
|
18
18
|
return {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import "./index-D3Kp6R4z.js";
|
|
3
|
-
import "./apiClients-
|
|
3
|
+
import "./apiClients-DT7o0IpO.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { defineComponent as z, computed as k, onMounted as te, onUnmounted as Pe, openBlock as n, createElementBlock as s, createElementVNode as i, unref as e, createBlock as H, toDisplayString as r, createVNode as v, withCtx as b, createTextVNode as R, resolveDirective as me, withDirectives as fe, normalizeClass as L, Fragment as w, renderList as C, createCommentVNode as p } from "vue";
|
|
6
6
|
import { Spin as ne, Button as A, Message as Z } from "@arco-design/web-vue";
|
|
7
7
|
import { useRoute as pe, useRouter as ve } from "vue-router";
|
|
8
|
-
import { b as ye } from "./PaySubscriptions-
|
|
8
|
+
import { b as ye } from "./PaySubscriptions-D3g1OhiA.js";
|
|
9
9
|
import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
import { L as he, a as ke } from "./LandingPageFAQ-CZJXvor9.js";
|
|
11
11
|
import { L as be } from "./LandingPageSectionHeader-D_74W4My.js";
|
|
12
12
|
import { Icon as ee } from "@iconify/vue";
|
|
13
|
-
import { u as Te, a as Ie } from "./useSubscriptionCheckout-
|
|
14
|
-
import { u as we } from "./useEnsureAuthenticated-
|
|
13
|
+
import { u as Te, a as Ie } from "./useSubscriptionCheckout-CfFdAhTR.js";
|
|
14
|
+
import { u as we } from "./useEnsureAuthenticated-BEKhtQAl.js";
|
|
15
15
|
const pt = "/Pay/Return";
|
|
16
16
|
function V(a) {
|
|
17
17
|
const u = typeof a.scene == "string" ? a.scene : null, l = typeof a.orderId == "string" ? a.orderId : null, c = typeof a.returnTo == "string" ? a.returnTo.trim() : null, _ = c != null && c.startsWith("/") && !c.startsWith("//") ? c : null;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { U as P } from "./index-D3Kp6R4z.js";
|
|
4
4
|
import { defineComponent as w, ref as d, openBlock as p, createBlock as v, unref as a, withCtx as g, createElementVNode as n, toDisplayString as _, createCommentVNode as z, createVNode as A, createTextVNode as U } from "vue";
|
|
5
5
|
import { Modal as D } from "@arco-design/web-vue";
|
|
6
|
-
import { e as T } from "./apiClients-
|
|
7
|
-
import { u as V } from "./useTableHandle-
|
|
6
|
+
import { e as T } from "./apiClients-DT7o0IpO.js";
|
|
7
|
+
import { u as V } from "./useTableHandle-TDJa_Czn.js";
|
|
8
8
|
import { C as y } from "./CustomTable-BT-cnhLR.js";
|
|
9
|
-
import { C as E } from "./Clipboard-
|
|
10
|
-
import { u as M } from "./useAuthkitUsersProfile-
|
|
9
|
+
import { C as E } from "./Clipboard-R3AURqvU.js";
|
|
10
|
+
import { u as M } from "./useAuthkitUsersProfile-aw_A7IWb.js";
|
|
11
11
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const H = {
|
|
13
13
|
class: "invite-code-section"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { defineComponent as g, openBlock as F, createBlock as h, unref as q, mergeProps as y, createSlots as I, withCtx as p, renderSlot as u } from "vue";
|
|
8
8
|
import { Upload as S } from "@arco-design/web-vue";
|
|
9
|
-
import { u as _ } from "./useUploadCos-
|
|
9
|
+
import { u as _ } from "./useUploadCos-CvG6EL5Q.js";
|
|
10
10
|
const N = /* @__PURE__ */ g({
|
|
11
11
|
__name: "Upload",
|
|
12
12
|
props: {
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { defineComponent as m, openBlock as r, createElementBlock as p, toDisplayString as U, createCommentVNode as k, createVNode as d, unref as s, createBlock as _, withCtx as v, createTextVNode as $, createElementVNode as l, ref as h, computed as A, onMounted as J, Fragment as F, renderSlot as C, normalizeClass as K, watch as x } from "vue";
|
|
5
5
|
import { Avatar as L, Button as D, Dropdown as Q } from "@arco-design/web-vue";
|
|
6
|
-
import { u as R } from "./useAuthkitUsersProfile-
|
|
6
|
+
import { u as R } from "./useAuthkitUsersProfile-aw_A7IWb.js";
|
|
7
7
|
import { u as y } 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 W } from "./apiClients-
|
|
12
|
-
import { u as Z, o as ee, P as ne } from "./PaySubscriptions-
|
|
13
|
-
import { d as te } from "./useBillingStatusOptions-
|
|
14
|
-
import { C as se } from "./Clipboard-
|
|
15
|
-
import { A as ae } from "./AuthkitAppSetting-
|
|
16
|
-
import { d as oe } from "./FeedbackModal-
|
|
17
|
-
import { M as re } from "./MessageHandle-
|
|
18
|
-
import { R as ie } from "./ReferrerReferees-
|
|
11
|
+
import { u as W } from "./apiClients-DT7o0IpO.js";
|
|
12
|
+
import { u as Z, o as ee, P as ne } from "./PaySubscriptions-D3g1OhiA.js";
|
|
13
|
+
import { d as te } from "./useBillingStatusOptions-CAsu1hrf.js";
|
|
14
|
+
import { C as se } from "./Clipboard-R3AURqvU.js";
|
|
15
|
+
import { A as ae } from "./AuthkitAppSetting-Ds7mYFV5.js";
|
|
16
|
+
import { d as oe } from "./FeedbackModal-C45pNoiw.js";
|
|
17
|
+
import { M as re } from "./MessageHandle-CEQtGyVZ.js";
|
|
18
|
+
import { R as ie } from "./ReferrerReferees-BxmZ1w_L.js";
|
|
19
19
|
import { Icon as j } from "@iconify/vue";
|
|
20
20
|
const le = {
|
|
21
21
|
class: "UserAvatar"
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
import "./index-D3Kp6R4z.js";
|
|
3
3
|
import { defineComponent as P, ref as U, watch as V, openBlock as n, createElementBlock as o, createElementVNode as r, createVNode as a, unref as i, withCtx as x, createTextVNode as z, renderSlot as G, toDisplayString as I, createCommentVNode as $, onMounted as j, onUnmounted as me, normalizeClass as S, Fragment as L, renderList as D, createBlock as he, computed as B, onBeforeUnmount as pe, normalizeStyle as W } from "vue";
|
|
4
4
|
import { Spin as q } from "@arco-design/web-vue";
|
|
5
|
-
import { u as F } from "./useAuthkitAuth-
|
|
6
|
-
import { d as fe, b as _e } from "./apiClients-
|
|
7
|
-
import { u as N } from "./useAuthkitAppsAuthPageInfo-
|
|
8
|
-
import { u as J } from "./useAuthkitUsersProfile-
|
|
9
|
-
import { b as Q, f as X, w as O, a as Y, c as Z } from "./useRoutePermission-
|
|
10
|
-
import "./useUploadCos-
|
|
5
|
+
import { u as F } from "./useAuthkitAuth-DpdKRuJm.js";
|
|
6
|
+
import { d as fe, b as _e } from "./apiClients-DT7o0IpO.js";
|
|
7
|
+
import { u as N } from "./useAuthkitAppsAuthPageInfo-DScDQfj5.js";
|
|
8
|
+
import { u as J } from "./useAuthkitUsersProfile-aw_A7IWb.js";
|
|
9
|
+
import { b as Q, f as X, w as O, a as Y, c as Z } from "./useRoutePermission-v4_0B-aO.js";
|
|
10
|
+
import "./useUploadCos-CvG6EL5Q.js";
|
|
11
11
|
import { useRouter as ee, useRoute as te } from "vue-router";
|
|
12
12
|
import "@unhead/vue";
|
|
13
13
|
import "./useUserMenu-ClPBlvaM.js";
|
|
14
|
-
import "./useBillingStatusOptions-
|
|
15
|
-
import { U as ve, c as ne, h as oe, k as se, _ as ae, f as re, j as ie, d as ue, g as K, i as le } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import "./useBillingStatusOptions-CAsu1hrf.js";
|
|
15
|
+
import { U as ve, c as ne, h as oe, k as se, _ as ae, f as re, j as ie, d as ue, g as K, i as le } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-C7mV8kGe.js";
|
|
16
16
|
/* empty css */
|
|
17
17
|
import { Icon as R } from "@iconify/vue";
|
|
18
|
-
import "./Clipboard-
|
|
18
|
+
import "./Clipboard-R3AURqvU.js";
|
|
19
19
|
/* empty css */
|
|
20
20
|
import { M as ge } from "./Menu-Cy2ZPeaz.js";
|
|
21
21
|
import "./CollapseItem-DUzZA6tx.js";
|
|
@@ -1,17 +1,53 @@
|
|
|
1
|
-
import { eden as n, defineMiddleware as
|
|
2
|
-
import { ref as p, computed as
|
|
1
|
+
import { eden as n, defineMiddleware as c, createClient as S } from "@vafast/api-client";
|
|
2
|
+
import { ref as p, computed as m } from "vue";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { Message as
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { Message as j } from "@arco-design/web-vue";
|
|
5
|
+
function C(e, t = 3) {
|
|
6
|
+
const r = e.indexOf("@");
|
|
7
|
+
if (r > 1) {
|
|
8
|
+
const a = e.slice(0, t), i = e.slice(r);
|
|
9
|
+
return a + "***" + i;
|
|
10
|
+
}
|
|
11
|
+
return e;
|
|
12
|
+
}
|
|
13
|
+
const f = /* @__PURE__ */ new Set();
|
|
14
|
+
function ee(e) {
|
|
15
|
+
return f.add(e), () => {
|
|
16
|
+
f.delete(e);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function E() {
|
|
20
|
+
try {
|
|
21
|
+
localStorage.removeItem("jwtToken"), localStorage.removeItem("refreshToken");
|
|
22
|
+
} catch (e) {
|
|
23
|
+
console.warn("Failed to clear localStorage:", e);
|
|
24
|
+
}
|
|
25
|
+
f.forEach((e) => e());
|
|
26
|
+
}
|
|
27
|
+
function B() {
|
|
28
|
+
try {
|
|
29
|
+
return localStorage.getItem("refreshToken");
|
|
30
|
+
} catch (e) {
|
|
31
|
+
return console.warn("Failed to get refreshToken from localStorage:", e), null;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function O(e) {
|
|
35
|
+
try {
|
|
36
|
+
localStorage.setItem("jwtToken", e);
|
|
37
|
+
} catch (t) {
|
|
38
|
+
console.warn("Failed to update jwtToken in localStorage:", t);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
const v = p(void 0);
|
|
42
|
+
function x(e) {
|
|
7
43
|
var t, r;
|
|
8
44
|
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;
|
|
9
45
|
}
|
|
10
|
-
function
|
|
46
|
+
function g(e) {
|
|
11
47
|
typeof document > "u" || (e === "dark" ? (document.body.setAttribute("arco-theme", "dark"), document.body.classList.add("dark")) : (document.body.removeAttribute("arco-theme"), document.body.classList.remove("dark")));
|
|
12
48
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
49
|
+
function re(e) {
|
|
50
|
+
v.value = e, g(x(e));
|
|
15
51
|
}
|
|
16
52
|
let o = {
|
|
17
53
|
appId: "",
|
|
@@ -28,78 +64,62 @@ let o = {
|
|
|
28
64
|
bucket: "ones-1358549778",
|
|
29
65
|
region: "ap-beijing",
|
|
30
66
|
web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
|
|
31
|
-
},
|
|
32
|
-
function
|
|
33
|
-
Object.assign(
|
|
67
|
+
}, M = {};
|
|
68
|
+
function te(e) {
|
|
69
|
+
Object.assign(M, e);
|
|
34
70
|
}
|
|
35
|
-
function
|
|
36
|
-
o.appId = e.appId, e.theme !== void 0 && (
|
|
71
|
+
function oe(e) {
|
|
72
|
+
o.appId = e.appId, e.theme !== void 0 && (v.value = e.theme, g(x(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);
|
|
37
73
|
}
|
|
38
|
-
function
|
|
74
|
+
function $(e) {
|
|
39
75
|
return n(e);
|
|
40
76
|
}
|
|
41
|
-
function
|
|
77
|
+
function z(e) {
|
|
42
78
|
return n(e);
|
|
43
79
|
}
|
|
44
|
-
function
|
|
80
|
+
function K(e) {
|
|
45
81
|
return n(e);
|
|
46
82
|
}
|
|
47
|
-
function
|
|
83
|
+
function L(e) {
|
|
48
84
|
return n(e);
|
|
49
85
|
}
|
|
50
|
-
function
|
|
86
|
+
function _(e) {
|
|
51
87
|
return n(e);
|
|
52
88
|
}
|
|
53
|
-
function
|
|
89
|
+
function D(e) {
|
|
54
90
|
return n(e);
|
|
55
91
|
}
|
|
56
|
-
function Y(e, t = 3) {
|
|
57
|
-
const r = e.indexOf("@");
|
|
58
|
-
if (r > 1) {
|
|
59
|
-
const a = e.slice(0, t), i = e.slice(r);
|
|
60
|
-
return a + "***" + i;
|
|
61
|
-
}
|
|
62
|
-
return e;
|
|
63
|
-
}
|
|
64
|
-
function x() {
|
|
65
|
-
try {
|
|
66
|
-
localStorage.removeItem("jwtToken"), localStorage.removeItem("refreshToken");
|
|
67
|
-
} catch (e) {
|
|
68
|
-
console.warn("Failed to clear localStorage:", e);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
function $() {
|
|
72
|
-
try {
|
|
73
|
-
return localStorage.getItem("refreshToken");
|
|
74
|
-
} catch (e) {
|
|
75
|
-
return console.warn("Failed to get refreshToken from localStorage:", e), null;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
function K(e) {
|
|
79
|
-
try {
|
|
80
|
-
localStorage.setItem("jwtToken", e);
|
|
81
|
-
} catch (t) {
|
|
82
|
-
console.warn("Failed to update jwtToken in localStorage:", t);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
92
|
const k = p(!1), y = p("signIn");
|
|
86
|
-
function
|
|
93
|
+
function N(e) {
|
|
87
94
|
e != null && e.view && (y.value = e.view), k.value = !0;
|
|
88
95
|
}
|
|
89
|
-
function
|
|
96
|
+
function F() {
|
|
90
97
|
k.value = !1;
|
|
91
98
|
}
|
|
92
|
-
function
|
|
99
|
+
function q() {
|
|
93
100
|
return {
|
|
94
|
-
open:
|
|
95
|
-
close:
|
|
96
|
-
isOpen:
|
|
97
|
-
view:
|
|
101
|
+
open: N,
|
|
102
|
+
close: F,
|
|
103
|
+
isOpen: m(() => k.value),
|
|
104
|
+
view: m(() => y.value)
|
|
98
105
|
};
|
|
99
106
|
}
|
|
100
|
-
const d = 40101;
|
|
101
|
-
|
|
102
|
-
|
|
107
|
+
const d = 40101, U = 401;
|
|
108
|
+
function G(e) {
|
|
109
|
+
var t;
|
|
110
|
+
return e.status === U || ((t = e.error) == null ? void 0 : t.code) === U;
|
|
111
|
+
}
|
|
112
|
+
function H() {
|
|
113
|
+
const {
|
|
114
|
+
open: e
|
|
115
|
+
} = q();
|
|
116
|
+
e();
|
|
117
|
+
}
|
|
118
|
+
function T() {
|
|
119
|
+
E(), H();
|
|
120
|
+
}
|
|
121
|
+
let u = !1, h = [];
|
|
122
|
+
function P(e, t = null) {
|
|
103
123
|
h.forEach(({
|
|
104
124
|
resolve: r,
|
|
105
125
|
reject: a
|
|
@@ -107,8 +127,8 @@ function m(e, t = null) {
|
|
|
107
127
|
e ? a(e) : t && r(t);
|
|
108
128
|
}), h = [];
|
|
109
129
|
}
|
|
110
|
-
async function
|
|
111
|
-
const e =
|
|
130
|
+
async function J() {
|
|
131
|
+
const e = B();
|
|
112
132
|
if (!e)
|
|
113
133
|
throw new Error("No refresh token available");
|
|
114
134
|
try {
|
|
@@ -123,72 +143,64 @@ async function F() {
|
|
|
123
143
|
})
|
|
124
144
|
})).json();
|
|
125
145
|
if (r.jwtToken)
|
|
126
|
-
return
|
|
146
|
+
return O(r.jwtToken), r.refreshToken && localStorage.setItem("refreshToken", r.refreshToken), r.jwtToken;
|
|
127
147
|
throw new Error(r.message || "Token refresh failed");
|
|
128
148
|
} catch (t) {
|
|
129
149
|
throw console.error("Token refresh failed:", t), t;
|
|
130
150
|
}
|
|
131
151
|
}
|
|
132
|
-
const
|
|
152
|
+
const V = c(async (e, t) => (e.headers.set("app-id", o.appId), t()), {
|
|
133
153
|
name: "app-id"
|
|
134
|
-
}),
|
|
154
|
+
}), W = c(async (e, t) => {
|
|
135
155
|
const r = localStorage.getItem("jwtToken");
|
|
136
156
|
return r && e.headers.set("authorization", `Bearer ${r}`), t();
|
|
137
157
|
}, {
|
|
138
158
|
name: "token"
|
|
139
|
-
}),
|
|
159
|
+
}), w = c(async (e, t) => {
|
|
140
160
|
var a;
|
|
141
161
|
const r = await t();
|
|
142
162
|
if (((a = r.error) == null ? void 0 : a.code) === d) {
|
|
143
|
-
if (
|
|
144
|
-
return new Promise((i,
|
|
163
|
+
if (u)
|
|
164
|
+
return new Promise((i, b) => {
|
|
145
165
|
h.push({
|
|
146
|
-
resolve: async (
|
|
147
|
-
e.headers.set("authorization", `Bearer ${
|
|
148
|
-
const
|
|
149
|
-
i(
|
|
166
|
+
resolve: async (I) => {
|
|
167
|
+
e.headers.set("authorization", `Bearer ${I}`);
|
|
168
|
+
const R = await t();
|
|
169
|
+
i(R);
|
|
150
170
|
},
|
|
151
171
|
reject: () => {
|
|
152
|
-
|
|
172
|
+
b(r);
|
|
153
173
|
}
|
|
154
174
|
});
|
|
155
175
|
});
|
|
156
|
-
|
|
176
|
+
u = !0;
|
|
157
177
|
try {
|
|
158
|
-
const i = await
|
|
159
|
-
return
|
|
178
|
+
const i = await J();
|
|
179
|
+
return P(null, i), e.headers.set("authorization", `Bearer ${i}`), await t();
|
|
160
180
|
} catch (i) {
|
|
161
|
-
|
|
162
|
-
const {
|
|
163
|
-
open: c
|
|
164
|
-
} = g();
|
|
165
|
-
return c(), r;
|
|
181
|
+
return P(i, null), T(), r;
|
|
166
182
|
} finally {
|
|
167
|
-
|
|
183
|
+
u = !1;
|
|
168
184
|
}
|
|
169
185
|
}
|
|
170
186
|
return r;
|
|
171
187
|
}, {
|
|
172
188
|
name: "token-refresh"
|
|
173
|
-
}),
|
|
189
|
+
}), A = c(async (e, t) => {
|
|
174
190
|
var a;
|
|
175
191
|
const r = await t();
|
|
176
|
-
|
|
177
|
-
x();
|
|
178
|
-
const {
|
|
179
|
-
open: i
|
|
180
|
-
} = g();
|
|
181
|
-
return i(), r;
|
|
182
|
-
}
|
|
183
|
-
return r.error && r.error.code !== d && A.error(r.error.message || "请求失败"), r;
|
|
192
|
+
return G(r) && ((a = r.error) == null ? void 0 : a.code) !== d ? (T(), r) : (r.error && r.error.code !== d && j.error(r.error.message || "请求失败"), r);
|
|
184
193
|
}, {
|
|
185
194
|
name: "error-message"
|
|
186
195
|
});
|
|
196
|
+
function ae(e) {
|
|
197
|
+
return e.use(w).use(A);
|
|
198
|
+
}
|
|
187
199
|
function s(e) {
|
|
188
|
-
return
|
|
200
|
+
return S({
|
|
189
201
|
baseURL: e,
|
|
190
202
|
timeout: 3e4
|
|
191
|
-
}).use(
|
|
203
|
+
}).use(V).use(W).use(w).use(A);
|
|
192
204
|
}
|
|
193
205
|
function l(e) {
|
|
194
206
|
let t = null;
|
|
@@ -198,24 +210,27 @@ function l(e) {
|
|
|
198
210
|
}
|
|
199
211
|
});
|
|
200
212
|
}
|
|
201
|
-
const
|
|
213
|
+
const ie = l(() => z(s(o.authPrefixUrl))), ne = l(() => K(s(o.billingPrefixUrl))), se = l(() => _(s(o.onesPrefixUrl))), le = l(() => L(s(o.logPrefixUrl))), ce = l(() => $(s(o.aiPrefixUrl))), ue = l(() => D(s(o.webhookPrefixUrl)));
|
|
202
214
|
export {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
215
|
+
M as a,
|
|
216
|
+
v as b,
|
|
217
|
+
te as c,
|
|
218
|
+
re as d,
|
|
219
|
+
ie as e,
|
|
220
|
+
ee as f,
|
|
209
221
|
o as g,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
oe as
|
|
222
|
+
ne as h,
|
|
223
|
+
V as i,
|
|
224
|
+
w as j,
|
|
225
|
+
A as k,
|
|
226
|
+
ce as l,
|
|
227
|
+
le as m,
|
|
228
|
+
ae as n,
|
|
229
|
+
se as o,
|
|
230
|
+
C as p,
|
|
231
|
+
E as r,
|
|
232
|
+
oe as s,
|
|
233
|
+
W as t,
|
|
234
|
+
q as u,
|
|
235
|
+
ue as w
|
|
221
236
|
};
|
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-
|
|
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-
|
|
3
|
-
import { u as q } from "./useAuthkitAppsAuthPageInfo-
|
|
4
|
-
import { u as K } from "./useAuthkitAuth-
|
|
5
|
-
import { u as Y } from "./apiClients-
|
|
6
|
-
import { u as H } from "./useEnsureAuthenticated-
|
|
7
|
-
import { L as N, a as Q, b as W, u as X } from "./useLegalLinks-
|
|
8
|
-
import { u as $ } from "./useAuthkitUsersProfile-
|
|
9
|
-
import { u as it } from "./useAuthkitCreateAndUpdate-
|
|
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-Ds7mYFV5.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-LVDS1PNQ.js";
|
|
3
|
+
import { u as q } from "./useAuthkitAppsAuthPageInfo-DScDQfj5.js";
|
|
4
|
+
import { u as K } from "./useAuthkitAuth-DpdKRuJm.js";
|
|
5
|
+
import { u as Y } from "./apiClients-DT7o0IpO.js";
|
|
6
|
+
import { u as H } from "./useEnsureAuthenticated-BEKhtQAl.js";
|
|
7
|
+
import { L as N, a as Q, b as W, u as X } from "./useLegalLinks-BijRF_ZD.js";
|
|
8
|
+
import { u as $ } from "./useAuthkitUsersProfile-aw_A7IWb.js";
|
|
9
|
+
import { u as it } from "./useAuthkitCreateAndUpdate-MzA4qtTh.js";
|
|
10
10
|
export {
|
|
11
11
|
a as AuthkitAppSetting,
|
|
12
12
|
l as AuthkitAuth,
|
package/dist/common.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, a as o, C as r, D as t, G as p, H as n, b as l, S as m, W as u } from "./WidthContainer-
|
|
1
|
+
import { A as s, a as o, C as r, D as t, G as p, H as n, b as l, S as m, W as u } from "./WidthContainer-DKasAIgU.js";
|
|
2
2
|
import { C as d, a as f } from "./CollapseItem-DUzZA6tx.js";
|
|
3
3
|
import { C as x, E as b } from "./CustomTable-BT-cnhLR.js";
|
|
4
4
|
import { L } from "./Logo-D7fyXyB-.js";
|
package/dist/composables.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { u as a } from "./useAuthkitAuth-
|
|
2
|
-
import { g as o, a as u, b as r, s as i, c as n, d as f, u as p } from "./apiClients-
|
|
3
|
-
import { u as l } from "./useLegalLinks-
|
|
4
|
-
import { u as h } from "./useAuthkitUsersProfile-
|
|
5
|
-
import { u as S } from "./useAuthkitAppsAuthPageInfo-
|
|
6
|
-
import { u as C } from "./useAuthkitCreateAndUpdate-
|
|
7
|
-
import { u as d } from "./useMessageNotifications-
|
|
8
|
-
import { u as O, a as T, b as P, c as R } from "./useSEO-
|
|
9
|
-
import { u as E } from "./useTableHandle-
|
|
10
|
-
import { f as k, a as _, g as I, u as M, b as B, c as w, w as F } from "./useRoutePermission-
|
|
11
|
-
import { u as v } from "./useUploadCos-
|
|
1
|
+
import { u as a } from "./useAuthkitAuth-DpdKRuJm.js";
|
|
2
|
+
import { g as o, a as u, b as r, s as i, c as n, d as f, u as p } from "./apiClients-DT7o0IpO.js";
|
|
3
|
+
import { u as l } from "./useLegalLinks-BijRF_ZD.js";
|
|
4
|
+
import { u as h } from "./useAuthkitUsersProfile-aw_A7IWb.js";
|
|
5
|
+
import { u as S } from "./useAuthkitAppsAuthPageInfo-DScDQfj5.js";
|
|
6
|
+
import { u as C } from "./useAuthkitCreateAndUpdate-MzA4qtTh.js";
|
|
7
|
+
import { u as d } from "./useMessageNotifications-CFku0c2R.js";
|
|
8
|
+
import { u as O, a as T, b as P, c as R } from "./useSEO-CbHCw4gq.js";
|
|
9
|
+
import { u as E } from "./useTableHandle-TDJa_Czn.js";
|
|
10
|
+
import { f as k, a as _, g as I, u as M, b as B, c as w, w as F } from "./useRoutePermission-v4_0B-aO.js";
|
|
11
|
+
import { u as v } from "./useUploadCos-CvG6EL5Q.js";
|
|
12
12
|
import { u as G } from "./useUserMenu-ClPBlvaM.js";
|
|
13
|
-
import { u as H, a as V } from "./useSubscriptionCheckout-
|
|
14
|
-
import { I as j, P as q, R as z, c as J, u as Q, a as W, b as X } from "./useBillingStatusOptions-
|
|
13
|
+
import { u as H, a as V } from "./useSubscriptionCheckout-CfFdAhTR.js";
|
|
14
|
+
import { I as j, P as q, R as z, c as J, u as Q, a as W, b as X } from "./useBillingStatusOptions-CAsu1hrf.js";
|
|
15
15
|
export {
|
|
16
16
|
j as INVOICE_STATUS_FALLBACK,
|
|
17
17
|
q as POINTS_RECHARGE_STATUS_FALLBACK,
|
package/dist/feedback.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-
|
|
2
|
-
import { C as r } from "./Clipboard-
|
|
3
|
-
import { F as m, a as n, b as f, c as i, d as p } from "./FeedbackItem-
|
|
1
|
+
import { B as b, a as s, F as d, b as F, c, d as o, R as t } from "./FeedbackModal-C45pNoiw.js";
|
|
2
|
+
import { C as r } from "./Clipboard-R3AURqvU.js";
|
|
3
|
+
import { F as m, a as n, b as f, c as i, d as p } from "./FeedbackItem-DkvSQT33.js";
|
|
4
4
|
export {
|
|
5
5
|
r as Clipboard,
|
|
6
6
|
b as FeedbackBubbleEnd,
|
package/dist/main.d.ts
CHANGED
|
@@ -14,3 +14,4 @@ export * from './privateCom';
|
|
|
14
14
|
export { createHead, type CreateClientHeadOptions, } from './head';
|
|
15
15
|
export { auth, billing, ones, log, ai, webhook } from './utils/apiClients';
|
|
16
16
|
export { api, type LegacyApiRequestConfig, type LegacyApiResponse } from './utils/legacyApi';
|
|
17
|
+
export { appIdMiddleware, tokenMiddleware, tokenRefreshMiddleware, errorMessageMiddleware, withAuthHandling, } from './utils/apiMiddlewares';
|