bilitoolkit-ui 0.0.1
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/LICENSE +201 -0
- package/README.md +3 -0
- package/dist/api/toolkit-api.d.ts +2 -0
- package/dist/bilitoolkit-ui.css +6 -0
- package/dist/bilitoolkit-ui.js +117707 -0
- package/dist/bilitoolkit-ui.umd.cjs +85 -0
- package/dist/common/ui-constants.d.ts +9 -0
- package/dist/components/bili/BiliAccountCard.vue.d.ts +18 -0
- package/dist/components/bili/types.d.ts +7 -0
- package/dist/components/common/AppIcon.vue.d.ts +9 -0
- package/dist/components/common/AppTooltip.vue.d.ts +25 -0
- package/dist/components/common/ExternalLink.vue.d.ts +20 -0
- package/dist/components/common/IconButton.vue.d.ts +27 -0
- package/dist/components/common/IconLabel.vue.d.ts +20 -0
- package/dist/components/common/LogPrint.vue.d.ts +5 -0
- package/dist/components/dialog/countdown/CountdownDialog.vue.d.ts +22 -0
- package/dist/components/dialog/countdown/types.d.ts +11 -0
- package/dist/components/dialog/countdown/useCountdown.d.ts +9 -0
- package/dist/components/dialog/loading/LoadingDialog.vue.d.ts +16 -0
- package/dist/components/dialog/loading/loadingService.d.ts +12 -0
- package/dist/components/dialog/loading/types.d.ts +21 -0
- package/dist/components/plugin/PluginMenuItem.vue.d.ts +3 -0
- package/dist/components/plugin/PluginMenus.vue.d.ts +25 -0
- package/dist/components/plugin/PluginPageContent.vue.d.ts +17 -0
- package/dist/components/plugin/PluginPageHeader.vue.d.ts +7 -0
- package/dist/components/plugin/types.d.ts +12 -0
- package/dist/components/settings/SettingGroup.vue.d.ts +20 -0
- package/dist/components/settings/SettingItem.vue.d.ts +22 -0
- package/dist/composables/useLoadingData.d.ts +4 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.d.ts +28 -0
- package/dist/main.d.ts +0 -0
- package/dist/stores/app-theme.d.ts +31 -0
- package/dist/stores/selected-account.d.ts +26 -0
- package/dist/stores/test-data.d.ts +70 -0
- package/dist/styles/functions.scss +4 -0
- package/dist/styles/mixins.scss +146 -0
- package/dist/styles/variables.scss +1 -0
- package/dist/test/menus.d.ts +2 -0
- package/dist/test/user.d.ts +12 -0
- package/dist/ui.d.ts +10 -0
- package/dist/utils/app-utils.d.ts +20 -0
- package/dist/utils/theme-utils.d.ts +10 -0
- package/dist/views/HomeView.vue.d.ts +2 -0
- package/package.json +94 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BiliAccountCardProps } from './types.ts';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<BiliAccountCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BiliAccountCardProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* remix 图标
|
|
3
|
+
* 根据应用主题自动切换图标类型
|
|
4
|
+
*/
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
icon: string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface TooltipProps {
|
|
2
|
+
content?: string;
|
|
3
|
+
type?: 'ltr' | 'rtl';
|
|
4
|
+
iconClass?: string;
|
|
5
|
+
contentClass?: string;
|
|
6
|
+
}
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<TooltipProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TooltipProps> & Readonly<{}>, {
|
|
17
|
+
type: "ltr" | "rtl";
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
url: string;
|
|
3
|
+
};
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: HTMLSpanElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
interface IconButtonProps {
|
|
2
|
+
confirm?: string;
|
|
3
|
+
icon: string;
|
|
4
|
+
tip?: string;
|
|
5
|
+
}
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: any;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<IconButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
click: (...args: any[]) => void;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<IconButtonProps> & Readonly<{
|
|
19
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
icon: string;
|
|
3
|
+
};
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare function addLog(msg: string): void;
|
|
2
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
3
|
+
addLog: typeof addLog;
|
|
4
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CountdownDialogProps } from './types.ts';
|
|
2
|
+
type __VLS_Props = CountdownDialogProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue: boolean;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
7
|
+
show: () => void;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
onConfirm: (...args: any[]) => void;
|
|
10
|
+
onCancel: (...args: any[]) => void;
|
|
11
|
+
"update:modelValue": (value: boolean) => void;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
onOnConfirm?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
onOnCancel?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
title: string;
|
|
18
|
+
confirmBtnText: string;
|
|
19
|
+
cancelBtnText: string;
|
|
20
|
+
width: number;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LoadingDialogProps } from './types.ts';
|
|
2
|
+
type __VLS_Props = LoadingDialogProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue: boolean;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
7
|
+
show: (options?: LoadingDialogProps) => void;
|
|
8
|
+
hide: () => void;
|
|
9
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (value: boolean) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
canCancel: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GlobalLoadingDialogProps } from './types.ts';
|
|
2
|
+
/**
|
|
3
|
+
* APP 全局加载框
|
|
4
|
+
*/
|
|
5
|
+
export declare const AppLoadingDialog: {
|
|
6
|
+
/**
|
|
7
|
+
* 显示,返回一个Promise,解析为是否成功,false为用户取消
|
|
8
|
+
* @param options
|
|
9
|
+
*/
|
|
10
|
+
show(options?: Omit<GlobalLoadingDialogProps, "onCancel">): Promise<boolean>;
|
|
11
|
+
hide(): void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 加载框
|
|
3
|
+
*/
|
|
4
|
+
export interface LoadingDialogProps {
|
|
5
|
+
canCancel?: boolean;
|
|
6
|
+
onCancel?: () => void;
|
|
7
|
+
loadingText?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 加载框暴露的方法
|
|
11
|
+
*/
|
|
12
|
+
export type LoadingDialogExposed = {
|
|
13
|
+
show: (options?: LoadingDialogProps) => void;
|
|
14
|
+
hide: () => void;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* 全局加载框的参数
|
|
18
|
+
*/
|
|
19
|
+
export type GlobalLoadingDialogProps = {
|
|
20
|
+
autoCloseDelay?: number;
|
|
21
|
+
} & LoadingDialogProps;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PluginMenuItemProps } from './types.ts';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<PluginMenuItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PluginMenuItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PluginMenuInfo, PluginMenusProps } from './types.ts';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
'left-item'?(_: {}): any;
|
|
6
|
+
left?(_: {}): any;
|
|
7
|
+
'right-item'?(_: {}): any;
|
|
8
|
+
right?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: any;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<PluginMenusProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
handleSelect: (menu: PluginMenuInfo) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<PluginMenusProps> & Readonly<{
|
|
17
|
+
onHandleSelect?: ((menu: PluginMenuInfo) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -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,7 @@
|
|
|
1
|
+
import { PluginMenuInfo, PluginMenusProps } from './types.ts';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<PluginMenusProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
handleMenuSelect: (menu: PluginMenuInfo) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<PluginMenusProps> & Readonly<{
|
|
5
|
+
onHandleMenuSelect?: ((menu: PluginMenuInfo) => any) | undefined;
|
|
6
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface PluginMenuInfo {
|
|
2
|
+
title: string;
|
|
3
|
+
path: string;
|
|
4
|
+
children?: Array<PluginMenuInfo>;
|
|
5
|
+
}
|
|
6
|
+
export interface PluginMenusProps {
|
|
7
|
+
menus: Array<PluginMenuInfo>;
|
|
8
|
+
activeIndex: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PluginMenuItemProps {
|
|
11
|
+
menu: PluginMenuInfo;
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
name: string;
|
|
3
|
+
};
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
desc?: string;
|
|
4
|
+
iconClass?: string;
|
|
5
|
+
};
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const useLoadingData: () => {
|
|
2
|
+
loading: import('vue').Ref<boolean, boolean>;
|
|
3
|
+
loadingData: <TArgs extends any[] = [], TReturn = void>(doneFn: ((...args: TArgs) => TReturn | Promise<TReturn>) | Promise<TReturn>) => ((...args: TArgs) => Promise<TReturn>);
|
|
4
|
+
};
|
package/dist/favicon.ico
ADDED
|
Binary file
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from './ui';
|
|
2
|
+
export * from './utils/app-utils';
|
|
3
|
+
export * from './utils/theme-utils';
|
|
4
|
+
export * from './stores/test-data.ts';
|
|
5
|
+
export * from './stores/app-theme.ts';
|
|
6
|
+
export * from './stores/selected-account.ts';
|
|
7
|
+
export { useLoadingData } from './composables/useLoadingData';
|
|
8
|
+
export { default as SettingGroup } from './components/settings/SettingGroup.vue';
|
|
9
|
+
export { default as SettingItem } from './components/settings/SettingItem.vue';
|
|
10
|
+
export * from './components/dialog/countdown/types';
|
|
11
|
+
export * from './components/dialog/countdown/useCountdown';
|
|
12
|
+
export { default as CountdownDialog } from './components/dialog/countdown/CountdownDialog.vue';
|
|
13
|
+
export * from './components/dialog/loading/types';
|
|
14
|
+
export * from './components/dialog/loading/loadingService';
|
|
15
|
+
export { default as LoadingDialog } from './components/dialog/loading/LoadingDialog.vue';
|
|
16
|
+
export { default as AppIcon } from './components/common/AppIcon.vue';
|
|
17
|
+
export { default as AppTooltip } from './components/common/AppTooltip.vue';
|
|
18
|
+
export { default as IconButton } from './components/common/IconButton.vue';
|
|
19
|
+
export { default as IconLabel } from './components/common/IconLabel.vue';
|
|
20
|
+
export { default as ExternalLink } from './components/common/ExternalLink.vue';
|
|
21
|
+
export { default as LogPrint } from './components/common/LogPrint.vue';
|
|
22
|
+
export * from './components/bili/types.ts';
|
|
23
|
+
export { default as BiliAccountCard } from './components/bili/BiliAccountCard.vue';
|
|
24
|
+
export * from './components/plugin/types';
|
|
25
|
+
export { default as PluginMenuItem } from './components/plugin/PluginMenuItem.vue';
|
|
26
|
+
export { default as PluginMenus } from './components/plugin/PluginMenus.vue';
|
|
27
|
+
export { default as PluginPageHeader } from './components/plugin/PluginPageHeader.vue';
|
|
28
|
+
export { default as PluginPageContent } from './components/plugin/PluginPageContent.vue';
|
package/dist/main.d.ts
ADDED
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 应用主题状态 Store
|
|
3
|
+
*/
|
|
4
|
+
export declare const useAppThemeStore: import('pinia').StoreDefinition<"BiliToolkit-ui-AppThemeStore", Pick<{
|
|
5
|
+
init: () => Promise<void>;
|
|
6
|
+
state: {
|
|
7
|
+
currPrimaryColorIndex: number;
|
|
8
|
+
primaryColor: string;
|
|
9
|
+
themeMode: import('bilitoolkit-api-types').AppThemeMode;
|
|
10
|
+
bgMode: import('bilitoolkit-api-types').AppThemeBackgroundMode;
|
|
11
|
+
dark: boolean;
|
|
12
|
+
};
|
|
13
|
+
}, "state">, Pick<{
|
|
14
|
+
init: () => Promise<void>;
|
|
15
|
+
state: {
|
|
16
|
+
currPrimaryColorIndex: number;
|
|
17
|
+
primaryColor: string;
|
|
18
|
+
themeMode: import('bilitoolkit-api-types').AppThemeMode;
|
|
19
|
+
bgMode: import('bilitoolkit-api-types').AppThemeBackgroundMode;
|
|
20
|
+
dark: boolean;
|
|
21
|
+
};
|
|
22
|
+
}, never>, Pick<{
|
|
23
|
+
init: () => Promise<void>;
|
|
24
|
+
state: {
|
|
25
|
+
currPrimaryColorIndex: number;
|
|
26
|
+
primaryColor: string;
|
|
27
|
+
themeMode: import('bilitoolkit-api-types').AppThemeMode;
|
|
28
|
+
bgMode: import('bilitoolkit-api-types').AppThemeBackgroundMode;
|
|
29
|
+
dark: boolean;
|
|
30
|
+
};
|
|
31
|
+
}, "init">>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BiliAccountInfo } from 'bilitoolkit-api-types';
|
|
2
|
+
/**
|
|
3
|
+
* 选择的账号状态 Store
|
|
4
|
+
*/
|
|
5
|
+
export declare const useSelectedAccountStore: import('pinia').StoreDefinition<"BiliToolkit-ui-SelectedAccountStore", Pick<{
|
|
6
|
+
init: () => Promise<void>;
|
|
7
|
+
state: {
|
|
8
|
+
selectedAccount: BiliAccountInfo | undefined;
|
|
9
|
+
};
|
|
10
|
+
deleteAccount: () => void;
|
|
11
|
+
setAccount: (account: BiliAccountInfo) => void;
|
|
12
|
+
}, "state">, Pick<{
|
|
13
|
+
init: () => Promise<void>;
|
|
14
|
+
state: {
|
|
15
|
+
selectedAccount: BiliAccountInfo | undefined;
|
|
16
|
+
};
|
|
17
|
+
deleteAccount: () => void;
|
|
18
|
+
setAccount: (account: BiliAccountInfo) => void;
|
|
19
|
+
}, never>, Pick<{
|
|
20
|
+
init: () => Promise<void>;
|
|
21
|
+
state: {
|
|
22
|
+
selectedAccount: BiliAccountInfo | undefined;
|
|
23
|
+
};
|
|
24
|
+
deleteAccount: () => void;
|
|
25
|
+
setAccount: (account: BiliAccountInfo) => void;
|
|
26
|
+
}, "init" | "deleteAccount" | "setAccount">>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 测试数据状态 Store
|
|
3
|
+
*/
|
|
4
|
+
export declare const useTestDataStore: import('pinia').StoreDefinition<"BiliToolkit-ui-TestDataStore", Pick<{
|
|
5
|
+
init: (isTest: boolean) => Promise<void>;
|
|
6
|
+
state: {
|
|
7
|
+
isTest: boolean;
|
|
8
|
+
account: {
|
|
9
|
+
mid: number;
|
|
10
|
+
name: string;
|
|
11
|
+
face: string;
|
|
12
|
+
sex: string;
|
|
13
|
+
level: number;
|
|
14
|
+
sign: string;
|
|
15
|
+
moral: number;
|
|
16
|
+
silence: number;
|
|
17
|
+
following: number;
|
|
18
|
+
follower: number;
|
|
19
|
+
};
|
|
20
|
+
menus: {
|
|
21
|
+
title: string;
|
|
22
|
+
path: string;
|
|
23
|
+
children?: /*elided*/ any[] | undefined;
|
|
24
|
+
}[];
|
|
25
|
+
};
|
|
26
|
+
}, "state">, Pick<{
|
|
27
|
+
init: (isTest: boolean) => Promise<void>;
|
|
28
|
+
state: {
|
|
29
|
+
isTest: boolean;
|
|
30
|
+
account: {
|
|
31
|
+
mid: number;
|
|
32
|
+
name: string;
|
|
33
|
+
face: string;
|
|
34
|
+
sex: string;
|
|
35
|
+
level: number;
|
|
36
|
+
sign: string;
|
|
37
|
+
moral: number;
|
|
38
|
+
silence: number;
|
|
39
|
+
following: number;
|
|
40
|
+
follower: number;
|
|
41
|
+
};
|
|
42
|
+
menus: {
|
|
43
|
+
title: string;
|
|
44
|
+
path: string;
|
|
45
|
+
children?: /*elided*/ any[] | undefined;
|
|
46
|
+
}[];
|
|
47
|
+
};
|
|
48
|
+
}, never>, Pick<{
|
|
49
|
+
init: (isTest: boolean) => Promise<void>;
|
|
50
|
+
state: {
|
|
51
|
+
isTest: boolean;
|
|
52
|
+
account: {
|
|
53
|
+
mid: number;
|
|
54
|
+
name: string;
|
|
55
|
+
face: string;
|
|
56
|
+
sex: string;
|
|
57
|
+
level: number;
|
|
58
|
+
sign: string;
|
|
59
|
+
moral: number;
|
|
60
|
+
silence: number;
|
|
61
|
+
following: number;
|
|
62
|
+
follower: number;
|
|
63
|
+
};
|
|
64
|
+
menus: {
|
|
65
|
+
title: string;
|
|
66
|
+
path: string;
|
|
67
|
+
children?: /*elided*/ any[] | undefined;
|
|
68
|
+
}[];
|
|
69
|
+
};
|
|
70
|
+
}, "init">>;
|