@huyooo/ui 0.7.26 → 0.8.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/{AuthkitAuthModal-C1Kgu1TA.js → AuthkitAuthModal-DPf1AlaQ.js} +736 -792
- package/dist/{AuthkitSignInPhone-BG7r63dN.js → AuthkitSignInPhone-CWzkKKL0.js} +99 -99
- package/dist/{Clipboard-8rWlOPTZ.js → Clipboard-D9v7JOBm.js} +1 -1
- package/dist/{Contact-Bpl7sIjY.js → Contact-ytZiAQRw.js} +2 -2
- package/dist/{FeedbackItem-DMpvHrOD.js → FeedbackItem-i0oANWbH.js} +3 -3
- package/dist/{FeedbackModal-DIhSPUPO.js → FeedbackModal-DHWN4Jhy.js} +266 -301
- package/dist/MessageHandle-42tZkEyh.js +1147 -0
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BRficqbp.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-Dt5A9Six.js} +38 -37
- package/dist/{PaySubscriptions-F5sNex0h.js → PaySubscriptions-CX3DhX82.js} +129 -169
- package/dist/ReferrerReferees-CdAsYLZl.js +106 -0
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-D7ZGc2ZS.js → Upload.vue_vue_type_script_setup_true_lang-7AFuqo0A.js} +1 -1
- package/dist/{UserAccountMenu-CkUtqNxY.js → UserAccountMenu-DBVdpUn8.js} +7 -7
- package/dist/{WidthContainer-DSQui1pX.js → WidthContainer-CFNPAWZ8.js} +7 -7
- package/dist/apiClients-myKy30Xh.js +167 -0
- package/dist/authkit.js +6 -6
- package/dist/common/globalConfig.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/components/Authkit/Auth/AuthkitAuthContainer.vue.d.ts +1 -1
- package/dist/components/Authkit/Auth/AuthkitAuthorize.vue.d.ts +1 -1
- package/dist/components/LandingPage/LandingPageLogo.vue.d.ts +1 -1
- package/dist/components/LandingPage/LandingPageStats.vue.d.ts +1 -1
- package/dist/components/Logo.vue.d.ts +1 -1
- package/dist/components/MenuItem.vue.d.ts +1 -1
- package/dist/components/Message/MessageTabs.vue.d.ts +2 -2
- package/dist/components/Upload/Upload.vue.d.ts +2 -2
- package/dist/components/User/UserBasicInformation.vue.d.ts +1 -1
- package/dist/components/User/UserPanel.vue.d.ts +2 -2
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +1 -1
- package/dist/composables.js +9 -9
- package/dist/feedback.js +3 -3
- package/dist/index.js +191 -189
- package/dist/main.d.ts +1 -2
- package/dist/message.js +3 -3
- package/dist/pay.js +1 -1
- 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 +2975 -0
- package/dist/types/api/billing.generated.d.ts +2036 -0
- package/dist/types/api/ones.generated.d.ts +5188 -0
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-CtsTqri7.js → useAuthkitAppsAuthPageInfo-Bb7RIaTy.js} +13 -27
- package/dist/{useAuthkitCreateAndUpdate-BUyZbiBj.js → useAuthkitCreateAndUpdate-DXdMyzQQ.js} +1 -1
- package/dist/useAuthkitUsersProfile-4plbUlY5.js +174 -0
- package/dist/{useDownloads-Cl_-B4sP.js → useDownloads-gcrEJA6i.js} +1 -1
- package/dist/useMessageNotifications-Bph752i8.js +78 -0
- package/dist/{useSEO-C_4yDk7S.js → useSEO-D1NT53Rv.js} +2 -2
- package/dist/{useTableHandle-6ekhLVbK.js → useTableHandle-DrYIPjL5.js} +1 -1
- package/dist/{useUploadCos-dYc8op7M.js → useUploadCos-F3oBTo2B.js} +159 -181
- package/dist/user.js +1 -1
- package/dist/utils/apiClients.d.ts +6 -0
- package/dist/utils/apiMiddlewares.d.ts +16 -0
- package/package.json +8 -3
- package/dist/MessageHandle-WA95I84_.js +0 -1207
- package/dist/MessageNotifications-DmgFNjH7.js +0 -35
- package/dist/ReferrerReferees-DMA8Tj5i.js +0 -113
- package/dist/api/Authkit/Users.d.ts +0 -15
- package/dist/api/Authkit/apps.d.ts +0 -2
- package/dist/api/Authkit/auth.d.ts +0 -50
- package/dist/api/Authkit/oauth.d.ts +0 -12
- package/dist/api/Authkit/verify.d.ts +0 -25
- package/dist/api/Buckets/Files.d.ts +0 -7
- package/dist/api/Buckets.d.ts +0 -2
- package/dist/api/Invoices.d.ts +0 -32
- package/dist/api/Message/ChangelogNotifications.d.ts +0 -17
- package/dist/api/Message/EventNotifications.d.ts +0 -16
- package/dist/api/Message/MessageNotifications.d.ts +0 -25
- package/dist/api/Message/NoticeNotifications.d.ts +0 -37
- package/dist/api/Messages.d.ts +0 -2
- package/dist/api/Orders.d.ts +0 -9
- package/dist/api/Products.d.ts +0 -20
- package/dist/api/Quotas.d.ts +0 -21
- package/dist/api/Referrer.d.ts +0 -1
- package/dist/api/Subscriptions.d.ts +0 -35
- package/dist/api/index.d.ts +0 -8
- package/dist/request-B4CMspsP.js +0 -196
- package/dist/useAuthkitUsersProfile-B7wHZwe-.js +0 -257
- package/dist/useMessageNotifications-CP7gi893.js +0 -78
- package/dist/utils/request.d.ts +0 -26
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as v, ref as p, createElementBlock as l, createCommentVNode as m, openBlock as t, normalizeClass as K, createBlock as d, createElementVNode as _, unref as S, 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 {
|
|
5
|
-
|
|
4
|
+
import { o as $ } from "./apiClients-myKy30Xh.js";
|
|
5
|
+
import { D as x } from "./MessageHandle-42tZkEyh.js";
|
|
6
|
+
const E = /* @__PURE__ */ v({
|
|
6
7
|
__name: "MessageMenuItem",
|
|
7
8
|
props: {
|
|
8
9
|
hidden: {
|
|
@@ -27,28 +28,28 @@ const F = /* @__PURE__ */ m({
|
|
|
27
28
|
}
|
|
28
29
|
},
|
|
29
30
|
setup(u) {
|
|
30
|
-
const n = u,
|
|
31
|
-
function
|
|
32
|
-
|
|
31
|
+
const n = u, o = p(!1);
|
|
32
|
+
function c() {
|
|
33
|
+
o.value = !0;
|
|
33
34
|
}
|
|
34
35
|
function i() {
|
|
35
|
-
|
|
36
|
+
o.value = !1;
|
|
36
37
|
}
|
|
37
|
-
return (r,
|
|
38
|
+
return (r, a) => n.hidden ? m("", !0) : (t(), l("div", {
|
|
38
39
|
key: 0,
|
|
39
40
|
class: K(["List", {
|
|
40
41
|
Active: n.active,
|
|
41
|
-
Hover:
|
|
42
|
+
Hover: o.value && !n.active
|
|
42
43
|
}]),
|
|
43
|
-
onMouseover:
|
|
44
|
+
onMouseover: c,
|
|
44
45
|
onMouseout: i
|
|
45
46
|
}, [n.icon ? (t(), d(S(D), {
|
|
46
47
|
key: 0,
|
|
47
48
|
class: "icon",
|
|
48
49
|
icon: n.icon
|
|
49
|
-
}, null, 8, ["icon"])) :
|
|
50
|
+
}, null, 8, ["icon"])) : m("", !0), _("span", null, A(n.name), 1)], 34));
|
|
50
51
|
}
|
|
51
|
-
}), B = /* @__PURE__ */ I(
|
|
52
|
+
}), B = /* @__PURE__ */ I(E, [["__scopeId", "data-v-9eaa7e6a"]]), F = {
|
|
52
53
|
class: "Menu"
|
|
53
54
|
}, H = {
|
|
54
55
|
class: "TitleContent"
|
|
@@ -56,7 +57,7 @@ const F = /* @__PURE__ */ m({
|
|
|
56
57
|
class: "Title"
|
|
57
58
|
}, O = {
|
|
58
59
|
class: "MenuItem2"
|
|
59
|
-
}, T = /* @__PURE__ */
|
|
60
|
+
}, T = /* @__PURE__ */ v({
|
|
60
61
|
__name: "MessageMenu",
|
|
61
62
|
props: {
|
|
62
63
|
menus: {
|
|
@@ -72,11 +73,11 @@ const F = /* @__PURE__ */ m({
|
|
|
72
73
|
setup(u, {
|
|
73
74
|
emit: n
|
|
74
75
|
}) {
|
|
75
|
-
const
|
|
76
|
-
function i(r,
|
|
77
|
-
console.log(r, "itemitemitemitem"),
|
|
76
|
+
const o = u, c = n;
|
|
77
|
+
function i(r, a) {
|
|
78
|
+
console.log(r, "itemitemitemitem"), c("change", r, a);
|
|
78
79
|
}
|
|
79
|
-
return (r,
|
|
80
|
+
return (r, a) => (t(), l("div", F, [(t(!0), l(h, null, N(o.menus, (e, f) => {
|
|
80
81
|
var y, g, k;
|
|
81
82
|
return t(), l("div", {
|
|
82
83
|
key: f
|
|
@@ -86,16 +87,16 @@ const F = /* @__PURE__ */ m({
|
|
|
86
87
|
key: 0,
|
|
87
88
|
class: "icon",
|
|
88
89
|
icon: e.meta.icon
|
|
89
|
-
}, null, 8, ["icon"])) :
|
|
90
|
-
var
|
|
90
|
+
}, null, 8, ["icon"])) : m("", !0), _("span", L, A(e.name), 1)]), _("span", O, [(t(!0), l(h, null, N(e.children, (s, M) => {
|
|
91
|
+
var C, q;
|
|
91
92
|
return t(), d(B, {
|
|
92
93
|
key: M,
|
|
93
|
-
hidden: ((
|
|
94
|
-
path:
|
|
95
|
-
icon: (
|
|
96
|
-
name:
|
|
97
|
-
active:
|
|
98
|
-
onClick: (V) => i(
|
|
94
|
+
hidden: ((C = s.meta) == null ? void 0 : C.hidden) || !1,
|
|
95
|
+
path: s.path,
|
|
96
|
+
icon: (q = s.meta) == null ? void 0 : q.icon,
|
|
97
|
+
name: s.name,
|
|
98
|
+
active: o.selectedKeys.includes(s.path),
|
|
99
|
+
onClick: (V) => i(s, M)
|
|
99
100
|
}, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]);
|
|
100
101
|
}), 128))])], 64)) : (t(), d(B, {
|
|
101
102
|
key: 1,
|
|
@@ -103,12 +104,12 @@ const F = /* @__PURE__ */ m({
|
|
|
103
104
|
path: e.path,
|
|
104
105
|
icon: (k = e.meta) == null ? void 0 : k.icon,
|
|
105
106
|
name: e.name,
|
|
106
|
-
active:
|
|
107
|
-
onClick: (
|
|
107
|
+
active: o.selectedKeys.includes(e.path),
|
|
108
|
+
onClick: (s) => i(e, f)
|
|
108
109
|
}, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]))]);
|
|
109
110
|
}), 128))]));
|
|
110
111
|
}
|
|
111
|
-
}),
|
|
112
|
+
}), J = /* @__PURE__ */ I(T, [["__scopeId", "data-v-660c1eb8"]]), P = /* @__PURE__ */ v({
|
|
112
113
|
__name: "MessageNoticeNotificationsDetails",
|
|
113
114
|
props: {
|
|
114
115
|
id: {
|
|
@@ -117,25 +118,25 @@ const F = /* @__PURE__ */ m({
|
|
|
117
118
|
}
|
|
118
119
|
},
|
|
119
120
|
setup(u) {
|
|
120
|
-
const n = p(!1),
|
|
121
|
+
const n = p(!1), o = p(null), c = p(""), i = u;
|
|
121
122
|
async function r() {
|
|
122
123
|
n.value = !0;
|
|
123
124
|
const {
|
|
124
|
-
data:
|
|
125
|
-
} = await
|
|
125
|
+
data: a
|
|
126
|
+
} = await $.messageCenter.noticeNotifications.findOne.post({
|
|
126
127
|
id: i.id
|
|
127
128
|
});
|
|
128
|
-
n.value = !1,
|
|
129
|
+
n.value = !1, a && (o.value = a.content, c.value = a.title);
|
|
129
130
|
}
|
|
130
|
-
return r(), (
|
|
131
|
-
content:
|
|
132
|
-
title:
|
|
131
|
+
return r(), (a, e) => (t(), d(x, {
|
|
132
|
+
content: o.value,
|
|
133
|
+
title: c.value,
|
|
133
134
|
loading: n.value
|
|
134
135
|
}, null, 8, ["content", "title", "loading"]));
|
|
135
136
|
}
|
|
136
137
|
});
|
|
137
138
|
export {
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
J as M,
|
|
140
|
+
P as _,
|
|
140
141
|
B as a
|
|
141
142
|
};
|
|
@@ -5,126 +5,86 @@
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
|
-
import { defineComponent as
|
|
9
|
-
import { Modal as
|
|
10
|
-
import {
|
|
11
|
-
import { u as
|
|
8
|
+
import { defineComponent as et, ref as c, createBlock as C, openBlock as u, unref as o, isRef as at, withCtx as s, createElementVNode as n, createElementBlock as d, createVNode as r, toDisplayString as l, createTextVNode as p, createCommentVNode as L, Fragment as nt, renderList as it } from "vue";
|
|
9
|
+
import { Modal as st, Tag as P, Button as I, Popconfirm as ot, Empty as q, Tabs as lt, TabPane as w, Spin as ut, Progress as rt } from "@arco-design/web-vue";
|
|
10
|
+
import { d as g } from "./apiClients-myKy30Xh.js";
|
|
11
|
+
import { u as dt } from "./useAuthkitCreateAndUpdate-DXdMyzQQ.js";
|
|
12
12
|
import { C as B } from "./CustomTable-BCOwLyRJ.js";
|
|
13
|
-
import { _ as
|
|
14
|
-
|
|
15
|
-
return f({
|
|
16
|
-
url: `${b.billingPrefixUrl}/subscriptions/cancel`,
|
|
17
|
-
method: "post",
|
|
18
|
-
data: m
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function gt(m) {
|
|
22
|
-
return f({
|
|
23
|
-
url: `${b.billingPrefixUrl}/subscriptions/resume`,
|
|
24
|
-
method: "post",
|
|
25
|
-
data: m
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
function ft(m) {
|
|
29
|
-
return f({
|
|
30
|
-
url: `${b.billingPrefixUrl}/subscriptions/my`,
|
|
31
|
-
method: "post",
|
|
32
|
-
data: m || {}
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
function bt() {
|
|
36
|
-
return f({
|
|
37
|
-
url: `${b.billingPrefixUrl}/subscriptions/current`,
|
|
38
|
-
method: "post"
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
function _t(m) {
|
|
42
|
-
return f({
|
|
43
|
-
url: `${b.billingPrefixUrl}/invoices/my`,
|
|
44
|
-
method: "post",
|
|
45
|
-
data: m || {}
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function yt() {
|
|
49
|
-
return f({
|
|
50
|
-
url: `${b.billingPrefixUrl}/quotas/my`,
|
|
51
|
-
method: "post"
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
const ht = {
|
|
13
|
+
import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const pt = {
|
|
55
15
|
class: "content"
|
|
56
|
-
},
|
|
16
|
+
}, vt = {
|
|
57
17
|
key: 0,
|
|
58
18
|
class: "current-subscription-card"
|
|
59
|
-
},
|
|
19
|
+
}, mt = {
|
|
60
20
|
class: "subscription-header"
|
|
61
|
-
},
|
|
21
|
+
}, gt = {
|
|
62
22
|
class: "subscription-info"
|
|
63
|
-
},
|
|
23
|
+
}, ft = {
|
|
64
24
|
class: "subscription-actions"
|
|
65
|
-
},
|
|
25
|
+
}, _t = {
|
|
66
26
|
class: "subscription-details"
|
|
67
|
-
},
|
|
27
|
+
}, bt = {
|
|
68
28
|
class: "detail-item"
|
|
69
|
-
},
|
|
29
|
+
}, yt = {
|
|
70
30
|
class: "detail-item"
|
|
71
|
-
},
|
|
31
|
+
}, ht = {
|
|
72
32
|
key: 0,
|
|
73
33
|
class: "detail-item"
|
|
74
|
-
},
|
|
34
|
+
}, kt = {
|
|
75
35
|
key: 1,
|
|
76
36
|
class: "detail-item"
|
|
77
|
-
},
|
|
37
|
+
}, St = {
|
|
78
38
|
key: 2,
|
|
79
39
|
class: "detail-item warning"
|
|
80
|
-
},
|
|
40
|
+
}, xt = {
|
|
81
41
|
key: 1,
|
|
82
42
|
class: "no-subscription"
|
|
83
|
-
},
|
|
43
|
+
}, Ct = {
|
|
84
44
|
key: 0,
|
|
85
45
|
class: "quotas-loading"
|
|
86
|
-
},
|
|
46
|
+
}, Pt = {
|
|
87
47
|
key: 1,
|
|
88
48
|
class: "no-quotas"
|
|
89
|
-
},
|
|
49
|
+
}, It = {
|
|
90
50
|
key: 2,
|
|
91
51
|
class: "quotas-grid"
|
|
92
|
-
},
|
|
52
|
+
}, wt = {
|
|
93
53
|
class: "quota-header"
|
|
94
|
-
},
|
|
54
|
+
}, At = {
|
|
95
55
|
class: "quota-name"
|
|
96
|
-
},
|
|
56
|
+
}, zt = {
|
|
97
57
|
class: "quota-period"
|
|
98
|
-
},
|
|
58
|
+
}, Nt = {
|
|
99
59
|
class: "quota-progress"
|
|
100
|
-
},
|
|
60
|
+
}, Wt = {
|
|
101
61
|
class: "quota-detail"
|
|
102
|
-
},
|
|
62
|
+
}, Et = {
|
|
103
63
|
key: 0
|
|
104
|
-
},
|
|
64
|
+
}, Tt = {
|
|
105
65
|
key: 1
|
|
106
|
-
},
|
|
66
|
+
}, Lt = {
|
|
107
67
|
key: 2,
|
|
108
68
|
class: "reset-time"
|
|
109
|
-
},
|
|
69
|
+
}, qt = /* @__PURE__ */ et({
|
|
110
70
|
__name: "PaySubscriptions",
|
|
111
71
|
emits: ["confirm", "cancel"],
|
|
112
|
-
setup(
|
|
72
|
+
setup(Bt, {
|
|
113
73
|
expose: F,
|
|
114
|
-
emit:
|
|
74
|
+
emit: V
|
|
115
75
|
}) {
|
|
116
|
-
const
|
|
117
|
-
changeType:
|
|
118
|
-
show:
|
|
119
|
-
} =
|
|
76
|
+
const A = V, {
|
|
77
|
+
changeType: U,
|
|
78
|
+
show: f
|
|
79
|
+
} = dt(A), z = c("subscriptions"), i = c(null), N = c([]), y = c(!1), v = c({
|
|
120
80
|
current: 1,
|
|
121
81
|
pageSize: 10,
|
|
122
82
|
total: 0
|
|
123
|
-
}),
|
|
83
|
+
}), W = c([]), h = c(!1), m = c({
|
|
124
84
|
current: 1,
|
|
125
85
|
pageSize: 10,
|
|
126
86
|
total: 0
|
|
127
|
-
}),
|
|
87
|
+
}), b = c([]), k = c(!1), D = [{
|
|
128
88
|
dataIndex: "productName",
|
|
129
89
|
title: "产品",
|
|
130
90
|
minWidth: 120
|
|
@@ -155,7 +115,7 @@ const ht = {
|
|
|
155
115
|
dataIndex: "createAt",
|
|
156
116
|
title: "创建时间",
|
|
157
117
|
minWidth: 160
|
|
158
|
-
}],
|
|
118
|
+
}], K = [{
|
|
159
119
|
dataIndex: "productName",
|
|
160
120
|
title: "产品",
|
|
161
121
|
minWidth: 120
|
|
@@ -182,7 +142,7 @@ const ht = {
|
|
|
182
142
|
title: "创建时间",
|
|
183
143
|
minWidth: 160
|
|
184
144
|
}];
|
|
185
|
-
function
|
|
145
|
+
function E(t) {
|
|
186
146
|
return {
|
|
187
147
|
trialing: "blue",
|
|
188
148
|
active: "green",
|
|
@@ -192,7 +152,7 @@ const ht = {
|
|
|
192
152
|
incomplete: "red"
|
|
193
153
|
}[t] || "gray";
|
|
194
154
|
}
|
|
195
|
-
function
|
|
155
|
+
function T(t) {
|
|
196
156
|
return {
|
|
197
157
|
trialing: "试用中",
|
|
198
158
|
active: "已激活",
|
|
@@ -203,7 +163,7 @@ const ht = {
|
|
|
203
163
|
paused: "已暂停"
|
|
204
164
|
}[t] || t;
|
|
205
165
|
}
|
|
206
|
-
function
|
|
166
|
+
function R(t) {
|
|
207
167
|
return {
|
|
208
168
|
draft: "gray",
|
|
209
169
|
open: "orange",
|
|
@@ -212,7 +172,7 @@ const ht = {
|
|
|
212
172
|
uncollectible: "red"
|
|
213
173
|
}[t] || "gray";
|
|
214
174
|
}
|
|
215
|
-
function
|
|
175
|
+
function M(t) {
|
|
216
176
|
return {
|
|
217
177
|
draft: "草稿",
|
|
218
178
|
open: "待支付",
|
|
@@ -221,7 +181,7 @@ const ht = {
|
|
|
221
181
|
uncollectible: "无法收款"
|
|
222
182
|
}[t] || t;
|
|
223
183
|
}
|
|
224
|
-
function
|
|
184
|
+
function O(t) {
|
|
225
185
|
return {
|
|
226
186
|
day: "每天",
|
|
227
187
|
week: "每周",
|
|
@@ -230,111 +190,111 @@ const ht = {
|
|
|
230
190
|
lifetime: "永久"
|
|
231
191
|
}[t] || t;
|
|
232
192
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
193
|
+
function Q() {
|
|
194
|
+
f.value = !1, A("cancel");
|
|
235
195
|
}
|
|
236
|
-
function
|
|
196
|
+
function $() {
|
|
237
197
|
window.open("/Pricing", "_blank");
|
|
238
198
|
}
|
|
239
199
|
async function S() {
|
|
240
200
|
const {
|
|
241
201
|
data: t
|
|
242
|
-
} = await
|
|
202
|
+
} = await g.subscriptions.current.post({});
|
|
243
203
|
i.value = t;
|
|
244
204
|
}
|
|
245
|
-
async function
|
|
246
|
-
|
|
205
|
+
async function _() {
|
|
206
|
+
y.value = !0;
|
|
247
207
|
const {
|
|
248
208
|
data: t
|
|
249
|
-
} = await
|
|
209
|
+
} = await g.subscriptions.my.post({
|
|
250
210
|
current: v.value.current,
|
|
251
211
|
pageSize: v.value.pageSize
|
|
252
212
|
});
|
|
253
|
-
|
|
213
|
+
y.value = !1, t && (N.value = t.items, v.value.total = t.count);
|
|
254
214
|
}
|
|
255
|
-
async function
|
|
256
|
-
|
|
215
|
+
async function x() {
|
|
216
|
+
h.value = !0;
|
|
257
217
|
const {
|
|
258
218
|
data: t
|
|
259
|
-
} = await
|
|
260
|
-
current:
|
|
261
|
-
pageSize:
|
|
219
|
+
} = await g.invoices.my.post({
|
|
220
|
+
current: m.value.current,
|
|
221
|
+
pageSize: m.value.pageSize
|
|
262
222
|
});
|
|
263
|
-
|
|
223
|
+
h.value = !1, t && (W.value = t.items, m.value.total = t.count);
|
|
264
224
|
}
|
|
265
|
-
async function
|
|
266
|
-
|
|
225
|
+
async function j() {
|
|
226
|
+
k.value = !0;
|
|
267
227
|
const {
|
|
268
228
|
data: t
|
|
269
|
-
} = await
|
|
270
|
-
|
|
229
|
+
} = await g.quotas.my.post({});
|
|
230
|
+
k.value = !1, t && t.hasSubscription ? b.value = t.quotas : b.value = [];
|
|
271
231
|
}
|
|
272
|
-
async function
|
|
232
|
+
async function G() {
|
|
273
233
|
if (!i.value) return;
|
|
274
234
|
const {
|
|
275
235
|
error: t
|
|
276
|
-
} = await
|
|
236
|
+
} = await g.subscriptions.cancel.post({
|
|
277
237
|
subscriptionId: i.value.id,
|
|
278
238
|
cancelAtPeriodEnd: !0
|
|
279
239
|
});
|
|
280
|
-
t || (await S(), await
|
|
240
|
+
t || (await S(), await _());
|
|
281
241
|
}
|
|
282
|
-
async function
|
|
242
|
+
async function H() {
|
|
283
243
|
if (!i.value) return;
|
|
284
244
|
const {
|
|
285
245
|
error: t
|
|
286
|
-
} = await
|
|
246
|
+
} = await g.subscriptions.resume.post({
|
|
287
247
|
subscriptionId: i.value.id
|
|
288
248
|
});
|
|
289
|
-
t || (await S(), await
|
|
249
|
+
t || (await S(), await _());
|
|
290
250
|
}
|
|
291
|
-
function
|
|
292
|
-
v.value.current = t,
|
|
251
|
+
function J(t) {
|
|
252
|
+
v.value.current = t, _();
|
|
293
253
|
}
|
|
294
|
-
function
|
|
295
|
-
v.value.pageSize = t, v.value.current = 1,
|
|
254
|
+
function X(t) {
|
|
255
|
+
v.value.pageSize = t, v.value.current = 1, _();
|
|
296
256
|
}
|
|
297
|
-
function
|
|
298
|
-
|
|
257
|
+
function Y(t) {
|
|
258
|
+
m.value.current = t, x();
|
|
299
259
|
}
|
|
300
|
-
function
|
|
301
|
-
|
|
260
|
+
function Z(t) {
|
|
261
|
+
m.value.pageSize = t, m.value.current = 1, x();
|
|
302
262
|
}
|
|
303
|
-
function
|
|
304
|
-
|
|
263
|
+
function tt(t, e) {
|
|
264
|
+
f.value = e, U.value = "编辑", e && (S(), _(), x(), j());
|
|
305
265
|
}
|
|
306
266
|
return F({
|
|
307
|
-
setData:
|
|
308
|
-
}), (t, e) => (
|
|
309
|
-
visible: o(
|
|
310
|
-
"onUpdate:visible": e[1] || (e[1] = (a) =>
|
|
267
|
+
setData: tt
|
|
268
|
+
}), (t, e) => (u(), C(o(st), {
|
|
269
|
+
visible: o(f),
|
|
270
|
+
"onUpdate:visible": e[1] || (e[1] = (a) => at(f) ? f.value = a : null),
|
|
311
271
|
loading: !1,
|
|
312
272
|
"body-class": "SubscriptionsbodyClass",
|
|
313
273
|
"mask-closable": !1,
|
|
314
274
|
footer: !1,
|
|
315
275
|
width: "90%",
|
|
316
|
-
onCancel:
|
|
276
|
+
onCancel: Q
|
|
317
277
|
}, {
|
|
318
278
|
title: s(() => [...e[2] || (e[2] = [p(" 订阅管理 ", -1)])]),
|
|
319
|
-
default: s(() => [n("div",
|
|
320
|
-
color:
|
|
279
|
+
default: s(() => [n("div", pt, [i.value ? (u(), d("div", vt, [n("div", mt, [n("div", gt, [n("h3", null, l(i.value.productName), 1), r(o(P), {
|
|
280
|
+
color: E(i.value.status)
|
|
321
281
|
}, {
|
|
322
|
-
default: s(() => [p(l(
|
|
282
|
+
default: s(() => [p(l(T(i.value.status)), 1)]),
|
|
323
283
|
_: 1
|
|
324
|
-
}, 8, ["color"])]), n("div",
|
|
284
|
+
}, 8, ["color"])]), n("div", ft, [i.value.cancelAtPeriodEnd ? (u(), C(o(I), {
|
|
325
285
|
key: 0,
|
|
326
286
|
type: "primary",
|
|
327
287
|
size: "small",
|
|
328
|
-
onClick:
|
|
288
|
+
onClick: H
|
|
329
289
|
}, {
|
|
330
290
|
default: s(() => [...e[3] || (e[3] = [p(" 恢复订阅 ", -1)])]),
|
|
331
291
|
_: 1
|
|
332
|
-
})) : (
|
|
292
|
+
})) : (u(), C(o(ot), {
|
|
333
293
|
key: 1,
|
|
334
294
|
content: "取消后订阅将在当前周期结束时失效,确定取消吗?",
|
|
335
|
-
onOk:
|
|
295
|
+
onOk: G
|
|
336
296
|
}, {
|
|
337
|
-
default: s(() => [
|
|
297
|
+
default: s(() => [r(o(I), {
|
|
338
298
|
type: "outline",
|
|
339
299
|
size: "small",
|
|
340
300
|
status: "warning"
|
|
@@ -343,50 +303,50 @@ const ht = {
|
|
|
343
303
|
_: 1
|
|
344
304
|
})]),
|
|
345
305
|
_: 1
|
|
346
|
-
}))])]), n("div",
|
|
306
|
+
}))])]), n("div", _t, [n("div", bt, [e[5] || (e[5] = n("span", {
|
|
347
307
|
class: "label"
|
|
348
|
-
}, "计费周期:", -1)), n("span", null, l(i.value.interval === "month" ? "按月" : i.value.interval === "year" ? "按年" : i.value.interval), 1)]), n("div",
|
|
308
|
+
}, "计费周期:", -1)), n("span", null, l(i.value.interval === "month" ? "按月" : i.value.interval === "year" ? "按年" : i.value.interval), 1)]), n("div", yt, [e[6] || (e[6] = n("span", {
|
|
349
309
|
class: "label"
|
|
350
|
-
}, "价格:", -1)), n("span", null, "¥" + l(((i.value.unitAmount ?? 0) / 100).toFixed(2)) + " / " + l(i.value.interval === "month" ? "月" : "年"), 1)]), i.value.status === "trialing" ? (
|
|
310
|
+
}, "价格:", -1)), n("span", null, "¥" + l(((i.value.unitAmount ?? 0) / 100).toFixed(2)) + " / " + l(i.value.interval === "month" ? "月" : "年"), 1)]), i.value.status === "trialing" ? (u(), d("div", ht, [e[7] || (e[7] = n("span", {
|
|
351
311
|
class: "label"
|
|
352
|
-
}, "试用结束:", -1)), n("span", null, l(i.value.trialEnd), 1)])) : (
|
|
312
|
+
}, "试用结束:", -1)), n("span", null, l(i.value.trialEnd), 1)])) : (u(), d("div", kt, [e[8] || (e[8] = n("span", {
|
|
353
313
|
class: "label"
|
|
354
|
-
}, "当前周期结束:", -1)), n("span", null, l(i.value.currentPeriodEnd), 1)])), i.value.cancelAtPeriodEnd ? (
|
|
314
|
+
}, "当前周期结束:", -1)), n("span", null, l(i.value.currentPeriodEnd), 1)])), i.value.cancelAtPeriodEnd ? (u(), d("div", St, [...e[9] || (e[9] = [n("span", {
|
|
355
315
|
class: "label"
|
|
356
|
-
}, "订阅将于周期结束后停止", -1)])])) :
|
|
316
|
+
}, "订阅将于周期结束后停止", -1)])])) : L("", !0)])])) : (u(), d("div", xt, [r(o(q), {
|
|
357
317
|
description: "暂无订阅"
|
|
358
318
|
}, {
|
|
359
|
-
default: s(() => [
|
|
319
|
+
default: s(() => [r(o(I), {
|
|
360
320
|
type: "primary",
|
|
361
|
-
onClick:
|
|
321
|
+
onClick: $
|
|
362
322
|
}, {
|
|
363
323
|
default: s(() => [...e[10] || (e[10] = [p("查看价格方案", -1)])]),
|
|
364
324
|
_: 1
|
|
365
325
|
})]),
|
|
366
326
|
_: 1
|
|
367
|
-
})])),
|
|
368
|
-
"active-key":
|
|
369
|
-
"onUpdate:activeKey": e[0] || (e[0] = (a) =>
|
|
327
|
+
})])), r(o(lt), {
|
|
328
|
+
"active-key": z.value,
|
|
329
|
+
"onUpdate:activeKey": e[0] || (e[0] = (a) => z.value = a),
|
|
370
330
|
class: "subscription-tabs"
|
|
371
331
|
}, {
|
|
372
|
-
default: s(() => [
|
|
332
|
+
default: s(() => [r(o(w), {
|
|
373
333
|
key: "subscriptions",
|
|
374
334
|
title: "订阅历史"
|
|
375
335
|
}, {
|
|
376
|
-
default: s(() => [
|
|
377
|
-
columns:
|
|
378
|
-
data:
|
|
379
|
-
loading:
|
|
336
|
+
default: s(() => [r(B, {
|
|
337
|
+
columns: D,
|
|
338
|
+
data: N.value,
|
|
339
|
+
loading: y.value,
|
|
380
340
|
pagination: v.value,
|
|
381
|
-
onPageChange:
|
|
382
|
-
onPageSizeChange:
|
|
341
|
+
onPageChange: J,
|
|
342
|
+
onPageSizeChange: X
|
|
383
343
|
}, {
|
|
384
344
|
status: s(({
|
|
385
345
|
record: a
|
|
386
|
-
}) => [
|
|
387
|
-
color:
|
|
346
|
+
}) => [r(o(P), {
|
|
347
|
+
color: E(a.status)
|
|
388
348
|
}, {
|
|
389
|
-
default: s(() => [p(l(
|
|
349
|
+
default: s(() => [p(l(T(a.status)), 1)]),
|
|
390
350
|
_: 2
|
|
391
351
|
}, 1032, ["color"])]),
|
|
392
352
|
interval: s(({
|
|
@@ -398,24 +358,24 @@ const ht = {
|
|
|
398
358
|
_: 1
|
|
399
359
|
}, 8, ["data", "loading", "pagination"])]),
|
|
400
360
|
_: 1
|
|
401
|
-
}),
|
|
361
|
+
}), r(o(w), {
|
|
402
362
|
key: "invoices",
|
|
403
363
|
title: "账单记录"
|
|
404
364
|
}, {
|
|
405
|
-
default: s(() => [
|
|
406
|
-
columns:
|
|
407
|
-
data:
|
|
408
|
-
loading:
|
|
409
|
-
pagination:
|
|
410
|
-
onPageChange:
|
|
411
|
-
onPageSizeChange:
|
|
365
|
+
default: s(() => [r(B, {
|
|
366
|
+
columns: K,
|
|
367
|
+
data: W.value,
|
|
368
|
+
loading: h.value,
|
|
369
|
+
pagination: m.value,
|
|
370
|
+
onPageChange: Y,
|
|
371
|
+
onPageSizeChange: Z
|
|
412
372
|
}, {
|
|
413
373
|
status: s(({
|
|
414
374
|
record: a
|
|
415
|
-
}) => [
|
|
416
|
-
color:
|
|
375
|
+
}) => [r(o(P), {
|
|
376
|
+
color: R(a.status)
|
|
417
377
|
}, {
|
|
418
|
-
default: s(() => [p(l(
|
|
378
|
+
default: s(() => [p(l(M(a.status)), 1)]),
|
|
419
379
|
_: 2
|
|
420
380
|
}, 1032, ["color"])]),
|
|
421
381
|
total: s(({
|
|
@@ -424,19 +384,19 @@ const ht = {
|
|
|
424
384
|
_: 1
|
|
425
385
|
}, 8, ["data", "loading", "pagination"])]),
|
|
426
386
|
_: 1
|
|
427
|
-
}),
|
|
387
|
+
}), r(o(w), {
|
|
428
388
|
key: "quotas",
|
|
429
389
|
title: "配额使用"
|
|
430
390
|
}, {
|
|
431
|
-
default: s(() => [
|
|
391
|
+
default: s(() => [k.value ? (u(), d("div", Ct, [r(o(ut))])) : b.value.length === 0 ? (u(), d("div", Pt, [r(o(q), {
|
|
432
392
|
description: "暂无配额限制"
|
|
433
|
-
})])) : (
|
|
393
|
+
})])) : (u(), d("div", It, [(u(!0), d(nt, null, it(b.value, (a) => (u(), d("div", {
|
|
434
394
|
key: a.featureKey,
|
|
435
395
|
class: "quota-card"
|
|
436
|
-
}, [n("div",
|
|
396
|
+
}, [n("div", wt, [n("span", At, l(a.name), 1), n("span", zt, l(O(a.period)), 1)]), n("div", Nt, [r(o(rt), {
|
|
437
397
|
percent: a.percentage,
|
|
438
398
|
status: a.percentage >= 90 ? "danger" : a.percentage >= 70 ? "warning" : "normal"
|
|
439
|
-
}, null, 8, ["percent", "status"])]), n("div",
|
|
399
|
+
}, null, 8, ["percent", "status"])]), n("div", Wt, [a.unlimited ? (u(), d("span", Et, "无限制")) : (u(), d("span", Tt, "已使用 " + l(a.used) + " / " + l(a.limit), 1)), a.resetsAt ? (u(), d("span", Lt, l(a.resetsAt) + " 重置", 1)) : L("", !0)])]))), 128))]))]),
|
|
440
400
|
_: 1
|
|
441
401
|
})]),
|
|
442
402
|
_: 1
|
|
@@ -444,7 +404,7 @@ const ht = {
|
|
|
444
404
|
_: 1
|
|
445
405
|
}, 8, ["visible"]));
|
|
446
406
|
}
|
|
447
|
-
}),
|
|
407
|
+
}), Jt = /* @__PURE__ */ ct(qt, [["__scopeId", "data-v-41a879d8"]]);
|
|
448
408
|
export {
|
|
449
|
-
|
|
409
|
+
Jt as S
|
|
450
410
|
};
|