Files
summercms/admin/tests/fixtures/settings.json
Jakub Zych 8b1cb244de feat(10.1-01): serve controller JS/CSS and run registered toolbar actions
- boardwalk exports ContentType and SetSecurityHeaders
- pact.AdminClientAssets files are read and hashed at boot and served by exact
  key under {prefix}/assets/{vendor}/{plugin}/ with nosniff, CSP, CORP,
  no-cache and an ETag; a miss falls through to the SPA
- list and form schemas carry assets URLs with a ?v= hash
- toolbar.buttons resolves create, delete and registered actions after decode;
  toolbarActions is permission-filtered per admin
- POST .../toolbar/{action} behind requireAjax and action permissions
2026-09-28 23:41:17 +02:00

109 lines
2.2 KiB
JSON

{
"list": {
"data": [
{
"code": "search",
"label": "Search",
"description": "Search engine options",
"icon": "search",
"category": "System",
"keywords": [],
"model": "Acme\\Demo\\Models\\Settings",
"order": 20
},
{
"code": "mail",
"label": "Mail",
"description": "Outgoing mail",
"icon": "icon-cog",
"category": "System",
"keywords": [],
"model": "Acme\\Demo\\Models\\MailSettings",
"order": 10
},
{
"code": "branding",
"label": "Branding",
"description": "Logo and colours",
"icon": "palette",
"category": "Appearance",
"keywords": [],
"model": "Acme\\Demo\\Models\\Branding",
"order": 5
}
],
"meta": {
"locale": "en"
}
},
"schema": {
"data": {
"name": "Search",
"fields": [
{
"name": "use_engine",
"label": "Use the search engine",
"type": "switch",
"default": 0,
"comment": "Queries go to the external engine",
"required": true
},
{
"name": "engine_host",
"label": "Engine host",
"type": "text",
"span": "full"
}
],
"messages": {
"create": {
"other": "New record"
},
"update": {
"other": "Edit record"
},
"saved": {
"other": "Saved"
},
"deleteConfirm": {
"other": "Delete?"
},
"deleted": {
"other": "Deleted"
}
},
"meta": {
"locale": "en"
},
"assets": {
"scripts": [],
"styles": []
},
"redirects": {
"create": {
"redirect": "",
"redirectClose": ""
},
"update": {
"redirect": "",
"redirectClose": ""
},
"default": ""
}
},
"meta": {
"locale": "en"
}
},
"values": {
"data": {
"data": {
"use_engine": 0,
"engine_host": "search.local"
},
"exists": true
},
"meta": {}
}
}