mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
drag-and-drop on form
This commit is contained in:
parent
1ccc87178e
commit
b4bba2ea3b
7 changed files with 51 additions and 15 deletions
|
@ -64,6 +64,12 @@ export interface IFile {
|
|||
updatedAt?: string;
|
||||
}
|
||||
|
||||
export interface IBlock {
|
||||
type: 'image' | 'text' | 'media' | 'youtube' | 'video',
|
||||
temp_ids: UUID[];
|
||||
attaches: UUID[];
|
||||
}
|
||||
|
||||
export interface INode {
|
||||
id?: UUID;
|
||||
user_id: UUID;
|
||||
|
@ -74,6 +80,8 @@ export interface INode {
|
|||
cover: IFile['id'];
|
||||
type: 'image';
|
||||
|
||||
blocks: IBlock[];
|
||||
|
||||
brief?: {
|
||||
thumbnail?: string;
|
||||
description?: string;
|
||||
|
@ -90,4 +98,4 @@ export interface INode {
|
|||
|
||||
createdAt?: string;
|
||||
updatedAt?: string;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue