1
0
Fork 0
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:
muerwre 2019-08-06 20:56:48 +07:00
parent 1ccc87178e
commit b4bba2ea3b
7 changed files with 51 additions and 15 deletions

View file

@ -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;
}
}