Spaces:
Sleeping
Sleeping
Download types.ts from codebybrody/codebydante: direct link, hf CLI and curl.
- Browser
- Download file 948 Bytes
-
https://huggingface.co/spaces/codebybrody/codebydante/resolve/269ea4c5aa9c8ed277c8c5953a3a48b04d280430/types.ts
- Command line
-
hf download hf://spaces/codebybrody/codebydante@269ea4c5aa9c8ed277c8c5953a3a48b04d280430/types.ts
-
curl -L -o types.ts https://huggingface.co/spaces/codebybrody/codebydante/resolve/269ea4c5aa9c8ed277c8c5953a3a48b04d280430/types.ts
948 Bytes
| export interface ContentBlock { | |
| id: string; | |
| type: 'text' | 'markdown'; | |
| content: any; | |
| } | |
| export interface LinkGroup { | |
| id: string; | |
| title: string; | |
| visitUrl?: string; | |
| downloadUrl?: string; | |
| } | |
| export interface DataItem { | |
| id: string; | |
| icon?: string; | |
| cardStyle?: 'bordered' | 'transparent' | 'filled'; // New field for card styling | |
| title: string; | |
| summary: string; | |
| content: string; // Kept for backward compatibility and search | |
| blocks?: ContentBlock[]; // New structure for multiple blocks | |
| downloadUrl?: string; | |
| visitUrl?: string; | |
| linkGroups?: LinkGroup[]; | |
| createdAt: number; | |
| updatedAt?: number; // Added for modification date sorting | |
| tags: string[]; | |
| categories?: string[]; | |
| isFolder?: boolean; | |
| parentId?: string | null; | |
| } | |
| export type ViewState = 'LIST' | 'DETAIL' | 'CREATE' | 'EDIT'; | |
| export interface AlertMessage { | |
| type: 'success' | 'error' | 'info'; | |
| text: string; | |
| } |