Skip to content

Commit 6cf06a5

Browse files
committed
feat: update help page configuration to use properties for component structure
1 parent 8eb407c commit 6cf06a5

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

examples/kitchen-sink/objectstack.config.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,24 @@ export default defineStack({
6868
{
6969
name: 'help_page',
7070
label: 'Help Guide',
71-
type: 'page',
71+
type: 'app',
7272
regions: [
7373
{
7474
name: 'main',
7575
components: [
7676
{
7777
type: 'container',
78-
className: 'prose max-w-none p-6 text-foreground bg-card rounded-lg border shadow-sm',
79-
children: [
80-
{ type: 'text', value: '# Application Guide', className: 'text-3xl font-bold mb-4 block' },
81-
{ type: 'text', value: 'Welcome to the ObjectStack Console.', className: 'mb-4 block' },
82-
{ type: 'text', value: '## Features', className: 'text-xl font-bold mb-2 block' },
83-
{ type: 'text', value: '- Dynamic Object CRUD\n- Server-Driven Dashboards\n- Flexible Page Layouts', className: 'whitespace-pre-line block' },
84-
{ type: 'text', value: '## Getting Started', className: 'text-xl font-bold mb-2 block mt-6' },
85-
{ type: 'text', value: 'Navigate using the sidebar to explore different apps and objects.', className: 'mb-4 block' }
86-
]
78+
properties: {
79+
className: 'prose max-w-none p-6 text-foreground bg-card rounded-lg border shadow-sm',
80+
children: [
81+
{ type: 'text', properties: { value: '# Application Guide', className: 'text-3xl font-bold mb-4 block' } },
82+
{ type: 'text', properties: { value: 'Welcome to the ObjectStack Console.', className: 'mb-4 block' } },
83+
{ type: 'text', properties: { value: '## Features', className: 'text-xl font-bold mb-2 block' } },
84+
{ type: 'text', properties: { value: '- Dynamic Object CRUD\n- Server-Driven Dashboards\n- Flexible Page Layouts', className: 'whitespace-pre-line block' } },
85+
{ type: 'text', properties: { value: '## Getting Started', className: 'text-xl font-bold mb-2 block mt-6' } },
86+
{ type: 'text', properties: { value: 'Navigate using the sidebar to explore different apps and objects.', className: 'mb-4 block' } }
87+
]
88+
}
8789
}
8890
]
8991
}

0 commit comments

Comments
 (0)