From 9bcced53ff00c9a3aae90f5ca86f0c428177c471 Mon Sep 17 00:00:00 2001 From: Steffen Date: Mon, 13 May 2024 15:09:57 +0200 Subject: [PATCH] start building an MVP for the site creation form --- .../distributions/volto/schema.json | 112 +----------------- 1 file changed, 4 insertions(+), 108 deletions(-) diff --git a/src/collective/ploneintranet/distributions/volto/schema.json b/src/collective/ploneintranet/distributions/volto/schema.json index 8342d03..a2036ae 100644 --- a/src/collective/ploneintranet/distributions/volto/schema.json +++ b/src/collective/ploneintranet/distributions/volto/schema.json @@ -4,42 +4,14 @@ "description": "Adds a new Plone content management system intranet using Volto UI.", "type": "object", "properties": { - "site_id": { - "type": "string", - "title": "Path Identifier", - "default": "Plone", - "description": "The ID of the site. No special characters or spaces are allowed. This ends up as part of the URL unless hidden by an upstream web server." - }, "title": { "type": "string", "title": "Title", "default": "Site", "description": "A short title for the site. This will be shown as part of the title of the browser window on each page." }, - "description": { - "type": "string", - "title": "Site Description", - "default": "A Plone Intranet" - }, - "default_language": {"$ref": "#/definitions/languages"}, - "portal_timezone": {"$ref": "#/definitions/timezones"}, - "authentication": { - "type": "string", - "title": "Authentication", - "description": "Which authentication would be used?", - "default": "Plone", - "enum": [ - "Plone", - "Google Authentication", - "GitHub Authentication" - ] - }, - "enable_discussion": { - "type": "boolean", - "title": "Enable commenting on contents?", - "description": "Should we allow users to comment on contents?", - "default": false - }, + "default_language": { "$ref": "#/definitions/languages" }, + "portal_timezone": { "$ref": "#/definitions/timezones" }, "setup_content": { "type": "boolean", "title": "Add Example Content?", @@ -49,87 +21,11 @@ }, "allOf": [ { - "if": { - "properties": { - "authentication": { - "const": "Google Authentication" - } - } - }, - "then": { - "properties": { - "consumer_key": { - "type": "string", - "title": "Consumer Key" - }, - "consumer_secret": { - "type": "string", - "title": "Consumer Secret" - }, - "auth_scope": { - "type": "string", - "scope": "Scopes", - "default": "['profile', 'email']" - } - } - } - }, - { - "if": { - "properties": { - "authentication": { - "const": "GitHub Authentication" - } - } - }, - "then": { - "properties": { - "consumer_key": { - "type": "string", - "title": "Consumer Key" - }, - "consumer_secret": { - "type": "string", - "title": "Consumer Secret" - } - } - } - }, - { - "if": { - "properties": { - "authentication": { - "const": "Plone" - } - } - }, - "then": { - "properties": {}, - "required": [] - } - }, - { - "required": [ - "site_id", - "title", - "authentication" - ] + "required": ["title"] } ] }, "uischema": { - "ui:order": [ - "site_id", - "title", - "description", - "default_language", - "portal_timezone", - "authentication", - "consumer_key", - "consumer_secret", - "auth_scope", - "setup_content", - "enable_discussion" - ] + "ui:order": ["title", "default_language", "portal_timezone", "setup_content"] } }