@huyooo/ui 0.10.3 → 0.10.7
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/AuthkitSignInPhone-BWPCpUie.js +3034 -0
- package/dist/{Clipboard-CMm8I4Rb.js → Clipboard-CK_nROjb.js} +1 -1
- package/dist/CollapseItem-DUzZA6tx.js +124 -0
- package/dist/{Contact-Dgn8_it4.js → Contact-CpHU1bJ7.js} +2 -2
- package/dist/{CustomTable-CVZ4mFzi.js → CustomTable-1W5byjgJ.js} +3 -2
- package/dist/FeedbackModal-qAJLL3V3.js +1535 -0
- package/dist/{LandingPageSectionTabs-Dv_xOLqR.js → LandingPageSectionTabs-B6ZVxR47.js} +1 -1
- package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-D109kT8_.js +1282 -0
- package/dist/{PaySubscriptions-W6GJ28uE.js → PaySubscriptions-C4Een__-.js} +17 -16
- package/dist/{ReferrerReferees-C5Sjn7aD.js → ReferrerReferees-DIassvGO.js} +8 -8
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-C4-In_x4.js → Upload.vue_vue_type_script_setup_true_lang-DA8VZBrl.js} +1 -1
- package/dist/UserAccountMenu-BIRTtjLb.js +266 -0
- package/dist/UserSubscriptionBaseInformation-BUs3qiHd.js +60 -0
- package/dist/WidthContainer-TXsvW1ut.js +673 -0
- package/dist/{apiClients-DJchWBAG.js → apiClients-ANEApCyY.js} +84 -75
- package/dist/authkit.d.ts +5 -6
- package/dist/authkit.js +43 -43
- package/dist/common.js +3 -3
- package/dist/components/Authkit/Auth/AuthkitServiceAgreementAndPrivacyProtection.vue.d.ts +5 -5
- package/dist/components/Authkit/AuthkitAuthModal.vue.d.ts +13 -31
- package/dist/components/Feedback/FeedbackBubbleEnd.vue.d.ts +1 -1
- package/dist/components/Feedback/FeedbackBubbleStart.vue.d.ts +1 -1
- package/dist/components/User/UserButton.vue.d.ts +1 -36
- package/dist/components/User/UserPanel.vue.d.ts +26 -201
- package/dist/components/User/UserPanelItem.vue.d.ts +38 -0
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +34 -10
- package/dist/composables/Authkit/useAuthkitAuthModal.d.ts +22 -3
- package/dist/composables/Authkit/useLegalLinks.d.ts +34 -0
- package/dist/composables/Authkit/useOauth.d.ts +0 -1
- package/dist/composables.d.ts +3 -2
- package/dist/composables.js +27 -25
- package/dist/{useUploadCos-BO3W_uqs.js → cos-js-sdk-v5-BJ5AlBRu.js} +2232 -2469
- package/dist/feedback.js +15 -16
- package/dist/landingPage.js +1 -1
- package/dist/main.js +177 -177
- package/dist/message.js +9 -10
- 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/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-C3EHOtlk.js → useAuthkitAppsAuthPageInfo-Da2yJTT-.js} +1 -1
- package/dist/{useAuthkitCreateAndUpdate-CPkogY7K.js → useAuthkitCreateAndUpdate-BLs5vQOu.js} +1 -1
- package/dist/useAuthkitUsersProfile-Cx8NXjlt.js +186 -0
- package/dist/{useDownloads-COXmopbe.js → useDownloads-DT5W2af6.js} +1 -1
- package/dist/useLegalLinks-BIF45kUt.js +60 -0
- package/dist/{useMessageNotifications-SIM85vdb.js → useMessageNotifications-CavBmgO7.js} +1 -1
- package/dist/{useSEO-DeAU9YEc.js → useSEO-MPXQf0dn.js} +2 -2
- package/dist/{useTableHandle-CWu0LbeI.js → useTableHandle--NSbZ-57.js} +1 -1
- package/dist/useUploadCos-D6y0INvP.js +242 -0
- package/dist/user.d.ts +1 -0
- package/dist/user.js +9 -7
- package/dist/utils/legalLinks.d.ts +22 -0
- package/package.json +1 -1
- package/dist/AuthkitAuthModal-De0eEWOC.js +0 -2112
- package/dist/AuthkitSignInPhone-DEUVn3Rq.js +0 -920
- package/dist/CollapseItem-BAuejDBZ.js +0 -57
- package/dist/FeedbackItem-CRiLkWMh.js +0 -495
- package/dist/FeedbackModal-B8WLPCy_.js +0 -1053
- package/dist/MessageHandle-DpIUeQ7U.js +0 -1147
- package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BbtfWRUD.js +0 -142
- package/dist/UserAccountMenu-OdwonGFa.js +0 -633
- package/dist/WidthContainer-Cpdc67hQ.js +0 -652
- package/dist/index-CUfrjRxu.js +0 -73
- package/dist/useAuthkitUsersProfile-BqW74gfs.js +0 -172
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
8
|
+
/* empty css */
|
|
9
|
+
import { defineComponent as tt, ref as d, openBlock as l, createBlock as P, unref as u, isRef as et, withCtx as s, createElementVNode as n, createElementBlock as c, toDisplayString as o, createVNode as r, createTextVNode as p, createCommentVNode as L, Fragment as at, renderList as nt } from "vue";
|
|
10
|
+
import { Modal as it, Tag as C, Button as I, Popconfirm as st, Tabs as ot, TabPane as w, Spin as lt, Empty as ut, Progress as rt } from "@arco-design/web-vue";
|
|
11
|
+
import { f as g } from "./apiClients-ANEApCyY.js";
|
|
12
|
+
import { u as ct } from "./useAuthkitCreateAndUpdate-BLs5vQOu.js";
|
|
13
|
+
import { C as q } from "./CustomTable-1W5byjgJ.js";
|
|
13
14
|
import { _ as dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
15
|
const pt = {
|
|
15
16
|
class: "content"
|
|
@@ -40,10 +41,10 @@ const pt = {
|
|
|
40
41
|
}, xt = {
|
|
41
42
|
key: 1,
|
|
42
43
|
class: "no-subscription-row"
|
|
43
|
-
},
|
|
44
|
+
}, Pt = {
|
|
44
45
|
key: 0,
|
|
45
46
|
class: "quotas-loading"
|
|
46
|
-
},
|
|
47
|
+
}, Ct = {
|
|
47
48
|
key: 1,
|
|
48
49
|
class: "no-quotas"
|
|
49
50
|
}, It = {
|
|
@@ -265,7 +266,7 @@ const pt = {
|
|
|
265
266
|
}
|
|
266
267
|
return B({
|
|
267
268
|
setData: Z
|
|
268
|
-
}), (t, e) => (l(),
|
|
269
|
+
}), (t, e) => (l(), P(u(it), {
|
|
269
270
|
visible: u(f),
|
|
270
271
|
"onUpdate:visible": e[1] || (e[1] = (a) => et(f) ? f.value = a : null),
|
|
271
272
|
loading: !1,
|
|
@@ -276,12 +277,12 @@ const pt = {
|
|
|
276
277
|
onCancel: O
|
|
277
278
|
}, {
|
|
278
279
|
title: s(() => [...e[2] || (e[2] = [p(" 订阅管理 ", -1)])]),
|
|
279
|
-
default: s(() => [n("div", pt, [i.value ? (l(), c("div", vt, [n("div", mt, [n("div", gt, [n("h3", null, o(i.value.productName), 1), r(u(
|
|
280
|
+
default: s(() => [n("div", pt, [i.value ? (l(), c("div", vt, [n("div", mt, [n("div", gt, [n("h3", null, o(i.value.productName), 1), r(u(C), {
|
|
280
281
|
color: E(i.value.status)
|
|
281
282
|
}, {
|
|
282
283
|
default: s(() => [p(o(T(i.value.status)), 1)]),
|
|
283
284
|
_: 1
|
|
284
|
-
}, 8, ["color"])]), n("div", ft, [i.value.cancelAtPeriodEnd ? (l(),
|
|
285
|
+
}, 8, ["color"])]), n("div", ft, [i.value.cancelAtPeriodEnd ? (l(), P(u(I), {
|
|
285
286
|
key: 0,
|
|
286
287
|
type: "primary",
|
|
287
288
|
size: "small",
|
|
@@ -289,7 +290,7 @@ const pt = {
|
|
|
289
290
|
}, {
|
|
290
291
|
default: s(() => [...e[3] || (e[3] = [p(" 恢复订阅 ", -1)])]),
|
|
291
292
|
_: 1
|
|
292
|
-
})) : (l(),
|
|
293
|
+
})) : (l(), P(u(st), {
|
|
293
294
|
key: 1,
|
|
294
295
|
content: "取消后订阅将在当前周期结束时失效,确定取消吗?",
|
|
295
296
|
onOk: j
|
|
@@ -341,7 +342,7 @@ const pt = {
|
|
|
341
342
|
}, {
|
|
342
343
|
status: s(({
|
|
343
344
|
record: a
|
|
344
|
-
}) => [r(u(
|
|
345
|
+
}) => [r(u(C), {
|
|
345
346
|
color: E(a.status)
|
|
346
347
|
}, {
|
|
347
348
|
default: s(() => [p(o(T(a.status)), 1)]),
|
|
@@ -370,7 +371,7 @@ const pt = {
|
|
|
370
371
|
}, {
|
|
371
372
|
status: s(({
|
|
372
373
|
record: a
|
|
373
|
-
}) => [r(u(
|
|
374
|
+
}) => [r(u(C), {
|
|
374
375
|
color: K(a.status)
|
|
375
376
|
}, {
|
|
376
377
|
default: s(() => [p(o(R(a.status)), 1)]),
|
|
@@ -386,7 +387,7 @@ const pt = {
|
|
|
386
387
|
key: "quotas",
|
|
387
388
|
title: "配额使用"
|
|
388
389
|
}, {
|
|
389
|
-
default: s(() => [k.value ? (l(), c("div",
|
|
390
|
+
default: s(() => [k.value ? (l(), c("div", Pt, [r(u(lt))])) : _.value.length === 0 ? (l(), c("div", Ct, [r(u(ut), {
|
|
390
391
|
description: "暂无配额限制"
|
|
391
392
|
})])) : (l(), c("div", It, [(l(!0), c(at, null, nt(_.value, (a) => (l(), c("div", {
|
|
392
393
|
key: a.featureKey,
|
|
@@ -402,7 +403,7 @@ const pt = {
|
|
|
402
403
|
_: 1
|
|
403
404
|
}, 8, ["visible"]));
|
|
404
405
|
}
|
|
405
|
-
}),
|
|
406
|
+
}), Xt = /* @__PURE__ */ dt(qt, [["__scopeId", "data-v-cf38d6a7"]]);
|
|
406
407
|
export {
|
|
407
|
-
|
|
408
|
+
Xt as P
|
|
408
409
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent as
|
|
4
|
+
import { defineComponent as R, ref as d, openBlock as p, createBlock as v, unref as t, withCtx as g, createElementVNode as n, toDisplayString as _, createCommentVNode as z, createVNode as w, createTextVNode as A } from "vue";
|
|
5
5
|
import { Modal as V } from "@arco-design/web-vue";
|
|
6
|
-
import { e as y } from "./apiClients-
|
|
7
|
-
import { u as T } from "./useTableHandle-
|
|
8
|
-
import { C as B } from "./CustomTable-
|
|
9
|
-
import { C as D } from "./Clipboard-
|
|
10
|
-
import { a as U } from "./useAuthkitUsersProfile-
|
|
6
|
+
import { e as y } from "./apiClients-ANEApCyY.js";
|
|
7
|
+
import { u as T } from "./useTableHandle--NSbZ-57.js";
|
|
8
|
+
import { C as B } from "./CustomTable-1W5byjgJ.js";
|
|
9
|
+
import { C as D } from "./Clipboard-CK_nROjb.js";
|
|
10
|
+
import { a as U } from "./useAuthkitUsersProfile-Cx8NXjlt.js";
|
|
11
11
|
import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const H = {
|
|
13
13
|
class: "invite-code-section"
|
|
14
14
|
}, M = {
|
|
15
15
|
class: "invite-code-value"
|
|
16
|
-
}, j = /* @__PURE__ */
|
|
16
|
+
}, j = /* @__PURE__ */ R({
|
|
17
17
|
__name: "ReferrerReferees",
|
|
18
18
|
emits: ["cancel"],
|
|
19
19
|
setup(q, {
|
|
@@ -83,7 +83,7 @@ const H = {
|
|
|
83
83
|
key: 0,
|
|
84
84
|
value: t(s).referrerId,
|
|
85
85
|
message: "邀请码复制成功"
|
|
86
|
-
}, null, 8, ["value"])) :
|
|
86
|
+
}, null, 8, ["value"])) : z("", !0)])]), w(B, {
|
|
87
87
|
columns: x,
|
|
88
88
|
data: t(c),
|
|
89
89
|
loading: o.value,
|
|
@@ -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-D6y0INvP.js";
|
|
10
10
|
const N = /* @__PURE__ */ g({
|
|
11
11
|
__name: "Upload",
|
|
12
12
|
props: {
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { defineComponent as _, openBlock as o, createElementBlock as m, toDisplayString as f, createCommentVNode as U, createVNode as h, unref as t, createElementVNode as n, createBlock as c, withCtx as $, createTextVNode as P, useModel as B, renderSlot as u, mergeModels as A, normalizeClass as C, createSlots as S } from "vue";
|
|
6
|
+
import { Avatar as I, Button as V, Dropdown as M, Divider as x, Doption as N } from "@arco-design/web-vue";
|
|
7
|
+
import { a as y } from "./useAuthkitUsersProfile-Cx8NXjlt.js";
|
|
8
|
+
/* empty css */
|
|
9
|
+
import { _ as v } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
/* empty css */
|
|
11
|
+
import { u as D } from "./apiClients-ANEApCyY.js";
|
|
12
|
+
import { Icon as b } from "@iconify/vue";
|
|
13
|
+
const O = {
|
|
14
|
+
class: "userInfo"
|
|
15
|
+
}, z = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "userName"
|
|
18
|
+
}, j = /* @__PURE__ */ _({
|
|
19
|
+
__name: "UserAvatar",
|
|
20
|
+
props: {
|
|
21
|
+
nickname: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
},
|
|
25
|
+
avatar: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: ""
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
setup(s) {
|
|
31
|
+
const e = s;
|
|
32
|
+
return (i, l) => (o(), m("div", O, [e.nickname ? (o(), m("span", z, f(e.nickname), 1)) : U("", !0), h(t(I), {
|
|
33
|
+
"image-url": e.avatar,
|
|
34
|
+
size: 32,
|
|
35
|
+
"object-fit": "cover"
|
|
36
|
+
}, null, 8, ["image-url"])]));
|
|
37
|
+
}
|
|
38
|
+
}), w = /* @__PURE__ */ v(j, [["__scopeId", "data-v-36643afe"]]), E = {
|
|
39
|
+
class: "userInfo"
|
|
40
|
+
}, L = {
|
|
41
|
+
class: "extra"
|
|
42
|
+
}, X = {
|
|
43
|
+
class: "userName"
|
|
44
|
+
}, Y = {
|
|
45
|
+
class: "email"
|
|
46
|
+
}, T = {
|
|
47
|
+
key: 0,
|
|
48
|
+
class: "referrerId"
|
|
49
|
+
}, q = /* @__PURE__ */ _({
|
|
50
|
+
__name: "UserBasicInformation",
|
|
51
|
+
props: {
|
|
52
|
+
nickname: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: ""
|
|
55
|
+
},
|
|
56
|
+
email: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: ""
|
|
59
|
+
},
|
|
60
|
+
avatarUrl: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: ""
|
|
63
|
+
},
|
|
64
|
+
referrerId: {
|
|
65
|
+
type: String,
|
|
66
|
+
default: ""
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
setup(s) {
|
|
70
|
+
const e = s;
|
|
71
|
+
return (i, l) => (o(), m("div", E, [h(t(I), {
|
|
72
|
+
"image-url": e.avatarUrl,
|
|
73
|
+
size: 42,
|
|
74
|
+
"object-fit": "cover"
|
|
75
|
+
}, null, 8, ["image-url"]), n("div", L, [n("span", X, f(e.nickname), 1), n("span", Y, f(e.email), 1), e.referrerId ? (o(), m("span", T, " 邀请码:" + f(e.referrerId), 1)) : U("", !0)])]));
|
|
76
|
+
}
|
|
77
|
+
}), F = /* @__PURE__ */ v(q, [["__scopeId", "data-v-094943aa"]]), G = /* @__PURE__ */ _({
|
|
78
|
+
__name: "UserButton",
|
|
79
|
+
setup(s) {
|
|
80
|
+
const {
|
|
81
|
+
userProfile: e,
|
|
82
|
+
isLoggedIn: i
|
|
83
|
+
} = y(), {
|
|
84
|
+
open: l
|
|
85
|
+
} = D();
|
|
86
|
+
return (d, a) => {
|
|
87
|
+
var r;
|
|
88
|
+
return t(i) ? (o(), c(w, {
|
|
89
|
+
key: 1,
|
|
90
|
+
avatar: (r = t(e)) == null ? void 0 : r.avatarUrl
|
|
91
|
+
}, null, 8, ["avatar"])) : (o(), c(t(V), {
|
|
92
|
+
key: 0,
|
|
93
|
+
type: "primary",
|
|
94
|
+
class: "UserButton__login",
|
|
95
|
+
onClick: a[0] || (a[0] = (p) => t(l)())
|
|
96
|
+
}, {
|
|
97
|
+
default: $(() => [...a[1] || (a[1] = [P(" 登陆 ", -1)])]),
|
|
98
|
+
_: 1
|
|
99
|
+
}));
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
}), H = /* @__PURE__ */ v(G, [["__scopeId", "data-v-9e754bed"]]), J = {
|
|
103
|
+
class: "UserPanel"
|
|
104
|
+
}, K = {
|
|
105
|
+
class: "UserPanel__dropdown"
|
|
106
|
+
}, Q = {
|
|
107
|
+
class: "UserPanel__header"
|
|
108
|
+
}, R = /* @__PURE__ */ _({
|
|
109
|
+
__name: "UserPanel",
|
|
110
|
+
props: /* @__PURE__ */ A({
|
|
111
|
+
position: {
|
|
112
|
+
default: "br"
|
|
113
|
+
},
|
|
114
|
+
dropdownOffsetX: {
|
|
115
|
+
default: "0"
|
|
116
|
+
},
|
|
117
|
+
dropdownOffsetY: {
|
|
118
|
+
default: "0"
|
|
119
|
+
}
|
|
120
|
+
}, {
|
|
121
|
+
modelValue: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: !1
|
|
124
|
+
},
|
|
125
|
+
modelModifiers: {}
|
|
126
|
+
}),
|
|
127
|
+
emits: ["update:modelValue"],
|
|
128
|
+
setup(s) {
|
|
129
|
+
const {
|
|
130
|
+
userProfile: e,
|
|
131
|
+
isLoggedIn: i
|
|
132
|
+
} = y(), l = B(s, "modelValue");
|
|
133
|
+
return (d, a) => (o(), m("div", J, [t(i) ? (o(), c(t(M), {
|
|
134
|
+
key: 0,
|
|
135
|
+
"popup-visible": l.value,
|
|
136
|
+
"onUpdate:popupVisible": a[0] || (a[0] = (r) => l.value = r),
|
|
137
|
+
class: "DropdownUserInfo",
|
|
138
|
+
position: s.position,
|
|
139
|
+
"popup-style": {
|
|
140
|
+
"--dropdown-translate-x": s.dropdownOffsetX ?? "0",
|
|
141
|
+
"--dropdown-translate-y": s.dropdownOffsetY ?? "0"
|
|
142
|
+
}
|
|
143
|
+
}, {
|
|
144
|
+
content: $(() => [n("div", K, [n("div", Q, [u(d.$slots, "header", {
|
|
145
|
+
user: t(e)
|
|
146
|
+
}, () => {
|
|
147
|
+
var r, p, k, g;
|
|
148
|
+
return [h(F, {
|
|
149
|
+
"avatar-url": (r = t(e)) == null ? void 0 : r.avatarUrl,
|
|
150
|
+
nickname: (p = t(e)) == null ? void 0 : p.nickname,
|
|
151
|
+
email: (k = t(e)) == null ? void 0 : k.email,
|
|
152
|
+
"referrer-id": (g = t(e)) == null ? void 0 : g.referrerId
|
|
153
|
+
}, null, 8, ["avatar-url", "nickname", "email", "referrer-id"])];
|
|
154
|
+
}, !0)]), d.$slots.items ? (o(), c(t(x), {
|
|
155
|
+
key: 0,
|
|
156
|
+
style: {
|
|
157
|
+
margin: "10px 0"
|
|
158
|
+
}
|
|
159
|
+
})) : U("", !0), u(d.$slots, "items", {}, void 0, !0)])]),
|
|
160
|
+
default: $(() => [u(d.$slots, "trigger", {
|
|
161
|
+
user: t(e)
|
|
162
|
+
}, () => {
|
|
163
|
+
var r;
|
|
164
|
+
return [h(w, {
|
|
165
|
+
avatar: (r = t(e)) == null ? void 0 : r.avatarUrl
|
|
166
|
+
}, null, 8, ["avatar"])];
|
|
167
|
+
}, !0)]),
|
|
168
|
+
_: 3
|
|
169
|
+
}, 8, ["popup-visible", "position", "popup-style"])) : (o(), c(H, {
|
|
170
|
+
key: 1
|
|
171
|
+
}))]));
|
|
172
|
+
}
|
|
173
|
+
}), he = /* @__PURE__ */ v(R, [["__scopeId", "data-v-c7fdfcc4"]]), W = {
|
|
174
|
+
class: "UserPanelItem__label"
|
|
175
|
+
}, Z = {
|
|
176
|
+
key: 0,
|
|
177
|
+
class: "UserPanelItem__suffix"
|
|
178
|
+
}, ee = /* @__PURE__ */ _({
|
|
179
|
+
__name: "UserPanelItem",
|
|
180
|
+
props: {
|
|
181
|
+
value: {
|
|
182
|
+
default: void 0
|
|
183
|
+
},
|
|
184
|
+
icon: {
|
|
185
|
+
default: void 0
|
|
186
|
+
},
|
|
187
|
+
danger: {
|
|
188
|
+
type: Boolean,
|
|
189
|
+
default: !1
|
|
190
|
+
},
|
|
191
|
+
disabled: {
|
|
192
|
+
type: Boolean,
|
|
193
|
+
default: !1
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
emits: ["click"],
|
|
197
|
+
setup(s, {
|
|
198
|
+
emit: e
|
|
199
|
+
}) {
|
|
200
|
+
const i = s, l = e;
|
|
201
|
+
function d(a) {
|
|
202
|
+
i.disabled || l("click", a);
|
|
203
|
+
}
|
|
204
|
+
return (a, r) => (o(), c(t(N), {
|
|
205
|
+
value: s.value,
|
|
206
|
+
class: C(["UserPanelItem", {
|
|
207
|
+
"is-danger": s.danger,
|
|
208
|
+
"is-disabled": s.disabled
|
|
209
|
+
}]),
|
|
210
|
+
disabled: s.disabled,
|
|
211
|
+
onClick: d
|
|
212
|
+
}, S({
|
|
213
|
+
default: $(() => [n("span", W, [u(a.$slots, "default", {}, void 0, !0)]), a.$slots.suffix ? (o(), m("span", Z, [u(a.$slots, "suffix", {}, void 0, !0)])) : U("", !0)]),
|
|
214
|
+
_: 2
|
|
215
|
+
}, [a.$slots.icon || s.icon ? {
|
|
216
|
+
name: "icon",
|
|
217
|
+
fn: $(() => [u(a.$slots, "icon", {}, () => [s.icon ? (o(), c(t(b), {
|
|
218
|
+
key: 0,
|
|
219
|
+
icon: s.icon,
|
|
220
|
+
width: 16,
|
|
221
|
+
height: 16
|
|
222
|
+
}, null, 8, ["icon"])) : U("", !0)], !0)]),
|
|
223
|
+
key: "0"
|
|
224
|
+
} : void 0]), 1032, ["value", "class", "disabled"]));
|
|
225
|
+
}
|
|
226
|
+
}), $e = /* @__PURE__ */ v(ee, [["__scopeId", "data-v-bfda92ea"]]), te = {
|
|
227
|
+
class: "UserAccountMenu"
|
|
228
|
+
}, se = {
|
|
229
|
+
class: "avatar"
|
|
230
|
+
}, ae = {
|
|
231
|
+
class: "meta"
|
|
232
|
+
}, oe = {
|
|
233
|
+
class: "name"
|
|
234
|
+
}, re = {
|
|
235
|
+
class: "email"
|
|
236
|
+
}, ne = /* @__PURE__ */ _({
|
|
237
|
+
__name: "UserAccountMenu",
|
|
238
|
+
emits: ["arrowClick"],
|
|
239
|
+
setup(s, {
|
|
240
|
+
emit: e
|
|
241
|
+
}) {
|
|
242
|
+
const {
|
|
243
|
+
userProfile: i
|
|
244
|
+
} = y(), l = e;
|
|
245
|
+
function d() {
|
|
246
|
+
l("arrowClick");
|
|
247
|
+
}
|
|
248
|
+
return (a, r) => {
|
|
249
|
+
var p, k;
|
|
250
|
+
return o(), m("div", te, [n("div", se, [u(a.$slots, "avatar", {}, void 0, !0)]), n("div", ae, [n("div", oe, f(((p = t(i)) == null ? void 0 : p.nickname) || ""), 1), n("div", re, f(((k = t(i)) == null ? void 0 : k.email) || ""), 1)]), n("div", {
|
|
251
|
+
class: "arrow",
|
|
252
|
+
onClick: d
|
|
253
|
+
}, [h(t(b), {
|
|
254
|
+
icon: "lucide:chevrons-up-down"
|
|
255
|
+
})])]);
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
}), ye = /* @__PURE__ */ v(ne, [["__scopeId", "data-v-e3c824dc"]]);
|
|
259
|
+
export {
|
|
260
|
+
ye as U,
|
|
261
|
+
w as a,
|
|
262
|
+
F as b,
|
|
263
|
+
H as c,
|
|
264
|
+
he as d,
|
|
265
|
+
$e as e
|
|
266
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { defineComponent as m, openBlock as o, createElementBlock as l, createElementVNode as r, createVNode as _, unref as n, withCtx as i, createTextVNode as a, toDisplayString as s, createBlock as f, createCommentVNode as g } from "vue";
|
|
5
|
+
import { Tag as x, Button as y } from "@arco-design/web-vue";
|
|
6
|
+
import "./UserAccountMenu-BIRTtjLb.js";
|
|
7
|
+
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const N = {
|
|
9
|
+
class: "pricing"
|
|
10
|
+
}, V = {
|
|
11
|
+
class: "base"
|
|
12
|
+
}, b = {
|
|
13
|
+
class: "pricingInfo"
|
|
14
|
+
}, k = /* @__PURE__ */ m({
|
|
15
|
+
__name: "UserSubscriptionBaseInformation",
|
|
16
|
+
props: {
|
|
17
|
+
currentVersionName: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: !0
|
|
20
|
+
},
|
|
21
|
+
expireDate: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: !0
|
|
24
|
+
},
|
|
25
|
+
canUpgrade: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
required: !0
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
emits: ["upgradeHandle"],
|
|
31
|
+
setup(p, {
|
|
32
|
+
emit: c
|
|
33
|
+
}) {
|
|
34
|
+
const t = p, d = c;
|
|
35
|
+
function u() {
|
|
36
|
+
d("upgradeHandle");
|
|
37
|
+
}
|
|
38
|
+
return (S, e) => (o(), l("div", N, [r("div", V, [r("div", b, [e[0] || (e[0] = r("span", null, "我的订阅:", -1)), _(n(x), {
|
|
39
|
+
color: "arcoblue",
|
|
40
|
+
style: {
|
|
41
|
+
"border-radius": "6px"
|
|
42
|
+
}
|
|
43
|
+
}, {
|
|
44
|
+
default: i(() => [a(s(t.currentVersionName), 1)]),
|
|
45
|
+
_: 1
|
|
46
|
+
})]), t.canUpgrade ? (o(), f(n(y), {
|
|
47
|
+
key: 0,
|
|
48
|
+
type: "primary",
|
|
49
|
+
size: "mini",
|
|
50
|
+
class: "updatePricing",
|
|
51
|
+
onClick: u
|
|
52
|
+
}, {
|
|
53
|
+
default: i(() => [...e[1] || (e[1] = [a(" 升级 ", -1)])]),
|
|
54
|
+
_: 1
|
|
55
|
+
})) : g("", !0)]), r("span", null, "有效期至: " + s(t.expireDate), 1)]));
|
|
56
|
+
}
|
|
57
|
+
}), E = /* @__PURE__ */ B(k, [["__scopeId", "data-v-1e32fa72"]]);
|
|
58
|
+
export {
|
|
59
|
+
E as U
|
|
60
|
+
};
|