@huyooo/ui 0.5.8 → 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AuthkitAuthModal-DOB2R0lE.js → AuthkitAuthModal-DEVS8XfG.js} +4 -4
- package/dist/{AuthkitAuthorize-BLKbcsyH.js → AuthkitAuthorize-cnC-Hl0X.js} +2 -2
- package/dist/Contact-ppttdnNW.js +204 -0
- package/dist/{FeedbackItem-TRyk9rcU.js → FeedbackItem-44CGbXN_.js} +3 -3
- package/dist/{FeedbackModal-BJx5Bzas.js → FeedbackModal-DdTqdVlw.js} +2 -2
- package/dist/{MessageHandle-DP9rvOy4.js → MessageHandle-Cagv57D0.js} +2 -2
- package/dist/{PaySubscriptions-DyHMXC_2.js → PaySubscriptions-Bva3INxJ.js} +1 -1
- package/dist/{ReferrerReferees-CxmerF3X.js → ReferrerReferees-D3qUZ62t.js} +2 -2
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-CZ8Z-NG6.js → Upload.vue_vue_type_script_setup_true_lang-9HB-tLZd.js} +2 -2
- package/dist/{UserAccountMenu-BEFQWt3O.js → UserAccountMenu-50CxuyL3.js} +1 -1
- package/dist/{UserPanel-DgSdGhj5.js → UserPanel-DHXkFUTF.js} +7 -7
- package/dist/{WidthContainer-3fyX6xI4.js → WidthContainer-D_dX_G8P.js} +87 -71
- package/dist/authkit.js +4 -4
- package/dist/common/globalConfig.d.ts +12 -0
- package/dist/common.js +1 -1
- package/dist/composables/useSEO.d.ts +46 -0
- package/dist/composables.d.ts +2 -1
- package/dist/composables.js +24 -20
- package/dist/feedback.js +2 -2
- package/dist/globalConfig-C1YOJcxa.js +22 -0
- package/dist/index.js +920 -471
- package/dist/main.d.ts +1 -0
- package/dist/message.js +2 -2
- package/dist/pay.js +1 -1
- package/dist/privateCom.d.ts +0 -1
- package/dist/privateCom.js +4 -6
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-qWOtNCda.js → useAuthkitAppsAuthPageInfo-Dfj4byB5.js} +1 -1
- package/dist/{useAuthkitUsersProfile-a-kA3R2Y.js → useAuthkitUsersProfile-Bi_zM2qG.js} +1 -1
- package/dist/useDownloads-DnMYa52H.js +73 -0
- package/dist/{useMessageNotifications-B5pXqPNh.js → useMessageNotifications-DSRanuRe.js} +1 -1
- package/dist/useSEO-CREH71xC.js +589 -0
- package/dist/{useUploadCos-yeMY5Xn0.js → useUploadCos-D5k1YLb7.js} +1 -1
- package/dist/user.js +2 -2
- package/package.json +1 -1
- package/dist/Contact-BLWzIAS4.js +0 -418
- package/dist/components/PrivateCom/useSEO.d.ts +0 -71
- package/dist/globalConfig-DKn-cF9c.js +0 -17
- package/dist/useDownloads-CHe228Vf.js +0 -87
- package/dist/useRoutePermission-BKg7oQTj.js +0 -120
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
interface SEOConfig {
|
|
2
|
-
title?: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
keywords?: string;
|
|
5
|
-
image?: string;
|
|
6
|
-
url?: string;
|
|
7
|
-
type?: 'website' | 'article' | 'product';
|
|
8
|
-
publishedTime?: string;
|
|
9
|
-
modifiedTime?: string;
|
|
10
|
-
author?: string;
|
|
11
|
-
section?: string;
|
|
12
|
-
tags?: string[];
|
|
13
|
-
}
|
|
14
|
-
export declare function useSEO(config: SEOConfig): void;
|
|
15
|
-
export declare const pageSEO: {
|
|
16
|
-
home: {
|
|
17
|
-
title: string;
|
|
18
|
-
description: string;
|
|
19
|
-
keywords: string;
|
|
20
|
-
url: string;
|
|
21
|
-
};
|
|
22
|
-
features: {
|
|
23
|
-
title: string;
|
|
24
|
-
description: string;
|
|
25
|
-
keywords: string;
|
|
26
|
-
url: string;
|
|
27
|
-
};
|
|
28
|
-
download: {
|
|
29
|
-
title: string;
|
|
30
|
-
description: string;
|
|
31
|
-
keywords: string;
|
|
32
|
-
url: string;
|
|
33
|
-
};
|
|
34
|
-
docs: {
|
|
35
|
-
title: string;
|
|
36
|
-
description: string;
|
|
37
|
-
keywords: string;
|
|
38
|
-
url: string;
|
|
39
|
-
};
|
|
40
|
-
pricing: {
|
|
41
|
-
title: string;
|
|
42
|
-
description: string;
|
|
43
|
-
keywords: string;
|
|
44
|
-
url: string;
|
|
45
|
-
};
|
|
46
|
-
about: {
|
|
47
|
-
title: string;
|
|
48
|
-
description: string;
|
|
49
|
-
keywords: string;
|
|
50
|
-
url: string;
|
|
51
|
-
};
|
|
52
|
-
contact: {
|
|
53
|
-
title: string;
|
|
54
|
-
description: string;
|
|
55
|
-
keywords: string;
|
|
56
|
-
url: string;
|
|
57
|
-
};
|
|
58
|
-
introduce: {
|
|
59
|
-
title: string;
|
|
60
|
-
description: string;
|
|
61
|
-
keywords: string;
|
|
62
|
-
url: string;
|
|
63
|
-
};
|
|
64
|
-
error: {
|
|
65
|
-
title: string;
|
|
66
|
-
description: string;
|
|
67
|
-
keywords: string;
|
|
68
|
-
url: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
let c = {
|
|
2
|
-
appId: "",
|
|
3
|
-
prefixUrl: "",
|
|
4
|
-
authPrefixUrl: "",
|
|
5
|
-
avatarBucketId: "68350c206888f565dc7d09e9",
|
|
6
|
-
feedbackBucketId: "6826e4db6888f565dc775dce",
|
|
7
|
-
bucket: "ones-1358549778",
|
|
8
|
-
region: "ap-beijing",
|
|
9
|
-
web3formsAccessKey: "72604aac-d55e-4df0-9bcf-31b2206b3753"
|
|
10
|
-
};
|
|
11
|
-
function a(e) {
|
|
12
|
-
c.appId = e.appId, c.prefixUrl = e.prefixUrl, c.authPrefixUrl = e.authPrefixUrl, e.avatarBucketId !== void 0 && (c.avatarBucketId = e.avatarBucketId), e.feedbackBucketId !== void 0 && (c.feedbackBucketId = e.feedbackBucketId), e.bucket !== void 0 && (c.bucket = e.bucket), e.region !== void 0 && (c.region = e.region), e.web3formsAccessKey !== void 0 && (c.web3formsAccessKey = e.web3formsAccessKey);
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
c as g,
|
|
16
|
-
a as s
|
|
17
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
/* empty css */
|
|
3
|
-
import { Message as h } from "@arco-design/web-vue";
|
|
4
|
-
import { ref as n } from "vue";
|
|
5
|
-
function D(a) {
|
|
6
|
-
const s = n(!1), t = n(), l = n(!1), i = n(""), f = n("");
|
|
7
|
-
function e(o) {
|
|
8
|
-
h.success(o), l.value = !1, s.value = !1, a("confirm");
|
|
9
|
-
}
|
|
10
|
-
function c() {
|
|
11
|
-
l.value = !1, console.log("handleClose"), a("cancel");
|
|
12
|
-
}
|
|
13
|
-
return {
|
|
14
|
-
loading: s,
|
|
15
|
-
formRef: t,
|
|
16
|
-
submitSuccess: e,
|
|
17
|
-
modelType: i,
|
|
18
|
-
changeType: f,
|
|
19
|
-
show: l,
|
|
20
|
-
handleCancel: c
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
const d = n({
|
|
24
|
-
key: "",
|
|
25
|
-
name: ""
|
|
26
|
-
});
|
|
27
|
-
function y() {
|
|
28
|
-
function a(s, t) {
|
|
29
|
-
d.value.key = s, d.value.name = t;
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
activeDoc: d,
|
|
33
|
-
setActiveDoc: a
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
let u = null, v = "", r = null;
|
|
37
|
-
function b() {
|
|
38
|
-
const a = n([]), s = n(!1), t = n(""), l = n("");
|
|
39
|
-
async function i({
|
|
40
|
-
versionApi: f
|
|
41
|
-
}) {
|
|
42
|
-
if (u) {
|
|
43
|
-
a.value = u, l.value = v;
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
if (r) {
|
|
47
|
-
await r, a.value = u || [], l.value = v;
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
s.value = !0, t.value = "", r = fetch(f).then((e) => {
|
|
51
|
-
if (!e.ok)
|
|
52
|
-
throw new Error(`HTTP error! status: ${e.status}`);
|
|
53
|
-
return e.json();
|
|
54
|
-
}).then((e) => {
|
|
55
|
-
const c = e.downloads.map((o) => ({
|
|
56
|
-
id: o.id,
|
|
57
|
-
name: o.name,
|
|
58
|
-
description: o.description,
|
|
59
|
-
version: o.version,
|
|
60
|
-
updateDate: o.updateDate,
|
|
61
|
-
icon: "",
|
|
62
|
-
// 将在组件中动态设置
|
|
63
|
-
downloadUrl: o.downloadUrl,
|
|
64
|
-
platform: o.platform,
|
|
65
|
-
requirements: o.requirements,
|
|
66
|
-
badge: o.badge
|
|
67
|
-
}));
|
|
68
|
-
u = c, v = e.version, a.value = c, l.value = e.version;
|
|
69
|
-
}).catch((e) => {
|
|
70
|
-
t.value = e.message || "获取版本信息失败", console.error("Failed to fetch downloads:", e);
|
|
71
|
-
}).finally(() => {
|
|
72
|
-
s.value = !1, r = null;
|
|
73
|
-
}), await r;
|
|
74
|
-
}
|
|
75
|
-
return {
|
|
76
|
-
downloads: a,
|
|
77
|
-
loading: s,
|
|
78
|
-
error: t,
|
|
79
|
-
version: l,
|
|
80
|
-
fetchDownloads: i
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
export {
|
|
84
|
-
y as a,
|
|
85
|
-
b,
|
|
86
|
-
D as u
|
|
87
|
-
};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { computed as f, ref as R, watch as b } from "vue";
|
|
2
|
-
import { useRouter as h, useRoute as y } from "vue-router";
|
|
3
|
-
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
|
-
/* empty css */
|
|
6
|
-
import "@arco-design/web-vue";
|
|
7
|
-
/* empty css */
|
|
8
|
-
/* empty css */
|
|
9
|
-
import "./useUploadCos-yeMY5Xn0.js";
|
|
10
|
-
import "@huyooo/api";
|
|
11
|
-
import "./AuthkitAuthModal.vue_vue_type_style_index_1_lang-BpOmabWi.js";
|
|
12
|
-
import { a as v } from "./useAuthkitUsersProfile-a-kA3R2Y.js";
|
|
13
|
-
import "@iconify/vue";
|
|
14
|
-
/* empty css */
|
|
15
|
-
import { u as d } from "./useAuthkitAppsAuthPageInfo-qWOtNCda.js";
|
|
16
|
-
/* empty css */
|
|
17
|
-
/* empty css */
|
|
18
|
-
/* empty css */
|
|
19
|
-
/* empty css */
|
|
20
|
-
function z(n, r = "default") {
|
|
21
|
-
const o = document;
|
|
22
|
-
if (o && typeof o.startViewTransition == "function") {
|
|
23
|
-
const i = document.body;
|
|
24
|
-
i.classList.add(`vt-${r}`), o.startViewTransition(() => {
|
|
25
|
-
try {
|
|
26
|
-
n();
|
|
27
|
-
} catch {
|
|
28
|
-
}
|
|
29
|
-
}).finished.finally(() => {
|
|
30
|
-
i.classList.remove(`vt-${r}`);
|
|
31
|
-
});
|
|
32
|
-
} else
|
|
33
|
-
n();
|
|
34
|
-
}
|
|
35
|
-
function B(n, r, o) {
|
|
36
|
-
const i = n.find((a) => {
|
|
37
|
-
var c;
|
|
38
|
-
return ((c = a.meta) == null ? void 0 : c.menuType) === r;
|
|
39
|
-
});
|
|
40
|
-
return (i == null ? void 0 : i.path) || o;
|
|
41
|
-
}
|
|
42
|
-
function E(n) {
|
|
43
|
-
const r = h(), {
|
|
44
|
-
appsData: o
|
|
45
|
-
} = d(), {
|
|
46
|
-
isLoggedIn: i,
|
|
47
|
-
userProfile: a
|
|
48
|
-
} = v(), c = f(() => {
|
|
49
|
-
var t;
|
|
50
|
-
return !i.value || !a.value ? [] : ((t = a.value.permissions) == null ? void 0 : t.map((e) => e.permissionKey)) || [];
|
|
51
|
-
});
|
|
52
|
-
function u(t) {
|
|
53
|
-
return (o.value.publicRoutes || []).some((s) => s.permissionKey === t);
|
|
54
|
-
}
|
|
55
|
-
function m(t) {
|
|
56
|
-
return i.value ? c.value.includes(t) : !1;
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
menus: f(() => r.getRoutes().filter((e) => {
|
|
60
|
-
const s = e.meta;
|
|
61
|
-
return n ? s.menuType === n : !!s.menuType;
|
|
62
|
-
}).filter((e) => {
|
|
63
|
-
const s = e.path;
|
|
64
|
-
return u(s) ? !0 : m(s);
|
|
65
|
-
}).map((e) => {
|
|
66
|
-
const s = e.meta;
|
|
67
|
-
return {
|
|
68
|
-
name: s.menuName || e.path,
|
|
69
|
-
path: e.path,
|
|
70
|
-
key: e.path,
|
|
71
|
-
icon: s.menuIcon || s.icon || "Header/Help"
|
|
72
|
-
};
|
|
73
|
-
})),
|
|
74
|
-
isRoutePublic: u,
|
|
75
|
-
hasPermission: (t) => u(t) ? !0 : m(t),
|
|
76
|
-
isLoggedIn: i
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
function F() {
|
|
80
|
-
const n = h(), r = y(), {
|
|
81
|
-
appsAuthPageInfoApi: o,
|
|
82
|
-
appsData: i
|
|
83
|
-
} = d(), {
|
|
84
|
-
isLoggedIn: a,
|
|
85
|
-
userProfile: c
|
|
86
|
-
} = v(), u = R(!1);
|
|
87
|
-
function m(e) {
|
|
88
|
-
return (i.value.publicRoutes || []).some((p) => p.permissionKey === e);
|
|
89
|
-
}
|
|
90
|
-
function l(e) {
|
|
91
|
-
var p;
|
|
92
|
-
return !a.value || !c.value ? !1 : (((p = c.value.permissions) == null ? void 0 : p.map((P) => P.permissionKey)) || []).includes(e);
|
|
93
|
-
}
|
|
94
|
-
function t(e) {
|
|
95
|
-
if (u.value = !0, m(e)) {
|
|
96
|
-
u.value = !1;
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
if (!a.value) {
|
|
100
|
-
n.replace("/"), u.value = !1;
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
l(e) || n.replace("/"), u.value = !1;
|
|
104
|
-
}
|
|
105
|
-
return o(() => {
|
|
106
|
-
t(r.path), b(() => r.path, (e) => {
|
|
107
|
-
t(e);
|
|
108
|
-
});
|
|
109
|
-
}), {
|
|
110
|
-
isChecking: u,
|
|
111
|
-
isRoutePublic: m,
|
|
112
|
-
hasPermission: l
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
export {
|
|
116
|
-
F as a,
|
|
117
|
-
B as f,
|
|
118
|
-
E as u,
|
|
119
|
-
z as w
|
|
120
|
-
};
|