Feat: ImageRequestInit (#979)

* add ImageRequestInit & fix Hako

* remove multisrc fetchFile

* remove plugins fetchFile

* update docs and template file
This commit is contained in:
nyagami
2024-06-08 20:09:33 +07:00
committed by GitHub
parent 6062f51460
commit 60d95fb8d2
85 changed files with 441 additions and 692 deletions
-2
View File
@@ -151,8 +151,6 @@ class freedlit implements Plugin.PluginBase {
return dateString || null;
};
fetchImage = fetchFile;
filters = {
sort: {
label: 'Сортировка:',
-1
View File
@@ -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;
-1
View File
@@ -138,7 +138,6 @@ class Bookriver implements Plugin.PluginBase {
return novels;
}
fetchImage = fetchFile;
resolveUrl = (path: string, isNovel?: boolean) =>
this.site + (isNovel ? '/book/' : '/reader/') + path;
-2
View File
@@ -197,8 +197,6 @@ class ficbook implements Plugin.PluginBase {
return dateString || null;
};
fetchImage = fetchFile;
filters = {
sort: {
label: 'Сортировка:',
-2
View File
@@ -193,8 +193,6 @@ class Jaomix implements Plugin.PluginBase {
return dateString || null;
};
fetchImage = fetchFile;
filters = {
sortby: {
label: 'Сортировка:',
-1
View File
@@ -143,7 +143,6 @@ class Neobook implements Plugin.PluginBase {
return chapterText;
}
fetchImage = fetchFile;
resolveUrl = (path: string, isNovel?: boolean) =>
this.site + (isNovel ? '/book/' : '/reader/') + path;
-1
View File
@@ -158,7 +158,6 @@ class novelOvh implements Plugin.PluginBase {
return html;
};
fetchImage = fetchFile;
resolveUrl = (path: string, isNovel?: boolean) =>
this.site + '/novel/' + path;
-1
View File
@@ -195,7 +195,6 @@ class TL implements Plugin.PluginBase {
return chapterText;
}
fetchImage = fetchFile;
resolveUrl = (path: string, isNovel?: boolean) => 'https://' + path;
filters = {
-1
View File
@@ -164,7 +164,6 @@ class RNBH implements Plugin.PluginBase {
return novels;
}
fetchImage = fetchFile;
resolveUrl = (path: string, isNovel?: boolean) =>
this.site + '/ranobe/' + path;
-1
View File
@@ -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 : '';
-2
View File
@@ -134,8 +134,6 @@ class RNRF implements Plugin.PluginBase {
return novels;
}
fetchImage = fetchFile;
filters = {
sort: {
label: 'Сортировка',
-1
View File
@@ -147,7 +147,6 @@ class ReN implements Plugin.PluginBase {
return novels;
}
fetchImage = fetchFile;
resolveUrl = (path: string, isNovel?: boolean) =>
this.site + '/novel/' + path;
-1
View File
@@ -190,7 +190,6 @@ class Zelluloza implements Plugin.PluginBase {
return null;
};
fetchImage = fetchFile;
resolveUrl = (path: string, isNovel?: boolean) =>
this.site + '/books/' + path;