From 5c50428af00965d51213dcfeee913fbea7237b44 Mon Sep 17 00:00:00 2001 From: "karl.hudgell" Date: Mon, 20 Jun 2022 10:15:20 +0100 Subject: [PATCH] json stuff --- config.schema | 52 ++++++++++++++++++++++++++++++++++ index.html | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 1 + 3 files changed, 130 insertions(+) create mode 100644 config.schema create mode 100644 index.html diff --git a/config.schema b/config.schema new file mode 100644 index 0000000..a1ad865 --- /dev/null +++ b/config.schema @@ -0,0 +1,52 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "JDUserName": { + "type": "string" + }, + "JDPassword": { + "type": "string" + }, + "RSSFeed": { + "type": "string" + }, + "RSSFeedRefreshMins": { + "type": "number" + }, + "JDPostLinksMins": { + "type": "number" + }, + "Autostart": { + "type": "boolean" + }, + "OnlyHEVC": { + "type": "boolean" + }, + "Shows": { + "type": "array", + "items": { + "type": "object", + "properties": { + "Name": { + "type": "string" + }, + "Quality": { + "type": "string" + } + }, + "required": ["Name", "Quality"] + } + } + }, + "required": [ + "JDUserName", + "JDPassword", + "RSSFeed", + "RSSFeedRefreshMins", + "JDPostLinksMins", + "Autostart", + "OnlyHEVC", + "Shows" + ] +} \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..f8a3078 --- /dev/null +++ b/index.html @@ -0,0 +1,77 @@ + + + + + + + + + + +
+ + + + \ No newline at end of file diff --git a/package.json b/package.json index 5e4bd81..caa908f 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "axios": "^0.27.2", "cheerio": "^1.0.0-rc.11", "jdownloader-client": "^1.0.0", + "jsoneditor": "^9.9.0", "lodash": "^4.17.21", "rss-parser": "^3.12.0", "simple-node-logger": "^21.8.12"