bilitoolkit-ui 0.0.1 → 0.0.2
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 +21 -201
- package/README.md +1 -1
- package/dist/bilitoolkit-ui.css +1 -6
- package/dist/common.d.ts +26 -0
- package/dist/common.js +22 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.d.ts +3213 -28
- package/dist/index.js +1526 -0
- package/dist/styles/animations.scss +9 -0
- package/dist/styles/mixins.scss +36 -13
- package/package.json +40 -40
- package/dist/api/toolkit-api.d.ts +0 -2
- package/dist/bilitoolkit-ui.js +0 -117707
- package/dist/bilitoolkit-ui.umd.cjs +0 -85
- package/dist/common/ui-constants.d.ts +0 -9
- package/dist/components/bili/BiliAccountCard.vue.d.ts +0 -18
- package/dist/components/bili/types.d.ts +0 -7
- package/dist/components/common/AppIcon.vue.d.ts +0 -9
- package/dist/components/common/AppTooltip.vue.d.ts +0 -25
- package/dist/components/common/ExternalLink.vue.d.ts +0 -20
- package/dist/components/common/IconButton.vue.d.ts +0 -27
- package/dist/components/common/IconLabel.vue.d.ts +0 -20
- package/dist/components/common/LogPrint.vue.d.ts +0 -5
- package/dist/components/dialog/countdown/CountdownDialog.vue.d.ts +0 -22
- package/dist/components/dialog/countdown/types.d.ts +0 -11
- package/dist/components/dialog/countdown/useCountdown.d.ts +0 -9
- package/dist/components/dialog/loading/LoadingDialog.vue.d.ts +0 -16
- package/dist/components/dialog/loading/loadingService.d.ts +0 -12
- package/dist/components/dialog/loading/types.d.ts +0 -21
- package/dist/components/plugin/PluginMenuItem.vue.d.ts +0 -3
- package/dist/components/plugin/PluginMenus.vue.d.ts +0 -25
- package/dist/components/plugin/PluginPageContent.vue.d.ts +0 -17
- package/dist/components/plugin/PluginPageHeader.vue.d.ts +0 -7
- package/dist/components/plugin/types.d.ts +0 -12
- package/dist/components/settings/SettingGroup.vue.d.ts +0 -20
- package/dist/components/settings/SettingItem.vue.d.ts +0 -22
- package/dist/composables/useLoadingData.d.ts +0 -4
- package/dist/main.d.ts +0 -0
- package/dist/stores/app-theme.d.ts +0 -31
- package/dist/stores/selected-account.d.ts +0 -26
- package/dist/stores/test-data.d.ts +0 -70
- package/dist/test/menus.d.ts +0 -2
- package/dist/test/user.d.ts +0 -12
- package/dist/ui.d.ts +0 -10
- package/dist/utils/app-utils.d.ts +0 -20
- package/dist/utils/theme-utils.d.ts +0 -10
- package/dist/views/HomeView.vue.d.ts +0 -2
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
@@ -1,22 +0,0 @@
|
|
|
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;
|
|
@@ -1,16 +0,0 @@
|
|
|
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;
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
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;
|
|
@@ -1,3 +0,0 @@
|
|
|
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;
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
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/main.d.ts
DELETED
|
File without changes
|
|
@@ -1,31 +0,0 @@
|
|
|
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">>;
|
|
@@ -1,26 +0,0 @@
|
|
|
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">>;
|
|
@@ -1,70 +0,0 @@
|
|
|
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">>;
|
package/dist/test/menus.d.ts
DELETED
package/dist/test/user.d.ts
DELETED
package/dist/ui.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
|
-
import { Pinia } from 'pinia';
|
|
3
|
-
/**
|
|
4
|
-
* 初始化UI
|
|
5
|
-
* @param pinia
|
|
6
|
-
* @param isTestMode 测试模式,不使用工具姬的API。方便插件直接本地调试。
|
|
7
|
-
*/
|
|
8
|
-
export declare const initBilitoolkitUi: (pinia: Pinia, isTestMode?: boolean) => Promise<{
|
|
9
|
-
install(app: App): void;
|
|
10
|
-
}>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ElMessageBoxOptions } from 'element-plus';
|
|
2
|
-
/**
|
|
3
|
-
* App工具,包含一些全局的方法
|
|
4
|
-
*/
|
|
5
|
-
export declare class AppUtils {
|
|
6
|
-
/**
|
|
7
|
-
* 统一处理异常
|
|
8
|
-
* @param error
|
|
9
|
-
*/
|
|
10
|
-
static handleError(error: unknown): void;
|
|
11
|
-
static message(message: string): void;
|
|
12
|
-
static message({ message, type, duration, }: {
|
|
13
|
-
message: string;
|
|
14
|
-
type?: 'success' | 'warning' | 'info' | 'error';
|
|
15
|
-
duration?: number;
|
|
16
|
-
}): void;
|
|
17
|
-
static error(msg: string): void;
|
|
18
|
-
static warning(msg: string): void;
|
|
19
|
-
static confirm(message: string, title?: string, options?: ElMessageBoxOptions): Promise<void>;
|
|
20
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AppThemeMode, AppThemeState } from 'bilitoolkit-api-types';
|
|
2
|
-
export type AppThemeCssVars = Record<string, string>;
|
|
3
|
-
export declare class ThemeUtils {
|
|
4
|
-
static isDark(themeMode?: AppThemeMode): Promise<boolean>;
|
|
5
|
-
/**
|
|
6
|
-
* 更新css变量
|
|
7
|
-
*/
|
|
8
|
-
static updateAppTheme(initState?: AppThemeState): Promise<void>;
|
|
9
|
-
static initAppTheme(): Promise<void>;
|
|
10
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|