@huyooo/ui 0.5.4 → 0.5.5

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 (41) hide show
  1. package/dist/{AuthkitAuthModal-MWWzynTx.js → AuthkitAuthModal-BjqMoIed.js} +10 -8
  2. package/dist/AuthkitAuthModal.vue_vue_type_style_index_1_lang-BpOmabWi.js +10 -0
  3. package/dist/{AuthkitAuthorize-D3vma2FV.js → AuthkitAuthorize-DWb0xKRa.js} +3 -3
  4. package/dist/{FeedbackItem-C1TqPuuy.js → FeedbackItem-bPlL6uEE.js} +14 -13
  5. package/dist/{FeedbackModal-CdBaCw5j.js → FeedbackModal-DJx3R3rM.js} +5 -4
  6. package/dist/Introduce-e3nEDSRY.js +390 -0
  7. package/dist/LandingPageSectionHeader-Dlc5rL21.js +463 -0
  8. package/dist/LandingPageSectionTabs-CrFrtbqu.js +1369 -0
  9. package/dist/{MessageHandle-JzX9UY1a.js → MessageHandle-BJH_S-61.js} +18 -17
  10. package/dist/{PaySubscriptions-Bak0mpKh.js → PaySubscriptions-BGl9BQru.js} +9 -8
  11. package/dist/{ReferrerReferees-Cuw4uhVu.js → ReferrerReferees-oi-zzWCo.js} +18 -17
  12. package/dist/{Upload.vue_vue_type_script_setup_true_lang-DQPtXtJ0.js → Upload.vue_vue_type_script_setup_true_lang-CDyUt05d.js} +10 -9
  13. package/dist/{UserAccountMenu-DD3zoOBd.js → UserAccountMenu-BD8F9vEK.js} +1 -1
  14. package/dist/{UserPanel-BBB9cA2b.js → UserPanel-C6XusLxb.js} +11 -10
  15. package/dist/{WidthContainer-Co60dOmv.js → WidthContainer-uWfPyPEH.js} +17 -16
  16. package/dist/authkit.js +12 -11
  17. package/dist/common.js +1 -1
  18. package/dist/components/PrivateCom/BodyAndFooterLayout.vue.d.ts +17 -0
  19. package/dist/components/PrivateCom/Footer.vue.d.ts +2 -0
  20. package/dist/components/PrivateCom/Introduce.vue.d.ts +2 -0
  21. package/dist/composables.js +26 -25
  22. package/dist/feedback.js +2 -2
  23. package/dist/index.js +191 -183
  24. package/dist/landingPage.js +46 -45
  25. package/dist/main.d.ts +1 -0
  26. package/dist/message.js +2 -2
  27. package/dist/pay.js +1 -1
  28. package/dist/privateCom.d.ts +4 -0
  29. package/dist/privateCom.js +8 -0
  30. package/dist/referrer.js +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/upload.js +2 -2
  33. package/dist/{AuthkitAuthModal.vue_vue_type_style_index_1_lang-B-QKS_BT.js → useAuthkitAppsAuthPageInfo-Dr5K7ULW.js} +16 -23
  34. package/dist/{useAuthkitUsersProfile-D2UZf7n0.js → useAuthkitUsersProfile-DNOB_Kuk.js} +1 -1
  35. package/dist/{useMessageNotifications-BahKMcby.js → useMessageNotifications-DOH1MS61.js} +1 -1
  36. package/dist/{useRoutePermission-DWJ-2G10.js → useRoutePermission-DuZZniIv.js} +17 -16
  37. package/dist/{useUploadCos-BdIk3m1E.js → useUploadCos-B5P_PDcy.js} +1 -1
  38. package/dist/user.js +2 -2
  39. package/package.json +5 -1
  40. package/dist/LandingPageSectionTabs-uO4kXpj7.js +0 -1825
  41. /package/dist/{index-DZIhLe1R.js → globalConfig-DZIhLe1R.js} +0 -0
