Feat: ImageRequestInit (#979)
* add ImageRequestInit & fix Hako * remove multisrc fetchFile * remove plugins fetchFile * update docs and template file
This commit is contained in:
@@ -136,9 +136,6 @@ class HasulTL implements Plugin.PluginBase {
|
||||
|
||||
return novels;
|
||||
}
|
||||
async fetchImage(url: string): Promise<string | undefined> {
|
||||
return fetchFile(url);
|
||||
}
|
||||
}
|
||||
|
||||
export default new HasulTL();
|
||||
|
||||
@@ -176,9 +176,6 @@ class Ligera implements Plugin.PluginBase {
|
||||
|
||||
return novels;
|
||||
}
|
||||
async fetchImage(url: string): Promise<string | undefined> {
|
||||
return fetchFile(url);
|
||||
}
|
||||
}
|
||||
|
||||
export default new Ligera();
|
||||
|
||||
@@ -199,9 +199,6 @@ class ReinoWuxia implements Plugin.PluginBase {
|
||||
|
||||
return novels;
|
||||
}
|
||||
async fetchImage(url: string): Promise<string | undefined> {
|
||||
return fetchFile(url);
|
||||
}
|
||||
}
|
||||
|
||||
export default new ReinoWuxia();
|
||||
|
||||
@@ -161,9 +161,6 @@ class Oasis implements Plugin.PluginBase {
|
||||
|
||||
return novels;
|
||||
}
|
||||
async fetchImage(url: string): Promise<string | undefined> {
|
||||
return fetchFile(url);
|
||||
}
|
||||
}
|
||||
|
||||
export default new Oasis();
|
||||
|
||||
@@ -128,9 +128,6 @@ class SkyNovels implements Plugin.PluginBase {
|
||||
|
||||
return novels;
|
||||
}
|
||||
async fetchImage(url: string): Promise<string | undefined> {
|
||||
return fetchFile(url);
|
||||
}
|
||||
}
|
||||
|
||||
export default new SkyNovels();
|
||||
|
||||
@@ -182,10 +182,6 @@ class TuNovelaLigera implements Plugin.PagePlugin {
|
||||
return novels;
|
||||
}
|
||||
|
||||
async fetchImage(url: string): Promise<string | undefined> {
|
||||
return await fetchFile(url);
|
||||
}
|
||||
|
||||
filters = {
|
||||
order: {
|
||||
value: 'rating',
|
||||
|
||||
@@ -179,9 +179,6 @@ class Yuuki implements Plugin.PluginBase {
|
||||
|
||||
return novels;
|
||||
}
|
||||
fetchImage(url: string): Promise<string | undefined> {
|
||||
return fetchFile(url);
|
||||
}
|
||||
}
|
||||
|
||||
export default new Yuuki();
|
||||
|
||||
Reference in New Issue
Block a user