delta-comic-core 0.0.2 → 0.0.3
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/LICENSE +661 -21
- package/README.md +30 -30
- package/dist/bundle.css +1 -1
- package/dist/bundle.js +170 -139
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.umd.cjs +2 -2
- package/dist/bundle.umd.cjs.map +1 -1
- package/dist/components/content/unitCard.vue.d.ts +576 -108
- package/dist/components/image.vue.d.ts +288 -54
- package/dist/index.d.ts +672 -126
- package/dist/pack.tgz +0 -0
- package/dist/plugin/define.d.ts +51 -8
- package/dist/struct/content.d.ts +10 -1
- package/dist/struct/item.d.ts +1 -0
- package/package.json +8 -8
package/dist/pack.tgz
ADDED
|
Binary file
|
package/dist/plugin/define.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { ContentPageLike, ItemCardComp, ViewLayoutComp } from '../struct/content
|
|
|
2
2
|
import { ProcessInstance } from '../struct/image';
|
|
3
3
|
import { CommentRow } from '../struct/comment';
|
|
4
4
|
import { UserCardComp } from '../struct/user';
|
|
5
|
-
import { RStream } from '../utils/data';
|
|
5
|
+
import { RStream, RPromiseContent } from '../utils/data';
|
|
6
6
|
import { Item, RawItem } from '../struct/item';
|
|
7
|
-
import { Component } from 'vue';
|
|
7
|
+
import { Component, MaybeRefOrGetter } from 'vue';
|
|
8
8
|
export type PluginDefineResult = {
|
|
9
9
|
api?: Record<string, string | undefined | false>;
|
|
10
10
|
};
|
|
@@ -15,26 +15,49 @@ export interface PluginConfig {
|
|
|
15
15
|
api?: Record<string, PluginConfigApi>;
|
|
16
16
|
user?: PluginConfigUser;
|
|
17
17
|
auth?: PluginConfigAuth;
|
|
18
|
-
otherProgress?:
|
|
19
|
-
call: (setDescription: (description: string) => void) => PromiseLike<any>;
|
|
20
|
-
name: string;
|
|
21
|
-
}[];
|
|
18
|
+
otherProgress?: PluginOtherProgress[];
|
|
22
19
|
onBooted?(ins: PluginDefineResult): PromiseLike<void> | void;
|
|
23
20
|
search?: PluginConfigSearch;
|
|
24
21
|
}
|
|
22
|
+
export interface PluginOtherProgress {
|
|
23
|
+
call: (setDescription: (description: string) => void) => PromiseLike<any>;
|
|
24
|
+
name: string;
|
|
25
|
+
}
|
|
25
26
|
export interface PluginConfigUser {
|
|
26
27
|
edit: Component;
|
|
27
28
|
card: UserCardComp;
|
|
28
29
|
/**
|
|
29
30
|
* 1. download
|
|
30
|
-
* 2. (
|
|
31
|
-
* 3. upload
|
|
31
|
+
* 2. upload (收藏那些云端未收藏的漫画)
|
|
32
32
|
*/
|
|
33
33
|
syncFavourite?: {
|
|
34
34
|
download: () => PromiseLike<Item[]>;
|
|
35
35
|
upload: (items: RawItem[]) => PromiseLike<any>;
|
|
36
36
|
};
|
|
37
|
+
/**
|
|
38
|
+
* 在用户界面,在历史记录那个板块的下方,你希望展示的自己的板块
|
|
39
|
+
*/
|
|
40
|
+
userActionPages?: PluginUserActionPage[];
|
|
37
41
|
}
|
|
42
|
+
export interface PluginUserActionPage {
|
|
43
|
+
title?: string;
|
|
44
|
+
items: PluginUserActionPageItem[];
|
|
45
|
+
clickPage?: Component;
|
|
46
|
+
clickText?: string;
|
|
47
|
+
}
|
|
48
|
+
export type PluginUserActionPageItem = {
|
|
49
|
+
name: string;
|
|
50
|
+
key: string;
|
|
51
|
+
type: 'button';
|
|
52
|
+
icon: Component;
|
|
53
|
+
page: Component;
|
|
54
|
+
} | {
|
|
55
|
+
name: string;
|
|
56
|
+
key: string;
|
|
57
|
+
type: 'statistic';
|
|
58
|
+
icon?: Component;
|
|
59
|
+
value: MaybeRefOrGetter<string | number>;
|
|
60
|
+
};
|
|
38
61
|
export interface PluginConfigSearch {
|
|
39
62
|
/**
|
|
40
63
|
* @description
|
|
@@ -43,6 +66,26 @@ export interface PluginConfigSearch {
|
|
|
43
66
|
methods?: Record<string, PluginConfigSearchMethod>;
|
|
44
67
|
tabbar?: PluginConfigSearchTabbar[];
|
|
45
68
|
categories?: PluginConfigSearchCategory[];
|
|
69
|
+
hotPage?: {
|
|
70
|
+
levelBoard?: PluginConfigSearchHotPageLevelboard[];
|
|
71
|
+
topButton?: PluginConfigSearchHotPageTopButton[];
|
|
72
|
+
mainListCard?: PluginConfigSearchHotPageMainList[];
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export interface PluginConfigSearchHotPageLevelboard {
|
|
76
|
+
name: string;
|
|
77
|
+
content: () => (RStream<Item> | RPromiseContent<any, Item[]>);
|
|
78
|
+
}
|
|
79
|
+
export interface PluginConfigSearchHotPageMainList {
|
|
80
|
+
name: string;
|
|
81
|
+
content: () => (RStream<Item> | RPromiseContent<any, Item[]>);
|
|
82
|
+
onClick?(): any;
|
|
83
|
+
}
|
|
84
|
+
export interface PluginConfigSearchHotPageTopButton {
|
|
85
|
+
name: string;
|
|
86
|
+
icon: Component;
|
|
87
|
+
bgColor: string;
|
|
88
|
+
onClick?(): any;
|
|
46
89
|
}
|
|
47
90
|
export interface PluginConfigSearchCategory {
|
|
48
91
|
title: string;
|
package/dist/struct/content.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component, StyleValue } from 'vue';
|
|
2
2
|
import { RStream } from '../utils/data';
|
|
3
3
|
import { uni } from '.';
|
|
4
|
-
import { PluginConfigSearchCategory, PluginConfigSearchTabbar } from '../plugin/define';
|
|
4
|
+
import { PluginConfigSearchCategory, PluginConfigSearchHotPageLevelboard, PluginConfigSearchHotPageMainList, PluginConfigSearchHotPageTopButton, PluginConfigSearchTabbar } from '../plugin/define';
|
|
5
5
|
import * as item from './item';
|
|
6
6
|
import * as ep from './ep';
|
|
7
7
|
import * as comment from './comment';
|
|
@@ -27,6 +27,15 @@ export declare abstract class ContentPage<T extends object = any> {
|
|
|
27
27
|
static getContentPage(contentType: ContentType_): uni.content.ContentPageLike;
|
|
28
28
|
static toContentType(ct: ContentType_): ContentType;
|
|
29
29
|
static toContentTypeString(ct: ContentType_): string;
|
|
30
|
+
static levelboard: import('vue').ShallowReactive<Map<string, PluginConfigSearchHotPageLevelboard[]>>;
|
|
31
|
+
static setLevelboard(plugin: string, cfg: PluginConfigSearchHotPageLevelboard): string;
|
|
32
|
+
static getLevelboard(plugin: string): PluginConfigSearchHotPageLevelboard[] | undefined;
|
|
33
|
+
static topButton: import('vue').ShallowReactive<Map<string, PluginConfigSearchHotPageTopButton[]>>;
|
|
34
|
+
static setTopButton(plugin: string, cfg: PluginConfigSearchHotPageTopButton): string;
|
|
35
|
+
static getTopButton(plugin: string): PluginConfigSearchHotPageTopButton[] | undefined;
|
|
36
|
+
static mainLists: import('vue').ShallowReactive<Map<string, PluginConfigSearchHotPageMainList[]>>;
|
|
37
|
+
static setMainList(plugin: string, cfg: PluginConfigSearchHotPageMainList): string;
|
|
38
|
+
static getMainList(plugin: string): PluginConfigSearchHotPageMainList[] | undefined;
|
|
30
39
|
constructor(preload: PreloadValue, id: string, ep: string);
|
|
31
40
|
abstract contentType: ContentType;
|
|
32
41
|
pid: import('../utils/data').PromiseWithResolvers<string>;
|
package/dist/struct/item.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "delta-comic-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "我曾亲眼见证神的熟视无睹.",
|
|
5
5
|
"homepage": "https://github.com/wenxig/delta-comic-core",
|
|
6
6
|
"repository": {
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"axios": "^1.12.2",
|
|
25
25
|
"es-toolkit": "^1.40.0",
|
|
26
|
-
"crypto-js": "
|
|
27
|
-
"motion-v": "
|
|
28
|
-
"naive-ui": "
|
|
26
|
+
"crypto-js": "4.2.0",
|
|
27
|
+
"motion-v": "1.7.3",
|
|
28
|
+
"naive-ui": "2.43.1",
|
|
29
29
|
"pinia": "^3.0.3",
|
|
30
|
-
"vant": "
|
|
31
|
-
"vue": "
|
|
32
|
-
"vue-router": "
|
|
30
|
+
"vant": "4.9.21",
|
|
31
|
+
"vue": "3.5.22",
|
|
32
|
+
"vue-router": "4.6.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@tailwindcss/vite": "^4.1.14",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
"./style.css": "./dist/bundle.css"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
|
-
"build": "vite build"
|
|
63
|
+
"build": "vite build && pnpm pack --out ./dist/pack.tgz"
|
|
64
64
|
}
|
|
65
65
|
}
|