@delta-comic/plugin 2.2.0 → 3.0.0-next.5
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/global-3ZqxvD1L.mjs +1446 -0
- package/dist/global-3ZqxvD1L.mjs.map +1 -0
- package/dist/lib/index.d.mts +927 -0
- package/dist/lib/index.mjs +535 -0
- package/dist/lib/index.mjs.map +1 -0
- package/dist/native-CHH-Olpj.mjs +63 -0
- package/dist/native-CHH-Olpj.mjs.map +1 -0
- package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
- package/dist/runtime-C6MmbYYH.mjs +663 -0
- package/dist/runtime-C6MmbYYH.mjs.map +1 -0
- package/dist/storage-DMKDlPzl.mjs +351 -0
- package/dist/storage-DMKDlPzl.mjs.map +1 -0
- package/dist/vite/index.d.mts +33 -0
- package/dist/vite/index.mjs +81 -0
- package/dist/vite/index.mjs.map +1 -0
- package/package.json +30 -37
- package/README.md +0 -42
- package/dist/core-BF7YwnuZ.js +0 -2
- package/dist/core-Czlf2w3A.js +0 -521
- package/dist/core-Czlf2w3A.js.map +0 -1
- package/dist/index.css +0 -3
- package/dist/index.js +0 -6764
- package/dist/index.js.map +0 -1
- package/dist/lib/config.d.ts +0 -71
- package/dist/lib/depends.d.ts +0 -10
- package/dist/lib/driver/booter.d.ts +0 -4
- package/dist/lib/driver/core.d.ts +0 -67
- package/dist/lib/driver/icon.d.ts +0 -3
- package/dist/lib/driver/index.d.ts +0 -4
- package/dist/lib/driver/init/booter/0_configSetter.d.ts +0 -8
- package/dist/lib/driver/init/booter/10_apiTest.d.ts +0 -9
- package/dist/lib/driver/init/booter/20_resourceTest.d.ts +0 -8
- package/dist/lib/driver/init/booter/30_boot.d.ts +0 -8
- package/dist/lib/driver/init/booter/40_auth.d.ts +0 -8
- package/dist/lib/driver/init/booter/50_otherProcess.d.ts +0 -8
- package/dist/lib/driver/init/booter/utils.d.ts +0 -3
- package/dist/lib/driver/init/installer/10_normalUrl.d.ts +0 -12
- package/dist/lib/driver/init/installer/20_local.d.ts +0 -12
- package/dist/lib/driver/init/installer/30_dev.d.ts +0 -12
- package/dist/lib/driver/init/installer/40_github.d.ts +0 -12
- package/dist/lib/driver/init/installer/9999_awesome.d.ts +0 -12
- package/dist/lib/driver/init/loader/1_userscript.d.ts +0 -11
- package/dist/lib/driver/init/loader/2_zip.d.ts +0 -11
- package/dist/lib/driver/init/utils.d.ts +0 -29
- package/dist/lib/driver/install.d.ts +0 -14
- package/dist/lib/driver/loader.d.ts +0 -5
- package/dist/lib/driver/store.d.ts +0 -37
- package/dist/lib/env/Inject.vue.d.ts +0 -18
- package/dist/lib/env/index.d.ts +0 -12
- package/dist/lib/global.d.ts +0 -26
- package/dist/lib/index.d.ts +0 -6
- package/dist/lib/plugin/api.d.ts +0 -8
- package/dist/lib/plugin/auth.d.ts +0 -15
- package/dist/lib/plugin/content.d.ts +0 -8
- package/dist/lib/plugin/index.d.ts +0 -58
- package/dist/lib/plugin/otherProgress.d.ts +0 -4
- package/dist/lib/plugin/resource.d.ts +0 -5
- package/dist/lib/plugin/search.d.ts +0 -75
- package/dist/lib/plugin/share.d.ts +0 -26
- package/dist/lib/plugin/subscribe.d.ts +0 -15
- package/dist/lib/plugin/user.d.ts +0 -47
- package/dist/pack.tgz +0 -0
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { StreamQuery, uni } from '@delta-comic/model';
|
|
2
|
-
import { UseQueryReturn } from '@pinia/colada';
|
|
3
|
-
import { Component } from 'vue';
|
|
4
|
-
export interface Config {
|
|
5
|
-
/**
|
|
6
|
-
* @description
|
|
7
|
-
* key: id
|
|
8
|
-
*/
|
|
9
|
-
methods?: Record<string, SearchMethod>;
|
|
10
|
-
tabbar?: Tabbar[];
|
|
11
|
-
categories?: Category[];
|
|
12
|
-
hotPage?: {
|
|
13
|
-
levelBoard?: HotLevelboard[];
|
|
14
|
-
topButton?: HotTopButton[];
|
|
15
|
-
mainListCard?: HotMainList[];
|
|
16
|
-
};
|
|
17
|
-
barcode?: Barcode[];
|
|
18
|
-
}
|
|
19
|
-
export interface SearchMethod {
|
|
20
|
-
name: string;
|
|
21
|
-
sorts: {
|
|
22
|
-
text: string;
|
|
23
|
-
value: string;
|
|
24
|
-
}[];
|
|
25
|
-
defaultSort: string;
|
|
26
|
-
fetchSearchResult: StreamQuery<uni.item.Item, {
|
|
27
|
-
input: string;
|
|
28
|
-
sort: string;
|
|
29
|
-
}>;
|
|
30
|
-
getAutoComplete(input: string, signal: AbortSignal): PromiseLike<({
|
|
31
|
-
text: string;
|
|
32
|
-
value: string;
|
|
33
|
-
} | Component)[]>;
|
|
34
|
-
}
|
|
35
|
-
export interface HotLevelboard {
|
|
36
|
-
name: string;
|
|
37
|
-
content: () => UseQueryReturn<uni.item.Item[]>;
|
|
38
|
-
}
|
|
39
|
-
export interface HotMainList {
|
|
40
|
-
name: string;
|
|
41
|
-
content: () => UseQueryReturn<uni.item.Item[]>;
|
|
42
|
-
onClick?(): any;
|
|
43
|
-
}
|
|
44
|
-
export interface HotTopButton {
|
|
45
|
-
name: string;
|
|
46
|
-
icon: Component;
|
|
47
|
-
bgColor: string;
|
|
48
|
-
onClick?(): any;
|
|
49
|
-
}
|
|
50
|
-
export interface Category {
|
|
51
|
-
title: string;
|
|
52
|
-
namespace: string;
|
|
53
|
-
search: {
|
|
54
|
-
methodId: string;
|
|
55
|
-
input: string;
|
|
56
|
-
sort: string;
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
export interface Tabbar {
|
|
60
|
-
title: string;
|
|
61
|
-
id: string;
|
|
62
|
-
comp: Component<{
|
|
63
|
-
isActive: boolean;
|
|
64
|
-
tabbar: Tabbar;
|
|
65
|
-
}>;
|
|
66
|
-
}
|
|
67
|
-
export type RouteToContent = (contentType_: uni.content.ContentType_, id: string, ep: string, preload?: uni.item.Item) => PromiseLike<any>;
|
|
68
|
-
export interface Barcode {
|
|
69
|
-
match: (searchText: string) => boolean;
|
|
70
|
-
/**
|
|
71
|
-
* 选中后返回路由信息
|
|
72
|
-
*/
|
|
73
|
-
getContent: (searchText: string, signal: AbortSignal) => PromiseLike<Parameters<RouteToContent>>;
|
|
74
|
-
name: string;
|
|
75
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { uni } from '@delta-comic/model';
|
|
2
|
-
import { Component } from 'vue';
|
|
3
|
-
export interface Config {
|
|
4
|
-
initiative: InitiativeItem[];
|
|
5
|
-
tokenListen: ShareToken[];
|
|
6
|
-
}
|
|
7
|
-
export interface ShareToken {
|
|
8
|
-
key: string;
|
|
9
|
-
name: string;
|
|
10
|
-
patten(chipboard: string): boolean;
|
|
11
|
-
show(chipboard: string): Promise<PopupConfig> | PopupConfig;
|
|
12
|
-
}
|
|
13
|
-
export interface PopupConfig {
|
|
14
|
-
title: string;
|
|
15
|
-
detail: string;
|
|
16
|
-
onPositive(): void;
|
|
17
|
-
onNegative(): void;
|
|
18
|
-
}
|
|
19
|
-
export interface InitiativeItem {
|
|
20
|
-
key: string;
|
|
21
|
-
name: string;
|
|
22
|
-
icon: Component | uni.image.Image;
|
|
23
|
-
bgColor?: string;
|
|
24
|
-
call(page: uni.content.ContentPage): Promise<any>;
|
|
25
|
-
filter(page: uni.content.ContentPage): boolean;
|
|
26
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { StreamQuery, uni } from '@delta-comic/model';
|
|
2
|
-
export interface Config {
|
|
3
|
-
getUpdateList(olds: {
|
|
4
|
-
author: uni.item.Author;
|
|
5
|
-
list: uni.item.Item[];
|
|
6
|
-
}[], signal?: AbortSignal): PromiseLike<{
|
|
7
|
-
isUpdated: boolean;
|
|
8
|
-
whichUpdated: uni.item.Author[];
|
|
9
|
-
}>;
|
|
10
|
-
onAdd?(author: uni.item.Author): any;
|
|
11
|
-
onRemove?(author: uni.item.Author): any;
|
|
12
|
-
fetchAuthorContent: StreamQuery<uni.item.Item, {
|
|
13
|
-
author: uni.item.Author;
|
|
14
|
-
}>;
|
|
15
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { uni } from '@delta-comic/model';
|
|
2
|
-
import { Component, MaybeRefOrGetter } from 'vue';
|
|
3
|
-
export interface Config {
|
|
4
|
-
edit?: Component;
|
|
5
|
-
card?: uni.user.UserCardComponent;
|
|
6
|
-
authorIcon?: Record<string, Component>;
|
|
7
|
-
/**
|
|
8
|
-
* 1. download
|
|
9
|
-
* 2. upload (收藏那些云端未收藏的漫画)
|
|
10
|
-
*/
|
|
11
|
-
syncFavourite?: {
|
|
12
|
-
download: () => PromiseLike<uni.item.Item[]>;
|
|
13
|
-
upload: (items: uni.item.RawItem[]) => PromiseLike<any>;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* 你希望展示的(`userActions`)自己的板块的页面
|
|
17
|
-
*/
|
|
18
|
-
userActionPages?: UserActionPage[];
|
|
19
|
-
/**
|
|
20
|
-
* 在用户界面,在历史记录那个板块的下方,你希望展示的自己的板块
|
|
21
|
-
*/
|
|
22
|
-
userActions?: Record<string, UserAction>;
|
|
23
|
-
}
|
|
24
|
-
export interface UserAction {
|
|
25
|
-
call(author: uni.item.Author): any;
|
|
26
|
-
name: string;
|
|
27
|
-
icon?: Component;
|
|
28
|
-
}
|
|
29
|
-
export interface UserActionPage {
|
|
30
|
-
title?: string;
|
|
31
|
-
items: ActionPageItem[];
|
|
32
|
-
clickPage?: Component;
|
|
33
|
-
clickText?: string;
|
|
34
|
-
}
|
|
35
|
-
export type ActionPageItem = {
|
|
36
|
-
name: string;
|
|
37
|
-
key: string;
|
|
38
|
-
type: 'button';
|
|
39
|
-
icon: Component;
|
|
40
|
-
page: Component;
|
|
41
|
-
} | {
|
|
42
|
-
name: string;
|
|
43
|
-
key: string;
|
|
44
|
-
type: 'statistic';
|
|
45
|
-
icon?: Component;
|
|
46
|
-
value: MaybeRefOrGetter<string | number>;
|
|
47
|
-
};
|
package/dist/pack.tgz
DELETED
|
Binary file
|