d7a76063bf
* Add XCheckboxFilter * Fix madara typo * Change the branch name in config * Add typing for madara popoularnovels filters * Add preview and refactor PluginWrapper * Add preview HTML sanitize and other improv. * Web improvements + sanitizeHTML * Add dark mode * Add git run less to compile less * Add less.js to remove the need for compiling less
88 lines
3.1 KiB
JSON
88 lines
3.1 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"additionalProperties": { "type": "string" },
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sourceSite": {
|
|
"type": "string"
|
|
},
|
|
"sourceName": {
|
|
"type": "string"
|
|
},
|
|
"filters": {
|
|
"type": "object",
|
|
"patternProperties": {
|
|
".*": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["label", "value"]
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["label", "options", "type", "value"]
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "object",
|
|
"properties": {
|
|
"genres": {
|
|
"type": "string"
|
|
},
|
|
"novels": {
|
|
"type": "string"
|
|
},
|
|
"novel": {
|
|
"type": "string"
|
|
},
|
|
"chapter": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"useNewChapterEndpoint": {
|
|
"type": "boolean"
|
|
},
|
|
"lang": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": ["lang"]
|
|
}
|
|
},
|
|
"required": ["id", "sourceSite", "sourceName"]
|
|
}
|
|
}
|