@huyooo/ui 0.11.16 → 0.11.17

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.
@@ -9,8 +9,6 @@ export interface DesktopDownloadItem {
9
9
  updateDate: string;
10
10
  icon: string;
11
11
  downloadUrl: string;
12
- /** ZIP 格式下载,仅供客户端自动更新等内部流程使用;公开下载入口使用 downloadUrl。 */
13
- zipUrl?: string;
14
12
  platform: 'Windows' | 'macOS';
15
13
  arch?: string;
16
14
  requirements: string;
@@ -8,7 +8,6 @@ export declare function useDownloads(): {
8
8
  updateDate: string;
9
9
  icon: string;
10
10
  downloadUrl: string;
11
- zipUrl?: string | undefined;
12
11
  platform: "Windows" | "macOS";
13
12
  arch?: string | undefined;
14
13
  requirements: string;
@@ -21,7 +20,6 @@ export declare function useDownloads(): {
21
20
  updateDate: string;
22
21
  icon: string;
23
22
  downloadUrl: string;
24
- zipUrl?: string | undefined;
25
23
  platform: "Windows" | "macOS";
26
24
  arch?: string | undefined;
27
25
  requirements: string;
@@ -5,7 +5,7 @@ import { u as g } from "./useAuthkitUsersProfile-CoQceogN.js";
5
5
  import { u as x } from "./useAuthkitAppsAuthPageInfo-6ncIP9RT.js";
6
6
  import { u as b } from "./useAuthkitCreateAndUpdate-CUf8HARI.js";
7
7
  import { u as c } from "./useMessageNotifications-Bstn2qtG.js";
8
- import { u as P, a as M } from "./useDownloads-B8FzX8T_.js";
8
+ import { u as P, a as M } from "./useDownloads-Dj91-I6H.js";
9
9
  import { u as S } from "./useTableHandle-B9aFmwYM.js";
10
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-DU86KCMJ.js";
11
11
  import { u as H } from "./useUploadCos-DTMIoW7p.js";
package/dist/main.js CHANGED
@@ -10,8 +10,8 @@ import { u as N3 } from "./useAuthkitUsersProfile-CoQceogN.js";
10
10
  import { u as j3 } from "./useAuthkitAppsAuthPageInfo-6ncIP9RT.js";
11
11
  import { u as z3 } from "./useAuthkitCreateAndUpdate-CUf8HARI.js";
12
12
  import { u as K3 } from "./useMessageNotifications-Bstn2qtG.js";
13
- import { a as o2 } from "./useDownloads-B8FzX8T_.js";
14
- import { u as Q3 } from "./useDownloads-B8FzX8T_.js";
13
+ import { a as o2 } from "./useDownloads-Dj91-I6H.js";
14
+ import { u as Q3 } from "./useDownloads-Dj91-I6H.js";
15
15
  import { u as X3 } from "./useTableHandle-B9aFmwYM.js";
16
16
  import { n as g2, h as N, U as m2, i as s2, V as L2, j as J, H as Q, k as y2, v as w2 } from "./useSEO-DU86KCMJ.js";
17
17
  import { f as t4, a as o4, g as s4, u as a4, b as i4, c as n4, d as r4, e as c4, w as l4 } from "./useSEO-DU86KCMJ.js";
@@ -0,0 +1,67 @@
1
+ /* empty css */
2
+ import { g as f } from "./apiClients-B8bOvWw_.js";
3
+ import { Message as u } from "@arco-design/web-vue";
4
+ import { ref as o } from "vue";
5
+ function h(s) {
6
+ const e = o(!1), r = o(), n = o(!1), c = o(""), d = o("");
7
+ function t(l) {
8
+ u.success(l), n.value = !1, e.value = !1, s("confirm");
9
+ }
10
+ function a() {
11
+ n.value = !1, console.log("handleClose"), s("cancel");
12
+ }
13
+ return {
14
+ loading: e,
15
+ formRef: r,
16
+ submitSuccess: t,
17
+ modelType: c,
18
+ changeType: d,
19
+ show: n,
20
+ handleCancel: a
21
+ };
22
+ }
23
+ function w() {
24
+ const s = o([]), e = o(!1), r = o(""), n = o("");
25
+ async function c() {
26
+ e.value = !0, r.value = "";
27
+ try {
28
+ const t = await (await fetch(`${f.onesPrefixUrl}/releases/latest`, {
29
+ method: "POST",
30
+ headers: {
31
+ "Content-Type": "application/json",
32
+ "app-id": f.appId
33
+ },
34
+ body: JSON.stringify({})
35
+ })).json();
36
+ n.value = t.version, s.value = t.downloads.map((a) => {
37
+ const l = {
38
+ id: a.id,
39
+ name: a.name,
40
+ description: a.description,
41
+ version: a.version,
42
+ updateDate: a.updateDate,
43
+ icon: "",
44
+ downloadUrl: a.downloadUrl,
45
+ platform: a.platform,
46
+ requirements: a.requirements
47
+ };
48
+ return a.arch && (l.arch = a.arch), a.badge && (l.badge = a.badge), l;
49
+ });
50
+ } catch {
51
+ r.value = "获取版本信息失败,请刷新重试";
52
+ } finally {
53
+ e.value = !1;
54
+ }
55
+ }
56
+ return {
57
+ downloads: s,
58
+ loading: e,
59
+ error: r,
60
+ version: n,
61
+ fetchDownloads: c
62
+ };
63
+ }
64
+ export {
65
+ w as a,
66
+ h as u
67
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "0.11.16",
3
+ "version": "0.11.17",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -1,57 +0,0 @@
1
- /* empty css */
2
- import { g as f } from "./apiClients-B8bOvWw_.js";
3
- import { Message as u } from "@arco-design/web-vue";
4
- import { ref as e } from "vue";
5
- function g(s) {
6
- const o = e(!1), n = e(), a = e(!1), l = e(""), r = e("");
7
- function t(i) {
8
- u.success(i), a.value = !1, o.value = !1, s("confirm");
9
- }
10
- function c() {
11
- a.value = !1, console.log("handleClose"), s("cancel");
12
- }
13
- return {
14
- loading: o,
15
- formRef: n,
16
- submitSuccess: t,
17
- modelType: l,
18
- changeType: r,
19
- show: a,
20
- handleCancel: c
21
- };
22
- }
23
- function h() {
24
- const s = e([]), o = e(!1), n = e(""), a = e("");
25
- async function l() {
26
- o.value = !0, n.value = "";
27
- try {
28
- const t = await (await fetch(`${f.onesPrefixUrl}/releases/latest`, {
29
- method: "POST",
30
- headers: {
31
- "Content-Type": "application/json",
32
- "app-id": f.appId
33
- },
34
- body: JSON.stringify({})
35
- })).json();
36
- a.value = t.version, s.value = t.downloads.map((c) => ({
37
- ...c,
38
- icon: ""
39
- }));
40
- } catch {
41
- n.value = "获取版本信息失败,请刷新重试";
42
- } finally {
43
- o.value = !1;
44
- }
45
- }
46
- return {
47
- downloads: s,
48
- loading: o,
49
- error: n,
50
- version: a,
51
- fetchDownloads: l
52
- };
53
- }
54
- export {
55
- h as a,
56
- g as u
57
- };