@huyooo/ui 2.0.1 → 2.0.4

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 (55) hide show
  1. package/dist/{AuthkitAppSetting-DCQH9IpU.js → AuthkitAppSetting-D_94iUEG.js} +8 -8
  2. package/dist/{Contact-C7ROEqe-.js → Contact-CBGSJC2q.js} +3 -3
  3. package/dist/{CustomTable-GgvDEidl.js → CustomTable-HDwqEcmB.js} +1 -1
  4. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-CnvQjQFT.js +1516 -0
  5. package/dist/{LegalDocViewer-D_QUh0uf.js → LegalDocViewer-CytxFZKJ.js} +10 -10
  6. package/dist/{MessageHandle-DKoySsCG.js → MessageHandle-BUufez4S.js} +3 -3
  7. package/dist/{MessageList-HSiKkUoD.js → MessageList-rttvPmxV.js} +1 -1
  8. package/dist/{PaySubscriptions-NcATVJGm.js → PaySubscriptions-BSkcUqHk.js} +6 -6
  9. package/dist/{PricingPlans-CZn6eJby.js → PricingPlans-CyFvgf18.js} +4 -4
  10. package/dist/{ReferrerReferees-BoOQIssE.js → ReferrerReferees-BU9IEQgz.js} +4 -4
  11. package/dist/{Upload.vue_vue_type_script_setup_true_lang-CkS2S9Xc.js → Upload.vue_vue_type_script_setup_true_lang-oa6LJgCY.js} +1 -1
  12. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BrNx6JWe.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-CawueoIY.js} +9 -9
  13. package/dist/{WidthContainer-BJLdZfzF.js → WidthContainer-DOD3wnYO.js} +10 -10
  14. package/dist/{apiClients-CR-hEwog.js → apiClients-Ctcq8NZs.js} +5 -5
  15. package/dist/authkit.js +10 -10
  16. package/dist/common/globalConfig.d.ts +0 -12
  17. package/dist/common.js +2 -2
  18. package/dist/components/Feedback/FeedbackDetails.vue.d.ts +8 -35
  19. package/dist/composables/SEO/useAppSEO.d.ts +3 -0
  20. package/dist/composables/SEO/usePageSEO.d.ts +4 -0
  21. package/dist/composables/SEO/useResolvedPageSEO.d.ts +3 -0
  22. package/dist/composables.d.ts +4 -2
  23. package/dist/composables.js +45 -47
  24. package/dist/feedback.d.ts +1 -0
  25. package/dist/feedback.js +2 -2
  26. package/dist/{fetchAuthPageAboutUs-BnKWq_TL.js → fetchAuthPageAboutUs-CP5a7jIo.js} +2 -2
  27. package/dist/{index-BhVwozr0.js → index-Cn6LcfZO.js} +1 -1
  28. package/dist/main.d.ts +2 -2
  29. package/dist/main.js +245 -247
  30. package/dist/message.js +5 -5
  31. package/dist/pay.js +4 -4
  32. package/dist/privateCom.js +1 -1
  33. package/dist/referrer.js +1 -1
  34. package/dist/{runtime-DMCyhVcI.js → runtime-qs4IasEB.js} +32 -38
  35. package/dist/runtime.d.ts +1 -2
  36. package/dist/style.css +1 -1
  37. package/dist/types/feedbackApi.d.ts +3 -0
  38. package/dist/types/seo.d.ts +15 -0
  39. package/dist/upload.js +2 -2
  40. package/dist/{useAuthkitAppsAuthPageInfo-Byu0yvrx.js → useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js} +1 -1
  41. package/dist/{useAuthkitAuth-M2vTpEcb.js → useAuthkitAuth-BPTZUSkM.js} +2 -2
  42. package/dist/{useAuthkitCreateAndUpdate-D2_Bdazi.js → useAuthkitCreateAndUpdate-Bbv7vZZn.js} +1 -1
  43. package/dist/{useAuthkitUsersProfile-DdUAENic.js → useAuthkitUsersProfile-CW_exa7E.js} +2 -2
  44. package/dist/{useBillingStatusOptions-Jq6Wqfxb.js → useBillingStatusOptions-Br-iL77Z.js} +1 -1
  45. package/dist/{useEnsureAuthenticated-Hel8hWLJ.js → useEnsureAuthenticated-CncOvj2H.js} +2 -2
  46. package/dist/{useLegalDocs-BOjqYRyQ.js → useLegalDocs-BZlntAI7.js} +2 -2
  47. package/dist/{useMessageNotifications-AznFeFMD.js → useMessageNotifications-D9uikt21.js} +1 -1
  48. package/dist/usePageSEO-DwhbUUjW.js +189 -0
  49. package/dist/{useRoutePermission-BmUXTwQc.js → useRoutePermission-BrQX7NTq.js} +2 -2
  50. package/dist/{useSubscriptionCheckout-3ivcOcgC.js → useSubscriptionCheckout-BDDCRxSs.js} +3 -3
  51. package/dist/user.js +1 -1
  52. package/package.json +1 -1
  53. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-C1hPqnNT.js +0 -1531
  54. package/dist/composables/useSEO.d.ts +0 -46
  55. package/dist/useSEO-Chz4Zxuu.js +0 -224
