mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-15 11:21:11 +00:00
Refactor
This commit is contained in:
@@ -1,68 +1,22 @@
|
||||
import '../../../model/source.dart';
|
||||
import '../../../utils/utils.dart';
|
||||
import 'src/yugenmangas/yugenmangas.dart';
|
||||
import 'src/omegascans/omegascans.dart';
|
||||
import 'src/perfscan/perfscan.dart';
|
||||
|
||||
const heancmsVersion = "0.0.4";
|
||||
const heancmsSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/multisrc/heancms/heancms-v$heancmsVersion.dart";
|
||||
const defaultDateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ";
|
||||
const defaultDateFormatLocale = "en";
|
||||
List<Source> get heanCmsSourcesList => _heanCmsSourcesList;
|
||||
List<Source> _heanCmsSourcesList = [
|
||||
Source(
|
||||
name: "YugenMangas",
|
||||
baseUrl: "https://yugenmangas.lat",
|
||||
apiUrl: "https://api.yugenmangas.net",
|
||||
lang: "es",
|
||||
typeSource: "heancms",
|
||||
isNsfw: true,
|
||||
iconUrl: getIconUrl("yugenmangas", "es"),
|
||||
sourceCodeUrl: heancmsSourceCodeUrl,
|
||||
version: heancmsVersion,
|
||||
dateFormat: defaultDateFormat,
|
||||
dateFormatLocale: defaultDateFormatLocale),
|
||||
Source(
|
||||
name: "OmegaScans",
|
||||
baseUrl: "https://omegascans.org",
|
||||
apiUrl: "https://api.omegascans.org",
|
||||
lang: "en",
|
||||
typeSource: "heancms",
|
||||
isNsfw: true,
|
||||
iconUrl: getIconUrl("omegascans", "en"),
|
||||
sourceCodeUrl: heancmsSourceCodeUrl,
|
||||
version: heancmsVersion,
|
||||
dateFormat: defaultDateFormat,
|
||||
dateFormatLocale: defaultDateFormatLocale),
|
||||
// Source(
|
||||
// name: "Reaper Scans",
|
||||
// baseUrl: "https://reaperscans.net",
|
||||
// apiUrl: "https://api.reaperscans.net",
|
||||
// lang: "pt-br",
|
||||
// typeSource: "heancms",
|
||||
// iconUrl: getIconUrl("reaperscans", "pt"),
|
||||
// sourceCodeUrl: heancmsSourceCodeUrl,
|
||||
// version: heancmsVersion,
|
||||
// dateFormat: defaultDateFormat,
|
||||
// dateFormatLocale: defaultDateFormatLocale),
|
||||
Source(
|
||||
name: "Perf Scan",
|
||||
baseUrl: "https://perf-scan.fr",
|
||||
apiUrl: "https://api.perf-scan.fr",
|
||||
lang: "fr",
|
||||
typeSource: "heancms",
|
||||
iconUrl: getIconUrl("perfscan", "fr"),
|
||||
sourceCodeUrl: heancmsSourceCodeUrl,
|
||||
version: heancmsVersion,
|
||||
dateFormat: defaultDateFormat,
|
||||
dateFormatLocale: defaultDateFormatLocale),
|
||||
// Source(
|
||||
// name: "Glorious Scan",
|
||||
// baseUrl: "https://gloriousscan.com",
|
||||
// apiUrl: "https://api.gloriousscan.com",
|
||||
// lang: "pt-br",
|
||||
// typeSource: "heancms",
|
||||
// iconUrl: getIconUrl("gloriousscan", "pt"),
|
||||
// sourceCodeUrl: heancmsSourceCodeUrl,
|
||||
// version: heancmsVersion,
|
||||
// dateFormat: defaultDateFormat,
|
||||
// dateFormatLocale: defaultDateFormatLocale),
|
||||
];
|
||||
|
||||
List<Source> get heancmsSourcesList => _heancmsSourcesList;
|
||||
List<Source> _heancmsSourcesList = [
|
||||
//YugenMangas (ES)
|
||||
yugenmangasSource,
|
||||
//OmegaScans (EN)
|
||||
omegascansSource,
|
||||
//Perf Scan (FR)
|
||||
perfscanSource,
|
||||
]
|
||||
.map((e) => e
|
||||
..sourceCodeUrl = heancmsSourceCodeUrl
|
||||
..version = heancmsVersion)
|
||||
.toList();
|
||||
|
||||
BIN
manga/multisrc/heancms/src/omegascans/icon.png
Normal file
BIN
manga/multisrc/heancms/src/omegascans/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.5 KiB |
14
manga/multisrc/heancms/src/omegascans/omegascans.dart
Normal file
14
manga/multisrc/heancms/src/omegascans/omegascans.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
import '../../../../../model/source.dart';
|
||||
|
||||
Source get omegascansSource => _omegascansSource;
|
||||
|
||||
Source _omegascansSource = Source(
|
||||
name: "OmegaScans",
|
||||
baseUrl: "https://omegascans.org",
|
||||
lang: "en",
|
||||
|
||||
typeSource: "heancms",
|
||||
iconUrl:"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/multisrc/heancms/src/omegascans/icon.png",
|
||||
dateFormat:"yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ",
|
||||
dateFormatLocale:"en",
|
||||
);
|
||||
BIN
manga/multisrc/heancms/src/perfscan/icon.png
Normal file
BIN
manga/multisrc/heancms/src/perfscan/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
14
manga/multisrc/heancms/src/perfscan/perfscan.dart
Normal file
14
manga/multisrc/heancms/src/perfscan/perfscan.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
import '../../../../../model/source.dart';
|
||||
|
||||
Source get perfscanSource => _perfscanSource;
|
||||
|
||||
Source _perfscanSource = Source(
|
||||
name: "Perf Scan",
|
||||
baseUrl: "https://perf-scan.fr",
|
||||
lang: "fr",
|
||||
isNsfw: true,
|
||||
typeSource: "heancms",
|
||||
iconUrl:"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/multisrc/heancms/src/perfscan/icon.png",
|
||||
dateFormat:"yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ",
|
||||
dateFormatLocale:"en",
|
||||
);
|
||||
BIN
manga/multisrc/heancms/src/yugenmangas/icon.png
Normal file
BIN
manga/multisrc/heancms/src/yugenmangas/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
14
manga/multisrc/heancms/src/yugenmangas/yugenmangas.dart
Normal file
14
manga/multisrc/heancms/src/yugenmangas/yugenmangas.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
import '../../../../../model/source.dart';
|
||||
|
||||
Source get yugenmangasSource => _yugenmangasSource;
|
||||
|
||||
Source _yugenmangasSource = Source(
|
||||
name: "YugenMangas",
|
||||
baseUrl: "https://yugenmangas.lat",
|
||||
lang: "es",
|
||||
|
||||
typeSource: "heancms",
|
||||
iconUrl:"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/multisrc/heancms/src/yugenmangas/icon.png",
|
||||
dateFormat:"yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ",
|
||||
dateFormatLocale:"en",
|
||||
);
|
||||
Reference in New Issue
Block a user