@huyooo/ui 0.11.6 → 0.11.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/{AuthkitAppSetting-CjQiWZab.js → AuthkitAppSetting-DrX6fwKt.js} +7 -6
- package/dist/{useEnsureAuthenticated-C_Ss0e9n.js → AuthkitGithubBinding-r2oVuCSV.js} +631 -680
- package/dist/PricingPlans-Cf20-GqK.js +251 -0
- package/dist/{ReferrerReferees-CHSoGrE1.js → ReferrerReferees-B-ISyXHw.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-B4tD8pIE.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Czix4_tj.js} +3 -3
- package/dist/{WidthContainer-BzS-A143.js → WidthContainer-CYYbzXj0.js} +16 -15
- package/dist/authkit.js +30 -28
- package/dist/common.js +1 -1
- package/dist/composables/Billing/useBillingPlans.d.ts +29 -1
- package/dist/composables.js +41 -40
- package/dist/main.js +228 -226
- package/dist/pay.js +2 -2
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/useAuthkitAuth-Doj5VYjK.js +170 -0
- package/dist/useAuthkitUsersProfile-FJnHJad-.js +36 -0
- package/dist/useEnsureAuthenticated-D78tsddF.js +56 -0
- package/dist/{useSEO--jTDDkXk.js → useSEO-BZhVKEZr.js} +1 -1
- package/dist/useSubscriptionCheckout-BubIsxjO.js +386 -0
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/PricingPlans-BfVy4xU0.js +0 -210
- package/dist/useAuthkitUsersProfile-D4h6OOdR.js +0 -201
- package/dist/useSubscriptionCheckout-CQ6wHuLI.js +0 -345
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { defineComponent as M, computed as C, openBlock as i, createBlock as E, withCtx as m, createVNode as P, onMounted as te, resolveDirective as ie, createElementBlock as s, withDirectives as se, unref as e, normalizeClass as f, createElementVNode as n, toDisplayString as l, Fragment as d, renderList as g, createCommentVNode as o, createTextVNode as z } from "vue";
|
|
2
|
+
import { L as ne, a as le } from "./LandingPageFAQ-CZJXvor9.js";
|
|
3
|
+
import { L as ae } from "./LandingPageSectionHeader-D_74W4My.js";
|
|
4
|
+
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import "./index-D3Kp6R4z.js";
|
|
7
|
+
/* empty css */
|
|
8
|
+
import { Spin as re, Button as G } from "@arco-design/web-vue";
|
|
9
|
+
import { Icon as H } from "@iconify/vue";
|
|
10
|
+
import { u as ce, a as oe } from "./useSubscriptionCheckout-BubIsxjO.js";
|
|
11
|
+
const ue = /* @__PURE__ */ M({
|
|
12
|
+
__name: "PricingFAQ",
|
|
13
|
+
props: {
|
|
14
|
+
title: {
|
|
15
|
+
default: "订阅常见问题"
|
|
16
|
+
},
|
|
17
|
+
subtitle: {
|
|
18
|
+
default: "关于试用、付款、配额、升级和取消订阅的说明。"
|
|
19
|
+
},
|
|
20
|
+
activeKeys: {
|
|
21
|
+
default: () => []
|
|
22
|
+
},
|
|
23
|
+
faqItems: {
|
|
24
|
+
default: void 0
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup(u) {
|
|
28
|
+
const p = [{
|
|
29
|
+
question: "可以先试用再付费吗?",
|
|
30
|
+
answer: "可以。支持试用的方案会在卡片按钮上标明试用天数。试用期间可使用对应方案能力,到期后再决定是否继续订阅。"
|
|
31
|
+
}, {
|
|
32
|
+
question: "月付和年付有什么区别?",
|
|
33
|
+
answer: "月付适合短期验证和灵活使用,年付适合稳定团队和长期项目,通常会有更优惠的价格。"
|
|
34
|
+
}, {
|
|
35
|
+
question: "已有订阅后可以升级或切换方案吗?",
|
|
36
|
+
answer: "可以。升级或切换方案时,系统会根据当前订阅和新方案计算差额;如需补差价,会跳转到支付页面完成支付。"
|
|
37
|
+
}, {
|
|
38
|
+
question: "取消订阅后还能继续使用吗?",
|
|
39
|
+
answer: "可以。取消订阅后,当前计费周期内仍可继续使用,周期结束后订阅权益将停止续期。"
|
|
40
|
+
}, {
|
|
41
|
+
question: "配额什么时候重置?",
|
|
42
|
+
answer: "配额按订阅周期重置,不一定是自然月月初。例如您在 4 月 15 日订阅月付方案,下一次配额重置通常发生在 5 月 15 日。"
|
|
43
|
+
}, {
|
|
44
|
+
question: "不同方案的技术支持有什么区别?",
|
|
45
|
+
answer: "基础方案适合个人和轻量团队,包含常规支持;更高等级方案面向正式团队和生产场景,通常包含更高优先级支持。"
|
|
46
|
+
}, {
|
|
47
|
+
question: "是否支持退款?",
|
|
48
|
+
answer: "订阅可随时取消。退款规则以付费服务协议为准,如遇到重复扣费或异常支付,可以联系支持团队处理。"
|
|
49
|
+
}, {
|
|
50
|
+
question: "使用订阅服务有什么限制?",
|
|
51
|
+
answer: "请按正常业务场景使用服务,禁止共享、转售订阅或用于违法违规场景。严重滥用可能导致服务受限或账户终止。"
|
|
52
|
+
}], v = u, y = C(() => v.faqItems ?? p);
|
|
53
|
+
return (h, B) => (i(), E(ne, {
|
|
54
|
+
class: "PricingFAQ"
|
|
55
|
+
}, {
|
|
56
|
+
BlockHeader: m(() => [P(ae, {
|
|
57
|
+
title: u.title,
|
|
58
|
+
subtitle: u.subtitle
|
|
59
|
+
}, null, 8, ["title", "subtitle"])]),
|
|
60
|
+
BlockBody: m(() => [P(le, {
|
|
61
|
+
"active-keys": u.activeKeys,
|
|
62
|
+
"faq-items": y.value
|
|
63
|
+
}, null, 8, ["active-keys", "faq-items"])]),
|
|
64
|
+
_: 1
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
}), Ke = /* @__PURE__ */ K(ue, [["__scopeId", "data-v-fcab2f05"]]), _e = {
|
|
68
|
+
class: "PricingPlans"
|
|
69
|
+
}, de = {
|
|
70
|
+
class: "PricingPlans__trialMain"
|
|
71
|
+
}, ge = {
|
|
72
|
+
class: "PricingPlans__trialCopy"
|
|
73
|
+
}, Pe = {
|
|
74
|
+
key: 0,
|
|
75
|
+
class: "PricingPlans__trialFeatures"
|
|
76
|
+
}, me = {
|
|
77
|
+
class: "PricingPlans__trialAction"
|
|
78
|
+
}, ve = {
|
|
79
|
+
key: 1,
|
|
80
|
+
class: "PricingPlans__toolbar"
|
|
81
|
+
}, fe = {
|
|
82
|
+
key: 0,
|
|
83
|
+
class: "PricingPlans__toggle",
|
|
84
|
+
role: "tablist",
|
|
85
|
+
"aria-label": "计费周期"
|
|
86
|
+
}, pe = ["onClick"], ye = {
|
|
87
|
+
key: 0,
|
|
88
|
+
class: "PricingPlans__toggleBadge"
|
|
89
|
+
}, he = {
|
|
90
|
+
key: 1,
|
|
91
|
+
class: "PricingPlans__note"
|
|
92
|
+
}, ke = {
|
|
93
|
+
key: 2,
|
|
94
|
+
class: "PricingPlans__grid"
|
|
95
|
+
}, be = {
|
|
96
|
+
class: "PricingPlans__badgeRow"
|
|
97
|
+
}, Ce = {
|
|
98
|
+
class: "PricingPlans__header"
|
|
99
|
+
}, Be = {
|
|
100
|
+
class: "PricingPlans__price"
|
|
101
|
+
}, Ie = {
|
|
102
|
+
key: 0,
|
|
103
|
+
class: "PricingPlans__originalPrice"
|
|
104
|
+
}, qe = {
|
|
105
|
+
class: "PricingPlans__amount"
|
|
106
|
+
}, Le = {
|
|
107
|
+
class: "PricingPlans__cycle"
|
|
108
|
+
}, we = {
|
|
109
|
+
key: 0,
|
|
110
|
+
class: "PricingPlans__promotion"
|
|
111
|
+
}, De = {
|
|
112
|
+
class: "PricingPlans__summary"
|
|
113
|
+
}, Fe = {
|
|
114
|
+
class: "PricingPlans__featureGroups"
|
|
115
|
+
}, Se = {
|
|
116
|
+
class: "PricingPlans__features"
|
|
117
|
+
}, Ae = {
|
|
118
|
+
key: 3,
|
|
119
|
+
class: "PricingPlans__empty"
|
|
120
|
+
}, xe = /* @__PURE__ */ M({
|
|
121
|
+
__name: "PricingPlans",
|
|
122
|
+
props: {
|
|
123
|
+
appName: {
|
|
124
|
+
default: "Huyooo"
|
|
125
|
+
},
|
|
126
|
+
defaultInterval: {
|
|
127
|
+
default: "month"
|
|
128
|
+
},
|
|
129
|
+
note: {
|
|
130
|
+
default: ""
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
setup(u) {
|
|
134
|
+
const p = u, {
|
|
135
|
+
plans: v,
|
|
136
|
+
currentSubscription: y,
|
|
137
|
+
listLoading: h,
|
|
138
|
+
billingInterval: B,
|
|
139
|
+
billingIntervalTabs: I,
|
|
140
|
+
setBillingInterval: O,
|
|
141
|
+
isCurrentPlan: q,
|
|
142
|
+
isRecommendedPlan: L,
|
|
143
|
+
isFreePlan: w,
|
|
144
|
+
isPlanActionDisabled: D,
|
|
145
|
+
getDisplayPrice: R,
|
|
146
|
+
getDisplayOriginalPrice: F,
|
|
147
|
+
getDisplayCycle: j,
|
|
148
|
+
getPromotionLabel: S,
|
|
149
|
+
getBadgeLabels: J,
|
|
150
|
+
getButtonLabel: A,
|
|
151
|
+
getPlanSummary: x,
|
|
152
|
+
getFeatureGroups: N,
|
|
153
|
+
loadCurrentSubscription: U,
|
|
154
|
+
refresh: W
|
|
155
|
+
} = ce(p.defaultInterval), c = C(() => v.value.find((r) => w(r))), k = C(() => v.value.filter((r) => !w(r))), {
|
|
156
|
+
checkout: T,
|
|
157
|
+
isCheckingOut: $
|
|
158
|
+
} = oe({
|
|
159
|
+
currentSubscription: y,
|
|
160
|
+
refreshCurrentSubscription: U
|
|
161
|
+
});
|
|
162
|
+
function X(r) {
|
|
163
|
+
return r === 1 ? "适合团队协作与更高频使用" : "适合个人和轻量团队使用";
|
|
164
|
+
}
|
|
165
|
+
function Q(r) {
|
|
166
|
+
return N(r.features).flatMap((a) => a.items).slice(0, 3);
|
|
167
|
+
}
|
|
168
|
+
function Y(r) {
|
|
169
|
+
return (r.description || x(r, 0)).replace(/^\s*\d+\s*天(?:免费)?体验[,,、\s]*/, "").replace(/^\s*免费体验[,,、\s]*/, "").trim();
|
|
170
|
+
}
|
|
171
|
+
function Z(r) {
|
|
172
|
+
const a = A(r);
|
|
173
|
+
return a === "免费注册" || a === "免费开通" ? "立即体验" : a === "已订阅付费方案" ? "无需开通" : a;
|
|
174
|
+
}
|
|
175
|
+
return te(() => {
|
|
176
|
+
W();
|
|
177
|
+
}), (r, a) => {
|
|
178
|
+
const ee = ie("motion-slide-top");
|
|
179
|
+
return i(), s("section", _e, [se((i(), E(e(re), {
|
|
180
|
+
loading: e(h),
|
|
181
|
+
tip: "数据加载中",
|
|
182
|
+
class: "PricingPlans__spin"
|
|
183
|
+
}, {
|
|
184
|
+
default: m(() => [c.value ? (i(), s("article", {
|
|
185
|
+
key: 0,
|
|
186
|
+
class: f(["PricingPlans__trial", {
|
|
187
|
+
"is-current": e(q)(c.value)
|
|
188
|
+
}])
|
|
189
|
+
}, [n("div", de, [n("div", ge, [n("h2", null, l(c.value.name), 1), n("p", null, l(Y(c.value)), 1), Q(c.value).length ? (i(), s("ul", Pe, [(i(!0), s(d, null, g(Q(c.value), (t) => (i(), s("li", {
|
|
190
|
+
key: t.title
|
|
191
|
+
}, [P(e(H), {
|
|
192
|
+
icon: "mingcute:check-circle-fill",
|
|
193
|
+
class: "PricingPlans__trialFeatureIcon"
|
|
194
|
+
}), n("span", null, l(t.title), 1)]))), 128))])) : o("", !0)]), n("div", me, [P(e(G), {
|
|
195
|
+
size: "large",
|
|
196
|
+
class: "PricingPlans__trialButton",
|
|
197
|
+
loading: e($)(c.value),
|
|
198
|
+
disabled: e(D)(c.value),
|
|
199
|
+
onClick: a[0] || (a[0] = (t) => e(T)(c.value))
|
|
200
|
+
}, {
|
|
201
|
+
default: m(() => [z(l(Z(c.value)), 1)]),
|
|
202
|
+
_: 1
|
|
203
|
+
}, 8, ["loading", "disabled"])])])], 2)) : o("", !0), k.value.length ? (i(), s("div", ve, [e(I).length > 1 ? (i(), s("div", fe, [(i(!0), s(d, null, g(e(I), (t) => (i(), s("button", {
|
|
204
|
+
key: t.value,
|
|
205
|
+
type: "button",
|
|
206
|
+
class: f(["PricingPlans__toggleItem", {
|
|
207
|
+
"is-active": e(B) === t.value
|
|
208
|
+
}]),
|
|
209
|
+
onClick: (b) => e(O)(t.value)
|
|
210
|
+
}, [n("span", null, l(t.label), 1), t.badge ? (i(), s("span", ye, l(t.badge), 1)) : o("", !0)], 10, pe))), 128))])) : o("", !0), u.note ? (i(), s("p", he, l(u.note), 1)) : o("", !0)])) : o("", !0), k.value.length ? (i(), s("div", ke, [(i(!0), s(d, null, g(k.value, (t, b) => (i(), s("article", {
|
|
211
|
+
key: t.id,
|
|
212
|
+
class: f(["PricingPlans__card", {
|
|
213
|
+
"is-recommended": e(L)(t),
|
|
214
|
+
"is-current": e(q)(t)
|
|
215
|
+
}])
|
|
216
|
+
}, [n("div", be, [(i(!0), s(d, null, g(e(J)(t), (_) => (i(), s("span", {
|
|
217
|
+
key: _.type,
|
|
218
|
+
class: f(["PricingPlans__badge", `is-${_.type}`])
|
|
219
|
+
}, l(_.label), 3))), 128))]), n("div", Ce, [n("h2", null, l(t.name), 1), n("p", null, l(t.description || X(b)), 1)]), n("div", Be, [e(F)(t) ? (i(), s("span", Ie, " ¥" + l(e(F)(t)), 1)) : o("", !0), a[1] || (a[1] = n("span", {
|
|
220
|
+
class: "PricingPlans__currency"
|
|
221
|
+
}, "¥", -1)), n("span", qe, l(e(R)(t)), 1), n("span", Le, l(e(j)(t)), 1)]), e(S)(t) ? (i(), s("p", we, l(e(S)(t)), 1)) : o("", !0), n("p", De, l(e(x)(t, b)), 1), P(e(G), {
|
|
222
|
+
long: "",
|
|
223
|
+
size: "large",
|
|
224
|
+
class: "PricingPlans__button",
|
|
225
|
+
type: e(L)(t) ? "primary" : "outline",
|
|
226
|
+
loading: e($)(t),
|
|
227
|
+
disabled: e(D)(t),
|
|
228
|
+
onClick: (_) => e(T)(t)
|
|
229
|
+
}, {
|
|
230
|
+
default: m(() => [z(l(e(A)(t)), 1)]),
|
|
231
|
+
_: 2
|
|
232
|
+
}, 1032, ["type", "loading", "disabled", "onClick"]), a[2] || (a[2] = n("div", {
|
|
233
|
+
class: "PricingPlans__divider"
|
|
234
|
+
}, null, -1)), n("div", Fe, [(i(!0), s(d, null, g(e(N)(t.features), (_) => (i(), s("section", {
|
|
235
|
+
key: _.title,
|
|
236
|
+
class: "PricingPlans__featureGroup"
|
|
237
|
+
}, [n("h3", null, l(_.title), 1), n("ul", Se, [(i(!0), s(d, null, g(_.items, (V) => (i(), s("li", {
|
|
238
|
+
key: V.title
|
|
239
|
+
}, [P(e(H), {
|
|
240
|
+
icon: "mingcute:check-circle-fill",
|
|
241
|
+
class: "PricingPlans__featureIcon"
|
|
242
|
+
}), n("span", null, l(V.title), 1)]))), 128))])]))), 128))])], 2))), 128))])) : !c.value && !e(h) ? (i(), s("div", Ae, " 当前暂无可订阅方案 ")) : o("", !0)]),
|
|
243
|
+
_: 1
|
|
244
|
+
}, 8, ["loading"])), [[ee]])]);
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
}), Oe = /* @__PURE__ */ K(xe, [["__scopeId", "data-v-0cbe9538"]]);
|
|
248
|
+
export {
|
|
249
|
+
Ke as P,
|
|
250
|
+
Oe as a
|
|
251
|
+
};
|
|
@@ -7,7 +7,7 @@ import { e as T } from "./apiClients-KFp-rs-C.js";
|
|
|
7
7
|
import { u as V } from "./useTableHandle-jw0P7-2a.js";
|
|
8
8
|
import { C as y } from "./CustomTable-BUkwlbzN.js";
|
|
9
9
|
import { C as E } from "./Clipboard-ChMNfcO5.js";
|
|
10
|
-
import {
|
|
10
|
+
import { u as M } from "./useAuthkitUsersProfile-FJnHJad-.js";
|
|
11
11
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const H = {
|
|
13
13
|
class: "invite-code-section"
|
|
@@ -3,7 +3,7 @@
|
|
|
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 {
|
|
6
|
+
import { u as N } from "./useAuthkitUsersProfile-FJnHJad-.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";
|
|
@@ -11,10 +11,10 @@ import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
|
11
11
|
import { u as Q, f as W } from "./apiClients-KFp-rs-C.js";
|
|
12
12
|
import { u as Z, P as ee } from "./PaySubscriptions-BsU0XmXf.js";
|
|
13
13
|
import { C as ne } from "./Clipboard-ChMNfcO5.js";
|
|
14
|
-
import { A as te } from "./AuthkitAppSetting-
|
|
14
|
+
import { A as te } from "./AuthkitAppSetting-DrX6fwKt.js";
|
|
15
15
|
import { d as se } from "./FeedbackModal-Dzl0Alp7.js";
|
|
16
16
|
import { M as ae } from "./MessageHandle-BcRjYeVi.js";
|
|
17
|
-
import { R as re } from "./ReferrerReferees-
|
|
17
|
+
import { R as re } from "./ReferrerReferees-B-ISyXHw.js";
|
|
18
18
|
import { Icon as j } from "@iconify/vue";
|
|
19
19
|
const oe = {
|
|
20
20
|
class: "UserAvatar"
|
|
@@ -2,14 +2,15 @@
|
|
|
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
|
|
5
|
+
import { u as F } from "./useAuthkitAuth-Doj5VYjK.js";
|
|
6
6
|
import { d as _e, b as ve, a as ge } from "./apiClients-KFp-rs-C.js";
|
|
7
7
|
import { u as D } from "./useAuthkitAppsAuthPageInfo-B9_VzVkQ.js";
|
|
8
|
-
import {
|
|
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";
|
|
9
10
|
import "./useUploadCos-keDKcs0j.js";
|
|
10
11
|
import { useRouter as te, useRoute as ne } from "vue-router";
|
|
11
12
|
import "./useUserMenu-ClPBlvaM.js";
|
|
12
|
-
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-
|
|
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
14
|
/* empty css */
|
|
14
15
|
import { Icon as R } from "@iconify/vue";
|
|
15
16
|
import "./Clipboard-ChMNfcO5.js";
|
|
@@ -156,7 +157,7 @@ const we = {
|
|
|
156
157
|
key: 1
|
|
157
158
|
}, void 0, !0)])])])]));
|
|
158
159
|
}
|
|
159
|
-
}),
|
|
160
|
+
}), Yt = /* @__PURE__ */ T(Be, [["__scopeId", "data-v-0eed4f11"]]), He = {
|
|
160
161
|
class: "ContentHead"
|
|
161
162
|
}, ze = {
|
|
162
163
|
class: "title"
|
|
@@ -181,7 +182,7 @@ const we = {
|
|
|
181
182
|
const e = m;
|
|
182
183
|
return (c, _) => (t(), n("div", He, [s("h1", ze, I(e.title), 1), e.description ? (t(), n("p", Ee, I(e.description), 1)) : M("", !0)]));
|
|
183
184
|
}
|
|
184
|
-
}),
|
|
185
|
+
}), Zt = /* @__PURE__ */ T(De, [["__scopeId", "data-v-209a7bef"]]), Ke = {
|
|
185
186
|
key: 0,
|
|
186
187
|
class: "desktop-menus"
|
|
187
188
|
}, Oe = {
|
|
@@ -588,7 +589,7 @@ const we = {
|
|
|
588
589
|
key: 1
|
|
589
590
|
}, void 0, !0)])], 6));
|
|
590
591
|
}
|
|
591
|
-
}),
|
|
592
|
+
}), en = /* @__PURE__ */ T(_t, [["__scopeId", "data-v-52a72efd"]]), vt = /* @__PURE__ */ P({
|
|
592
593
|
__name: "Gradientbackground",
|
|
593
594
|
props: {
|
|
594
595
|
width: {
|
|
@@ -646,7 +647,7 @@ const we = {
|
|
|
646
647
|
style: W(_.value)
|
|
647
648
|
}, null, 4)], 4));
|
|
648
649
|
}
|
|
649
|
-
}),
|
|
650
|
+
}), tn = /* @__PURE__ */ T(vt, [["__scopeId", "data-v-64c41f65"]]), gt = {
|
|
650
651
|
class: "SvgIcon"
|
|
651
652
|
}, yt = ["href", "fill"], kt = /* @__PURE__ */ P({
|
|
652
653
|
__name: "SvgIcon",
|
|
@@ -673,21 +674,21 @@ const we = {
|
|
|
673
674
|
fill: e.color
|
|
674
675
|
}, null, 8, yt)]));
|
|
675
676
|
}
|
|
676
|
-
}),
|
|
677
|
+
}), nn = /* @__PURE__ */ T(kt, [["__scopeId", "data-v-9d0b08a0"]]), bt = {}, wt = {
|
|
677
678
|
class: "WidthContainer"
|
|
678
679
|
};
|
|
679
680
|
function $t(m, e) {
|
|
680
681
|
return t(), n("div", wt, [N(m.$slots, "default", {}, void 0, !0)]);
|
|
681
682
|
}
|
|
682
|
-
const
|
|
683
|
+
const on = /* @__PURE__ */ T(bt, [["render", $t], ["__scopeId", "data-v-d06aac1f"]]);
|
|
683
684
|
export {
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
685
|
+
Yt as A,
|
|
686
|
+
Zt as C,
|
|
687
|
+
en as D,
|
|
688
|
+
tn as G,
|
|
688
689
|
dt as H,
|
|
689
|
-
|
|
690
|
-
|
|
690
|
+
nn as S,
|
|
691
|
+
on as W,
|
|
691
692
|
Ie as a,
|
|
692
693
|
nt as b
|
|
693
694
|
};
|
package/dist/authkit.js
CHANGED
|
@@ -1,40 +1,42 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { A as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
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-r2oVuCSV.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";
|
|
6
7
|
import { L as N, a as Q, b as W, u as X } from "./useLegalLinks-OGVbqXVy.js";
|
|
7
|
-
import { u as $ } from "./
|
|
8
|
+
import { u as $ } from "./useAuthkitUsersProfile-FJnHJad-.js";
|
|
9
|
+
import { u as it } from "./useAuthkitCreateAndUpdate-DomftQMK.js";
|
|
8
10
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
a as AuthkitAppSetting,
|
|
12
|
+
l as AuthkitAuth,
|
|
13
|
+
m as AuthkitAuthContainer,
|
|
14
|
+
g as AuthkitAuthModal,
|
|
15
|
+
S as AuthkitAuthTitle,
|
|
14
16
|
O as AuthkitAuthorize,
|
|
15
17
|
c as AuthkitBindEmail,
|
|
16
18
|
s as AuthkitBindPhone,
|
|
17
19
|
u as AuthkitEmailBinding,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
e as AuthkitEmailUpdate,
|
|
21
|
+
h as AuthkitEmailVerify,
|
|
20
22
|
L as AuthkitGithubBinding,
|
|
21
23
|
A as AuthkitOAuthBinding,
|
|
22
24
|
U as AuthkitOAuthCallbackProvider,
|
|
23
25
|
w as AuthkitOauthCallback,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
x as AuthkitOauthItem,
|
|
27
|
+
E as AuthkitOauthList,
|
|
28
|
+
b as AuthkitPasswordAuth,
|
|
29
|
+
r as AuthkitPasswordUpdate,
|
|
28
30
|
B as AuthkitPasswordUpdateAndVerify,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
o as AuthkitPersonalInformation,
|
|
32
|
+
k as AuthkitPhoneBinding,
|
|
31
33
|
C as AuthkitPhonePasswordUpdateAndVerify,
|
|
32
|
-
|
|
34
|
+
n as AuthkitPhoneVerify,
|
|
33
35
|
y as AuthkitProvider,
|
|
34
36
|
I as AuthkitResetPassword,
|
|
35
37
|
d as AuthkitSendVerifyCode,
|
|
36
38
|
V as AuthkitServiceAgreementAndPrivacyProtection,
|
|
37
|
-
|
|
39
|
+
p as AuthkitSetPassword,
|
|
38
40
|
_ as AuthkitSignIn,
|
|
39
41
|
v as AuthkitSignInPhone,
|
|
40
42
|
G as AuthkitSignUp,
|
|
@@ -44,12 +46,12 @@ export {
|
|
|
44
46
|
N as LEGAL_DOCS,
|
|
45
47
|
Q as LEGAL_DOC_KEYS,
|
|
46
48
|
W as buildLegalLinkUrl,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
q as useAuthkitAppsAuthPageInfo,
|
|
50
|
+
K as useAuthkitAuth,
|
|
51
|
+
Y as useAuthkitAuthModal,
|
|
52
|
+
it as useAuthkitCreateAndUpdate,
|
|
53
|
+
$ as useAuthkitUsersProfile,
|
|
54
|
+
H as useEnsureAuthenticated,
|
|
53
55
|
X as useLegalLinks,
|
|
54
|
-
|
|
56
|
+
P as useOauth
|
|
55
57
|
};
|
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-CYYbzXj0.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-BUkwlbzN.js";
|
|
4
4
|
import { L } from "./Logo-D7fyXyB-.js";
|
|
@@ -52,6 +52,15 @@ export interface BillingSubscription {
|
|
|
52
52
|
endedAt?: string | null;
|
|
53
53
|
createAt?: string;
|
|
54
54
|
}
|
|
55
|
+
export interface BillingTrial {
|
|
56
|
+
id: string;
|
|
57
|
+
productId: string;
|
|
58
|
+
productName?: string;
|
|
59
|
+
priceId?: string;
|
|
60
|
+
status: string;
|
|
61
|
+
startAt?: string | null;
|
|
62
|
+
endAt?: string | null;
|
|
63
|
+
}
|
|
55
64
|
export interface BillingFeatureItem {
|
|
56
65
|
title: string;
|
|
57
66
|
description: string;
|
|
@@ -177,6 +186,23 @@ export declare function useBillingPlans(defaultInterval?: BillingInterval | Bill
|
|
|
177
186
|
endedAt?: string | null | undefined;
|
|
178
187
|
createAt?: string | undefined;
|
|
179
188
|
} | null>;
|
|
189
|
+
currentTrial: import('vue').Ref<{
|
|
190
|
+
id: string;
|
|
191
|
+
productId: string;
|
|
192
|
+
productName?: string | undefined;
|
|
193
|
+
priceId?: string | undefined;
|
|
194
|
+
status: string;
|
|
195
|
+
startAt?: string | null | undefined;
|
|
196
|
+
endAt?: string | null | undefined;
|
|
197
|
+
} | null, BillingTrial | {
|
|
198
|
+
id: string;
|
|
199
|
+
productId: string;
|
|
200
|
+
productName?: string | undefined;
|
|
201
|
+
priceId?: string | undefined;
|
|
202
|
+
status: string;
|
|
203
|
+
startAt?: string | null | undefined;
|
|
204
|
+
endAt?: string | null | undefined;
|
|
205
|
+
} | null>;
|
|
180
206
|
listLoading: import('vue').Ref<boolean, boolean>;
|
|
181
207
|
currentLoading: import('vue').Ref<boolean, boolean>;
|
|
182
208
|
billingInterval: import('vue').Ref<`day:${number}` | `month:${number}` | `year:${number}` | `week:${number}`, `day:${number}` | `month:${number}` | `year:${number}` | `week:${number}`>;
|
|
@@ -185,13 +211,15 @@ export declare function useBillingPlans(defaultInterval?: BillingInterval | Bill
|
|
|
185
211
|
isCurrentPlan: (plan: BillingPlan) => boolean;
|
|
186
212
|
isSameProduct: (plan: BillingPlan) => boolean;
|
|
187
213
|
isRecommendedPlan: (plan: BillingPlan) => boolean;
|
|
214
|
+
isFreePlan: (plan: BillingPlan) => boolean;
|
|
215
|
+
isPlanActionDisabled: (plan: BillingPlan) => boolean;
|
|
188
216
|
getDisplayPrice: (plan: BillingPlan) => number;
|
|
189
217
|
getDisplayOriginalPrice: (plan: BillingPlan) => number | undefined;
|
|
190
218
|
getDisplayCycle: (plan: BillingPlan) => string;
|
|
191
219
|
getPromotionLabel: (plan: BillingPlan) => string;
|
|
192
220
|
getBadgeLabel: (plan: BillingPlan) => "" | "当前方案" | "最受欢迎";
|
|
193
221
|
getBadgeLabels: (plan: BillingPlan) => BillingPlanBadge[];
|
|
194
|
-
getButtonLabel: (plan: BillingPlan) => "当前方案" | "立即订阅" | "切换周期" | "升级方案" | "切换方案";
|
|
222
|
+
getButtonLabel: (plan: BillingPlan) => "当前方案" | "已订阅付费方案" | "免费开通" | "免费注册" | "立即订阅" | "切换周期" | "升级方案" | "切换方案";
|
|
195
223
|
getPlanSummary: (plan: BillingPlan, index: number) => string;
|
|
196
224
|
getFeatureItems: (features: BillingProductFeature[]) => BillingFeatureItem[];
|
|
197
225
|
getFeatureGroups: (features: BillingProductFeature[]) => BillingFeatureGroup[];
|
package/dist/composables.js
CHANGED
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import { u as a
|
|
2
|
-
import { g as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as x } from "./
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
1
|
+
import { u as a } from "./useAuthkitAuth-Doj5VYjK.js";
|
|
2
|
+
import { g as u, a as t, b as r, s as i, c as n, d as f, u as l } from "./apiClients-KFp-rs-C.js";
|
|
3
|
+
import { u as m } from "./useLegalLinks-OGVbqXVy.js";
|
|
4
|
+
import { u as g } from "./useAuthkitUsersProfile-FJnHJad-.js";
|
|
5
|
+
import { u as x } from "./useAuthkitAppsAuthPageInfo-B9_VzVkQ.js";
|
|
6
|
+
import { u as b } from "./useAuthkitCreateAndUpdate-DomftQMK.js";
|
|
7
|
+
import { u as c } from "./useMessageNotifications-DeHFJFcX.js";
|
|
8
|
+
import { u as P, a as M } from "./useDownloads-CzC3gLUV.js";
|
|
9
|
+
import { u as S } from "./useTableHandle-jw0P7-2a.js";
|
|
10
|
+
import { f as w, a as E, g as T, u as R, b as v, c as D, d as G, e as L, w as y } from "./useSEO-BZhVKEZr.js";
|
|
11
|
+
import { u as H } from "./useUploadCos-keDKcs0j.js";
|
|
12
|
+
import { u as N } from "./useUserMenu-ClPBlvaM.js";
|
|
13
|
+
import { u as j, a as q } from "./useSubscriptionCheckout-BubIsxjO.js";
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
w as findActiveMenuPath,
|
|
16
|
+
E as findMenuPath,
|
|
17
|
+
T as getPathOnly,
|
|
18
|
+
u as globalConfig,
|
|
19
|
+
t as globalSEOConfig,
|
|
20
|
+
r as globalThemeRef,
|
|
21
|
+
i as setGlobalConfig,
|
|
22
|
+
n as setGlobalSEOConfig,
|
|
23
|
+
f as setTheme,
|
|
24
|
+
R as useActiveDoc,
|
|
25
|
+
v as useAuthMenu,
|
|
26
|
+
x as useAuthkitAppsAuthPageInfo,
|
|
26
27
|
a as useAuthkitAuth,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
l as useAuthkitAuthModal,
|
|
29
|
+
b as useAuthkitCreateAndUpdate,
|
|
30
|
+
g as useAuthkitUsersProfile,
|
|
31
|
+
j as useBillingPlans,
|
|
32
|
+
P as useCommonCreateAndUpdate,
|
|
33
|
+
M as useDownloads,
|
|
34
|
+
m as useLegalLinks,
|
|
35
|
+
c as useMessageNotifications,
|
|
36
|
+
D as useRoutePermission,
|
|
37
|
+
G as useRouteSEO,
|
|
38
|
+
L as useSEO,
|
|
39
|
+
q as useSubscriptionCheckout,
|
|
40
|
+
S as useTableHandle,
|
|
41
|
+
H as useUploadCos,
|
|
42
|
+
N as useUserMenu,
|
|
43
|
+
y as withViewTransition
|
|
43
44
|
};
|