diff --git a/apps/docs/components/code-preview.tsx b/apps/docs/components/code-preview.tsx deleted file mode 100644 index f3454dbbf..000000000 --- a/apps/docs/components/code-preview.tsx +++ /dev/null @@ -1,90 +0,0 @@ -import { cn } from '@/lib/utils'; - -interface CodePreviewProps { - className?: string; -} - -export function CodePreview({ className }: CodePreviewProps) { - const kw = 'text-purple-600 dark:text-purple-400 font-semibold'; - const str = 'text-green-600 dark:text-green-300'; - const fn = 'text-blue-600 dark:text-blue-300'; - const typ = 'text-amber-600 dark:text-yellow-300'; - const prop = 'text-cyan-600 dark:text-sky-300'; - const bool = 'text-red-600 dark:text-red-300'; - const fg = 'text-foreground'; - const cm = 'text-foreground/40 italic'; - - return ( -
-
- import{' '}
- {'{'}{' '}
- Data{' '}
- {'}'}{' '}
- from{' '}
- '@objectstack/spec';
-
- const{' '}
- task:{' '}
- Data.Object{' '}
- ={' '}
- {'{'}
-
- {' '}name:{' '}'task',
-
- {' '}label:{' '}'Task',
-
- {' '}fields:{' '}{'{'}
-
- {' '}subject:{' '}{'{'}{' '}
- type:{' '}'text',{' '}
- required:{' '}true{' '}
- {'}'},
-
- {' '}status:{' '}{'{'}
-
- {' '}type:{' '}'select',
-
- {' '}options:{' '}['draft', 'active', 'done'],
-
- {' '}{'}'},
-
- {' '}assignee:{' '}{'{'}{' '}
- type:{' '}'lookup',{' '}
- reference:{' '}'user'{' '}
- {'}'},
-
- {' '}{'}'},
-
- {'}'};
-
- {'// → REST API at /api/v1/task'}
-
- {'// → Console UI at /_studio/'}
-
-
- - {description} -
-
- {subtitle.line1}
-
-
- {subtitle.line2}
-
-
- {description} -
-