delta-comic-core 0.3.3 → 0.3.4
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.cjs +3 -3
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.js +7 -1
- package/dist/bundle.js.map +1 -1
- package/dist/lib/plugin/define.d.ts +10 -0
- package/dist/lib/struct/content.d.ts +3 -1
- package/dist/pack.tgz +0 -0
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ import { RStream, RPromiseContent } from '../utils/data';
|
|
|
6
6
|
import { Item, RawItem, Author, ItemCardComp } from '../struct/item';
|
|
7
7
|
import { Component, MaybeRefOrGetter } from 'vue';
|
|
8
8
|
import { ConfigPointer } from '../config';
|
|
9
|
+
import { SharedFunctions } from '../utils/eventBus';
|
|
9
10
|
export type PluginDefineResult = {
|
|
10
11
|
api?: Record<string, string | undefined | false>;
|
|
11
12
|
};
|
|
@@ -125,6 +126,15 @@ export interface PluginConfigSearch {
|
|
|
125
126
|
topButton?: PluginConfigSearchHotPageTopButton[];
|
|
126
127
|
mainListCard?: PluginConfigSearchHotPageMainList[];
|
|
127
128
|
};
|
|
129
|
+
barcode?: PluginConfigSearchBarcode[];
|
|
130
|
+
}
|
|
131
|
+
export interface PluginConfigSearchBarcode {
|
|
132
|
+
match: (searchText: string) => boolean;
|
|
133
|
+
/**
|
|
134
|
+
* 选中后返回路由信息
|
|
135
|
+
*/
|
|
136
|
+
getContent: (searchText: string, signal: AbortSignal) => PromiseLike<Parameters<SharedFunctions['routeToContent']>>;
|
|
137
|
+
name: string;
|
|
128
138
|
}
|
|
129
139
|
export interface PluginConfigSearchHotPageLevelboard {
|
|
130
140
|
name: string;
|
|
@@ -2,7 +2,7 @@ import { Component } from 'vue';
|
|
|
2
2
|
import { SourcedKeyMap, RStream, SourcedKeyType } from '../utils/data';
|
|
3
3
|
import { uni } from '.';
|
|
4
4
|
import { AudioSrc, MediaSrc, TextTrackInit } from 'vidstack';
|
|
5
|
-
import { PluginConfigSearchCategory, PluginConfigSearchHotPageLevelboard, PluginConfigSearchHotPageMainList, PluginConfigSearchHotPageTopButton, PluginConfigSearchTabbar, PluginShareInitiativeItem, PluginShareToken } from '../plugin/define';
|
|
5
|
+
import { PluginConfigSearchBarcode, PluginConfigSearchCategory, PluginConfigSearchHotPageLevelboard, PluginConfigSearchHotPageMainList, PluginConfigSearchHotPageTopButton, PluginConfigSearchTabbar, PluginShareInitiativeItem, PluginShareToken } from '../plugin/define';
|
|
6
6
|
import * as item from './item';
|
|
7
7
|
import * as ep from './ep';
|
|
8
8
|
import * as comment from './comment';
|
|
@@ -28,6 +28,8 @@ export declare abstract class ContentPage<T extends object = any> {
|
|
|
28
28
|
static categories: import('vue').ShallowReactive<Map<string, PluginConfigSearchCategory[]>>;
|
|
29
29
|
static addCategories(plugin: string, ...categories: PluginConfigSearchCategory[]): void;
|
|
30
30
|
static contentPage: import('vue').ShallowReactive<SourcedKeyMap<[plugin: string, name: string], uni.content.ContentPageLike>>;
|
|
31
|
+
static barcode: import('vue').ShallowReactive<Map<string, PluginConfigSearchBarcode[]>>;
|
|
32
|
+
static addBarcode(plugin: string, cfg: PluginConfigSearchBarcode): string;
|
|
31
33
|
static levelboard: import('vue').ShallowReactive<Map<string, PluginConfigSearchHotPageLevelboard[]>>;
|
|
32
34
|
static addLevelboard(plugin: string, cfg: PluginConfigSearchHotPageLevelboard): string;
|
|
33
35
|
static topButton: import('vue').ShallowReactive<Map<string, PluginConfigSearchHotPageTopButton[]>>;
|
package/dist/pack.tgz
CHANGED
|
Binary file
|