Feat: ImageRequestInit (#979)
* add ImageRequestInit & fix Hako * remove multisrc fetchFile * remove plugins fetchFile * update docs and template file
This commit is contained in:
@@ -151,8 +151,6 @@ class freedlit implements Plugin.PluginBase {
|
||||
return dateString || null;
|
||||
};
|
||||
|
||||
fetchImage = fetchFile;
|
||||
|
||||
filters = {
|
||||
sort: {
|
||||
label: 'Сортировка:',
|
||||
|
||||
@@ -175,7 +175,6 @@ class AuthorToday implements Plugin.PluginBase {
|
||||
return novels;
|
||||
}
|
||||
|
||||
fetchImage = fetchFile;
|
||||
resolveUrl = (path: string, isNovel?: boolean) =>
|
||||
isNovel ? this.site + '/work/' + path : this.site + '/reader/' + path;
|
||||
|
||||
|
||||
@@ -138,7 +138,6 @@ class Bookriver implements Plugin.PluginBase {
|
||||
return novels;
|
||||
}
|
||||
|
||||
fetchImage = fetchFile;
|
||||
resolveUrl = (path: string, isNovel?: boolean) =>
|
||||
this.site + (isNovel ? '/book/' : '/reader/') + path;
|
||||
|
||||
|
||||
@@ -197,8 +197,6 @@ class ficbook implements Plugin.PluginBase {
|
||||
return dateString || null;
|
||||
};
|
||||
|
||||
fetchImage = fetchFile;
|
||||
|
||||
filters = {
|
||||
sort: {
|
||||
label: 'Сортировка:',
|
||||
|
||||
@@ -193,8 +193,6 @@ class Jaomix implements Plugin.PluginBase {
|
||||
return dateString || null;
|
||||
};
|
||||
|
||||
fetchImage = fetchFile;
|
||||
|
||||
filters = {
|
||||
sortby: {
|
||||
label: 'Сортировка:',
|
||||
|
||||
@@ -143,7 +143,6 @@ class Neobook implements Plugin.PluginBase {
|
||||
return chapterText;
|
||||
}
|
||||
|
||||
fetchImage = fetchFile;
|
||||
resolveUrl = (path: string, isNovel?: boolean) =>
|
||||
this.site + (isNovel ? '/book/' : '/reader/') + path;
|
||||
|
||||
|
||||
@@ -158,7 +158,6 @@ class novelOvh implements Plugin.PluginBase {
|
||||
return html;
|
||||
};
|
||||
|
||||
fetchImage = fetchFile;
|
||||
resolveUrl = (path: string, isNovel?: boolean) =>
|
||||
this.site + '/novel/' + path;
|
||||
|
||||
|
||||
@@ -195,7 +195,6 @@ class TL implements Plugin.PluginBase {
|
||||
return chapterText;
|
||||
}
|
||||
|
||||
fetchImage = fetchFile;
|
||||
resolveUrl = (path: string, isNovel?: boolean) => 'https://' + path;
|
||||
|
||||
filters = {
|
||||
|
||||
@@ -164,7 +164,6 @@ class RNBH implements Plugin.PluginBase {
|
||||
return novels;
|
||||
}
|
||||
|
||||
fetchImage = fetchFile;
|
||||
resolveUrl = (path: string, isNovel?: boolean) =>
|
||||
this.site + '/ranobe/' + path;
|
||||
|
||||
|
||||
@@ -216,7 +216,6 @@ class RLIB implements Plugin.PluginBase {
|
||||
return novels;
|
||||
}
|
||||
|
||||
fetchImage = fetchFile;
|
||||
resolveUrl = (path: string, isNovel?: boolean) => {
|
||||
const ui = this.user?.ui ? 'ui=' + this.user.ui : '';
|
||||
|
||||
|
||||
@@ -134,8 +134,6 @@ class RNRF implements Plugin.PluginBase {
|
||||
return novels;
|
||||
}
|
||||
|
||||
fetchImage = fetchFile;
|
||||
|
||||
filters = {
|
||||
sort: {
|
||||
label: 'Сортировка',
|
||||
|
||||
@@ -147,7 +147,6 @@ class ReN implements Plugin.PluginBase {
|
||||
return novels;
|
||||
}
|
||||
|
||||
fetchImage = fetchFile;
|
||||
resolveUrl = (path: string, isNovel?: boolean) =>
|
||||
this.site + '/novel/' + path;
|
||||
|
||||
|
||||
@@ -190,7 +190,6 @@ class Zelluloza implements Plugin.PluginBase {
|
||||
return null;
|
||||
};
|
||||
|
||||
fetchImage = fetchFile;
|
||||
resolveUrl = (path: string, isNovel?: boolean) =>
|
||||
this.site + '/books/' + path;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user