package/dist/upload.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-DQPtXtJ0.js";
2
- import { u as s } from "./useUploadCos-BdIk3m1E.js";
1
+ import { _ as p } from "./Upload.vue_vue_type_script_setup_true_lang-CDyUt05d.js";
2
+ import { u as s } from "./useUploadCos-B5P_PDcy.js";
3
3
  export {
4
4
  p as Upload,
5
5
  s as useUploadCos
@@ -1,26 +1,20 @@
1
- import { ref as n } from "vue";
2
- import { api as i } from "@huyooo/api";
3
- import { g as r } from "./index-DZIhLe1R.js";
4
- const l = n(!1);
5
- function f() {
6
- return {
7
- show: l
8
- };
9
- }
10
- function g(a) {
11
- return i({
12
- url: `${r.authPrefixUrl}/restfulApi/apps/findOne`,
1
+ import { ref as r } from "vue";
2
+ import { api as t } from "@huyooo/api";
3
+ import { g as i } from "./globalConfig-DZIhLe1R.js";
4
+ function s(a) {
5
+ return t({
6
+ url: `${i.authPrefixUrl}/restfulApi/apps/findOne`,
13
7
  method: "post",
14
8
  data: a
15
9
  });
16
10
  }
17
- function u() {
18
- return i({
19
- url: `${r.authPrefixUrl}/restfulApi/apps/authPageInfo`,
11
+ function l() {
12
+ return t({
13
+ url: `${i.authPrefixUrl}/restfulApi/apps/authPageInfo`,
20
14
  method: "post"
21
15
  });
22
16
  }
23
- const o = n({
17
+ const o = r({
24
18
  id: "",
25
19
  appKey: "",
26
20
  name: "",
@@ -93,12 +87,12 @@ const o = n({
93
87
  backgroundImage: "/66a0d5b35203890887f0e1a4/6714e2458fe86895bf3da8ae/1ef8ed72-1731-6e00-93d1-fa24165f1a3e.webp"
94
88
  }
95
89
  });
96
- function h() {
97
- function a(t) {
98
- u().then(({
90
+ function f() {
91
+ function a(n) {
92
+ l().then(({
99
93
  data: e
100
94
  }) => {
101
- o.value.id = e.id, o.value.appKey = e.appKey, o.value.name = e.name, o.value.description = e.description, o.value.homePageUrl = e.homePageUrl, o.value.applicationLogo = e.applicationLogo, o.value.applicationLogoUrl = e.applicationLogoUrl, o.value.publicRoutes = e.publicRoutes || [], o.value.oauth = e.oauth, o.value.authorizationCallback = e.authorizationCallback, o.value.aboutUs = e.aboutUs, o.value.brand = e.brand, t && t();
95
+ o.value.id = e.id, o.value.appKey = e.appKey, o.value.name = e.name, o.value.description = e.description, o.value.homePageUrl = e.homePageUrl, o.value.applicationLogo = e.applicationLogo, o.value.applicationLogoUrl = e.applicationLogoUrl, o.value.publicRoutes = e.publicRoutes || [], o.value.oauth = e.oauth, o.value.authorizationCallback = e.authorizationCallback, o.value.aboutUs = e.aboutUs, o.value.brand = e.brand, n && n();
102
96
  }).catch((e) => {
103
97
  console.error("获取应用认证页面信息失败:", e);
104
98
  });
@@ -109,7 +103,6 @@ function h() {
109
103
  };
110
104
  }
111
105
  export {
112
- f as a,
113
- g as b,
114
- h as u
106
+ s as a,
107
+ f as u
115
108
  };
@@ -1,6 +1,6 @@
1
1
  import { ref as u, readonly as S, computed as A } from "vue";
2
2
  import { api as a } from "@huyooo/api";
3
- import { g as n } from "./index-DZIhLe1R.js";
3
+ import { g as n } from "./globalConfig-DZIhLe1R.js";
4
4
  function b(e) {
5
5
  return a({
6
6
  url: `${n.authPrefixUrl}/restfulApi/auth/signIn`,
@@ -1,6 +1,6 @@
1
1
  import { ref as a, computed as x } from "vue";
2
2
  import { api as c } from "@huyooo/api";
3
- import { g } from "./index-DZIhLe1R.js";
3
+ import { g } from "./globalConfig-DZIhLe1R.js";
4
4
  function z(t) {
5
5
  return c({
6
6
  url: `${g.prefixUrl}/restfulApi/messageCenter/messageNotifications/find`,
@@ -1,22 +1,23 @@
1
1
  import { computed as f, ref as R, watch as b } from "vue";
2
2
  import { useRouter as h, useRoute as y } from "vue-router";
3
3
  /* empty css */
4
- import "./index-DZIhLe1R.js";
4
+ /* empty css */
5
5
  /* empty css */
6
6
  import "@arco-design/web-vue";
7
7
  /* empty css */
8
8
  /* empty css */
9
- import "./useUploadCos-BdIk3m1E.js";
9
+ import "./useUploadCos-B5P_PDcy.js";
10
10
  import "@huyooo/api";
11
- import { u as v } from "./AuthkitAuthModal.vue_vue_type_style_index_1_lang-B-QKS_BT.js";
12
- import { a as d } from "./useAuthkitUsersProfile-D2UZf7n0.js";
11
+ import "./AuthkitAuthModal.vue_vue_type_style_index_1_lang-BpOmabWi.js";
12
+ import { a as v } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
13
13
  import "@iconify/vue";
14
14
  /* empty css */
15
+ import { u as d } from "./useAuthkitAppsAuthPageInfo-Dr5K7ULW.js";
15
16
  /* empty css */
16
17
  /* empty css */
17
18
  /* empty css */
18
19
  /* empty css */
19
- function q(n, r = "default") {
20
+ function z(n, r = "default") {
20
21
  const o = document;
21
22
  if (o && typeof o.startViewTransition == "function") {
22
23
  const i = document.body;
@@ -31,20 +32,20 @@ function q(n, r = "default") {
31
32
  } else
32
33
  n();
33
34
  }
34
- function z(n, r, o) {
35
+ function B(n, r, o) {
35
36
  const i = n.find((a) => {
36
37
  var c;
37
38
  return ((c = a.meta) == null ? void 0 : c.menuType) === r;
38
39
  });
39
40
  return (i == null ? void 0 : i.path) || o;
40
41
  }
41
- function B(n) {
42
+ function E(n) {
42
43
  const r = h(), {
43
44
  appsData: o
44
- } = v(), {
45
+ } = d(), {
45
46
  isLoggedIn: i,
46
47
  userProfile: a
47
- } = d(), c = f(() => {
48
+ } = v(), c = f(() => {
48
49
  var t;
49
50
  return !i.value || !a.value ? [] : ((t = a.value.permissions) == null ? void 0 : t.map((e) => e.permissionKey)) || [];
50
51
  });
@@ -75,14 +76,14 @@ function B(n) {
75
76
  isLoggedIn: i
76
77
  };
77
78
  }
78
- function E() {
79
+ function F() {
79
80
  const n = h(), r = y(), {
80
81
  appsAuthPageInfoApi: o,
81
82
  appsData: i
82
- } = v(), {
83
+ } = d(), {
83
84
  isLoggedIn: a,
84
85
  userProfile: c
85
- } = d(), u = R(!1);
86
+ } = v(), u = R(!1);
86
87
  function m(e) {
87
88
  return (i.value.publicRoutes || []).some((p) => p.permissionKey === e);
88
89
  }
@@ -112,8 +113,8 @@ function E() {
112
113
  };
113
114
  }
114
115
  export {
115
- E as a,
116
- z as f,
117
- B as u,
118
- q as w
116
+ F as a,
117
+ B as f,
118
+ E as u,
119
+ z as w
119
120
  };
@@ -1,6 +1,6 @@
1
1
  import { c as _t, g as Ht } from "./_commonjsHelpers-DaMA6jEr.js";
2
2
  import { api as bt } from "@huyooo/api";
3
- import { g as it } from "./index-DZIhLe1R.js";
3
+ import { g as it } from "./globalConfig-DZIhLe1R.js";
4
4
  var Nt = { exports: {} };
5
5
  (function(_, fe) {
6
6
  (function(Y, A) {
package/dist/user.js CHANGED
@@ -1,5 +1,5 @@
1
- import { U as r, a as e, b as o, c as n, S as t } from "./UserPanel-BBB9cA2b.js";
2
- import { U as c } from "./UserAccountMenu-DD3zoOBd.js";
1
+ import { U as r, a as e, b as o, c as n, S as t } from "./UserPanel-C6XusLxb.js";
2
+ import { U as c } from "./UserAccountMenu-BD8F9vEK.js";
3
3
  export {
4
4
  c as UserAccountMenu,
5
5
  r as UserAvatar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -58,6 +58,10 @@
58
58
  "import": "./dist/user.js",
59
59
  "types": "./dist/user.d.ts"
60
60
  },
61
+ "./privateCom": {
62
+ "import": "./dist/privateCom.js",
63
+ "types": "./dist/privateCom.d.ts"
64
+ },
61
65
  "./style.css": "./dist/style.css",
62
66
  "./dist/*": "./dist/*"
63
67
  },