delta-comic-core 0.5.13 → 1.0.0
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/README.md +4 -4
- package/dist/bundle.cjs +3 -3
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.css +1 -1
- package/dist/bundle.js +5539 -5509
- package/dist/bundle.js.map +1 -1
- package/dist/bundle2.cjs.map +1 -1
- package/dist/bundle2.js.map +1 -1
- package/dist/lib/components/image.vue.d.ts +6 -6
- package/dist/lib/components/list.vue.d.ts +1 -1
- package/dist/lib/components/waterfall.vue.d.ts +1 -1
- package/dist/lib/depends/index.d.ts +3 -3
- package/dist/lib/index.d.ts +25 -25
- package/dist/lib/plugin/define.d.ts +24 -24
- package/dist/lib/plugin/index.d.ts +4 -4
- package/dist/lib/struct/comment.d.ts +3 -3
- package/dist/lib/struct/content.d.ts +7 -8
- package/dist/lib/struct/index.d.ts +6 -6
- package/dist/lib/struct/item.d.ts +5 -6
- package/dist/lib/struct/user.d.ts +3 -3
- package/dist/lib/utils/data.d.ts +12 -12
- package/dist/lib/utils/layout.d.ts +1 -1
- package/dist/lib/utils/message.d.ts +1 -1
- package/dist/pack.tgz +0 -0
- package/package.json +76 -43
package/dist/bundle2.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle2.cjs","names":[],"sources":["../vite/index.ts"],"sourcesContent":["import { mergeConfig, type Plugin, type UserConfig
|
|
1
|
+
{"version":3,"file":"bundle2.cjs","names":[],"sources":["../vite/index.ts"],"sourcesContent":["import { mergeConfig, type Plugin, type UserConfig } from 'vite'\nimport external from 'vite-plugin-external'\nimport monkey from 'vite-plugin-monkey'\n\nconst externalDepends: Record<string, string> = {\n 'vue': 'window.$$lib$$.Vue',\n 'vant': 'window.$$lib$$.Vant',\n 'naive-ui': 'window.$$lib$$.Naive',\n 'axios': 'window.$$lib$$.Axios',\n 'delta-comic-core': 'window.$$lib$$.Dcc',\n 'vue-router': 'window.$$lib$$.VR'\n}\n\n/** vite插件,自动配置了库的外部化与脚本头 */\nexport const deltaComic = (\n config: {\n name: string\n displayName: string\n version: string\n author?: string\n description: string\n /** 通过语义化版本号描述core支持版本,通过`semver.satisfies`判定,所有的`>=`会替换为`^`,除非`lockCoreVersion为`true` */\n supportCoreVersion: string\n /** 如果为`true`,则`supportCoreVersion`的`>=`不会替换为`^` */\n lockCoreVersion?: boolean\n /** @default ['core'] */\n require?: ({ id: string; download?: string } | string)[]\n /** @default 'src/main.ts' */\n entry?: string\n },\n command: 'build' | 'serve',\n packageJson: { dependencies: Record<string, string>; devDependencies: Record<string, string> }\n): any => {\n const allDependencies = { ...packageJson.dependencies, ...packageJson.devDependencies }\n const needExternalDepends = Object.fromEntries(\n Object.entries(externalDepends).filter(([key]) => key in allDependencies)\n )\n\n const result = [\n command == 'build' ? false : external({ externals: externalDepends }),\n monkey({\n entry: config.entry ?? 'src/main.ts',\n userscript: {\n name: { display: config.displayName, id: config.name },\n version: `${config.version}/${config.supportCoreVersion}/${!!config.lockCoreVersion}`,\n author: config.author,\n description: config.description,\n require: ['core', ...(config.require ?? [])].map(v => {\n if (typeof v == 'string') return `dc|${v}:`\n return `dc|${v.id}:${v.download ?? ''}`\n })\n },\n build: { externalGlobals: command == 'serve' ? {} : needExternalDepends },\n server: { mountGmApi: false, open: false, prefix: false }\n })\n ]\n return result\n}\n\nexport const deltaComicPlus = (\n meta: {\n name: { display: string; id: string }\n version: { plugin: string; supportCore: string }\n author: string\n description: string\n require: { id: string; download?: string | undefined }[]\n entry: { jsPath: string; cssPath?: string }\n beforeBoot?: { path: string; slot: string }[]\n },\n command: 'build' | 'serve'\n) => {\n const plugin: Plugin = {\n name: 'delta-comic-helper',\n config(config) {\n return mergeConfig(config, <UserConfig>{\n build: {\n lib: {\n entry: './src/main.ts',\n fileName: 'index',\n cssFileName: 'index',\n name: `$$lib$$.__DcPlugin__${meta.name.id.replace('-', '_')}__`,\n formats: ['es']\n },\n rollupOptions: {}\n }\n })\n },\n generateBundle() {\n this.emitFile({\n type: 'asset', // 指定类型为资源文件\n fileName: 'manifest.json', // 输出的文件名\n source: JSON.stringify(meta, null, 2) // 将 meta 对象转换为格式化的 JSON 字符串\n })\n }\n }\n return command == 'build'\n ? ([external({ externals: externalDepends }), plugin] as any)\n : deltaComic(\n {\n description: meta.description,\n displayName: meta.name.display,\n name: meta.name.id,\n supportCoreVersion: meta.version.supportCore,\n version: meta.version.plugin,\n author: meta.author,\n entry: 'src/main.ts',\n require: meta.require\n },\n command,\n { dependencies: externalDepends, devDependencies: externalDepends }\n )\n}"],"mappings":"yNAIA,IAAM,EAA0C,CAC9C,IAAO,qBACP,KAAQ,sBACR,WAAY,uBACZ,MAAS,uBACT,mBAAoB,qBACpB,aAAc,oBACf,CAGD,MAAa,GACX,EAeA,EACA,IACQ,CACR,IAAM,EAAkB,CAAE,GAAG,EAAY,aAAc,GAAG,EAAY,gBAAiB,CACjF,EAAsB,OAAO,YACjC,OAAO,QAAQ,EAAgB,CAAC,QAAQ,CAAC,KAAS,KAAO,EAAgB,CAC1E,CAoBD,MAlBe,CACb,GAAW,QAAU,IAAA,EAAA,EAAA,SAAiB,CAAE,UAAW,EAAiB,CAAC,EAAA,EAAA,EAAA,SAC9D,CACL,MAAO,EAAO,OAAS,cACvB,WAAY,CACV,KAAM,CAAE,QAAS,EAAO,YAAa,GAAI,EAAO,KAAM,CACtD,QAAS,GAAG,EAAO,QAAQ,GAAG,EAAO,mBAAmB,GAAG,CAAC,CAAC,EAAO,kBACpE,OAAQ,EAAO,OACf,YAAa,EAAO,YACpB,QAAS,CAAC,OAAQ,GAAI,EAAO,SAAW,EAAE,CAAE,CAAC,IAAI,GAC3C,OAAO,GAAK,SAAiB,MAAM,EAAE,GAClC,MAAM,EAAE,GAAG,GAAG,EAAE,UAAY,KACnC,CACH,CACD,MAAO,CAAE,gBAAiB,GAAW,QAAU,EAAE,CAAG,EAAqB,CACzE,OAAQ,CAAE,WAAY,GAAO,KAAM,GAAO,OAAQ,GAAO,CAC1D,CAAC,CACH,EAIU,GACX,EASA,IA0BO,GAAW,QACb,EAAA,EAAA,EAAA,SAAU,CAAE,UAAW,EAAiB,CAAC,CAzBvB,CACrB,KAAM,qBACN,OAAO,EAAQ,CACb,OAAA,EAAA,EAAA,aAAmB,EAAoB,CACrC,MAAO,CACL,IAAK,CACH,MAAO,gBACP,SAAU,QACV,YAAa,QACb,KAAM,uBAAuB,EAAK,KAAK,GAAG,QAAQ,IAAK,IAAI,CAAC,IAC5D,QAAS,CAAC,KAAK,CAChB,CACD,cAAe,EAAE,CAClB,CACF,CAAC,EAEJ,gBAAiB,CACf,KAAK,SAAS,CACZ,KAAM,QACN,SAAU,gBACV,OAAQ,KAAK,UAAU,EAAM,KAAM,EAAE,CACtC,CAAC,EAEL,CAEsD,CACnD,EACE,CACE,YAAa,EAAK,YAClB,YAAa,EAAK,KAAK,QACvB,KAAM,EAAK,KAAK,GAChB,mBAAoB,EAAK,QAAQ,YACjC,QAAS,EAAK,QAAQ,OACtB,OAAQ,EAAK,OACb,MAAO,cACP,QAAS,EAAK,QACf,CACD,EACA,CAAE,aAAc,EAAiB,gBAAiB,EAAiB,CACpE"}
|
package/dist/bundle2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle2.js","names":[],"sources":["../vite/index.ts"],"sourcesContent":["import { mergeConfig, type Plugin, type UserConfig
|
|
1
|
+
{"version":3,"file":"bundle2.js","names":[],"sources":["../vite/index.ts"],"sourcesContent":["import { mergeConfig, type Plugin, type UserConfig } from 'vite'\nimport external from 'vite-plugin-external'\nimport monkey from 'vite-plugin-monkey'\n\nconst externalDepends: Record<string, string> = {\n 'vue': 'window.$$lib$$.Vue',\n 'vant': 'window.$$lib$$.Vant',\n 'naive-ui': 'window.$$lib$$.Naive',\n 'axios': 'window.$$lib$$.Axios',\n 'delta-comic-core': 'window.$$lib$$.Dcc',\n 'vue-router': 'window.$$lib$$.VR'\n}\n\n/** vite插件,自动配置了库的外部化与脚本头 */\nexport const deltaComic = (\n config: {\n name: string\n displayName: string\n version: string\n author?: string\n description: string\n /** 通过语义化版本号描述core支持版本,通过`semver.satisfies`判定,所有的`>=`会替换为`^`,除非`lockCoreVersion为`true` */\n supportCoreVersion: string\n /** 如果为`true`,则`supportCoreVersion`的`>=`不会替换为`^` */\n lockCoreVersion?: boolean\n /** @default ['core'] */\n require?: ({ id: string; download?: string } | string)[]\n /** @default 'src/main.ts' */\n entry?: string\n },\n command: 'build' | 'serve',\n packageJson: { dependencies: Record<string, string>; devDependencies: Record<string, string> }\n): any => {\n const allDependencies = { ...packageJson.dependencies, ...packageJson.devDependencies }\n const needExternalDepends = Object.fromEntries(\n Object.entries(externalDepends).filter(([key]) => key in allDependencies)\n )\n\n const result = [\n command == 'build' ? false : external({ externals: externalDepends }),\n monkey({\n entry: config.entry ?? 'src/main.ts',\n userscript: {\n name: { display: config.displayName, id: config.name },\n version: `${config.version}/${config.supportCoreVersion}/${!!config.lockCoreVersion}`,\n author: config.author,\n description: config.description,\n require: ['core', ...(config.require ?? [])].map(v => {\n if (typeof v == 'string') return `dc|${v}:`\n return `dc|${v.id}:${v.download ?? ''}`\n })\n },\n build: { externalGlobals: command == 'serve' ? {} : needExternalDepends },\n server: { mountGmApi: false, open: false, prefix: false }\n })\n ]\n return result\n}\n\nexport const deltaComicPlus = (\n meta: {\n name: { display: string; id: string }\n version: { plugin: string; supportCore: string }\n author: string\n description: string\n require: { id: string; download?: string | undefined }[]\n entry: { jsPath: string; cssPath?: string }\n beforeBoot?: { path: string; slot: string }[]\n },\n command: 'build' | 'serve'\n) => {\n const plugin: Plugin = {\n name: 'delta-comic-helper',\n config(config) {\n return mergeConfig(config, <UserConfig>{\n build: {\n lib: {\n entry: './src/main.ts',\n fileName: 'index',\n cssFileName: 'index',\n name: `$$lib$$.__DcPlugin__${meta.name.id.replace('-', '_')}__`,\n formats: ['es']\n },\n rollupOptions: {}\n }\n })\n },\n generateBundle() {\n this.emitFile({\n type: 'asset', // 指定类型为资源文件\n fileName: 'manifest.json', // 输出的文件名\n source: JSON.stringify(meta, null, 2) // 将 meta 对象转换为格式化的 JSON 字符串\n })\n }\n }\n return command == 'build'\n ? ([external({ externals: externalDepends }), plugin] as any)\n : deltaComic(\n {\n description: meta.description,\n displayName: meta.name.display,\n name: meta.name.id,\n supportCoreVersion: meta.version.supportCore,\n version: meta.version.plugin,\n author: meta.author,\n entry: 'src/main.ts',\n require: meta.require\n },\n command,\n { dependencies: externalDepends, devDependencies: externalDepends }\n )\n}"],"mappings":";;;AAIA,IAAM,kBAA0C;CAC9C,KAAO;CACP,MAAQ;CACR,YAAY;CACZ,OAAS;CACT,oBAAoB;CACpB,cAAc;CACf;AAGD,MAAa,cACX,GAeA,GACA,MACQ;CACR,IAAM,IAAkB;EAAE,GAAG,EAAY;EAAc,GAAG,EAAY;EAAiB,EACjF,IAAsB,OAAO,YACjC,OAAO,QAAQ,gBAAgB,CAAC,QAAQ,CAAC,OAAS,KAAO,EAAgB,CAC1E;AAoBD,QAlBe,CACb,KAAW,UAAU,KAAQ,SAAS,EAAE,WAAW,iBAAiB,CAAC,EACrE,OAAO;EACL,OAAO,EAAO,SAAS;EACvB,YAAY;GACV,MAAM;IAAE,SAAS,EAAO;IAAa,IAAI,EAAO;IAAM;GACtD,SAAS,GAAG,EAAO,QAAQ,GAAG,EAAO,mBAAmB,GAAG,CAAC,CAAC,EAAO;GACpE,QAAQ,EAAO;GACf,aAAa,EAAO;GACpB,SAAS,CAAC,QAAQ,GAAI,EAAO,WAAW,EAAE,CAAE,CAAC,KAAI,MAC3C,OAAO,KAAK,WAAiB,MAAM,EAAE,KAClC,MAAM,EAAE,GAAG,GAAG,EAAE,YAAY,KACnC;GACH;EACD,OAAO,EAAE,iBAAiB,KAAW,UAAU,EAAE,GAAG,GAAqB;EACzE,QAAQ;GAAE,YAAY;GAAO,MAAM;GAAO,QAAQ;GAAO;EAC1D,CAAC,CACH;GAIU,kBACX,GASA,MA0BO,KAAW,UACb,CAAC,SAAS,EAAE,WAAW,iBAAiB,CAAC,EAzBvB;CACrB,MAAM;CACN,OAAO,GAAQ;AACb,SAAO,YAAY,GAAoB,EACrC,OAAO;GACL,KAAK;IACH,OAAO;IACP,UAAU;IACV,aAAa;IACb,MAAM,uBAAuB,EAAK,KAAK,GAAG,QAAQ,KAAK,IAAI,CAAC;IAC5D,SAAS,CAAC,KAAK;IAChB;GACD,eAAe,EAAE;GAClB,EACF,CAAC;;CAEJ,iBAAiB;AACf,OAAK,SAAS;GACZ,MAAM;GACN,UAAU;GACV,QAAQ,KAAK,UAAU,GAAM,MAAM,EAAE;GACtC,CAAC;;CAEL,CAEsD,GACnD,WACE;CACE,aAAa,EAAK;CAClB,aAAa,EAAK,KAAK;CACvB,MAAM,EAAK,KAAK;CAChB,oBAAoB,EAAK,QAAQ;CACjC,SAAS,EAAK,QAAQ;CACtB,QAAQ,EAAK;CACb,OAAO;CACP,SAAS,EAAK;CACf,EACD,GACA;CAAE,cAAc;CAAiB,iBAAiB;CAAiB,CACpE"}
|
|
@@ -205,7 +205,7 @@ declare function __VLS_template(): {
|
|
|
205
205
|
mergedOnLoad: (e: Event) => void;
|
|
206
206
|
previewShow: import('vue').Ref<boolean, boolean>;
|
|
207
207
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
208
|
-
objectFit: "
|
|
208
|
+
objectFit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
209
209
|
lazy: boolean;
|
|
210
210
|
showToolbar: boolean;
|
|
211
211
|
showToolbarTooltip: boolean;
|
|
@@ -391,7 +391,7 @@ declare function __VLS_template(): {
|
|
|
391
391
|
mergedOnLoad: (e: Event) => void;
|
|
392
392
|
previewShow: import('vue').Ref<boolean, boolean>;
|
|
393
393
|
}, {}, {}, {}, {
|
|
394
|
-
objectFit: "
|
|
394
|
+
objectFit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
395
395
|
lazy: boolean;
|
|
396
396
|
showToolbar: boolean;
|
|
397
397
|
showToolbarTooltip: boolean;
|
|
@@ -578,7 +578,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
578
578
|
mergedOnLoad: (e: Event) => void;
|
|
579
579
|
previewShow: import('vue').Ref<boolean, boolean>;
|
|
580
580
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
581
|
-
objectFit: "
|
|
581
|
+
objectFit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
582
582
|
lazy: boolean;
|
|
583
583
|
showToolbar: boolean;
|
|
584
584
|
showToolbarTooltip: boolean;
|
|
@@ -764,7 +764,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
764
764
|
mergedOnLoad: (e: Event) => void;
|
|
765
765
|
previewShow: import('vue').Ref<boolean, boolean>;
|
|
766
766
|
}, {}, {}, {}, {
|
|
767
|
-
objectFit: "
|
|
767
|
+
objectFit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
768
768
|
lazy: boolean;
|
|
769
769
|
showToolbar: boolean;
|
|
770
770
|
showToolbarTooltip: boolean;
|
|
@@ -956,7 +956,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
956
956
|
mergedOnLoad: (e: Event) => void;
|
|
957
957
|
previewShow: import('vue').Ref<boolean, boolean>;
|
|
958
958
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
959
|
-
objectFit: "
|
|
959
|
+
objectFit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
960
960
|
lazy: boolean;
|
|
961
961
|
showToolbar: boolean;
|
|
962
962
|
showToolbarTooltip: boolean;
|
|
@@ -1142,7 +1142,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1142
1142
|
mergedOnLoad: (e: Event) => void;
|
|
1143
1143
|
previewShow: import('vue').Ref<boolean, boolean>;
|
|
1144
1144
|
}, {}, {}, {}, {
|
|
1145
|
-
objectFit: "
|
|
1145
|
+
objectFit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
1146
1146
|
lazy: boolean;
|
|
1147
1147
|
showToolbar: boolean;
|
|
1148
1148
|
showToolbarTooltip: boolean;
|
|
@@ -2,7 +2,7 @@ import { VirtualListInst, VirtualListProps } from 'naive-ui';
|
|
|
2
2
|
import { Ref, StyleValue } from 'vue';
|
|
3
3
|
import { IfAny } from '@vueuse/core';
|
|
4
4
|
import { RPromiseContent, Stream } from '../utils/data';
|
|
5
|
-
declare const _default: <T extends NonNullable<VirtualListProps["items"]>[number], PF extends (
|
|
5
|
+
declare const _default: <T extends NonNullable<VirtualListProps["items"]>[number], PF extends (d: T[]) => any[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
7
7
|
readonly onNext?: ((then: () => void) => any) | undefined;
|
|
8
8
|
readonly onReset?: (() => any) | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RPromiseContent, Stream } from '../utils/data';
|
|
2
2
|
import { StyleValue } from 'vue';
|
|
3
3
|
import { IfAny } from '@vueuse/core';
|
|
4
|
-
declare const _default: <T = any, PF extends (
|
|
4
|
+
declare const _default: <T = any, PF extends (d: T[]) => any[] = (d: T[]) => T[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly onNext?: ((then: () => void) => any) | undefined;
|
|
7
7
|
readonly onReset?: (() => any) | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RemovableRef } from '@vueuse/core';
|
|
2
2
|
import { Component, MaybeRefOrGetter, ShallowRef, SlotsType } from 'vue';
|
|
3
|
-
import { Utils } from '..';
|
|
4
3
|
import { Kysely } from 'kysely';
|
|
5
|
-
import {
|
|
4
|
+
import { uni } from '../struct';
|
|
5
|
+
import { Utils } from '..';
|
|
6
6
|
interface DependDefineConstraint<_T> {
|
|
7
7
|
}
|
|
8
8
|
export type DependDefine<T> = symbol & DependDefineConstraint<T>;
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { uni } from './struct/index';
|
|
2
1
|
import { useDialog, useLoadingBar, useMessage } from 'naive-ui';
|
|
3
|
-
import { Router } from 'vue-router';
|
|
4
2
|
import { Component, MaybeRefOrGetter } from 'vue';
|
|
3
|
+
import { Router } from 'vue-router';
|
|
4
|
+
import { uni } from './struct/index';
|
|
5
5
|
import { ConfigPointer } from './config';
|
|
6
6
|
export { uni } from './struct/index';
|
|
7
7
|
export interface ExternalLibKey {
|
|
8
|
-
vue: 'Vue';
|
|
9
|
-
vant: 'Vant';
|
|
8
|
+
'vue': 'Vue';
|
|
9
|
+
'vant': 'Vant';
|
|
10
10
|
'naive-ui': 'Naive';
|
|
11
|
-
axios: 'Axios';
|
|
11
|
+
'axios': 'Axios';
|
|
12
12
|
'delta-comic-core': 'Dcc';
|
|
13
13
|
'vue-router': 'VR';
|
|
14
14
|
'pinia': 'Pinia';
|
|
@@ -419,7 +419,7 @@ export declare const Comp: {
|
|
|
419
419
|
mergedOnLoad: (e: Event) => void;
|
|
420
420
|
previewShow: import('vue').Ref<boolean, boolean>;
|
|
421
421
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
422
|
-
objectFit: "
|
|
422
|
+
objectFit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
423
423
|
lazy: boolean;
|
|
424
424
|
showToolbar: boolean;
|
|
425
425
|
showToolbarTooltip: boolean;
|
|
@@ -605,7 +605,7 @@ export declare const Comp: {
|
|
|
605
605
|
mergedOnLoad: (e: Event) => void;
|
|
606
606
|
previewShow: import('vue').Ref<boolean, boolean>;
|
|
607
607
|
}, {}, {}, {}, {
|
|
608
|
-
objectFit: "
|
|
608
|
+
objectFit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
609
609
|
lazy: boolean;
|
|
610
610
|
showToolbar: boolean;
|
|
611
611
|
showToolbarTooltip: boolean;
|
|
@@ -793,7 +793,7 @@ export declare const Comp: {
|
|
|
793
793
|
mergedOnLoad: (e: Event) => void;
|
|
794
794
|
previewShow: import('vue').Ref<boolean, boolean>;
|
|
795
795
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
796
|
-
objectFit: "
|
|
796
|
+
objectFit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
797
797
|
lazy: boolean;
|
|
798
798
|
showToolbar: boolean;
|
|
799
799
|
showToolbarTooltip: boolean;
|
|
@@ -979,7 +979,7 @@ export declare const Comp: {
|
|
|
979
979
|
mergedOnLoad: (e: Event) => void;
|
|
980
980
|
previewShow: import('vue').Ref<boolean, boolean>;
|
|
981
981
|
}, {}, {}, {}, {
|
|
982
|
-
objectFit: "
|
|
982
|
+
objectFit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
983
983
|
lazy: boolean;
|
|
984
984
|
showToolbar: boolean;
|
|
985
985
|
showToolbarTooltip: boolean;
|
|
@@ -1192,7 +1192,7 @@ export declare const Comp: {
|
|
|
1192
1192
|
mergedOnLoad: (e: Event) => void;
|
|
1193
1193
|
previewShow: import('vue').Ref<boolean, boolean>;
|
|
1194
1194
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
1195
|
-
objectFit: "
|
|
1195
|
+
objectFit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
1196
1196
|
lazy: boolean;
|
|
1197
1197
|
showToolbar: boolean;
|
|
1198
1198
|
showToolbarTooltip: boolean;
|
|
@@ -1378,7 +1378,7 @@ export declare const Comp: {
|
|
|
1378
1378
|
mergedOnLoad: (e: Event) => void;
|
|
1379
1379
|
previewShow: import('vue').Ref<boolean, boolean>;
|
|
1380
1380
|
}, {}, {}, {}, {
|
|
1381
|
-
objectFit: "
|
|
1381
|
+
objectFit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
1382
1382
|
lazy: boolean;
|
|
1383
1383
|
showToolbar: boolean;
|
|
1384
1384
|
showToolbarTooltip: boolean;
|
|
@@ -1591,7 +1591,7 @@ export declare const Comp: {
|
|
|
1591
1591
|
mergedOnLoad: (e: Event) => void;
|
|
1592
1592
|
previewShow: import('vue').Ref<boolean, boolean>;
|
|
1593
1593
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
1594
|
-
objectFit: "
|
|
1594
|
+
objectFit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
1595
1595
|
lazy: boolean;
|
|
1596
1596
|
showToolbar: boolean;
|
|
1597
1597
|
showToolbarTooltip: boolean;
|
|
@@ -1777,7 +1777,7 @@ export declare const Comp: {
|
|
|
1777
1777
|
mergedOnLoad: (e: Event) => void;
|
|
1778
1778
|
previewShow: import('vue').Ref<boolean, boolean>;
|
|
1779
1779
|
}, {}, {}, {}, {
|
|
1780
|
-
objectFit: "
|
|
1780
|
+
objectFit: "none" | "fill" | "contain" | "cover" | "scale-down";
|
|
1781
1781
|
lazy: boolean;
|
|
1782
1782
|
showToolbar: boolean;
|
|
1783
1783
|
showToolbarTooltip: boolean;
|
|
@@ -1799,7 +1799,7 @@ export declare const Comp: {
|
|
|
1799
1799
|
fail?(): any;
|
|
1800
1800
|
};
|
|
1801
1801
|
});
|
|
1802
|
-
List: <T extends NonNullable<import('naive-ui').VirtualListProps["items"]>[number], PF extends (
|
|
1802
|
+
List: <T extends NonNullable<import('naive-ui').VirtualListProps["items"]>[number], PF extends (d: T[]) => any[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
1803
1803
|
attrs: any;
|
|
1804
1804
|
slots: Readonly<{
|
|
1805
1805
|
default(props: {
|
|
@@ -1868,13 +1868,13 @@ export declare const Comp: {
|
|
|
1868
1868
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1869
1869
|
show: boolean;
|
|
1870
1870
|
} & Partial<{
|
|
1871
|
-
|
|
1871
|
+
position: import('vant').PopupPosition;
|
|
1872
1872
|
overlay: boolean;
|
|
1873
|
+
round: boolean;
|
|
1873
1874
|
show: boolean;
|
|
1875
|
+
lockScroll: boolean;
|
|
1874
1876
|
lazyRender: boolean;
|
|
1875
1877
|
safeAreaInsetBottom: boolean;
|
|
1876
|
-
round: boolean;
|
|
1877
|
-
position: import('vant').PopupPosition;
|
|
1878
1878
|
closeable: boolean;
|
|
1879
1879
|
closeIcon: string;
|
|
1880
1880
|
closeOnPopstate: boolean;
|
|
@@ -1919,13 +1919,13 @@ export declare const Comp: {
|
|
|
1919
1919
|
}, Readonly<{
|
|
1920
1920
|
show: boolean;
|
|
1921
1921
|
} & Partial<{
|
|
1922
|
-
|
|
1922
|
+
position: import('vant').PopupPosition;
|
|
1923
1923
|
overlay: boolean;
|
|
1924
|
+
round: boolean;
|
|
1924
1925
|
show: boolean;
|
|
1926
|
+
lockScroll: boolean;
|
|
1925
1927
|
lazyRender: boolean;
|
|
1926
1928
|
safeAreaInsetBottom: boolean;
|
|
1927
|
-
round: boolean;
|
|
1928
|
-
position: import('vant').PopupPosition;
|
|
1929
1929
|
closeable: boolean;
|
|
1930
1930
|
closeIcon: string;
|
|
1931
1931
|
closeOnPopstate: boolean;
|
|
@@ -1964,13 +1964,13 @@ export declare const Comp: {
|
|
|
1964
1964
|
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
1965
1965
|
show: boolean;
|
|
1966
1966
|
} & Partial<{
|
|
1967
|
-
|
|
1967
|
+
position: import('vant').PopupPosition;
|
|
1968
1968
|
overlay: boolean;
|
|
1969
|
+
round: boolean;
|
|
1969
1970
|
show: boolean;
|
|
1971
|
+
lockScroll: boolean;
|
|
1970
1972
|
lazyRender: boolean;
|
|
1971
1973
|
safeAreaInsetBottom: boolean;
|
|
1972
|
-
round: boolean;
|
|
1973
|
-
position: import('vant').PopupPosition;
|
|
1974
1974
|
closeable: boolean;
|
|
1975
1975
|
closeIcon: string;
|
|
1976
1976
|
closeOnPopstate: boolean;
|
|
@@ -2191,7 +2191,7 @@ export declare const Comp: {
|
|
|
2191
2191
|
}>) => import('vue').VNode & {
|
|
2192
2192
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
2193
2193
|
};
|
|
2194
|
-
Waterfall: <T = any, PF extends (
|
|
2194
|
+
Waterfall: <T = any, PF extends (d: T[]) => any[] = (d: T[]) => T[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
2195
2195
|
attrs: any;
|
|
2196
2196
|
slots: Readonly<{
|
|
2197
2197
|
default(props: {
|
|
@@ -2262,9 +2262,9 @@ import * as uData from './utils/data';
|
|
|
2262
2262
|
import * as uEventBus from './utils/eventBus';
|
|
2263
2263
|
import * as uImage from './utils/image';
|
|
2264
2264
|
import * as uLayout from './utils/layout';
|
|
2265
|
+
import * as uMessage from './utils/message';
|
|
2265
2266
|
import * as uRequest from './utils/request';
|
|
2266
2267
|
import * as uTranslate from './utils/translate';
|
|
2267
|
-
import * as uMessage from './utils/message';
|
|
2268
2268
|
export declare namespace Utils {
|
|
2269
2269
|
export import data = uData;
|
|
2270
2270
|
export import eventBus = uEventBus;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ContentPageLike, ViewLayoutComp, ContentPage } from '../struct/content';
|
|
2
|
-
import { CommentRow } from '../struct/comment';
|
|
3
|
-
import { UserCardComp } from '../struct/user';
|
|
4
|
-
import { RStream, RPromiseContent } from '../utils/data';
|
|
5
|
-
import { Item, RawItem, Author, ItemCardComp } from '../struct/item';
|
|
6
1
|
import { Component, MaybeRefOrGetter } from 'vue';
|
|
7
2
|
import { ConfigPointer } from '../config';
|
|
8
|
-
import { SharedFunctions } from '../utils/eventBus';
|
|
9
|
-
import { ProcessInstance, ResourceType } from '../struct/resource';
|
|
10
3
|
import { Image } from '../struct/image';
|
|
4
|
+
import { ProcessInstance, ResourceType } from '../struct/resource';
|
|
5
|
+
import { SharedFunctions } from '../utils/eventBus';
|
|
6
|
+
import { CommentRow } from '../struct/comment';
|
|
7
|
+
import { ContentPageLike, ViewLayoutComp, ContentPage } from '../struct/content';
|
|
8
|
+
import { Item, RawItem, Author, ItemCardComp } from '../struct/item';
|
|
9
|
+
import { UserCardComp } from '../struct/user';
|
|
10
|
+
import { RStream, RPromiseContent } from '../utils/data';
|
|
11
11
|
export type PluginDefineResult = {
|
|
12
12
|
api?: Record<string, string | undefined | false>;
|
|
13
13
|
};
|
|
@@ -78,14 +78,14 @@ export interface PluginConfigUser {
|
|
|
78
78
|
/**
|
|
79
79
|
* 1. download
|
|
80
80
|
* 2. upload (收藏那些云端未收藏的漫画)
|
|
81
|
-
|
|
81
|
+
*/
|
|
82
82
|
syncFavourite?: {
|
|
83
83
|
download: () => PromiseLike<Item[]>;
|
|
84
84
|
upload: (items: RawItem[]) => PromiseLike<any>;
|
|
85
85
|
};
|
|
86
86
|
/**
|
|
87
87
|
* 在用户界面,在历史记录那个板块的下方,你希望展示的自己的板块
|
|
88
|
-
|
|
88
|
+
*/
|
|
89
89
|
userActionPages?: PluginUserActionPage[];
|
|
90
90
|
authorActions?: Record<string, AuthorAction>;
|
|
91
91
|
authorIcon?: Record<string, Component>;
|
|
@@ -116,9 +116,9 @@ export type PluginUserActionPageItem = {
|
|
|
116
116
|
};
|
|
117
117
|
export interface PluginConfigSearch {
|
|
118
118
|
/**
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
* @description
|
|
120
|
+
* key: id
|
|
121
|
+
*/
|
|
122
122
|
methods?: Record<string, PluginConfigSearchMethod>;
|
|
123
123
|
tabbar?: PluginConfigSearchTabbar[];
|
|
124
124
|
categories?: PluginConfigSearchCategory[];
|
|
@@ -133,17 +133,17 @@ export interface PluginConfigSearchBarcode {
|
|
|
133
133
|
match: (searchText: string) => boolean;
|
|
134
134
|
/**
|
|
135
135
|
* 选中后返回路由信息
|
|
136
|
-
|
|
136
|
+
*/
|
|
137
137
|
getContent: (searchText: string, signal: AbortSignal) => PromiseLike<Parameters<SharedFunctions['routeToContent']>>;
|
|
138
138
|
name: string;
|
|
139
139
|
}
|
|
140
140
|
export interface PluginConfigSearchHotPageLevelboard {
|
|
141
141
|
name: string;
|
|
142
|
-
content: () =>
|
|
142
|
+
content: () => RStream<Item> | RPromiseContent<any, Item[]>;
|
|
143
143
|
}
|
|
144
144
|
export interface PluginConfigSearchHotPageMainList {
|
|
145
145
|
name: string;
|
|
146
|
-
content: () =>
|
|
146
|
+
content: () => RStream<Item> | RPromiseContent<any, Item[]>;
|
|
147
147
|
onClick?(): any;
|
|
148
148
|
}
|
|
149
149
|
export interface PluginConfigSearchHotPageTopButton {
|
|
@@ -183,11 +183,11 @@ export interface PluginConfigSearchMethod {
|
|
|
183
183
|
} | Component)[]>;
|
|
184
184
|
}
|
|
185
185
|
export interface PluginConfigApi {
|
|
186
|
-
forks: () =>
|
|
186
|
+
forks: () => PromiseLike<string[]> | string[];
|
|
187
187
|
/**
|
|
188
188
|
* error -> 不可用
|
|
189
189
|
* other -> 可用并比对时间
|
|
190
|
-
|
|
190
|
+
*/
|
|
191
191
|
test: (fork: string, signal: AbortSignal) => PromiseLike<void>;
|
|
192
192
|
}
|
|
193
193
|
export interface PluginConfigResource {
|
|
@@ -200,21 +200,21 @@ export type PluginConfigContent = Record<string, {
|
|
|
200
200
|
* key: contentType
|
|
201
201
|
* value: component
|
|
202
202
|
* 与`ContentPage.setItemCard(key, value)`等价
|
|
203
|
-
|
|
203
|
+
*/
|
|
204
204
|
itemCard?: ItemCardComp;
|
|
205
205
|
/**
|
|
206
206
|
* @description
|
|
207
207
|
* key: contentType
|
|
208
208
|
* value: component
|
|
209
209
|
* 与`Comment.setCommentRow(key, value)`等价
|
|
210
|
-
|
|
210
|
+
*/
|
|
211
211
|
commentRow?: CommentRow;
|
|
212
212
|
/**
|
|
213
213
|
* @description
|
|
214
214
|
* key: contentType
|
|
215
215
|
* value: component
|
|
216
216
|
* 与`ContentPage.setViewLayout(key, value)`等价
|
|
217
|
-
|
|
217
|
+
*/
|
|
218
218
|
layout?: ViewLayoutComp;
|
|
219
219
|
/**
|
|
220
220
|
* @description
|
|
@@ -222,12 +222,12 @@ export type PluginConfigContent = Record<string, {
|
|
|
222
222
|
* value: ContentPage
|
|
223
223
|
* 与`ContentPage.setContentPage(key, value)`等价
|
|
224
224
|
* _不需要提供viewLayout_
|
|
225
|
-
|
|
225
|
+
*/
|
|
226
226
|
contentPage?: ContentPageLike;
|
|
227
227
|
/**
|
|
228
228
|
* @description
|
|
229
229
|
* 将原始对象转换为类
|
|
230
|
-
|
|
230
|
+
*/
|
|
231
231
|
itemTranslator?: PluginConfigContentItemTranslator;
|
|
232
232
|
}>;
|
|
233
233
|
export type PluginConfigContentItemTranslator = (raw: RawItem) => Item;
|
|
@@ -236,7 +236,7 @@ export type UniFormDescription = {
|
|
|
236
236
|
placeholder?: string;
|
|
237
237
|
/**
|
|
238
238
|
* @default true
|
|
239
|
-
|
|
239
|
+
*/
|
|
240
240
|
required?: boolean;
|
|
241
241
|
} & ({
|
|
242
242
|
type: 'string';
|
|
@@ -279,7 +279,7 @@ export type PluginConfigAuthMethod = {
|
|
|
279
279
|
}>;
|
|
280
280
|
/**
|
|
281
281
|
* sandbox: "allow-forms allow-modals allow-orientation-lock allow-popups-to-escape-sandbox allow-pointer-lock"
|
|
282
|
-
|
|
282
|
+
*/
|
|
283
283
|
website(url: string): Window;
|
|
284
284
|
};
|
|
285
285
|
export interface PluginConfigAuth {
|
|
@@ -4,10 +4,10 @@ export type PluginExpose<T extends ReturnType<typeof definePlugin>> = Awaited<Re
|
|
|
4
4
|
export interface RawPluginMeta {
|
|
5
5
|
'name:display': string;
|
|
6
6
|
'name:id': string;
|
|
7
|
-
version: string;
|
|
8
|
-
author: string | undefined;
|
|
9
|
-
description: string;
|
|
10
|
-
require?: string[] | string;
|
|
7
|
+
'version': string;
|
|
8
|
+
'author': string | undefined;
|
|
9
|
+
'description': string;
|
|
10
|
+
'require'?: string[] | string;
|
|
11
11
|
}
|
|
12
12
|
export interface PluginMeta {
|
|
13
13
|
name: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SourcedKeyMap, Struct, MetaData, RStream } from '../utils/data';
|
|
2
|
-
import { Component } from 'vue';
|
|
3
|
-
import { uni } from '.';
|
|
4
1
|
import { default as dayjs } from 'dayjs';
|
|
2
|
+
import { Component } from 'vue';
|
|
3
|
+
import { SourcedKeyMap, Struct, MetaData, RStream } from '../utils/data';
|
|
5
4
|
import { User } from './user';
|
|
5
|
+
import { uni } from '.';
|
|
6
6
|
export interface RawComment {
|
|
7
7
|
sender: uni.user.User;
|
|
8
8
|
content: {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import { AudioSrc, MediaSrc, TextTrackInit } from 'vidstack';
|
|
1
2
|
import { Component } from 'vue';
|
|
3
|
+
import { PluginConfigSearchBarcode, PluginConfigSearchCategory, PluginConfigSearchHotPageLevelboard, PluginConfigSearchHotPageMainList, PluginConfigSearchHotPageTopButton, PluginConfigSearchTabbar, PluginShareInitiativeItem, PluginShareToken } from '../plugin/define';
|
|
2
4
|
import { SourcedKeyMap, RStream, SourcedKeyType } from '../utils/data';
|
|
3
5
|
import { uni } from '.';
|
|
4
|
-
import { AudioSrc, MediaSrc, TextTrackInit } from 'vidstack';
|
|
5
|
-
import { PluginConfigSearchBarcode, PluginConfigSearchCategory, PluginConfigSearchHotPageLevelboard, PluginConfigSearchHotPageMainList, PluginConfigSearchHotPageTopButton, PluginConfigSearchTabbar, PluginShareInitiativeItem, PluginShareToken } from '../plugin/define';
|
|
6
|
-
import * as item from './item';
|
|
7
|
-
import * as ep from './ep';
|
|
8
6
|
import * as comment from './comment';
|
|
7
|
+
import * as item from './item';
|
|
9
8
|
export type PreloadValue = item.Item | undefined;
|
|
10
9
|
export type ContentPageLike = new (preload: PreloadValue, id: string, ep: string) => ContentPage;
|
|
11
10
|
export type ContentType_ = SourcedKeyType<typeof ContentPage.contentPage>;
|
|
@@ -40,11 +39,11 @@ export declare abstract class ContentPage<T extends object = any> {
|
|
|
40
39
|
abstract contentType: ContentType;
|
|
41
40
|
pid: import('../utils/data').PromiseWithResolvers<string>;
|
|
42
41
|
preload: import('vue').ShallowRef<uni.content.PreloadValue, uni.content.PreloadValue>;
|
|
43
|
-
detail: import('../utils/data').PromiseWithResolvers<item.Item>;
|
|
42
|
+
detail: import('../utils/data').PromiseWithResolvers<uni.item.Item>;
|
|
44
43
|
union: import('vue').ComputedRef<uni.content.PreloadValue>;
|
|
45
|
-
recommends: import('../utils/data').PromiseWithResolvers<item.Item[]>;
|
|
44
|
+
recommends: import('../utils/data').PromiseWithResolvers<uni.item.Item[]>;
|
|
46
45
|
abstract comments: RStream<comment.Comment>;
|
|
47
|
-
eps: import('../utils/data').PromiseWithResolvers<ep.Ep[]>;
|
|
46
|
+
eps: import('../utils/data').PromiseWithResolvers<uni.ep.Ep[]>;
|
|
48
47
|
abstract loadAll(signal?: AbortSignal): Promise<any>;
|
|
49
48
|
abstract reloadAll(signal?: AbortSignal): Promise<any>;
|
|
50
49
|
abstract plugin: string;
|
|
@@ -57,7 +56,7 @@ export declare abstract class ContentImagePage extends ContentPage {
|
|
|
57
56
|
}
|
|
58
57
|
export type VideoConfig = {
|
|
59
58
|
textTrack?: TextTrackInit[];
|
|
60
|
-
} &
|
|
59
|
+
} & Exclude<MediaSrc, string | AudioSrc>[];
|
|
61
60
|
export declare abstract class ContentVideoPage extends ContentPage {
|
|
62
61
|
videos: import('../utils/data').PromiseWithResolvers<uni.content.VideoConfig>;
|
|
63
62
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as _user from "./user";
|
|
1
|
+
import * as _comment from './comment';
|
|
2
|
+
import * as _content from './content';
|
|
3
|
+
import * as _ep from './ep';
|
|
4
|
+
import * as _image from './image';
|
|
5
|
+
import * as _item from './item';
|
|
7
6
|
import * as _resource from './resource';
|
|
7
|
+
import * as _user from './user';
|
|
8
8
|
export declare namespace uni {
|
|
9
9
|
export import user = _user;
|
|
10
10
|
export import comment = _comment;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { SourcedKeyMap, Struct, MetaData } from '../utils/data';
|
|
2
1
|
import { default as dayjs } from 'dayjs';
|
|
3
|
-
import { ContentType, ContentType_ } from './content';
|
|
4
|
-
import { Ep, RawEp } from './ep';
|
|
5
2
|
import { Component } from 'vue';
|
|
6
3
|
import { PluginConfigContentItemTranslator } from '../plugin/define';
|
|
4
|
+
import { SourcedKeyMap, Struct, MetaData } from '../utils/data';
|
|
7
5
|
import { uni } from '.';
|
|
8
6
|
import { RawResource } from './resource';
|
|
9
|
-
import
|
|
7
|
+
import { ContentType, ContentType_ } from './content';
|
|
8
|
+
import { RawEp } from './ep';
|
|
10
9
|
export interface Category {
|
|
11
10
|
name: string;
|
|
12
11
|
group: string;
|
|
@@ -82,7 +81,7 @@ export declare abstract class Item extends Struct<RawItem> implements RawItem {
|
|
|
82
81
|
abstract sendComment(text: string, signal?: AbortSignal): PromiseLike<any>;
|
|
83
82
|
static is(value: unknown): value is Item;
|
|
84
83
|
cover: RawResource;
|
|
85
|
-
get $cover(): image.Image;
|
|
84
|
+
get $cover(): uni.image.Image;
|
|
86
85
|
title: string;
|
|
87
86
|
id: string;
|
|
88
87
|
categories: Category[];
|
|
@@ -101,7 +100,7 @@ export declare abstract class Item extends Struct<RawItem> implements RawItem {
|
|
|
101
100
|
$$meta: MetaData;
|
|
102
101
|
thisEp: RawEp;
|
|
103
102
|
customIsSafe?: boolean;
|
|
104
|
-
get $thisEp(): Ep;
|
|
103
|
+
get $thisEp(): uni.ep.Ep;
|
|
105
104
|
constructor(v: RawItem);
|
|
106
105
|
commentSendable: boolean;
|
|
107
106
|
customIsAI?: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AuthorAction, PluginConfigSubscribe } from '../plugin/define';
|
|
2
|
-
import { uni } from '.';
|
|
3
|
-
import { Image } from './image';
|
|
4
1
|
import { Component } from 'vue';
|
|
2
|
+
import { AuthorAction, PluginConfigSubscribe } from '../plugin/define';
|
|
5
3
|
import { SourcedKeyMap } from '../utils/data';
|
|
4
|
+
import { uni } from '.';
|
|
6
5
|
import { RawResource } from './resource';
|
|
6
|
+
import { Image } from './image';
|
|
7
7
|
export interface RawUser {
|
|
8
8
|
avatar?: RawResource;
|
|
9
9
|
name: string;
|