@huyooo/ui 0.4.74 → 0.4.75
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.
- package/dist/common/downloadOptions.d.ts +23 -0
- package/dist/components/Download/BrowserExtensions.vue.d.ts +20 -0
- package/dist/components/Download/DesktopDownloads.vue.d.ts +7 -0
- package/dist/components/Download/DownloadCard.vue.d.ts +17 -0
- package/dist/components/Download/DownloadDropdown.vue.d.ts +5 -0
- package/dist/components/Download/DownloadGrid.vue.d.ts +17 -0
- package/dist/components/Download/DownloadSectionHeader.vue.d.ts +6 -0
- package/dist/components/Download/ExtensionCard.vue.d.ts +21 -0
- package/dist/components/Download/MobileDownloads.vue.d.ts +21 -0
- package/dist/composables/useDownloads.d.ts +39 -0
- package/dist/composables.d.ts +1 -0
- package/dist/composables.js +14 -13
- package/dist/download.d.ts +8 -0
- package/dist/index.js +700 -154
- package/dist/main.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/useDownloads-BkDo_wOR.js +103 -0
- package/package.json +1 -1
- package/dist/viewTransitions-C-ZLwiJ0.js +0 -55
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 桌面客户端下载项接口
|
|
3
|
+
*/
|
|
4
|
+
export interface DesktopDownloadItem {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
version: string;
|
|
9
|
+
updateDate: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
downloadUrl: string;
|
|
12
|
+
platform: 'Windows' | 'macOS';
|
|
13
|
+
requirements: string;
|
|
14
|
+
badge?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 统一的下载处理函数
|
|
18
|
+
*/
|
|
19
|
+
export declare function handleDownload(downloadUrl: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* 检测当前用户的平台
|
|
22
|
+
*/
|
|
23
|
+
export declare function detectPlatform(): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface ExtensionItem {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
requirements: string;
|
|
7
|
+
version: string;
|
|
8
|
+
updateDate: string;
|
|
9
|
+
platform?: string;
|
|
10
|
+
storeUrl?: string;
|
|
11
|
+
downloadUrl?: string;
|
|
12
|
+
isRecommended?: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface Props {
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
browserExtensions: ExtensionItem[];
|
|
18
|
+
}
|
|
19
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
title: string;
|
|
3
|
+
description: string;
|
|
4
|
+
versionApi: string;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
download: any;
|
|
3
|
+
type: 'desktop' | 'mobile' | 'extension';
|
|
4
|
+
showDropdown?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
download: (download: any) => any;
|
|
8
|
+
openStore: (download: any) => any;
|
|
9
|
+
toggleDropdown: () => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
11
|
+
onDownload?: ((download: any) => any) | undefined;
|
|
12
|
+
onOpenStore?: ((download: any) => any) | undefined;
|
|
13
|
+
onToggleDropdown?: (() => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
showDropdown: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
versionApi: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
title: string;
|
|
3
|
+
description: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface ExtensionItem {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
requirements: string;
|
|
7
|
+
storeUrl?: string;
|
|
8
|
+
downloadUrl?: string;
|
|
9
|
+
isRecommended?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface Props {
|
|
12
|
+
extension: ExtensionItem;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
download: (extension: ExtensionItem) => any;
|
|
16
|
+
openStore: (extension: ExtensionItem) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
18
|
+
onDownload?: ((extension: ExtensionItem) => any) | undefined;
|
|
19
|
+
onOpenStore?: ((extension: ExtensionItem) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface MobileDownloadItem {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
version: string;
|
|
6
|
+
updateDate: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
downloadUrl: string;
|
|
9
|
+
platform: string;
|
|
10
|
+
requirements: string;
|
|
11
|
+
badge?: string;
|
|
12
|
+
isExternal?: boolean;
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
}
|
|
15
|
+
interface Props {
|
|
16
|
+
title: string;
|
|
17
|
+
description: string;
|
|
18
|
+
mobileDownloads: MobileDownloadItem[];
|
|
19
|
+
}
|
|
20
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { DesktopDownloadItem } from '../common/downloadOptions';
|
|
2
|
+
/**
|
|
3
|
+
* 获取下载配置的 composable
|
|
4
|
+
*/
|
|
5
|
+
export declare function useDownloads(): {
|
|
6
|
+
downloads: import('vue').Ref<{
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
version: string;
|
|
11
|
+
updateDate: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
downloadUrl: string;
|
|
14
|
+
platform: "Windows" | "macOS";
|
|
15
|
+
requirements: string;
|
|
16
|
+
badge?: string | undefined;
|
|
17
|
+
}[], DesktopDownloadItem[] | {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
version: string;
|
|
22
|
+
updateDate: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
downloadUrl: string;
|
|
25
|
+
platform: "Windows" | "macOS";
|
|
26
|
+
requirements: string;
|
|
27
|
+
badge?: string | undefined;
|
|
28
|
+
}[]>;
|
|
29
|
+
loading: import('vue').Ref<boolean, boolean>;
|
|
30
|
+
error: import('vue').Ref<string, string>;
|
|
31
|
+
version: import('vue').Ref<string, string>;
|
|
32
|
+
fetchDownloads: ({ versionApi }: {
|
|
33
|
+
versionApi: string;
|
|
34
|
+
}) => Promise<void>;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* 清除缓存(用于需要刷新数据的场景)
|
|
38
|
+
*/
|
|
39
|
+
export declare function clearDownloadsCache(): void;
|
package/dist/composables.d.ts
CHANGED
|
@@ -10,3 +10,4 @@ export { useTableHandle } from './composables/useTableHandle';
|
|
|
10
10
|
export { useActiveDoc } from './composables/useActiveDoc';
|
|
11
11
|
export { useUploadCos } from './composables/Upload/useUploadCos';
|
|
12
12
|
export { withViewTransition } from './composables/viewTransitions';
|
|
13
|
+
export { useDownloads } from './composables/useDownloads';
|
package/dist/composables.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { u as o, a
|
|
1
|
+
import { u as o, a } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
|
|
2
2
|
import { U as u, u as r } from "./useAuthkitAppsAuthPageInfo-COeq29Tn.js";
|
|
3
3
|
import { u as f } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
|
|
4
4
|
import { u as A } from "./useMessageNotifications-DOH1MS61.js";
|
|
5
|
-
import { g as
|
|
6
|
-
import { a as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
5
|
+
import { g as l, s as m } from "./globalConfig-DZIhLe1R.js";
|
|
6
|
+
import { a as d, u as x, b as g, w as C } from "./useDownloads-BkDo_wOR.js";
|
|
7
|
+
import { u as k } from "./useTableHandle-DKUIdSSh.js";
|
|
8
|
+
import { u as w } from "./useUploadCos-B5P_PDcy.js";
|
|
9
9
|
export {
|
|
10
10
|
u as UseAuthkitAppsAuthPageInfo,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
l as globalConfig,
|
|
12
|
+
m as setGlobalConfig,
|
|
13
|
+
d as useActiveDoc,
|
|
14
14
|
o as useAuthkitAuth,
|
|
15
15
|
r as useAuthkitAuthModal,
|
|
16
16
|
f as useAuthkitCreateAndUpdate,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
a as useAuthkitUsersProfile,
|
|
18
|
+
x as useCommonCreateAndUpdate,
|
|
19
|
+
g as useDownloads,
|
|
19
20
|
A as useMessageNotifications,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
k as useTableHandle,
|
|
22
|
+
w as useUploadCos,
|
|
23
|
+
C as withViewTransition
|
|
23
24
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as BrowserExtensions } from './components/Download/BrowserExtensions.vue';
|
|
2
|
+
export { default as DesktopDownloads } from './components/Download/DesktopDownloads.vue';
|
|
3
|
+
export { default as DownloadCard } from './components/Download/DownloadCard.vue';
|
|
4
|
+
export { default as DownloadDropdown } from './components/Download/DownloadDropdown.vue';
|
|
5
|
+
export { default as DownloadGrid } from './components/Download/DownloadGrid.vue';
|
|
6
|
+
export { default as DownloadSectionHeader } from './components/Download/DownloadSectionHeader.vue';
|
|
7
|
+
export { default as ExtensionCard } from './components/Download/ExtensionCard.vue';
|
|
8
|
+
export { default as MobileDownloads } from './components/Download/MobileDownloads.vue';
|