delta-comic-core 0.0.8 → 0.0.10
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/bundle.css +1 -1
- package/dist/bundle.js +12 -2
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.umd.cjs +1 -1
- package/dist/bundle.umd.cjs.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/pack.tgz +0 -0
- package/dist/plugin/define.d.ts +1 -0
- package/dist/struct/item.d.ts +5 -1
- package/dist/utils/eventBus.d.ts +3 -0
- package/package.json +1 -1
package/dist/config/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare class ConfigPointer<T extends ConfigDescription = ConfigDescripti
|
|
|
14
14
|
export declare const appConfig: ConfigPointer<{
|
|
15
15
|
recordHistory: {
|
|
16
16
|
type: "switch";
|
|
17
|
-
defaultValue:
|
|
17
|
+
defaultValue: true;
|
|
18
18
|
info: string;
|
|
19
19
|
};
|
|
20
20
|
showAIProject: {
|
package/dist/index.d.ts
CHANGED
package/dist/pack.tgz
CHANGED
|
Binary file
|
package/dist/plugin/define.d.ts
CHANGED
package/dist/struct/item.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface Category {
|
|
|
15
15
|
}
|
|
16
16
|
export interface Author {
|
|
17
17
|
label: string;
|
|
18
|
-
icon: image.RawImage |
|
|
18
|
+
icon: image.RawImage | string;
|
|
19
19
|
description: string;
|
|
20
20
|
/**
|
|
21
21
|
* 为空则不可订阅
|
|
@@ -23,6 +23,7 @@ export interface Author {
|
|
|
23
23
|
*/ subscribe?: string;
|
|
24
24
|
actions?: string[];
|
|
25
25
|
$$meta?: MetaData;
|
|
26
|
+
$$plugin: string;
|
|
26
27
|
}
|
|
27
28
|
export interface RawItem {
|
|
28
29
|
cover: image.RawImage;
|
|
@@ -48,6 +49,9 @@ export interface RawItem {
|
|
|
48
49
|
customIsSafe?: boolean;
|
|
49
50
|
}
|
|
50
51
|
export declare abstract class Item extends Struct<RawItem> implements RawItem {
|
|
52
|
+
static authorIcon: import('vue').ShallowReactive<Map<string, Component>>;
|
|
53
|
+
static getAuthorIcon(plugin: string, name: string): Component | undefined;
|
|
54
|
+
static setAuthorIcon(plugin: string, name: string, icon: Component): void;
|
|
51
55
|
abstract like(signal?: AbortSignal): PromiseLike<boolean>;
|
|
52
56
|
abstract report(signal?: AbortSignal): PromiseLike<any>;
|
|
53
57
|
abstract sendComment(text: string, signal?: AbortSignal): PromiseLike<any>;
|
package/dist/utils/eventBus.d.ts
CHANGED
|
@@ -13,6 +13,9 @@ export type SharedFunctions = {
|
|
|
13
13
|
addRecent(item: uni.item.Item): PromiseLike<any>;
|
|
14
14
|
routeToContent(contentType_: uni.content.ContentType_, id: string, ep: string, preload?: uni.content.PreloadValue): PromiseLike<any>;
|
|
15
15
|
routeToSearch(input: string, source?: string, sort?: string): PromiseLike<any>;
|
|
16
|
+
addAuthorSubscribe(author: uni.item.Author, plugin: string): PromiseLike<void>;
|
|
17
|
+
removeAuthorSubscribe(author: uni.item.Author, plugin: string): PromiseLike<void>;
|
|
18
|
+
getIsAuthorSubscribe(author: uni.item.Author, plugin: string): PromiseLike<boolean>;
|
|
16
19
|
};
|
|
17
20
|
export declare class SharedFunction {
|
|
18
21
|
private static sharedFunctions;
|