File size: 1,035 Bytes
7b0525c
 
1ce2c0c
7b0525c
 
 
5a24a1a
 
 
 
 
 
 
7b0525c
 
 
 
 
 
 
 
 
 
5a24a1a
7b0525c
 
 
f3f5cf0
269ea4c
5cc1a71
269ea4c
7690d42
 
7b0525c
 
 
 
 
 
 
5683f0b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export interface ContentBlock {
  id: string;
  type: 'text' | 'markdown' | 'raw-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;
  isPinned?: boolean;
  parentId?: string | null;
  isDeleted?: boolean;
  deletedAt?: number;
}

export type ViewState = 'LIST' | 'DETAIL' | 'CREATE' | 'EDIT';

export interface AlertMessage {
  type: 'success' | 'error' | 'info';
  text: string;
}