cms: adopt the schema-driven editor (core update) + tune config field types
git subtree pull of openbureau-core main brings the schema-driven admin editor (renders sidebar + fields from /api/schema, unknown frontmatter preserved on save). openbureau.config.js color→type:'color' (swatch) and layout options text/image/icon so the editor reproduces the previous look. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -20,8 +20,8 @@ export default {
|
|||||||
{ name: 'slug', type: 'slug' },
|
{ name: 'slug', type: 'slug' },
|
||||||
{ name: 'date', type: 'date' },
|
{ name: 'date', type: 'date' },
|
||||||
{ name: 'weight', type: 'number' },
|
{ name: 'weight', type: 'number' },
|
||||||
{ name: 'color', type: 'string' },
|
{ name: 'color', type: 'color' },
|
||||||
{ name: 'layout', type: 'select', options: ['text'], default: 'text' },
|
{ name: 'layout', type: 'select', options: ['text', 'image', 'icon'], default: 'text' },
|
||||||
{ name: 'tags', type: 'list' },
|
{ name: 'tags', type: 'list' },
|
||||||
{ name: 'summary', type: 'text' },
|
{ name: 'summary', type: 'text' },
|
||||||
{ name: 'cover_image', type: 'image' },
|
{ name: 'cover_image', type: 'image' },
|
||||||
@@ -54,7 +54,7 @@ export default {
|
|||||||
statKey: 'rubriken',
|
statKey: 'rubriken',
|
||||||
fields: [
|
fields: [
|
||||||
{ name: 'title', type: 'string', required: true },
|
{ name: 'title', type: 'string', required: true },
|
||||||
{ name: 'color', type: 'string' },
|
{ name: 'color', type: 'color' },
|
||||||
{ name: 'layout', type: 'string' },
|
{ name: 'layout', type: 'string' },
|
||||||
{ name: 'weight', type: 'number' },
|
{ name: 'weight', type: 'number' },
|
||||||
{ name: 'body', type: 'markdown' },
|
{ name: 'body', type: 'markdown' },
|
||||||
|
|||||||
Reference in New Issue
Block a user