@huyooo/ui 0.17.0 → 0.17.2
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/composables/useSEO.d.ts +1 -1
- package/dist/composables.js +1 -1
- package/dist/main.js +2 -2
- package/dist/types/api/ai.generated.d.ts +754 -84
- package/dist/types/api/ones.generated.d.ts +4 -0
- package/dist/useSEO-BSMQdBR9.js +158 -0
- package/package.json +1 -1
- package/dist/useSEO-C6DLicfe.js +0 -153
|
@@ -538,6 +538,7 @@ export type Api = {
|
|
|
538
538
|
size: number;
|
|
539
539
|
type: string;
|
|
540
540
|
webkitRelativePath: string;
|
|
541
|
+
subjectUserId?: string;
|
|
541
542
|
};
|
|
542
543
|
return: any;
|
|
543
544
|
};
|
|
@@ -625,6 +626,7 @@ export type Api = {
|
|
|
625
626
|
bucketId: string;
|
|
626
627
|
size: number;
|
|
627
628
|
type: string;
|
|
629
|
+
subjectUserId?: string;
|
|
628
630
|
};
|
|
629
631
|
return: any;
|
|
630
632
|
};
|
|
@@ -1636,6 +1638,7 @@ export interface ApiClient {
|
|
|
1636
1638
|
size: number;
|
|
1637
1639
|
type: string;
|
|
1638
1640
|
webkitRelativePath: string;
|
|
1641
|
+
subjectUserId?: string;
|
|
1639
1642
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1640
1643
|
};
|
|
1641
1644
|
delete: {
|
|
@@ -1699,6 +1702,7 @@ export interface ApiClient {
|
|
|
1699
1702
|
bucketId: string;
|
|
1700
1703
|
size: number;
|
|
1701
1704
|
type: string;
|
|
1705
|
+
subjectUserId?: string;
|
|
1702
1706
|
}, config?: RequestConfig) => Promise<ApiResponse<any>>;
|
|
1703
1707
|
};
|
|
1704
1708
|
};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { g } from "./apiClients-DrGX2iJy.js";
|
|
3
|
+
import { Message as f } from "@arco-design/web-vue";
|
|
4
|
+
import { ref as i, getCurrentInstance as w, computed as a } from "vue";
|
|
5
|
+
import { useHead as p, useSeoMeta as m } from "@unhead/vue";
|
|
6
|
+
import { useRoute as v } from "vue-router";
|
|
7
|
+
function C(o) {
|
|
8
|
+
const n = i(!1), t = i(), e = i(!1), s = i(""), u = i("");
|
|
9
|
+
function l(c) {
|
|
10
|
+
f.success(c), e.value = !1, n.value = !1, o("confirm");
|
|
11
|
+
}
|
|
12
|
+
function r() {
|
|
13
|
+
e.value = !1, o("cancel");
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
loading: n,
|
|
17
|
+
formRef: t,
|
|
18
|
+
submitSuccess: l,
|
|
19
|
+
modelType: s,
|
|
20
|
+
changeType: u,
|
|
21
|
+
show: e,
|
|
22
|
+
handleCancel: r
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function I() {
|
|
26
|
+
const o = i([]), n = i(!1), t = i(""), e = i("");
|
|
27
|
+
async function s() {
|
|
28
|
+
n.value = !0, t.value = "";
|
|
29
|
+
try {
|
|
30
|
+
const l = await (await fetch(`${g.onesPrefixUrl}/releases/latest`, {
|
|
31
|
+
method: "POST",
|
|
32
|
+
headers: {
|
|
33
|
+
"Content-Type": "application/json",
|
|
34
|
+
"app-id": g.appId
|
|
35
|
+
},
|
|
36
|
+
body: JSON.stringify({})
|
|
37
|
+
})).json();
|
|
38
|
+
e.value = l.version, o.value = l.downloads.map((r) => {
|
|
39
|
+
const c = {
|
|
40
|
+
id: r.id,
|
|
41
|
+
name: r.name,
|
|
42
|
+
description: r.description,
|
|
43
|
+
version: r.version,
|
|
44
|
+
updateDate: r.updateDate,
|
|
45
|
+
icon: "",
|
|
46
|
+
downloadUrl: r.downloadUrl,
|
|
47
|
+
platform: r.platform,
|
|
48
|
+
requirements: r.requirements
|
|
49
|
+
};
|
|
50
|
+
return r.arch && (c.arch = r.arch), r.badge && (c.badge = r.badge), c;
|
|
51
|
+
});
|
|
52
|
+
} catch {
|
|
53
|
+
t.value = "获取版本信息失败,请刷新重试";
|
|
54
|
+
} finally {
|
|
55
|
+
n.value = !1;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
downloads: o,
|
|
60
|
+
loading: n,
|
|
61
|
+
error: t,
|
|
62
|
+
version: e,
|
|
63
|
+
fetchDownloads: s
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function O() {
|
|
67
|
+
function o(t) {
|
|
68
|
+
m({
|
|
69
|
+
ogSiteName: t.siteName,
|
|
70
|
+
ogLocale: t.locale
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function n(t) {
|
|
74
|
+
const {
|
|
75
|
+
title: e,
|
|
76
|
+
description: s,
|
|
77
|
+
keywords: u,
|
|
78
|
+
image: l,
|
|
79
|
+
url: r,
|
|
80
|
+
type: c = "website"
|
|
81
|
+
} = t, d = s && s.length > 155 ? `${s.substring(0, 152)}...` : s;
|
|
82
|
+
p({
|
|
83
|
+
title: e,
|
|
84
|
+
link: r ? [{
|
|
85
|
+
rel: "canonical",
|
|
86
|
+
href: r
|
|
87
|
+
}] : []
|
|
88
|
+
}), m({
|
|
89
|
+
description: d || s,
|
|
90
|
+
keywords: u,
|
|
91
|
+
ogTitle: e,
|
|
92
|
+
ogDescription: d || s,
|
|
93
|
+
ogType: c === "product" ? void 0 : c,
|
|
94
|
+
// product 类型不被支持,跳过
|
|
95
|
+
ogUrl: r,
|
|
96
|
+
ogImage: l,
|
|
97
|
+
twitterCard: "summary_large_image",
|
|
98
|
+
twitterTitle: e,
|
|
99
|
+
twitterDescription: d || s,
|
|
100
|
+
twitterImage: l
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
setGlobalSEO: o,
|
|
105
|
+
setPageSEO: n
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function U() {
|
|
109
|
+
if (!w())
|
|
110
|
+
return;
|
|
111
|
+
const o = v();
|
|
112
|
+
if (!(o != null && o.meta))
|
|
113
|
+
return;
|
|
114
|
+
const n = () => o.meta;
|
|
115
|
+
p({
|
|
116
|
+
title: a(() => n().title || ""),
|
|
117
|
+
link: a(() => {
|
|
118
|
+
const t = n();
|
|
119
|
+
return t.url ? [{
|
|
120
|
+
rel: "canonical",
|
|
121
|
+
href: t.url
|
|
122
|
+
}] : [];
|
|
123
|
+
})
|
|
124
|
+
}), m({
|
|
125
|
+
description: a(() => {
|
|
126
|
+
const e = n().description;
|
|
127
|
+
if (e)
|
|
128
|
+
return e.length > 155 ? `${e.substring(0, 152)}...` : e;
|
|
129
|
+
}),
|
|
130
|
+
keywords: a(() => n().keywords),
|
|
131
|
+
ogTitle: a(() => n().title),
|
|
132
|
+
ogDescription: a(() => {
|
|
133
|
+
const e = n().description;
|
|
134
|
+
if (e)
|
|
135
|
+
return e.length > 155 ? `${e.substring(0, 152)}...` : e;
|
|
136
|
+
}),
|
|
137
|
+
ogType: a(() => {
|
|
138
|
+
const e = n().type || "website";
|
|
139
|
+
return e === "product" ? void 0 : e;
|
|
140
|
+
}),
|
|
141
|
+
ogUrl: a(() => n().url),
|
|
142
|
+
ogImage: a(() => n().image),
|
|
143
|
+
twitterCard: "summary_large_image",
|
|
144
|
+
twitterTitle: a(() => n().title),
|
|
145
|
+
twitterDescription: a(() => {
|
|
146
|
+
const e = n().description;
|
|
147
|
+
if (e)
|
|
148
|
+
return e.length > 155 ? `${e.substring(0, 152)}...` : e;
|
|
149
|
+
}),
|
|
150
|
+
twitterImage: a(() => n().image)
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
export {
|
|
154
|
+
I as a,
|
|
155
|
+
U as b,
|
|
156
|
+
O as c,
|
|
157
|
+
C as u
|
|
158
|
+
};
|
package/package.json
CHANGED
package/dist/useSEO-C6DLicfe.js
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
import { g } from "./apiClients-DrGX2iJy.js";
|
|
3
|
-
import { Message as f } from "@arco-design/web-vue";
|
|
4
|
-
import { ref as i, computed as r } from "vue";
|
|
5
|
-
import { useHead as p, useSeoMeta as m } from "@unhead/vue";
|
|
6
|
-
import { useRoute as w } from "vue-router";
|
|
7
|
-
function S(s) {
|
|
8
|
-
const o = i(!1), t = i(), e = i(!1), a = i(""), u = i("");
|
|
9
|
-
function l(c) {
|
|
10
|
-
f.success(c), e.value = !1, o.value = !1, s("confirm");
|
|
11
|
-
}
|
|
12
|
-
function n() {
|
|
13
|
-
e.value = !1, s("cancel");
|
|
14
|
-
}
|
|
15
|
-
return {
|
|
16
|
-
loading: o,
|
|
17
|
-
formRef: t,
|
|
18
|
-
submitSuccess: l,
|
|
19
|
-
modelType: a,
|
|
20
|
-
changeType: u,
|
|
21
|
-
show: e,
|
|
22
|
-
handleCancel: n
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
function C() {
|
|
26
|
-
const s = i([]), o = i(!1), t = i(""), e = i("");
|
|
27
|
-
async function a() {
|
|
28
|
-
o.value = !0, t.value = "";
|
|
29
|
-
try {
|
|
30
|
-
const l = await (await fetch(`${g.onesPrefixUrl}/releases/latest`, {
|
|
31
|
-
method: "POST",
|
|
32
|
-
headers: {
|
|
33
|
-
"Content-Type": "application/json",
|
|
34
|
-
"app-id": g.appId
|
|
35
|
-
},
|
|
36
|
-
body: JSON.stringify({})
|
|
37
|
-
})).json();
|
|
38
|
-
e.value = l.version, s.value = l.downloads.map((n) => {
|
|
39
|
-
const c = {
|
|
40
|
-
id: n.id,
|
|
41
|
-
name: n.name,
|
|
42
|
-
description: n.description,
|
|
43
|
-
version: n.version,
|
|
44
|
-
updateDate: n.updateDate,
|
|
45
|
-
icon: "",
|
|
46
|
-
downloadUrl: n.downloadUrl,
|
|
47
|
-
platform: n.platform,
|
|
48
|
-
requirements: n.requirements
|
|
49
|
-
};
|
|
50
|
-
return n.arch && (c.arch = n.arch), n.badge && (c.badge = n.badge), c;
|
|
51
|
-
});
|
|
52
|
-
} catch {
|
|
53
|
-
t.value = "获取版本信息失败,请刷新重试";
|
|
54
|
-
} finally {
|
|
55
|
-
o.value = !1;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
downloads: s,
|
|
60
|
-
loading: o,
|
|
61
|
-
error: t,
|
|
62
|
-
version: e,
|
|
63
|
-
fetchDownloads: a
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function O() {
|
|
67
|
-
function s(t) {
|
|
68
|
-
m({
|
|
69
|
-
ogSiteName: t.siteName,
|
|
70
|
-
ogLocale: t.locale
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
function o(t) {
|
|
74
|
-
const {
|
|
75
|
-
title: e,
|
|
76
|
-
description: a,
|
|
77
|
-
keywords: u,
|
|
78
|
-
image: l,
|
|
79
|
-
url: n,
|
|
80
|
-
type: c = "website"
|
|
81
|
-
} = t, d = a && a.length > 155 ? `${a.substring(0, 152)}...` : a;
|
|
82
|
-
p({
|
|
83
|
-
title: e,
|
|
84
|
-
link: n ? [{
|
|
85
|
-
rel: "canonical",
|
|
86
|
-
href: n
|
|
87
|
-
}] : []
|
|
88
|
-
}), m({
|
|
89
|
-
description: d || a,
|
|
90
|
-
keywords: u,
|
|
91
|
-
ogTitle: e,
|
|
92
|
-
ogDescription: d || a,
|
|
93
|
-
ogType: c === "product" ? void 0 : c,
|
|
94
|
-
// product 类型不被支持,跳过
|
|
95
|
-
ogUrl: n,
|
|
96
|
-
ogImage: l,
|
|
97
|
-
twitterCard: "summary_large_image",
|
|
98
|
-
twitterTitle: e,
|
|
99
|
-
twitterDescription: d || a,
|
|
100
|
-
twitterImage: l
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
return {
|
|
104
|
-
setGlobalSEO: s,
|
|
105
|
-
setPageSEO: o
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
function U() {
|
|
109
|
-
const s = w(), o = () => s.meta;
|
|
110
|
-
p({
|
|
111
|
-
title: r(() => o().title || ""),
|
|
112
|
-
link: r(() => {
|
|
113
|
-
const t = o();
|
|
114
|
-
return t.url ? [{
|
|
115
|
-
rel: "canonical",
|
|
116
|
-
href: t.url
|
|
117
|
-
}] : [];
|
|
118
|
-
})
|
|
119
|
-
}), m({
|
|
120
|
-
description: r(() => {
|
|
121
|
-
const e = o().description;
|
|
122
|
-
if (e)
|
|
123
|
-
return e.length > 155 ? `${e.substring(0, 152)}...` : e;
|
|
124
|
-
}),
|
|
125
|
-
keywords: r(() => o().keywords),
|
|
126
|
-
ogTitle: r(() => o().title),
|
|
127
|
-
ogDescription: r(() => {
|
|
128
|
-
const e = o().description;
|
|
129
|
-
if (e)
|
|
130
|
-
return e.length > 155 ? `${e.substring(0, 152)}...` : e;
|
|
131
|
-
}),
|
|
132
|
-
ogType: r(() => {
|
|
133
|
-
const e = o().type || "website";
|
|
134
|
-
return e === "product" ? void 0 : e;
|
|
135
|
-
}),
|
|
136
|
-
ogUrl: r(() => o().url),
|
|
137
|
-
ogImage: r(() => o().image),
|
|
138
|
-
twitterCard: "summary_large_image",
|
|
139
|
-
twitterTitle: r(() => o().title),
|
|
140
|
-
twitterDescription: r(() => {
|
|
141
|
-
const e = o().description;
|
|
142
|
-
if (e)
|
|
143
|
-
return e.length > 155 ? `${e.substring(0, 152)}...` : e;
|
|
144
|
-
}),
|
|
145
|
-
twitterImage: r(() => o().image)
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
export {
|
|
149
|
-
C as a,
|
|
150
|
-
U as b,
|
|
151
|
-
O as c,
|
|
152
|
-
S as u
|
|
153
|
-
};
|