Commit f8414b34 authored by nanahira's avatar nanahira

fix compile

parent 85fe53e6
...@@ -27,22 +27,19 @@ app.plugin(ExtrasInDev); ...@@ -27,22 +27,19 @@ app.plugin(ExtrasInDev);
// Target plugin // Target plugin
app.plugin(TargetPlugin, { app.plugin(TargetPlugin, {
instances: [
{
name: 'yande', name: 'yande',
weight: 1, weight: 1,
endpoint: 'https://yande.re/post.json', endpoint: 'https://yande.re/post.json',
pageLimit: 200, pageLimit: 200,
isDefault: true, isDefault: true,
}, });
{
app.plugin(TargetPlugin, {
name: 'konachan', name: 'konachan',
weight: 1, weight: 1,
endpoint: 'https://konachan.com/post.json', endpoint: 'https://konachan.com/post.json',
pageLimit: 200, pageLimit: 200,
isDefault: true, isDefault: true,
},
],
}); });
app.start(); app.start();
This diff is collapsed.
...@@ -28,11 +28,11 @@ ...@@ -28,11 +28,11 @@
}, },
"homepage": "https://code.mycard.moe/3rdeye/koishi-plugin-picsource-yande", "homepage": "https://code.mycard.moe/3rdeye/koishi-plugin-picsource-yande",
"peerDependencies": { "peerDependencies": {
"koishi": "^4.7.4", "koishi": "^4.7.5",
"koishi-plugin-pics": "^9.3.3" "koishi-plugin-pics": "^9.4.1"
}, },
"dependencies": { "dependencies": {
"koishi-thirdeye": "^10.2.8" "koishi-thirdeye": "^10.3.0"
}, },
"devDependencies": { "devDependencies": {
"@koishijs/plugin-cache-lru": "^1.0.0-rc.0", "@koishijs/plugin-cache-lru": "^1.0.0-rc.0",
......
// import 'source-map-support/register'; // import 'source-map-support/register';
import { PicSourceYandePluginConfig } from './config'; import { PicSourceYandePluginConfig } from './config';
import { DefinePlugin, Inject, MultiInstancePlugin } from 'koishi-thirdeye'; import { DefinePlugin, Inject, ParentPlugin } from 'koishi-thirdeye';
import { PicSourcePlugin } from 'koishi-plugin-pics'; import { PicSourcePlugin } from 'koishi-plugin-pics';
import { Random, Quester } from 'koishi'; import { Random, Quester } from 'koishi';
import { PicInfo } from './def'; import { PicInfo } from './def';
export * from './config'; export * from './config';
@DefinePlugin() @DefinePlugin()
export class PicSourceYande extends PicSourcePlugin( export default class PicSourceYande extends PicSourcePlugin(
PicSourceYandePluginConfig, PicSourceYandePluginConfig,
) { ) {
@Inject(true) @Inject(true)
...@@ -56,8 +56,3 @@ export class PicSourceYande extends PicSourcePlugin( ...@@ -56,8 +56,3 @@ export class PicSourceYande extends PicSourcePlugin(
}; };
} }
} }
@DefinePlugin()
export default class PicSourceYandePlugin extends MultiInstancePlugin(
PicSourceYande,
) {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment