@huyooo/ui 0.11.6 → 0.11.9
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-DWqkkLzP.js +276 -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/components/Pay/PricingPlans.vue.d.ts +2 -0
- 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-DmxORGSV.js +372 -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,276 @@
|
|
|
1
|
+
import { defineComponent as V, computed as B, openBlock as i, createBlock as $, withCtx as m, createVNode as f, onMounted as ae, resolveDirective as ce, createElementBlock as n, withDirectives as oe, unref as t, normalizeClass as v, createElementVNode as s, toDisplayString as l, Fragment as P, renderList as g, createCommentVNode as c, createTextVNode as N } from "vue";
|
|
2
|
+
import { L as ue, a as _e } from "./LandingPageFAQ-CZJXvor9.js";
|
|
3
|
+
import { L as de } from "./LandingPageSectionHeader-D_74W4My.js";
|
|
4
|
+
import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import "./index-D3Kp6R4z.js";
|
|
7
|
+
/* empty css */
|
|
8
|
+
import { Spin as Pe, Button as z } from "@arco-design/web-vue";
|
|
9
|
+
import { Icon as Q } from "@iconify/vue";
|
|
10
|
+
import { u as ge, a as fe } from "./useSubscriptionCheckout-DmxORGSV.js";
|
|
11
|
+
import { u as me } from "./useEnsureAuthenticated-D78tsddF.js";
|
|
12
|
+
const pe = /* @__PURE__ */ V({
|
|
13
|
+
__name: "PricingFAQ",
|
|
14
|
+
props: {
|
|
15
|
+
title: {
|
|
16
|
+
default: "订阅常见问题"
|
|
17
|
+
},
|
|
18
|
+
subtitle: {
|
|
19
|
+
default: "关于试用、付款、配额、升级和取消订阅的说明。"
|
|
20
|
+
},
|
|
21
|
+
activeKeys: {
|
|
22
|
+
default: () => []
|
|
23
|
+
},
|
|
24
|
+
faqItems: {
|
|
25
|
+
default: void 0
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
setup(o) {
|
|
29
|
+
const p = [{
|
|
30
|
+
question: "可以先试用再付费吗?",
|
|
31
|
+
answer: "可以。支持试用的方案会在卡片按钮上标明试用天数。试用期间可使用对应方案能力,到期后再决定是否继续订阅。"
|
|
32
|
+
}, {
|
|
33
|
+
question: "月付和年付有什么区别?",
|
|
34
|
+
answer: "月付适合短期验证和灵活使用,年付适合稳定团队和长期项目,通常会有更优惠的价格。"
|
|
35
|
+
}, {
|
|
36
|
+
question: "已有订阅后可以升级或切换方案吗?",
|
|
37
|
+
answer: "可以。升级或切换方案时,系统会根据当前订阅和新方案计算差额;如需补差价,会跳转到支付页面完成支付。"
|
|
38
|
+
}, {
|
|
39
|
+
question: "取消订阅后还能继续使用吗?",
|
|
40
|
+
answer: "可以。取消订阅后,当前计费周期内仍可继续使用,周期结束后订阅权益将停止续期。"
|
|
41
|
+
}, {
|
|
42
|
+
question: "配额什么时候重置?",
|
|
43
|
+
answer: "配额按订阅周期重置,不一定是自然月月初。例如您在 4 月 15 日订阅月付方案,下一次配额重置通常发生在 5 月 15 日。"
|
|
44
|
+
}, {
|
|
45
|
+
question: "不同方案的技术支持有什么区别?",
|
|
46
|
+
answer: "基础方案适合个人和轻量团队,包含常规支持;更高等级方案面向正式团队和生产场景,通常包含更高优先级支持。"
|
|
47
|
+
}, {
|
|
48
|
+
question: "是否支持退款?",
|
|
49
|
+
answer: "订阅可随时取消。退款规则以付费服务协议为准,如遇到重复扣费或异常支付,可以联系支持团队处理。"
|
|
50
|
+
}, {
|
|
51
|
+
question: "使用订阅服务有什么限制?",
|
|
52
|
+
answer: "请按正常业务场景使用服务,禁止共享、转售订阅或用于违法违规场景。严重滥用可能导致服务受限或账户终止。"
|
|
53
|
+
}], y = o, h = B(() => y.faqItems ?? p);
|
|
54
|
+
return (I, k) => (i(), $(ue, {
|
|
55
|
+
class: "PricingFAQ"
|
|
56
|
+
}, {
|
|
57
|
+
BlockHeader: m(() => [f(de, {
|
|
58
|
+
title: o.title,
|
|
59
|
+
subtitle: o.subtitle
|
|
60
|
+
}, null, 8, ["title", "subtitle"])]),
|
|
61
|
+
BlockBody: m(() => [f(_e, {
|
|
62
|
+
"active-keys": o.activeKeys,
|
|
63
|
+
"faq-items": h.value
|
|
64
|
+
}, null, 8, ["active-keys", "faq-items"])]),
|
|
65
|
+
_: 1
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
}), Ye = /* @__PURE__ */ G(pe, [["__scopeId", "data-v-fcab2f05"]]), ve = {
|
|
69
|
+
class: "PricingPlans"
|
|
70
|
+
}, ye = {
|
|
71
|
+
class: "PricingPlans__trialMain"
|
|
72
|
+
}, he = {
|
|
73
|
+
class: "PricingPlans__trialCopy"
|
|
74
|
+
}, ke = {
|
|
75
|
+
key: 0,
|
|
76
|
+
class: "PricingPlans__trialFeatures"
|
|
77
|
+
}, be = {
|
|
78
|
+
class: "PricingPlans__trialAction"
|
|
79
|
+
}, Ce = {
|
|
80
|
+
key: 1,
|
|
81
|
+
class: "PricingPlans__toolbar"
|
|
82
|
+
}, Be = {
|
|
83
|
+
key: 0,
|
|
84
|
+
class: "PricingPlans__toggle",
|
|
85
|
+
role: "tablist",
|
|
86
|
+
"aria-label": "计费周期"
|
|
87
|
+
}, Ie = ["onClick"], we = {
|
|
88
|
+
key: 0,
|
|
89
|
+
class: "PricingPlans__toggleBadge"
|
|
90
|
+
}, qe = {
|
|
91
|
+
key: 1,
|
|
92
|
+
class: "PricingPlans__note"
|
|
93
|
+
}, Le = {
|
|
94
|
+
key: 2,
|
|
95
|
+
class: "PricingPlans__grid"
|
|
96
|
+
}, De = {
|
|
97
|
+
class: "PricingPlans__badgeRow"
|
|
98
|
+
}, Fe = {
|
|
99
|
+
class: "PricingPlans__header"
|
|
100
|
+
}, Ae = {
|
|
101
|
+
class: "PricingPlans__price"
|
|
102
|
+
}, Ee = {
|
|
103
|
+
key: 0,
|
|
104
|
+
class: "PricingPlans__originalPrice"
|
|
105
|
+
}, Se = {
|
|
106
|
+
class: "PricingPlans__amount"
|
|
107
|
+
}, Te = {
|
|
108
|
+
class: "PricingPlans__cycle"
|
|
109
|
+
}, xe = {
|
|
110
|
+
key: 0,
|
|
111
|
+
class: "PricingPlans__promotion"
|
|
112
|
+
}, Ne = {
|
|
113
|
+
class: "PricingPlans__summary"
|
|
114
|
+
}, ze = {
|
|
115
|
+
class: "PricingPlans__featureGroups"
|
|
116
|
+
}, Qe = {
|
|
117
|
+
class: "PricingPlans__features"
|
|
118
|
+
}, Ve = {
|
|
119
|
+
key: 3,
|
|
120
|
+
class: "PricingPlans__empty"
|
|
121
|
+
}, $e = /* @__PURE__ */ V({
|
|
122
|
+
__name: "PricingPlans",
|
|
123
|
+
props: {
|
|
124
|
+
appName: {
|
|
125
|
+
default: "Huyooo"
|
|
126
|
+
},
|
|
127
|
+
defaultInterval: {
|
|
128
|
+
default: "month"
|
|
129
|
+
},
|
|
130
|
+
note: {
|
|
131
|
+
default: ""
|
|
132
|
+
},
|
|
133
|
+
trialEntryUrl: {
|
|
134
|
+
default: "/"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
setup(o) {
|
|
138
|
+
const p = o, {
|
|
139
|
+
products: y,
|
|
140
|
+
plans: h,
|
|
141
|
+
currentSubscription: I,
|
|
142
|
+
listLoading: k,
|
|
143
|
+
billingInterval: H,
|
|
144
|
+
billingIntervalTabs: w,
|
|
145
|
+
setBillingInterval: M,
|
|
146
|
+
isCurrentPlan: q,
|
|
147
|
+
isRecommendedPlan: L,
|
|
148
|
+
isFreePlan: U,
|
|
149
|
+
isPlanActionDisabled: K,
|
|
150
|
+
getDisplayPrice: O,
|
|
151
|
+
getDisplayOriginalPrice: D,
|
|
152
|
+
getDisplayCycle: R,
|
|
153
|
+
getPromotionLabel: F,
|
|
154
|
+
getBadgeLabels: j,
|
|
155
|
+
getButtonLabel: J,
|
|
156
|
+
getPlanSummary: A,
|
|
157
|
+
getFeatureGroups: E,
|
|
158
|
+
loadCurrentSubscription: W,
|
|
159
|
+
refresh: X
|
|
160
|
+
} = ge(p.defaultInterval), _ = B(() => {
|
|
161
|
+
var r;
|
|
162
|
+
for (const a of y.value) {
|
|
163
|
+
const d = a.prices.find((e) => e.type === "free");
|
|
164
|
+
if (d)
|
|
165
|
+
return {
|
|
166
|
+
...a,
|
|
167
|
+
features: (r = d.features) != null && r.length ? d.features : a.features,
|
|
168
|
+
selectedPrice: d
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
}), b = B(() => h.value.filter((r) => !U(r))), {
|
|
172
|
+
checkout: Y,
|
|
173
|
+
isCheckingOut: Z
|
|
174
|
+
} = fe({
|
|
175
|
+
currentSubscription: I,
|
|
176
|
+
refreshCurrentSubscription: W
|
|
177
|
+
}), {
|
|
178
|
+
ensureAuthenticated: ee,
|
|
179
|
+
isAuthenticated: te
|
|
180
|
+
} = me();
|
|
181
|
+
function ie(r) {
|
|
182
|
+
return r === 1 ? "适合团队协作与更高频使用" : "适合个人和轻量团队使用";
|
|
183
|
+
}
|
|
184
|
+
function S(r) {
|
|
185
|
+
return E(r.features).flatMap((a) => a.items).slice(0, 3);
|
|
186
|
+
}
|
|
187
|
+
function ne(r) {
|
|
188
|
+
return (r.description || A(r, 0)).replace(/^\s*\d+\s*天(?:免费)?体验[,,、\s]*/, "").replace(/^\s*免费体验[,,、\s]*/, "").trim();
|
|
189
|
+
}
|
|
190
|
+
function se() {
|
|
191
|
+
return te() ? "进入应用" : "注册即试用";
|
|
192
|
+
}
|
|
193
|
+
function le(r) {
|
|
194
|
+
return r.trim() || "/";
|
|
195
|
+
}
|
|
196
|
+
function T() {
|
|
197
|
+
window.location.href = le(p.trialEntryUrl);
|
|
198
|
+
}
|
|
199
|
+
function re() {
|
|
200
|
+
ee(T) && T();
|
|
201
|
+
}
|
|
202
|
+
return ae(() => {
|
|
203
|
+
X();
|
|
204
|
+
}), (r, a) => {
|
|
205
|
+
const d = ce("motion-slide-top");
|
|
206
|
+
return i(), n("section", ve, [oe((i(), $(t(Pe), {
|
|
207
|
+
loading: t(k),
|
|
208
|
+
tip: "数据加载中",
|
|
209
|
+
class: "PricingPlans__spin"
|
|
210
|
+
}, {
|
|
211
|
+
default: m(() => [_.value ? (i(), n("article", {
|
|
212
|
+
key: 0,
|
|
213
|
+
class: v(["PricingPlans__trial", {
|
|
214
|
+
"is-current": t(q)(_.value)
|
|
215
|
+
}])
|
|
216
|
+
}, [s("div", ye, [s("div", he, [s("h2", null, l(_.value.name), 1), s("p", null, l(ne(_.value)), 1), S(_.value).length ? (i(), n("ul", ke, [(i(!0), n(P, null, g(S(_.value), (e) => (i(), n("li", {
|
|
217
|
+
key: e.title
|
|
218
|
+
}, [f(t(Q), {
|
|
219
|
+
icon: "mingcute:check-circle-fill",
|
|
220
|
+
class: "PricingPlans__trialFeatureIcon"
|
|
221
|
+
}), s("span", null, l(e.title), 1)]))), 128))])) : c("", !0)]), s("div", be, [f(t(z), {
|
|
222
|
+
size: "large",
|
|
223
|
+
class: "PricingPlans__trialButton",
|
|
224
|
+
onClick: re
|
|
225
|
+
}, {
|
|
226
|
+
default: m(() => [N(l(se()), 1)]),
|
|
227
|
+
_: 1
|
|
228
|
+
})])])], 2)) : c("", !0), b.value.length ? (i(), n("div", Ce, [t(w).length > 1 ? (i(), n("div", Be, [(i(!0), n(P, null, g(t(w), (e) => (i(), n("button", {
|
|
229
|
+
key: e.value,
|
|
230
|
+
type: "button",
|
|
231
|
+
class: v(["PricingPlans__toggleItem", {
|
|
232
|
+
"is-active": t(H) === e.value
|
|
233
|
+
}]),
|
|
234
|
+
onClick: (C) => t(M)(e.value)
|
|
235
|
+
}, [s("span", null, l(e.label), 1), e.badge ? (i(), n("span", we, l(e.badge), 1)) : c("", !0)], 10, Ie))), 128))])) : c("", !0), o.note ? (i(), n("p", qe, l(o.note), 1)) : c("", !0)])) : c("", !0), b.value.length ? (i(), n("div", Le, [(i(!0), n(P, null, g(b.value, (e, C) => (i(), n("article", {
|
|
236
|
+
key: e.id,
|
|
237
|
+
class: v(["PricingPlans__card", {
|
|
238
|
+
"is-recommended": t(L)(e),
|
|
239
|
+
"is-current": t(q)(e)
|
|
240
|
+
}])
|
|
241
|
+
}, [s("div", De, [(i(!0), n(P, null, g(t(j)(e), (u) => (i(), n("span", {
|
|
242
|
+
key: u.type,
|
|
243
|
+
class: v(["PricingPlans__badge", `is-${u.type}`])
|
|
244
|
+
}, l(u.label), 3))), 128))]), s("div", Fe, [s("h2", null, l(e.name), 1), s("p", null, l(e.description || ie(C)), 1)]), s("div", Ae, [t(D)(e) ? (i(), n("span", Ee, " ¥" + l(t(D)(e)), 1)) : c("", !0), a[0] || (a[0] = s("span", {
|
|
245
|
+
class: "PricingPlans__currency"
|
|
246
|
+
}, "¥", -1)), s("span", Se, l(t(O)(e)), 1), s("span", Te, l(t(R)(e)), 1)]), t(F)(e) ? (i(), n("p", xe, l(t(F)(e)), 1)) : c("", !0), s("p", Ne, l(t(A)(e, C)), 1), f(t(z), {
|
|
247
|
+
long: "",
|
|
248
|
+
size: "large",
|
|
249
|
+
class: "PricingPlans__button",
|
|
250
|
+
type: t(L)(e) ? "primary" : "outline",
|
|
251
|
+
loading: t(Z)(e),
|
|
252
|
+
disabled: t(K)(e),
|
|
253
|
+
onClick: (u) => t(Y)(e)
|
|
254
|
+
}, {
|
|
255
|
+
default: m(() => [N(l(t(J)(e)), 1)]),
|
|
256
|
+
_: 2
|
|
257
|
+
}, 1032, ["type", "loading", "disabled", "onClick"]), a[1] || (a[1] = s("div", {
|
|
258
|
+
class: "PricingPlans__divider"
|
|
259
|
+
}, null, -1)), s("div", ze, [(i(!0), n(P, null, g(t(E)(e.features), (u) => (i(), n("section", {
|
|
260
|
+
key: u.title,
|
|
261
|
+
class: "PricingPlans__featureGroup"
|
|
262
|
+
}, [s("h3", null, l(u.title), 1), s("ul", Qe, [(i(!0), n(P, null, g(u.items, (x) => (i(), n("li", {
|
|
263
|
+
key: x.title
|
|
264
|
+
}, [f(t(Q), {
|
|
265
|
+
icon: "mingcute:check-circle-fill",
|
|
266
|
+
class: "PricingPlans__featureIcon"
|
|
267
|
+
}), s("span", null, l(x.title), 1)]))), 128))])]))), 128))])], 2))), 128))])) : !_.value && !t(k) ? (i(), n("div", Ve, " 当前暂无可订阅方案 ")) : c("", !0)]),
|
|
268
|
+
_: 1
|
|
269
|
+
}, 8, ["loading"])), [[d]])]);
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
}), Ze = /* @__PURE__ */ G($e, [["__scopeId", "data-v-f242bde7"]]);
|
|
273
|
+
export {
|
|
274
|
+
Ye as P,
|
|
275
|
+
Ze as a
|
|
276
|
+
};
|
|
@@ -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";
|
|
@@ -3,10 +3,12 @@ type __VLS_Props = {
|
|
|
3
3
|
appName?: string;
|
|
4
4
|
defaultInterval?: BillingInterval | BillingIntervalKey;
|
|
5
5
|
note?: string;
|
|
6
|
+
trialEntryUrl?: string;
|
|
6
7
|
};
|
|
7
8
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
9
|
appName: string;
|
|
9
10
|
defaultInterval: BillingInterval | BillingIntervalKey;
|
|
10
11
|
note: string;
|
|
12
|
+
trialEntryUrl: string;
|
|
11
13
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
12
14
|
export default _default;
|
|
@@ -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-DmxORGSV.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
|
};
|