mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 19:01:15 +00:00
Refactor
This commit is contained in:
BIN
manga/src/all/batoto/icon.png
Normal file
BIN
manga/src/all/batoto/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
@@ -1,15 +1,15 @@
|
||||
import '../../../../model/source.dart';
|
||||
import '../../../../utils/utils.dart';
|
||||
|
||||
const batotoVersion = "0.0.45";
|
||||
const batotoSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/src/all/batoto/batoto-v$batotoVersion.dart";
|
||||
const _batotoVersion = "0.0.45";
|
||||
const _batotoSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/src/all/batoto/batoto-v$_batotoVersion.dart";
|
||||
|
||||
String _iconUrl = getIconUrl("batoto", "all");
|
||||
const baseUrl = 'https://bato.to';
|
||||
const isNsfw = true;
|
||||
String _iconUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/src/all/batoto/icon.png";
|
||||
const _baseUrl = 'https://bato.to';
|
||||
const _isNsfw = true;
|
||||
|
||||
List<String> languages = [
|
||||
List<String> _languages = [
|
||||
"all",
|
||||
"en",
|
||||
"ar",
|
||||
@@ -117,16 +117,16 @@ List<String> languages = [
|
||||
];
|
||||
|
||||
List<Source> get batotoSourcesList => _batotoSourcesList;
|
||||
List<Source> _batotoSourcesList = languages
|
||||
List<Source> _batotoSourcesList = _languages
|
||||
.map((e) => Source(
|
||||
name: 'Bato.to',
|
||||
baseUrl: baseUrl,
|
||||
baseUrl: _baseUrl,
|
||||
lang: e,
|
||||
typeSource: "bato.to",
|
||||
iconUrl: _iconUrl,
|
||||
dateFormat: "MMM dd,yyyy",
|
||||
isNsfw: isNsfw,
|
||||
isNsfw: _isNsfw,
|
||||
dateFormatLocale: "en",
|
||||
version: batotoVersion,
|
||||
sourceCodeUrl: batotoSourceCodeUrl))
|
||||
version: _batotoVersion,
|
||||
sourceCodeUrl: _batotoSourceCodeUrl))
|
||||
.toList();
|
||||
|
||||
BIN
manga/src/all/comick/icon.png
Normal file
BIN
manga/src/all/comick/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
@@ -1,16 +1,16 @@
|
||||
import '../../../../model/source.dart';
|
||||
import '../../../../utils/utils.dart';
|
||||
|
||||
const comickVersion = "0.0.4";
|
||||
const comickSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/src/all/comick/comick-v$comickVersion.dart";
|
||||
const _comickVersion = "0.0.4";
|
||||
const _comickSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/src/all/comick/comick-v$_comickVersion.dart";
|
||||
|
||||
String iconUrl = getIconUrl("comickfun", "all");
|
||||
const apiUrl = 'https://api.comick.fun';
|
||||
const baseUrl = 'https://comick.app';
|
||||
const isNsfw = true;
|
||||
String _iconUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/src/all/comick/icon.png";
|
||||
const _apiUrl = 'https://api.comick.fun';
|
||||
const _baseUrl = 'https://comick.app';
|
||||
const _isNsfw = true;
|
||||
|
||||
List<String> languages = [
|
||||
List<String> _languages = [
|
||||
"all",
|
||||
"en",
|
||||
"pt-br",
|
||||
@@ -55,17 +55,17 @@ List<String> languages = [
|
||||
];
|
||||
|
||||
List<Source> get comickSourcesList => _comickSourcesList;
|
||||
List<Source> _comickSourcesList = languages
|
||||
List<Source> _comickSourcesList = _languages
|
||||
.map((e) => Source(
|
||||
name: 'Comick',
|
||||
apiUrl: apiUrl,
|
||||
baseUrl: baseUrl,
|
||||
apiUrl: _apiUrl,
|
||||
baseUrl: _baseUrl,
|
||||
lang: e,
|
||||
typeSource: "comick",
|
||||
iconUrl: iconUrl,
|
||||
iconUrl: _iconUrl,
|
||||
dateFormat: "yyyy-MM-dd'T'HH:mm:ss'Z'",
|
||||
isNsfw: isNsfw,
|
||||
isNsfw: _isNsfw,
|
||||
dateFormatLocale: "en",
|
||||
version: comickVersion,
|
||||
sourceCodeUrl: comickSourceCodeUrl))
|
||||
version: _comickVersion,
|
||||
sourceCodeUrl: _comickSourceCodeUrl))
|
||||
.toList();
|
||||
|
||||
BIN
manga/src/all/mangadex/icon.png
Normal file
BIN
manga/src/all/mangadex/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
@@ -1,15 +1,15 @@
|
||||
import '../../../../model/source.dart';
|
||||
import '../../../../utils/utils.dart';
|
||||
|
||||
const apiUrl = 'https://api.mangadex.org';
|
||||
const baseUrl = 'https://mangadex.org';
|
||||
const isNsfw = true;
|
||||
const mangadexVersion = "0.0.5";
|
||||
const mangadexSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/src/all/mangadex/mangadex-v$mangadexVersion.dart";
|
||||
String _iconUrl = getIconUrl("mangadex", "all");
|
||||
const _apiUrl = 'https://api.mangadex.org';
|
||||
const _baseUrl = 'https://mangadex.org';
|
||||
const _isNsfw = true;
|
||||
const _mangadexVersion = "0.0.5";
|
||||
const _mangadexSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/src/all/mangadex/mangadex-v$_mangadexVersion.dart";
|
||||
String _iconUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/src/all/mangadex/icon.png";
|
||||
|
||||
final languages = [
|
||||
final _languages = [
|
||||
"ar",
|
||||
"bn",
|
||||
"bg",
|
||||
@@ -58,17 +58,17 @@ final languages = [
|
||||
];
|
||||
|
||||
List<Source> get mangaDexSourcesList => _mangaDexSourcesList;
|
||||
List<Source> _mangaDexSourcesList = languages
|
||||
List<Source> _mangaDexSourcesList = _languages
|
||||
.map((e) => Source(
|
||||
name: 'MangaDex',
|
||||
apiUrl: apiUrl,
|
||||
baseUrl: baseUrl,
|
||||
apiUrl: _apiUrl,
|
||||
baseUrl: _baseUrl,
|
||||
lang: e,
|
||||
typeSource: "mangadex",
|
||||
iconUrl: _iconUrl,
|
||||
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||
isNsfw: isNsfw,
|
||||
isNsfw: _isNsfw,
|
||||
dateFormatLocale: 'en_Us',
|
||||
version: mangadexVersion,
|
||||
sourceCodeUrl: mangadexSourceCodeUrl))
|
||||
version: _mangadexVersion,
|
||||
sourceCodeUrl: _mangadexSourceCodeUrl))
|
||||
.toList();
|
||||
|
||||
BIN
manga/src/en/mangahere/icon.png
Normal file
BIN
manga/src/en/mangahere/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.7 KiB |
@@ -1,18 +1,18 @@
|
||||
import '../../../../model/source.dart';
|
||||
import '../../../../utils/utils.dart';
|
||||
|
||||
Source get mangahereSource => _mangahereSource;
|
||||
const mangahereVersion = "0.0.4";
|
||||
const mangahereSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/src/en/mangahere/mangahere-v$mangahereVersion.dart";
|
||||
const _mangahereVersion = "0.0.4";
|
||||
const _mangahereSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/src/en/mangahere/mangahere-v$_mangahereVersion.dart";
|
||||
Source _mangahereSource = Source(
|
||||
name: "MangaHere",
|
||||
baseUrl: "http://www.mangahere.cc",
|
||||
lang: "en",
|
||||
typeSource: "single",
|
||||
iconUrl: getIconUrl("mangahere", "en"),
|
||||
sourceCodeUrl: mangahereSourceCodeUrl,
|
||||
version: mangahereVersion,
|
||||
iconUrl:
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/src/en/mangahere/icon.png",
|
||||
sourceCodeUrl: _mangahereSourceCodeUrl,
|
||||
version: _mangahereVersion,
|
||||
dateFormat: "MMM dd,yyyy",
|
||||
dateFormatLocale: "en",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user