delta-comic-core 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.
Files changed (44) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -0
  3. package/dist/bundle.css +2 -0
  4. package/dist/bundle.js +4896 -0
  5. package/dist/bundle.js.map +1 -0
  6. package/dist/bundle.umd.cjs +3 -0
  7. package/dist/bundle.umd.cjs.map +1 -0
  8. package/dist/components/await.vue.d.ts +26 -0
  9. package/dist/components/content/unitCard.vue.d.ts +317 -0
  10. package/dist/components/content.vue.d.ts +43 -0
  11. package/dist/components/floatPopup.vue.d.ts +39 -0
  12. package/dist/components/image.vue.d.ts +63 -0
  13. package/dist/components/list.vue.d.ts +53 -0
  14. package/dist/components/loading.vue.d.ts +18 -0
  15. package/dist/components/popup.vue.d.ts +41 -0
  16. package/dist/components/routerTab.vue.d.ts +34 -0
  17. package/dist/components/text.vue.d.ts +23 -0
  18. package/dist/components/toggleIcon.vue.d.ts +42 -0
  19. package/dist/components/user/previewUser.vue.d.ts +94 -0
  20. package/dist/components/var.vue.d.ts +23 -0
  21. package/dist/components/waterfall.vue.d.ts +54 -0
  22. package/dist/config/index.d.ts +38 -0
  23. package/dist/index.d.ts +1112 -0
  24. package/dist/layout/user.d.ts +0 -0
  25. package/dist/plugin.d.ts +189 -0
  26. package/dist/stores/temp.d.ts +23 -0
  27. package/dist/struct/comment.d.ts +55 -0
  28. package/dist/struct/content.d.ts +70 -0
  29. package/dist/struct/ep.d.ts +14 -0
  30. package/dist/struct/image.d.ts +44 -0
  31. package/dist/struct/index.d.ts +14 -0
  32. package/dist/struct/item.d.ts +56 -0
  33. package/dist/struct/user.d.ts +21 -0
  34. package/dist/symbol.d.ts +3 -0
  35. package/dist/utils/data.d.ts +123 -0
  36. package/dist/utils/delay.d.ts +1 -0
  37. package/dist/utils/eventBus.d.ts +34 -0
  38. package/dist/utils/image.d.ts +5 -0
  39. package/dist/utils/layout.d.ts +8 -0
  40. package/dist/utils/message.d.ts +22 -0
  41. package/dist/utils/plugin.d.ts +1 -0
  42. package/dist/utils/request.d.ts +48 -0
  43. package/dist/utils/translate.d.ts +2 -0
  44. package/package.json +73 -0
