@huyooo/ui 2.0.1 → 2.0.4
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-DCQH9IpU.js → AuthkitAppSetting-D_94iUEG.js} +8 -8
- package/dist/{Contact-C7ROEqe-.js → Contact-CBGSJC2q.js} +3 -3
- package/dist/{CustomTable-GgvDEidl.js → CustomTable-HDwqEcmB.js} +1 -1
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-CnvQjQFT.js +1516 -0
- package/dist/{LegalDocViewer-D_QUh0uf.js → LegalDocViewer-CytxFZKJ.js} +10 -10
- package/dist/{MessageHandle-DKoySsCG.js → MessageHandle-BUufez4S.js} +3 -3
- package/dist/{MessageList-HSiKkUoD.js → MessageList-rttvPmxV.js} +1 -1
- package/dist/{PaySubscriptions-NcATVJGm.js → PaySubscriptions-BSkcUqHk.js} +6 -6
- package/dist/{PricingPlans-CZn6eJby.js → PricingPlans-CyFvgf18.js} +4 -4
- package/dist/{ReferrerReferees-BoOQIssE.js → ReferrerReferees-BU9IEQgz.js} +4 -4
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-CkS2S9Xc.js → Upload.vue_vue_type_script_setup_true_lang-oa6LJgCY.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BrNx6JWe.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-CawueoIY.js} +9 -9
- package/dist/{WidthContainer-BJLdZfzF.js → WidthContainer-DOD3wnYO.js} +10 -10
- package/dist/{apiClients-CR-hEwog.js → apiClients-Ctcq8NZs.js} +5 -5
- package/dist/authkit.js +10 -10
- package/dist/common/globalConfig.d.ts +0 -12
- package/dist/common.js +2 -2
- package/dist/components/Feedback/FeedbackDetails.vue.d.ts +8 -35
- package/dist/composables/SEO/useAppSEO.d.ts +3 -0
- package/dist/composables/SEO/usePageSEO.d.ts +4 -0
- package/dist/composables/SEO/useResolvedPageSEO.d.ts +3 -0
- package/dist/composables.d.ts +4 -2
- package/dist/composables.js +45 -47
- package/dist/feedback.d.ts +1 -0
- package/dist/feedback.js +2 -2
- package/dist/{fetchAuthPageAboutUs-BnKWq_TL.js → fetchAuthPageAboutUs-CP5a7jIo.js} +2 -2
- package/dist/{index-BhVwozr0.js → index-Cn6LcfZO.js} +1 -1
- package/dist/main.d.ts +2 -2
- package/dist/main.js +245 -247
- package/dist/message.js +5 -5
- package/dist/pay.js +4 -4
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/{runtime-DMCyhVcI.js → runtime-qs4IasEB.js} +32 -38
- package/dist/runtime.d.ts +1 -2
- package/dist/style.css +1 -1
- package/dist/types/feedbackApi.d.ts +3 -0
- package/dist/types/seo.d.ts +15 -0
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-Byu0yvrx.js → useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js} +1 -1
- package/dist/{useAuthkitAuth-M2vTpEcb.js → useAuthkitAuth-BPTZUSkM.js} +2 -2
- package/dist/{useAuthkitCreateAndUpdate-D2_Bdazi.js → useAuthkitCreateAndUpdate-Bbv7vZZn.js} +1 -1
- package/dist/{useAuthkitUsersProfile-DdUAENic.js → useAuthkitUsersProfile-CW_exa7E.js} +2 -2
- package/dist/{useBillingStatusOptions-Jq6Wqfxb.js → useBillingStatusOptions-Br-iL77Z.js} +1 -1
- package/dist/{useEnsureAuthenticated-Hel8hWLJ.js → useEnsureAuthenticated-CncOvj2H.js} +2 -2
- package/dist/{useLegalDocs-BOjqYRyQ.js → useLegalDocs-BZlntAI7.js} +2 -2
- package/dist/{useMessageNotifications-AznFeFMD.js → useMessageNotifications-D9uikt21.js} +1 -1
- package/dist/usePageSEO-DwhbUUjW.js +189 -0
- package/dist/{useRoutePermission-BmUXTwQc.js → useRoutePermission-BrQX7NTq.js} +2 -2
- package/dist/{useSubscriptionCheckout-3ivcOcgC.js → useSubscriptionCheckout-BDDCRxSs.js} +3 -3
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-C1hPqnNT.js +0 -1531
- package/dist/composables/useSEO.d.ts +0 -46
- package/dist/useSEO-Chz4Zxuu.js +0 -224
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface AppSEOConfig {
|
|
2
|
+
siteName: string;
|
|
3
|
+
titleSuffix?: string;
|
|
4
|
+
locale?: string;
|
|
5
|
+
defaultDescription?: string;
|
|
6
|
+
defaultImage?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface PageSEOConfig {
|
|
9
|
+
title?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
keywords?: string;
|
|
12
|
+
image?: string;
|
|
13
|
+
url?: string;
|
|
14
|
+
type?: 'website' | 'article' | 'product';
|
|
15
|
+
}
|
package/dist/upload.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as o } from "./Upload.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import {
|
|
1
|
+
import { _ as o } from "./Upload.vue_vue_type_script_setup_true_lang-oa6LJgCY.js";
|
|
2
|
+
import { b as s, d as p } from "./runtime-qs4IasEB.js";
|
|
3
3
|
export {
|
|
4
4
|
o as Upload,
|
|
5
5
|
s as createBrowserCosTransport,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as u, computed as p, nextTick as _, readonly as x } from "vue";
|
|
2
|
-
import { o as M, g as m, r as $, s as E } from "./apiClients-
|
|
3
|
-
import { u as D } from "./useAuthkitAppsAuthPageInfo-
|
|
2
|
+
import { o as M, g as m, r as $, s as E } from "./apiClients-Ctcq8NZs.js";
|
|
3
|
+
import { u as D } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
|
|
4
4
|
const g = u(!1), w = u(!1);
|
|
5
5
|
let I;
|
|
6
6
|
const G = "请先阅读并同意用户协议与隐私政策", K = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as l, computed as r } from "vue";
|
|
2
|
-
import { g as f } from "./apiClients-
|
|
3
|
-
import { u as c } from "./useAuthkitAuth-
|
|
2
|
+
import { g as f } from "./apiClients-Ctcq8NZs.js";
|
|
3
|
+
import { u as c } from "./useAuthkitAuth-BPTZUSkM.js";
|
|
4
4
|
const t = l(null), u = l(!1), o = l(!1), v = r(() => !!t.value);
|
|
5
5
|
async function p() {
|
|
6
6
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as f } from "vue";
|
|
2
|
-
import { u as r } from "./useAuthkitAuth-
|
|
3
|
-
import { u as d } from "./apiClients-
|
|
2
|
+
import { u as r } from "./useAuthkitAuth-BPTZUSkM.js";
|
|
3
|
+
import { u as d } from "./apiClients-Ctcq8NZs.js";
|
|
4
4
|
const A = "jwtToken";
|
|
5
5
|
let e = null, i = !1;
|
|
6
6
|
async function h(n) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as f } from "vue";
|
|
2
|
-
import { u as d } from "./useAuthkitAppsAuthPageInfo-
|
|
3
|
-
import { g as L } from "./runtime-
|
|
2
|
+
import { u as d } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
|
|
3
|
+
import { g as L } from "./runtime-qs4IasEB.js";
|
|
4
4
|
const c = {
|
|
5
5
|
userServiceAgreement: "用户服务协议",
|
|
6
6
|
privacyPolicy: "隐私协议",
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import "./apiClients-Ctcq8NZs.js";
|
|
3
|
+
import { Message as y } from "@arco-design/web-vue";
|
|
4
|
+
import { ref as a, computed as s, toValue as A } from "vue";
|
|
5
|
+
import { u as N } from "./runtime-qs4IasEB.js";
|
|
6
|
+
import { useHead as g, useSeoMeta as w } from "@unhead/vue";
|
|
7
|
+
import { useRoute as E } from "vue-router";
|
|
8
|
+
function M(t) {
|
|
9
|
+
const e = a(!1), l = a(), n = a(!1), i = a(""), d = a("");
|
|
10
|
+
function c(o) {
|
|
11
|
+
y.success(o), n.value = !1, e.value = !1, t("confirm");
|
|
12
|
+
}
|
|
13
|
+
function u() {
|
|
14
|
+
n.value = !1, t("cancel");
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
loading: e,
|
|
18
|
+
formRef: l,
|
|
19
|
+
submitSuccess: c,
|
|
20
|
+
modelType: i,
|
|
21
|
+
changeType: d,
|
|
22
|
+
show: n,
|
|
23
|
+
handleCancel: u
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function _(t) {
|
|
27
|
+
const e = a(t), l = a(!1), n = a(!1), i = a({
|
|
28
|
+
total: 0,
|
|
29
|
+
current: 1,
|
|
30
|
+
pageSize: 10,
|
|
31
|
+
showTotal: !0,
|
|
32
|
+
showPageSize: !0
|
|
33
|
+
}), d = a([]), c = a(), u = a(Symbol("key")), o = a(), p = a(Symbol("key")), f = a(), v = a(Symbol("key"));
|
|
34
|
+
function b(r) {
|
|
35
|
+
c.value.setData(r, !0, "edit");
|
|
36
|
+
}
|
|
37
|
+
function h(r) {
|
|
38
|
+
f.value.setData(r, !0, "view");
|
|
39
|
+
}
|
|
40
|
+
function D() {
|
|
41
|
+
c.value.setData(null, !0, "create");
|
|
42
|
+
}
|
|
43
|
+
const k = (r, P) => {
|
|
44
|
+
i.value.current = r, i.value.pageSize = P;
|
|
45
|
+
};
|
|
46
|
+
function O() {
|
|
47
|
+
u.value = Symbol("key");
|
|
48
|
+
}
|
|
49
|
+
function T() {
|
|
50
|
+
p.value = Symbol("key");
|
|
51
|
+
}
|
|
52
|
+
function C(r) {
|
|
53
|
+
o.value.setData(r, !0);
|
|
54
|
+
}
|
|
55
|
+
function R() {
|
|
56
|
+
v.value = Symbol("key");
|
|
57
|
+
}
|
|
58
|
+
function U(r) {
|
|
59
|
+
f.value.setData(r, !0);
|
|
60
|
+
}
|
|
61
|
+
function L(r) {
|
|
62
|
+
y.success(r), n.value = !1;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
CreateAndUpdateRef: c,
|
|
66
|
+
CreateAndUpdateKey: u,
|
|
67
|
+
OperationLogRef: o,
|
|
68
|
+
OperationLogKey: p,
|
|
69
|
+
DetailsRef: f,
|
|
70
|
+
DetailsKey: v,
|
|
71
|
+
pagination: i,
|
|
72
|
+
title: e,
|
|
73
|
+
edit: b,
|
|
74
|
+
create: D,
|
|
75
|
+
view: h,
|
|
76
|
+
dataSource: d,
|
|
77
|
+
setPage: k,
|
|
78
|
+
cancel: O,
|
|
79
|
+
OperationLogCancel: T,
|
|
80
|
+
openOperationLog: C,
|
|
81
|
+
DetailsCancel: R,
|
|
82
|
+
openDetails: U,
|
|
83
|
+
loading: l,
|
|
84
|
+
submitRemove: L,
|
|
85
|
+
removeLoading: n
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function G() {
|
|
89
|
+
const {
|
|
90
|
+
config: t
|
|
91
|
+
} = N(), e = a([]), l = a(!1), n = a(""), i = a("");
|
|
92
|
+
async function d() {
|
|
93
|
+
l.value = !0, n.value = "";
|
|
94
|
+
try {
|
|
95
|
+
const u = await (await fetch(`${t.onesPrefixUrl}/releases/latest`, {
|
|
96
|
+
method: "POST",
|
|
97
|
+
headers: {
|
|
98
|
+
"Content-Type": "application/json",
|
|
99
|
+
"app-id": t.appId
|
|
100
|
+
},
|
|
101
|
+
body: JSON.stringify({})
|
|
102
|
+
})).json();
|
|
103
|
+
i.value = u.version, e.value = u.downloads.map((o) => {
|
|
104
|
+
const p = {
|
|
105
|
+
id: o.id,
|
|
106
|
+
name: o.name,
|
|
107
|
+
description: o.description,
|
|
108
|
+
version: o.version,
|
|
109
|
+
updateDate: o.updateDate,
|
|
110
|
+
icon: "",
|
|
111
|
+
downloadUrl: o.downloadUrl,
|
|
112
|
+
platform: o.platform,
|
|
113
|
+
requirements: o.requirements
|
|
114
|
+
};
|
|
115
|
+
return o.arch && (p.arch = o.arch), o.badge && (p.badge = o.badge), p;
|
|
116
|
+
});
|
|
117
|
+
} catch {
|
|
118
|
+
n.value = "获取版本信息失败,请刷新重试";
|
|
119
|
+
} finally {
|
|
120
|
+
l.value = !1;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
downloads: e,
|
|
125
|
+
loading: l,
|
|
126
|
+
error: n,
|
|
127
|
+
version: i,
|
|
128
|
+
fetchDownloads: d
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
function m(t) {
|
|
132
|
+
return !t || t.length <= 155 ? t : `${t.substring(0, 152)}...`;
|
|
133
|
+
}
|
|
134
|
+
function I(t) {
|
|
135
|
+
return t === "article" ? "article" : "website";
|
|
136
|
+
}
|
|
137
|
+
function S(t) {
|
|
138
|
+
const e = s(() => A(t));
|
|
139
|
+
g({
|
|
140
|
+
title: s(() => e.value.title),
|
|
141
|
+
link: s(() => e.value.url ? [{
|
|
142
|
+
rel: "canonical",
|
|
143
|
+
href: e.value.url
|
|
144
|
+
}] : [])
|
|
145
|
+
}), w({
|
|
146
|
+
description: s(() => m(e.value.description)),
|
|
147
|
+
keywords: s(() => e.value.keywords),
|
|
148
|
+
ogTitle: s(() => e.value.title),
|
|
149
|
+
ogDescription: s(() => m(e.value.description)),
|
|
150
|
+
ogType: s(() => I(e.value.type)),
|
|
151
|
+
ogUrl: s(() => e.value.url),
|
|
152
|
+
ogImage: s(() => e.value.image),
|
|
153
|
+
twitterCard: "summary_large_image",
|
|
154
|
+
twitterTitle: s(() => e.value.title),
|
|
155
|
+
twitterDescription: s(() => m(e.value.description)),
|
|
156
|
+
twitterImage: s(() => e.value.image)
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function J(t) {
|
|
160
|
+
const e = E(), l = s(() => ({
|
|
161
|
+
title: typeof e.meta.title == "string" ? e.meta.title : void 0,
|
|
162
|
+
description: typeof e.meta.description == "string" ? e.meta.description : t.defaultDescription,
|
|
163
|
+
keywords: typeof e.meta.keywords == "string" ? e.meta.keywords : void 0,
|
|
164
|
+
image: typeof e.meta.image == "string" ? e.meta.image : t.defaultImage,
|
|
165
|
+
url: typeof e.meta.url == "string" ? e.meta.url : void 0,
|
|
166
|
+
type: e.meta.type === "article" || e.meta.type === "product" || e.meta.type === "website" ? e.meta.type : "website"
|
|
167
|
+
}));
|
|
168
|
+
g({
|
|
169
|
+
htmlAttrs: t.locale ? {
|
|
170
|
+
lang: t.locale
|
|
171
|
+
} : void 0,
|
|
172
|
+
titleTemplate(n) {
|
|
173
|
+
return !n || n === t.siteName ? t.siteName : `${n}${t.titleSuffix ?? ""}`;
|
|
174
|
+
}
|
|
175
|
+
}), w({
|
|
176
|
+
ogSiteName: t.siteName,
|
|
177
|
+
ogLocale: t.locale
|
|
178
|
+
}), S(l);
|
|
179
|
+
}
|
|
180
|
+
function V(t) {
|
|
181
|
+
S(t);
|
|
182
|
+
}
|
|
183
|
+
export {
|
|
184
|
+
M as a,
|
|
185
|
+
G as b,
|
|
186
|
+
V as c,
|
|
187
|
+
_ as d,
|
|
188
|
+
J as u
|
|
189
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as I, computed as w, watch as S } from "vue";
|
|
2
2
|
import { useRouter as M, useRoute as T } from "vue-router";
|
|
3
|
-
import { u as k } from "./useAuthkitAppsAuthPageInfo-
|
|
4
|
-
import { u as L } from "./useAuthkitUsersProfile-
|
|
3
|
+
import { u as k } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
|
|
4
|
+
import { u as L } from "./useAuthkitUsersProfile-CW_exa7E.js";
|
|
5
5
|
const y = I({
|
|
6
6
|
key: "",
|
|
7
7
|
name: ""
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as g, computed as q } from "vue";
|
|
2
|
-
import { d as z } from "./useBillingStatusOptions-
|
|
3
|
-
import { g as $ } from "./apiClients-
|
|
2
|
+
import { d as z } from "./useBillingStatusOptions-Br-iL77Z.js";
|
|
3
|
+
import { g as $ } from "./apiClients-Ctcq8NZs.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { Message as h } from "@arco-design/web-vue";
|
|
6
|
-
import { u as H } from "./useEnsureAuthenticated-
|
|
6
|
+
import { u as H } from "./useEnsureAuthenticated-CncOvj2H.js";
|
|
7
7
|
function D(e) {
|
|
8
8
|
var i;
|
|
9
9
|
const r = (i = e == null ? void 0 : e.metadata) == null ? void 0 : i.originalPrice;
|
package/dist/user.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-CawueoIY.js";
|
|
2
2
|
export {
|
|
3
3
|
a as UserAccountMenu,
|
|
4
4
|
n as UserAvatar,
|