From 32a214fe2a565e3c9a96a6ddc23cf9e497980a0c Mon Sep 17 00:00:00 2001 From: Mantas VilĨinskas Date: Mon, 19 Apr 2021 11:19:33 +0300 Subject: Fix #178 by @gabrielgunnarsson Validate YAML --- static/admin/config.yml | 117 ++++++++++++++++++++++++------------------------ 1 file changed, 59 insertions(+), 58 deletions(-) (limited to 'static/admin') diff --git a/static/admin/config.yml b/static/admin/config.yml index 3de63dc..e611287 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -142,6 +142,65 @@ collections: widget: 'string' hint: 'Where is the site hosted? Hostname (and path) to the root. Prior to version 3, a slash was used which now works in local testing, but breaks certain features of cState like RSS feeds, so a correct example for production is: https://cstate.mnts.lt' default: '/' + + # REQUIRED BUT HIDDEN + - label: 'theme' + name: 'theme' + widget: 'hidden' + default: 'cstate' + - label: 'preserveTaxonomyNames' + name: 'preserveTaxonomyNames' + widget: 'hidden' + default: 'true' + - label: "taxonomies" + name: taxonomies + widget: "hidden" + fields: + - {label: "affected", name: "affected", widget: "hidden", default: "affected"} + - label: "Outputs (Do not touch!)" + name: outputs + widget: "hidden" + fields: + - label: "page" + name: page + widget: "list" + allow_add: false + default: ['html', 'json'] + - label: "section" + name: section + widget: "list" + allow_add: false + default: ['html', 'json', 'rss'] + - label: "home" + name: home + widget: "list" + allow_add: false + default: ['html', 'json', 'rss', 'svg'] + - label: "term" + name: term + widget: "list" + allow_add: false + default: ['html', 'json', 'rss'] + - label: "Output formats (Do not touch!)" + name: outputFormats + widget: "hidden" + fields: + - label: "svg" + name: svg + fields: + - label: "isPlainText" + name: isPlainText + widget: "boolean" + default: true + - label: "mediaType" + name: mediaType + default: "image/svg+xml" + - label: 'Enable Git info' + name: 'enableGitInfo' + widget: 'hidden' + required: false + default: true + # PARAMS - label: "Params" name: "params" @@ -309,61 +368,3 @@ collections: name: 'enableCustomHTML' widget: 'boolean' default: 'false' - # REQUIRED BUT HIDDEN - - label: 'theme' - name: 'theme' - widget: 'hidden' - default: 'cstate' - - label: 'preserveTaxonomyNames' - name: 'preserveTaxonomyNames' - widget: 'hidden' - default: 'true' - - label: "taxonomies" - name: taxonomies - widget: "hidden" - fields: - - {label: "affected", name: "affected", widget: "hidden", default: "affected"} - - label: "Outputs (Do not touch!)" - name: outputs - widget: "hidden" - fields: - - label: "page" - name: page - widget: "list" - allow_add: false - default: ['html', 'json'] - - label: "section" - name: section - widget: "list" - allow_add: false - default: ['html', 'json', 'rss'] - - label: "home" - name: home - widget: "list" - allow_add: false - default: ['html', 'json', 'rss', 'svg'] - - label: "term" - name: term - widget: "list" - allow_add: false - default: ['html', 'json', 'rss'] - - label: "Output formats (Do not touch!)" - name: outputFormats - widget: "hidden" - fields: - - label: "svg" - name: svg - fields: - - label: "isPlainText" - name: isPlainText - widget: "boolean" - default: true - - label: "mediaType" - name: mediaType - default: "image/svg+xml" - - label: 'Enable Git info' - name: 'enableGitInfo' - widget: 'hidden' - hint: 'Docs: https://github.com/cstate/cstate/wiki/Customization#time' - required: false - default: true \ No newline at end of file -- cgit v1.2.3-70-g09d2