@@ -0,0 +1,42 @@
1
+ import { Component as _Component } from 'vue';
2
+ type __VLS_Props = {
3
+ icon: _Component;
4
+ size?: string | number;
5
+ disChanged?: boolean;
6
+ rowMode?: boolean;
7
+ padding?: boolean;
8
+ };
9
+ type __VLS_PublicProps = {
10
+ modelValue?: boolean;
11
+ } & __VLS_Props;
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: {
15
+ default?(_: {}): any;
16
+ };
17
+ refs: {
18
+ htmlRefHook: HTMLDivElement;
19
+ };
20
+ rootEl: HTMLDivElement;
21
+ };
22
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
+ click: (to: boolean) => any;
25
+ "update:modelValue": (value: boolean) => any;
26
+ change: (mode: boolean) => any;
27
+ longClick: () => any;
28
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
29
+ onClick?: (to: boolean) => any;
30
+ "onUpdate:modelValue"?: (value: boolean) => any;
31
+ onChange?: (mode: boolean) => any;
32
+ onLongClick?: () => any;
33
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
34
+ htmlRefHook: HTMLDivElement;
35
+ }, HTMLDivElement>;
36
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
37
+ export default _default;
38
+ type __VLS_WithTemplateSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,94 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {
2
+ show(u: any): void;
3
+ isShowing: import('vue').ComputedRef<boolean>;
4
+ close(): void;
5
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
6
+ floatPopup: {
7
+ $: import('vue').ComponentInternalInstance;
8
+ $data: {};
9
+ $props: Partial<{
10
+ anchors: "high" | "low" | number[];
11
+ lockScroll: boolean;
12
+ }> & Omit<{
13
+ readonly anchors?: "high" | "low" | number[];
14
+ readonly lockScroll?: boolean;
15
+ readonly class?: any;
16
+ readonly style?: import('vue').StyleValue;
17
+ readonly overlay?: boolean;
18
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "anchors" | "lockScroll">;
19
+ $attrs: {
20
+ [x: string]: unknown;
21
+ };
22
+ $refs: {
23
+ [x: string]: unknown;
24
+ };
25
+ $slots: Readonly<{
26
+ [name: string]: import('vue').Slot<any>;
27
+ }>;
28
+ $root: import('vue').ComponentPublicInstance | null;
29
+ $parent: import('vue').ComponentPublicInstance | null;
30
+ $host: Element | null;
31
+ $emit: (event: string, ...args: any[]) => void;
32
+ $el: any;
33
+ $options: import('vue').ComponentOptionsBase<Readonly<{
34
+ anchors?: "high" | "low" | number[];
35
+ lockScroll?: boolean;
36
+ class?: any;
37
+ style?: import('vue').StyleValue;
38
+ overlay?: boolean;
39
+ }> & Readonly<{}>, {
40
+ show(node?: number): void;
41
+ close(): void;
42
+ isShowing: Readonly<import('vue').ShallowRef<boolean, boolean>>;
43
+ height: Readonly<import('vue').ShallowRef<number, number>>;
44
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
45
+ anchors: "high" | "low" | number[];
46
+ lockScroll: boolean;
47
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
48
+ beforeCreate?: (() => void) | (() => void)[];
49
+ created?: (() => void) | (() => void)[];
50
+ beforeMount?: (() => void) | (() => void)[];
51
+ mounted?: (() => void) | (() => void)[];
52
+ beforeUpdate?: (() => void) | (() => void)[];
53
+ updated?: (() => void) | (() => void)[];
54
+ activated?: (() => void) | (() => void)[];
55
+ deactivated?: (() => void) | (() => void)[];
56
+ beforeDestroy?: (() => void) | (() => void)[];
57
+ beforeUnmount?: (() => void) | (() => void)[];
58
+ destroyed?: (() => void) | (() => void)[];
59
+ unmounted?: (() => void) | (() => void)[];
60
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
61
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
62
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
63
+ };
64
+ $forceUpdate: () => void;
65
+ $nextTick: typeof import('vue').nextTick;
66
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
67
+ } & Readonly<{
68
+ anchors: "high" | "low" | number[];
69
+ lockScroll: boolean;
70
+ }> & Omit<Readonly<{
71
+ anchors?: "high" | "low" | number[];
72
+ lockScroll?: boolean;
73
+ class?: any;
74
+ style?: import('vue').StyleValue;
75
+ overlay?: boolean;
76
+ }> & Readonly<{}>, "height" | "show" | ("anchors" | "lockScroll") | "close" | "isShowing"> & import('vue').ShallowUnwrapRef<{
77
+ show(node?: number): void;
78
+ close(): void;
79
+ isShowing: Readonly<import('vue').ShallowRef<boolean, boolean>>;
80
+ height: Readonly<import('vue').ShallowRef<number, number>>;
81
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
82
+ $slots: Readonly<{
83
+ default(arg: {
84
+ height: number;
85
+ }): void;
86
+ }> & {
87
+ default(arg: {
88
+ height: number;
89
+ }): void;
90
+ };
91
+ };
92
+ contentBox: HTMLDivElement;
93
+ }, any>;
94
+ export default _default;
@@ -0,0 +1,23 @@
1
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
3
+ value: T;
4
+ } & Partial<{}>> & import('vue').PublicProps;
5
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
6
+ attrs: any;
7
+ slots: Readonly<{
8
+ default(arg: {
9
+ value: T;
10
+ }): any;
11
+ }> & {
12
+ default(arg: {
13
+ value: T;
14
+ }): any;
15
+ };
16
+ emit: {};
17
+ }>) => import('vue').VNode & {
18
+ __ctx?: Awaited<typeof __VLS_setup>;
19
+ };
20
+ export default _default;
21
+ type __VLS_PrettifyLocal<T> = {
22
+ [K in keyof T]: T[K];
23
+ } & {};
@@ -0,0 +1,54 @@
1
+ import { RPromiseContent, Stream } from '../utils/data';
2
+ import { StyleValue } from 'vue';
3
+ import { IfAny } from '@vueuse/core';
4
+ declare const _default: <T = any, PF extends ((d: T[]) => any[]) = ((d: T[]) => T[])>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly onRetry?: (then: () => void) => any;
7
+ readonly onNext?: (then: () => void) => any;
8
+ readonly onReset?: () => any;
9
+ readonly onCol?: (args_0: 2, args_1: 2) => any;
10
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onRetry" | "onNext" | "onCol"> & {
11
+ source: {
12
+ data: RPromiseContent<any, T[]>;
13
+ isEnd?: boolean;
14
+ } | Stream<T>;
15
+ style?: StyleValue;
16
+ class?: any;
17
+ col?: [min: number, max: number] | number;
18
+ padding?: number;
19
+ gap?: number;
20
+ minHeight?: number;
21
+ dataProcessor?: PF;
22
+ unReloadable?: boolean;
23
+ } & Partial<{}>> & import('vue').PublicProps;
24
+ expose(exposed: import('vue').ShallowUnwrapRef<{
25
+ scrollTop: import('vue').WritableComputedRef<number, number>;
26
+ scrollParent: import('vue').ComputedRef<HTMLDivElement>;
27
+ reloadList(): Promise<void>;
28
+ }>): void;
29
+ attrs: any;
30
+ slots: Readonly<{
31
+ default(props: {
32
+ item: IfAny<ReturnType<PF>[number], T, ReturnType<PF>[number]>;
33
+ index: number;
34
+ height?: number;
35
+ minHeight: number;
36
+ length: number;
37
+ }): any;
38
+ }> & {
39
+ default(props: {
40
+ item: IfAny<ReturnType<PF>[number], T, ReturnType<PF>[number]>;
41
+ index: number;
42
+ height?: number;
43
+ minHeight: number;
44
+ length: number;
45
+ }): any;
46
+ };
47
+ emit: ((evt: "retry", then: () => void) => void) & ((evt: "next", then: () => void) => void) & ((evt: "reset") => void) & ((evt: "col", args_0: 2, args_1: 2) => void);
48
+ }>) => import('vue').VNode & {
49
+ __ctx?: Awaited<typeof __VLS_setup>;
50
+ };
51
+ export default _default;
52
+ type __VLS_PrettifyLocal<T> = {
53
+ [K in keyof T]: T[K];
54
+ } & {};
@@ -0,0 +1,38 @@
1
+ declare const defaultConfig: {
2
+ 'app.read.preloadImageNumbers': number;
3
+ 'app.read.watchFullscreen': boolean;
4
+ 'app.read.twoImage': boolean;
5
+ 'app.search.showAIProject': boolean;
6
+ 'app.darkMode': boolean;
7
+ "app.recordHistory": boolean;
8
+ };
9
+ export type ConfigType = typeof defaultConfig;
10
+ export declare const useConfig: import('pinia').StoreDefinition<"config", Pick<{
11
+ isDark: import('vue').ComputedRef<boolean>;
12
+ $useCustomConfig: <T extends Record<string, any>>(plugin: string, defaultConfig: T) => T;
13
+ 'app.read.preloadImageNumbers': number;
14
+ 'app.read.watchFullscreen': boolean;
15
+ 'app.read.twoImage': boolean;
16
+ 'app.search.showAIProject': boolean;
17
+ 'app.darkMode': boolean;
18
+ "app.recordHistory": boolean;
19
+ }, "app.read.preloadImageNumbers" | "app.read.watchFullscreen" | "app.read.twoImage" | "app.search.showAIProject" | "app.darkMode" | "app.recordHistory">, Pick<{
20
+ isDark: import('vue').ComputedRef<boolean>;
21
+ $useCustomConfig: <T extends Record<string, any>>(plugin: string, defaultConfig: T) => T;
22
+ 'app.read.preloadImageNumbers': number;
23
+ 'app.read.watchFullscreen': boolean;
24
+ 'app.read.twoImage': boolean;
25
+ 'app.search.showAIProject': boolean;
26
+ 'app.darkMode': boolean;
27
+ "app.recordHistory": boolean;
28
+ }, "isDark">, Pick<{
29
+ isDark: import('vue').ComputedRef<boolean>;
30
+ $useCustomConfig: <T extends Record<string, any>>(plugin: string, defaultConfig: T) => T;
31
+ 'app.read.preloadImageNumbers': number;
32
+ 'app.read.watchFullscreen': boolean;
33
+ 'app.read.twoImage': boolean;
34
+ 'app.search.showAIProject': boolean;
35
+ 'app.darkMode': boolean;
36
+ "app.recordHistory": boolean;
37
+ }, "$useCustomConfig">>;
38
+ export {};