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.
@@ -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: false;
17
+ defaultValue: true;
18
18
  info: string;
19
19
  };
20
20
  showAIProject: {
package/dist/index.d.ts CHANGED
@@ -2277,7 +2277,7 @@ export declare const Store: {
2277
2277
  appConfig: ConfigPointer<{
2278
2278
  recordHistory: {
2279
2279
  type: "switch";
2280
- defaultValue: false;
2280
+ defaultValue: true;
2281
2281
  info: string;
2282
2282
  };
2283
2283
  showAIProject: {
package/dist/pack.tgz CHANGED
Binary file
@@ -61,6 +61,7 @@ export interface PluginConfigUser {
61
61
  */
62
62
  userActionPages?: PluginUserActionPage[];
63
63
  authorActions?: Record<string, AuthorAction>;
64
+ authorIcon?: Record<string, Component>;
64
65
  }
65
66
  export interface AuthorAction {
66
67
  call(author: Author): any;
@@ -15,7 +15,7 @@ export interface Category {
15
15
  }
16
16
  export interface Author {
17
17
  label: string;
18
- icon: image.RawImage | Component;
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>;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "delta-comic-core",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "我曾亲眼见证神的熟视无睹.",
5
5
  "homepage": "https://github.com/wenxig/delta-comic-core",
6
6
  "repository": {