mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-16 03:40:30 +00:00
Refactor
This commit is contained in:
@@ -1,28 +1,19 @@
|
||||
import '../../../model/source.dart';
|
||||
import '../../../utils/utils.dart';
|
||||
import 'src/aniwatch/aniwatch.dart';
|
||||
import 'src/kaido/kaido.dart';
|
||||
|
||||
const zorothemeVersion = "0.0.55";
|
||||
const zorothemeSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/multisrc/zorotheme/zorotheme-v$zorothemeVersion.dart";
|
||||
const _zorothemeVersion = "0.0.55";
|
||||
const _zorothemeSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/multisrc/zorotheme/zorotheme-v$_zorothemeVersion.dart";
|
||||
|
||||
List<Source> get zorothemeSourcesList => _zorothemeSourcesList;
|
||||
List<Source> _zorothemeSourcesList = [
|
||||
Source(
|
||||
name: "AniWatch.to",
|
||||
baseUrl: "https://aniwatch.to",
|
||||
lang: "en",
|
||||
typeSource: "zorotheme",
|
||||
iconUrl: getIconUrl("aniwatch", "en"),
|
||||
version: zorothemeVersion,
|
||||
isManga: false,
|
||||
sourceCodeUrl: zorothemeSourceCodeUrl),
|
||||
Source(
|
||||
name: "Kaido.to",
|
||||
baseUrl: "https://kaido.to",
|
||||
lang: "en",
|
||||
typeSource: "zorotheme",
|
||||
iconUrl: getIconUrl("kaido", "en"),
|
||||
version: zorothemeVersion,
|
||||
isManga: false,
|
||||
sourceCodeUrl: zorothemeSourceCodeUrl),
|
||||
];
|
||||
//AniWatch.to (EN)
|
||||
aniwatchSource,
|
||||
//Kaido.to (EN)
|
||||
kaidoSource,
|
||||
]
|
||||
.map((e) => e
|
||||
..sourceCodeUrl = _zorothemeSourceCodeUrl
|
||||
..version = _zorothemeVersion)
|
||||
.toList();
|
||||
|
||||
13
anime/multisrc/zorotheme/src/aniwatch/aniwatch.dart
Normal file
13
anime/multisrc/zorotheme/src/aniwatch/aniwatch.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
import '../../../../../model/source.dart';
|
||||
|
||||
Source get aniwatchSource => _aniwatchSource;
|
||||
|
||||
Source _aniwatchSource = Source(
|
||||
name: "AniWatch.to",
|
||||
baseUrl: "https://aniwatch.to",
|
||||
lang: "en",
|
||||
isNsfw: true,
|
||||
typeSource: "zorotheme",
|
||||
iconUrl:
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/multisrc/zorotheme/src/aniwatch/icon.png",
|
||||
);
|
||||
BIN
anime/multisrc/zorotheme/src/aniwatch/icon.png
Normal file
BIN
anime/multisrc/zorotheme/src/aniwatch/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
BIN
anime/multisrc/zorotheme/src/kaido/icon.png
Normal file
BIN
anime/multisrc/zorotheme/src/kaido/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
13
anime/multisrc/zorotheme/src/kaido/kaido.dart
Normal file
13
anime/multisrc/zorotheme/src/kaido/kaido.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
import '../../../../../model/source.dart';
|
||||
|
||||
Source get kaidoSource => _kaidoSource;
|
||||
|
||||
Source _kaidoSource = Source(
|
||||
name: "Kaido.to",
|
||||
baseUrl: "https://kaido.to",
|
||||
lang: "en",
|
||||
isNsfw: true,
|
||||
typeSource: "zorotheme",
|
||||
iconUrl:
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/multisrc/zorotheme/src/kaido/icon.png",
|
||||
);
|
||||
Reference in New Issue
Block a user