@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
@@ -1,46 +0,0 @@
1
- /**
2
- * 全局 SEO 配置接口
3
- */
4
- export interface GlobalSEOConfig {
5
- /** 网站名称 */
6
- siteName?: string;
7
- /** 标题后缀 */
8
- titleSuffix?: string;
9
- /** 默认语言 */
10
- locale?: string;
11
- }
12
- /**
13
- * 页面级别 SEO 配置接口
14
- */
15
- export interface PageSEOConfig {
16
- /** 页面标题 */
17
- title: string;
18
- /** 页面描述 */
19
- description?: string;
20
- /** 关键词 */
21
- keywords?: string;
22
- /** 图片 URL */
23
- image?: string;
24
- /** 页面 URL */
25
- url?: string;
26
- /**
27
- * Open Graph 类型:
28
- * - website: 普通页面(首页、关于等)
29
- * - article: 文章/博客/新闻页面
30
- * - product: 商品/产品页面
31
- */
32
- type?: 'website' | 'article' | 'product';
33
- }
34
- /**
35
- * SEO 管理 composable
36
- * 提供全局和页面级别的 SEO 设置方法
37
- */
38
- export declare function useSEO(): {
39
- setGlobalSEO: (config: GlobalSEOConfig) => void;
40
- setPageSEO: (config: PageSEOConfig) => void;
41
- };
42
- /**
43
- * 自动从当前路由的 meta 信息设置页面 SEO
44
- * 必须在已 app.use(router) 的 Vue 组件中使用;宿主 Vite 需 dedupe vue-router
45
- */
46
- export declare function useRouteSEO(): void;
@@ -1,224 +0,0 @@
1
- /* empty css */
2
- import "./apiClients-CR-hEwog.js";
3
- import { Message as y } from "@arco-design/web-vue";
4
- import { ref as a, getCurrentInstance as I, computed as i } from "vue";
5
- import { u as L } from "./runtime-DMCyhVcI.js";
6
- import { useHead as v, useSeoMeta as p } from "@unhead/vue";
7
- import { useRoute as P } from "vue-router";
8
- function M(s) {
9
- const n = a(!1), t = a(), e = a(!1), r = a(""), m = a("");
10
- function d(o) {
11
- y.success(o), e.value = !1, n.value = !1, s("confirm");
12
- }
13
- function c() {
14
- e.value = !1, s("cancel");
15
- }
16
- return {
17
- loading: n,
18
- formRef: t,
19
- submitSuccess: d,
20
- modelType: r,
21
- changeType: m,
22
- show: e,
23
- handleCancel: c
24
- };
25
- }
26
- function N(s) {
27
- const n = a(s), t = a(!1), e = a(!1), r = a({
28
- total: 0,
29
- current: 1,
30
- pageSize: 10,
31
- showTotal: !0,
32
- showPageSize: !0
33
- }), m = a([]), d = a(), c = a(Symbol("key")), o = a(), l = a(Symbol("key")), f = a(), g = a(Symbol("key"));
34
- function w(u) {
35
- d.value.setData(u, !0, "edit");
36
- }
37
- function b(u) {
38
- f.value.setData(u, !0, "view");
39
- }
40
- function h() {
41
- d.value.setData(null, !0, "create");
42
- }
43
- const S = (u, U) => {
44
- r.value.current = u, r.value.pageSize = U;
45
- };
46
- function D() {
47
- c.value = Symbol("key");
48
- }
49
- function T() {
50
- l.value = Symbol("key");
51
- }
52
- function k(u) {
53
- o.value.setData(u, !0);
54
- }
55
- function C() {
56
- g.value = Symbol("key");
57
- }
58
- function O(u) {
59
- f.value.setData(u, !0);
60
- }
61
- function R(u) {
62
- y.success(u), e.value = !1;
63
- }
64
- return {
65
- CreateAndUpdateRef: d,
66
- CreateAndUpdateKey: c,
67
- OperationLogRef: o,
68
- OperationLogKey: l,
69
- DetailsRef: f,
70
- DetailsKey: g,
71
- pagination: r,
72
- title: n,
73
- edit: w,
74
- create: h,
75
- view: b,
76
- dataSource: m,
77
- setPage: S,
78
- cancel: D,
79
- OperationLogCancel: T,
80
- openOperationLog: k,
81
- DetailsCancel: C,
82
- openDetails: O,
83
- loading: t,
84
- submitRemove: R,
85
- removeLoading: e
86
- };
87
- }
88
- function j() {
89
- const {
90
- config: s
91
- } = L(), n = a([]), t = a(!1), e = a(""), r = a("");
92
- async function m() {
93
- t.value = !0, e.value = "";
94
- try {
95
- const c = await (await fetch(`${s.onesPrefixUrl}/releases/latest`, {
96
- method: "POST",
97
- headers: {
98
- "Content-Type": "application/json",
99
- "app-id": s.appId
100
- },
101
- body: JSON.stringify({})
102
- })).json();
103
- r.value = c.version, n.value = c.downloads.map((o) => {
104
- const l = {
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 && (l.arch = o.arch), o.badge && (l.badge = o.badge), l;
116
- });
117
- } catch {
118
- e.value = "获取版本信息失败,请刷新重试";
119
- } finally {
120
- t.value = !1;
121
- }
122
- }
123
- return {
124
- downloads: n,
125
- loading: t,
126
- error: e,
127
- version: r,
128
- fetchDownloads: m
129
- };
130
- }
131
- function q() {
132
- function s(t) {
133
- p({
134
- ogSiteName: t.siteName,
135
- ogLocale: t.locale
136
- });
137
- }
138
- function n(t) {
139
- const {
140
- title: e,
141
- description: r,
142
- keywords: m,
143
- image: d,
144
- url: c,
145
- type: o = "website"
146
- } = t, l = r && r.length > 155 ? `${r.substring(0, 152)}...` : r;
147
- v({
148
- title: e,
149
- link: c ? [{
150
- rel: "canonical",
151
- href: c
152
- }] : []
153
- }), p({
154
- description: l || r,
155
- keywords: m,
156
- ogTitle: e,
157
- ogDescription: l || r,
158
- ogType: o === "product" ? void 0 : o,
159
- // product 类型不被支持,跳过
160
- ogUrl: c,
161
- ogImage: d,
162
- twitterCard: "summary_large_image",
163
- twitterTitle: e,
164
- twitterDescription: l || r,
165
- twitterImage: d
166
- });
167
- }
168
- return {
169
- setGlobalSEO: s,
170
- setPageSEO: n
171
- };
172
- }
173
- function x() {
174
- if (!I())
175
- return;
176
- const s = P();
177
- if (!(s != null && s.meta))
178
- return;
179
- const n = () => s.meta;
180
- v({
181
- title: i(() => n().title || ""),
182
- link: i(() => {
183
- const t = n();
184
- return t.url ? [{
185
- rel: "canonical",
186
- href: t.url
187
- }] : [];
188
- })
189
- }), p({
190
- description: i(() => {
191
- const e = n().description;
192
- if (e)
193
- return e.length > 155 ? `${e.substring(0, 152)}...` : e;
194
- }),
195
- keywords: i(() => n().keywords),
196
- ogTitle: i(() => n().title),
197
- ogDescription: i(() => {
198
- const e = n().description;
199
- if (e)
200
- return e.length > 155 ? `${e.substring(0, 152)}...` : e;
201
- }),
202
- ogType: i(() => {
203
- const e = n().type || "website";
204
- return e === "product" ? void 0 : e;
205
- }),
206
- ogUrl: i(() => n().url),
207
- ogImage: i(() => n().image),
208
- twitterCard: "summary_large_image",
209
- twitterTitle: i(() => n().title),
210
- twitterDescription: i(() => {
211
- const e = n().description;
212
- if (e)
213
- return e.length > 155 ? `${e.substring(0, 152)}...` : e;
214
- }),
215
- twitterImage: i(() => n().image)
216
- });
217
- }
218
- export {
219
- j as a,
220
- x as b,
221
- q as c,
222
- N as d,
223
- M as u
224
- };