mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 02:41:39 +00:00
added property for notes/hints
This commit is contained in:
@@ -12,7 +12,8 @@ const mangayomiSources = [{
|
|||||||
"dateFormatLocale": "",
|
"dateFormatLocale": "",
|
||||||
"pkgPath": "novel/src/en/novelupdates.js",
|
"pkgPath": "novel/src/en/novelupdates.js",
|
||||||
"isNsfw": false,
|
"isNsfw": false,
|
||||||
"hasCloudflare": true
|
"hasCloudflare": true,
|
||||||
|
"notes": "This extension requires you to login to view the chapters!"
|
||||||
}];
|
}];
|
||||||
|
|
||||||
class DefaultExtension extends MProvider {
|
class DefaultExtension extends MProvider {
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ class Source {
|
|||||||
|
|
||||||
int? sourceCodeLanguage;
|
int? sourceCodeLanguage;
|
||||||
|
|
||||||
|
String? notes;
|
||||||
|
|
||||||
Source({
|
Source({
|
||||||
this.id = null,
|
this.id = null,
|
||||||
this.name = "",
|
this.name = "",
|
||||||
@@ -57,6 +59,7 @@ class Source {
|
|||||||
this.appMinVerReq = "0.5.0",
|
this.appMinVerReq = "0.5.0",
|
||||||
this.additionalParams = "",
|
this.additionalParams = "",
|
||||||
this.sourceCodeLanguage = 0,
|
this.sourceCodeLanguage = 0,
|
||||||
|
this.notes = "",
|
||||||
});
|
});
|
||||||
Source.fromJson(Map<String, dynamic> json) {
|
Source.fromJson(Map<String, dynamic> json) {
|
||||||
final sourceCodeLang = json['sourceCodeLanguage'] ?? 0;
|
final sourceCodeLang = json['sourceCodeLanguage'] ?? 0;
|
||||||
@@ -84,6 +87,7 @@ class Source {
|
|||||||
version = json['version'] ?? "";
|
version = json['version'] ?? "";
|
||||||
additionalParams = json['additionalParams'] ?? "";
|
additionalParams = json['additionalParams'] ?? "";
|
||||||
sourceCodeLanguage = sourceCodeLang;
|
sourceCodeLanguage = sourceCodeLang;
|
||||||
|
notes = json['notes'] ?? "";
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
@@ -107,6 +111,7 @@ class Source {
|
|||||||
"appMinVerReq": appMinVerReq,
|
"appMinVerReq": appMinVerReq,
|
||||||
"additionalParams": additionalParams,
|
"additionalParams": additionalParams,
|
||||||
"sourceCodeLanguage": sourceCodeLanguage,
|
"sourceCodeLanguage": sourceCodeLanguage,
|
||||||
|
"notes": notes,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user