@@ -0,0 +1,3 @@
1
+ import { ApiClients } from '../utils/apiClients';
2
+ /** FeedbackDetails 实际依赖的最小 API 能力,避免绑定完整 ones-server 协议。 */
3
+ export type FeedbackApiClient = Pick<ApiClients['ones'], 'feedbackCenter' | 'messages'>;
@@ -0,0 +1,15 @@
1
+ export interface AppSEOConfig {
2
+ siteName: string;
3
+ titleSuffix?: string;
4
+ locale?: string;
5
+ defaultDescription?: string;
6
+ defaultImage?: string;
7
+ }
8
+ export interface PageSEOConfig {
9
+ title?: string;
10
+ description?: string;
11
+ keywords?: string;
12
+ image?: string;
13
+ url?: string;
14
+ type?: 'website' | 'article' | 'product';
15
+ }
package/dist/upload.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as o } from "./Upload.vue_vue_type_script_setup_true_lang-CkS2S9Xc.js";
2
- import { e as s, f as p } from "./runtime-DMCyhVcI.js";
1
+ import { _ as o } from "./Upload.vue_vue_type_script_setup_true_lang-oa6LJgCY.js";
2
+ import { b as s, d as p } from "./runtime-qs4IasEB.js";
3
3
  export {
4
4
  o as Upload,
5
5
  s as createBrowserCosTransport,
@@ -1,5 +1,5 @@
1
1
  import { ref as r } from "vue";
2
- import { g as s } from "./apiClients-CR-hEwog.js";
2
+ import { g as s } from "./apiClients-Ctcq8NZs.js";
3
3
  function i() {
4
4
  return {
5
5
  type: "doc",
@@ -1,6 +1,6 @@
1
1
  import { ref as u, computed as p, nextTick as _, readonly as x } from "vue";
2
- import { o as M, g as m, r as $, s as E } from "./apiClients-CR-hEwog.js";
3
- import { u as D } from "./useAuthkitAppsAuthPageInfo-Byu0yvrx.js";
2
+ import { o as M, g as m, r as $, s as E } from "./apiClients-Ctcq8NZs.js";
3
+ import { u as D } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
4
4
  const g = u(!1), w = u(!1);
5
5
  let I;
6
6
  const G = "请先阅读并同意用户协议与隐私政策", K = {
@@ -1,5 +1,5 @@
1
1
  /* empty css */
2
- import "./apiClients-CR-hEwog.js";
2
+ import "./apiClients-Ctcq8NZs.js";
3
3
  import { Message as u } from "@arco-design/web-vue";
4
4
  import { ref as e } from "vue";
5
5
  function h(o) {
@@ -1,6 +1,6 @@
1
1
  import { ref as l, computed as r } from "vue";
2
- import { g as f } from "./apiClients-CR-hEwog.js";
3
- import { u as c } from "./useAuthkitAuth-M2vTpEcb.js";
2
+ import { g as f } from "./apiClients-Ctcq8NZs.js";
3
+ import { u as c } from "./useAuthkitAuth-BPTZUSkM.js";
4
4
  const t = l(null), u = l(!1), o = l(!1), v = r(() => !!t.value);
5
5
  async function p() {
6
6
  const {
@@ -1,4 +1,4 @@
1
- import { g as s } from "./apiClients-CR-hEwog.js";
1
+ import { g as s } from "./apiClients-Ctcq8NZs.js";
2
2
  import { ref as c } from "vue";
3
3
  const v = {
4
4
  async productOptions() {
@@ -1,6 +1,6 @@
1
1
  import { computed as f } from "vue";
2
- import { u as r } from "./useAuthkitAuth-M2vTpEcb.js";
3
- import { u as d } from "./apiClients-CR-hEwog.js";
2
+ import { u as r } from "./useAuthkitAuth-BPTZUSkM.js";
3
+ import { u as d } from "./apiClients-Ctcq8NZs.js";
4
4
  const A = "jwtToken";
5
5
  let e = null, i = !1;
6
6
  async function h(n) {
@@ -1,6 +1,6 @@
1
1
  import { computed as f } from "vue";
2
- import { u as d } from "./useAuthkitAppsAuthPageInfo-Byu0yvrx.js";
3
- import { g as L } from "./runtime-DMCyhVcI.js";
2
+ import { u as d } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
3
+ import { g as L } from "./runtime-qs4IasEB.js";
4
4
  const c = {
5
5
  userServiceAgreement: "用户服务协议",
6
6
  privacyPolicy: "隐私协议",
@@ -1,5 +1,5 @@
1
1
  import { ref as a, computed as y } from "vue";
2
- import { g as f } from "./apiClients-CR-hEwog.js";
2
+ import { g as f } from "./apiClients-Ctcq8NZs.js";
3
3
  function z() {
4
4
  const n = a(!0), d = a(""), i = a(!1), g = a(!1), o = a([]), t = a({
5
5
  total: 0,
@@ -0,0 +1,189 @@
1
+ /* empty css */
2
+ import "./apiClients-Ctcq8NZs.js";
3
+ import { Message as y } from "@arco-design/web-vue";
4
+ import { ref as a, computed as s, toValue as A } from "vue";
5
+ import { u as N } from "./runtime-qs4IasEB.js";
6
+ import { useHead as g, useSeoMeta as w } from "@unhead/vue";
7
+ import { useRoute as E } from "vue-router";
8
+ function M(t) {
9
+ const e = a(!1), l = a(), n = a(!1), i = a(""), d = a("");
10
+ function c(o) {
11
+ y.success(o), n.value = !1, e.value = !1, t("confirm");
12
+ }
13
+ function u() {
14
+ n.value = !1, t("cancel");
15
+ }
16
+ return {
17
+ loading: e,
18
+ formRef: l,
19
+ submitSuccess: c,
20
+ modelType: i,
21
+ changeType: d,
22
+ show: n,
23
+ handleCancel: u
24
+ };
25
+ }
26
+ function _(t) {
27
+ const e = a(t), l = a(!1), n = a(!1), i = a({
28
+ total: 0,
29
+ current: 1,
30
+ pageSize: 10,
31
+ showTotal: !0,
32
+ showPageSize: !0
33
+ }), d = a([]), c = a(), u = a(Symbol("key")), o = a(), p = a(Symbol("key")), f = a(), v = a(Symbol("key"));
34
+ function b(r) {
35
+ c.value.setData(r, !0, "edit");
36
+ }
37
+ function h(r) {
38
+ f.value.setData(r, !0, "view");
39
+ }
40
+ function D() {
41
+ c.value.setData(null, !0, "create");
42
+ }
43
+ const k = (r, P) => {
44
+ i.value.current = r, i.value.pageSize = P;
45
+ };
46
+ function O() {
47
+ u.value = Symbol("key");
48
+ }
49
+ function T() {
50
+ p.value = Symbol("key");
51
+ }
52
+ function C(r) {
53
+ o.value.setData(r, !0);
54
+ }
55
+ function R() {
56
+ v.value = Symbol("key");
57
+ }
58
+ function U(r) {
59
+ f.value.setData(r, !0);
60
+ }
61
+ function L(r) {
62
+ y.success(r), n.value = !1;
63
+ }
64
+ return {
65
+ CreateAndUpdateRef: c,
66
+ CreateAndUpdateKey: u,
67
+ OperationLogRef: o,
68
+ OperationLogKey: p,
69
+ DetailsRef: f,
70
+ DetailsKey: v,
71
+ pagination: i,
72
+ title: e,
73
+ edit: b,
74
+ create: D,
75
+ view: h,
76
+ dataSource: d,
77
+ setPage: k,
78
+ cancel: O,
79
+ OperationLogCancel: T,
80
+ openOperationLog: C,
81
+ DetailsCancel: R,
82
+ openDetails: U,
83
+ loading: l,
84
+ submitRemove: L,
85
+ removeLoading: n
86
+ };
87
+ }
88
+ function G() {
89
+ const {
90
+ config: t
91
+ } = N(), e = a([]), l = a(!1), n = a(""), i = a("");
92
+ async function d() {
93
+ l.value = !0, n.value = "";
94
+ try {
95
+ const u = await (await fetch(`${t.onesPrefixUrl}/releases/latest`, {
96
+ method: "POST",
97
+ headers: {
98
+ "Content-Type": "application/json",
99
+ "app-id": t.appId
100
+ },
101
+ body: JSON.stringify({})
102
+ })).json();
103
+ i.value = u.version, e.value = u.downloads.map((o) => {
104
+ const p = {
105
+ id: o.id,
106
+ name: o.name,
107
+ description: o.description,
108
+ version: o.version,
109
+ updateDate: o.updateDate,
110
+ icon: "",
111
+ downloadUrl: o.downloadUrl,
112
+ platform: o.platform,
113
+ requirements: o.requirements
114
+ };
115
+ return o.arch && (p.arch = o.arch), o.badge && (p.badge = o.badge), p;
116
+ });
117
+ } catch {
118
+ n.value = "获取版本信息失败,请刷新重试";
119
+ } finally {
120
+ l.value = !1;
121
+ }
122
+ }
123
+ return {
124
+ downloads: e,
125
+ loading: l,
126
+ error: n,
127
+ version: i,
128
+ fetchDownloads: d
129
+ };
130
+ }
131
+ function m(t) {
132
+ return !t || t.length <= 155 ? t : `${t.substring(0, 152)}...`;
133
+ }
134
+ function I(t) {
135
+ return t === "article" ? "article" : "website";
136
+ }
137
+ function S(t) {
138
+ const e = s(() => A(t));
139
+ g({
140
+ title: s(() => e.value.title),
141
+ link: s(() => e.value.url ? [{
142
+ rel: "canonical",
143
+ href: e.value.url
144
+ }] : [])
145
+ }), w({
146
+ description: s(() => m(e.value.description)),
147
+ keywords: s(() => e.value.keywords),
148
+ ogTitle: s(() => e.value.title),
149
+ ogDescription: s(() => m(e.value.description)),
150
+ ogType: s(() => I(e.value.type)),
151
+ ogUrl: s(() => e.value.url),
152
+ ogImage: s(() => e.value.image),
153
+ twitterCard: "summary_large_image",
154
+ twitterTitle: s(() => e.value.title),
155
+ twitterDescription: s(() => m(e.value.description)),
156
+ twitterImage: s(() => e.value.image)
157
+ });
158
+ }
159
+ function J(t) {
160
+ const e = E(), l = s(() => ({
161
+ title: typeof e.meta.title == "string" ? e.meta.title : void 0,
162
+ description: typeof e.meta.description == "string" ? e.meta.description : t.defaultDescription,
163
+ keywords: typeof e.meta.keywords == "string" ? e.meta.keywords : void 0,
164
+ image: typeof e.meta.image == "string" ? e.meta.image : t.defaultImage,
165
+ url: typeof e.meta.url == "string" ? e.meta.url : void 0,
166
+ type: e.meta.type === "article" || e.meta.type === "product" || e.meta.type === "website" ? e.meta.type : "website"
167
+ }));
168
+ g({
169
+ htmlAttrs: t.locale ? {
170
+ lang: t.locale
171
+ } : void 0,
172
+ titleTemplate(n) {
173
+ return !n || n === t.siteName ? t.siteName : `${n}${t.titleSuffix ?? ""}`;
174
+ }
175
+ }), w({
176
+ ogSiteName: t.siteName,
177
+ ogLocale: t.locale
178
+ }), S(l);
179
+ }
180
+ function V(t) {
181
+ S(t);
182
+ }
183
+ export {
184
+ M as a,
185
+ G as b,
186
+ V as c,
187
+ _ as d,
188
+ J as u
189
+ };
@@ -1,7 +1,7 @@
1
1
  import { ref as I, computed as w, watch as S } from "vue";
2
2
  import { useRouter as M, useRoute as T } from "vue-router";
3
- import { u as k } from "./useAuthkitAppsAuthPageInfo-Byu0yvrx.js";
4
- import { u as L } from "./useAuthkitUsersProfile-DdUAENic.js";
3
+ import { u as k } from "./useAuthkitAppsAuthPageInfo-DZ1p-P3Q.js";
4
+ import { u as L } from "./useAuthkitUsersProfile-CW_exa7E.js";
5
5
  const y = I({
6
6
  key: "",
7
7
  name: ""
@@ -1,9 +1,9 @@
1
1
  import { ref as g, computed as q } from "vue";
2
- import { d as z } from "./useBillingStatusOptions-Jq6Wqfxb.js";
3
- import { g as $ } from "./apiClients-CR-hEwog.js";
2
+ import { d as z } from "./useBillingStatusOptions-Br-iL77Z.js";
3
+ import { g as $ } from "./apiClients-Ctcq8NZs.js";
4
4
  /* empty css */
5
5
  import { Message as h } from "@arco-design/web-vue";
6
- import { u as H } from "./useEnsureAuthenticated-Hel8hWLJ.js";
6
+ import { u as H } from "./useEnsureAuthenticated-CncOvj2H.js";
7
7
  function D(e) {
8
8
  var i;
9
9
  const r = (i = e == null ? void 0 : e.metadata) == null ? void 0 : i.originalPrice;
package/dist/user.js CHANGED
@@ -1,4 +1,4 @@
1
- import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BrNx6JWe.js";
1
+ import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-CawueoIY.js";
2
2
  export {
3
3
  a as UserAccountMenu,
4
4
  n as UserAvatar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huyooo/ui",
3
- "version": "2.0.1",
3
+ "version": "2.0.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [