@huyooo/ui 0.10.1 → 0.10.3

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.
Files changed (36) hide show
  1. package/dist/{AuthkitAuthModal-CIqo_ytT.js → AuthkitAuthModal-De0eEWOC.js} +443 -443
  2. package/dist/{AuthkitSignInPhone-GEP_InIp.js → AuthkitSignInPhone-DEUVn3Rq.js} +4 -4
  3. package/dist/{Clipboard-BsST2Mjo.js → Clipboard-CMm8I4Rb.js} +1 -1
  4. package/dist/{CollapseItem-DN-GUAQA.js → CollapseItem-BAuejDBZ.js} +10 -10
  5. package/dist/{Contact-D1RLCHL7.js → Contact-Dgn8_it4.js} +1 -1
  6. package/dist/{FeedbackItem-BhBJPtoI.js → FeedbackItem-CRiLkWMh.js} +6 -6
  7. package/dist/{FeedbackModal-Ci0sZsOa.js → FeedbackModal-B8WLPCy_.js} +365 -366
  8. package/dist/{LandingPageSectionHeader-1h01zdKJ.js → LandingPageSectionHeader-Cs1x8i3q.js} +1 -1
  9. package/dist/{LandingPageSectionTabs-BRTZaLEe.js → LandingPageSectionTabs-Dv_xOLqR.js} +11 -11
  10. package/dist/{Menu-v8cCDSzi.js → Menu-Cy2ZPeaz.js} +18 -18
  11. package/dist/{MessageHandle-Dkpc4axC.js → MessageHandle-DpIUeQ7U.js} +6 -6
  12. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DqXjEfo9.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BbtfWRUD.js} +47 -47
  13. package/dist/{PaySubscriptions-ygmbIpWM.js → PaySubscriptions-W6GJ28uE.js} +15 -15
  14. package/dist/{ReferrerReferees-BlHsWD6F.js → ReferrerReferees-C5Sjn7aD.js} +7 -7
  15. package/dist/{UserAccountMenu-C6MK8Ulm.js → UserAccountMenu-OdwonGFa.js} +6 -6
  16. package/dist/{WidthContainer-IvPa1ayt.js → WidthContainer-Cpdc67hQ.js} +125 -128
  17. package/dist/authkit.js +2 -2
  18. package/dist/common.js +3 -3
  19. package/dist/components/Authkit/AuthkitAppSetting.vue.d.ts +1 -1
  20. package/dist/components/Download/DesktopDownloads.vue.d.ts +1 -6
  21. package/dist/components/Download/DownloadDropdown.vue.d.ts +0 -2
  22. package/dist/components/User/UserPanel.vue.d.ts +2 -2
  23. package/dist/composables/useDownloads.d.ts +1 -3
  24. package/dist/composables.js +1 -1
  25. package/dist/feedback.js +3 -3
  26. package/dist/landingPage.js +2 -2
  27. package/dist/main.js +88 -96
  28. package/dist/message.js +2 -2
  29. package/dist/pay.js +1 -1
  30. package/dist/privateCom.js +1 -1
  31. package/dist/referrer.js +1 -1
  32. package/dist/style.css +1 -1
  33. package/dist/useDownloads-COXmopbe.js +57 -0
  34. package/dist/user.js +1 -1
  35. package/package.json +1 -1
  36. package/dist/useDownloads-CpbLR--j.js +0 -52
@@ -0,0 +1,57 @@
1
+ /* empty css */
2
+ import { g as f } from "./apiClients-DJchWBAG.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
+ };
package/dist/user.js CHANGED
@@ -1,4 +1,4 @@
1
- import { U as r, a as e, b as n, c as o, d as t, S as U } from "./UserAccountMenu-C6MK8Ulm.js";
1
+ import { U as r, a as e, b as n, c as o, d as t, S as U } from "./UserAccountMenu-OdwonGFa.js";
2
2
  export {
3
3
  r as UserAccountMenu,
4
4
  e as UserAvatar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -1,52 +0,0 @@
1
- /* empty css */
2
- import "./apiClients-DJchWBAG.js";
3
- import { Message as f } from "@arco-design/web-vue";
4
- import { ref as e } from "vue";
5
- function p(n) {
6
- const o = e(!1), s = e(), a = e(!1), c = e(""), l = e("");
7
- function u(r) {
8
- f.success(r), a.value = !1, o.value = !1, n("confirm");
9
- }
10
- function t() {
11
- a.value = !1, console.log("handleClose"), n("cancel");
12
- }
13
- return {
14
- loading: o,
15
- formRef: s,
16
- submitSuccess: u,
17
- modelType: c,
18
- changeType: l,
19
- show: a,
20
- handleCancel: t
21
- };
22
- }
23
- function h() {
24
- const n = e([]), o = e(!1), s = e(""), a = e("");
25
- async function c({
26
- versionApi: l
27
- }) {
28
- o.value = !0, s.value = "";
29
- try {
30
- const t = await (await fetch(l)).json();
31
- a.value = t.version, n.value = t.downloads.map((r) => ({
32
- ...r,
33
- icon: ""
34
- }));
35
- } catch {
36
- s.value = "获取版本信息失败,请刷新重试";
37
- } finally {
38
- o.value = !1;
39
- }
40
- }
41
- return {
42
- downloads: n,
43
- loading: o,
44
- error: s,
45
- version: a,
46
- fetchDownloads: c
47
- };
48
- }
49
- export {
50
- h as a,
51
- p as u
52
- };