Adds ability to edit pageInfo through the UI

This commit is contained in:
Alicia Sykes
2021-10-23 13:07:30 +01:00
parent a48024e59c
commit 8147f40e9c
10 changed files with 214 additions and 9 deletions

View File

@@ -9,16 +9,19 @@
"type": "object",
"properties": {
"title": {
"title": "Title",
"type": "string",
"description": "Title and heading for the app"
},
"description": {
"title": "Description",
"type": "string",
"description": "Sub-title, displayed in header"
},
"navLinks": {
"type": "array",
"maxItems": 6,
"title": "Navigation Links",
"description": "Quick access links, displayed in header",
"items": {
"type": "object",
@@ -38,9 +41,12 @@
}
},
"footerText": {
"title": "Footer Text",
"description": "Content to display within the global page footer",
"type": "string"
},
"logo": {
"title": "App Logo",
"type": "string",
"description": "Path to an optional image asset, to be displayed in the header",
"pattern": "^(http|/)",

View File

@@ -4,8 +4,9 @@ const KEY_NAMES = [
'UPDATE_CONFIG',
'SET_MODAL_OPEN',
'SET_LANGUAGE',
'UPDATE_ITEM',
'SET_EDIT_MODE',
'UPDATE_ITEM',
'UPDATE_PAGE_INFO',
];
// Convert array of key names into an object, and export

View File

@@ -123,6 +123,10 @@ module.exports = {
ABOUT_APP: 'ABOUT_APP',
LANG_SWITCHER: 'LANG_SWITCHER',
EDIT_ITEM: 'EDIT_ITEM',
EDIT_SECTION: 'EDIT_SECTION',
EDIT_PAGE_INFO: 'EDIT_PAGE_INFO',
EDIT_APP_CONFIG: 'EDIT_APP_CONFIG',
EXPORT_CONFIG_MENU: 'EXPORT_CONFIG_MENU',
},
/* Key names for the top-level objects in conf.yml */
topLevelConfKeys: {