Skip to content

Commit

Permalink
start building an MVP for the site creation form
Browse files Browse the repository at this point in the history
  • Loading branch information
steffenri committed May 13, 2024
1 parent d270740 commit 9bcced5
Showing 1 changed file with 4 additions and 108 deletions.
112 changes: 4 additions & 108 deletions src/collective/ploneintranet/distributions/volto/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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?",
Expand All @@ -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"]
}
}

0 comments on commit 9bcced5

Please sign in to comment.