1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

sagas for node creation dialog

This commit is contained in:
Fedor Katurov 2019-10-16 16:22:01 +07:00
parent 265b075ddc
commit 1b6a81d27c
11 changed files with 119 additions and 22 deletions

View file

@ -2,6 +2,7 @@ import { DetailedHTMLProps, InputHTMLAttributes } from 'react';
import { DIALOGS } from '~/redux/modal/constants';
import { ERRORS } from '~/constants/errors';
import { IUser } from './auth/types';
import { string } from 'prop-types';
export interface ITag {
id: number;
@ -93,13 +94,18 @@ export interface IFileWithUUID {
type: string;
}
export interface IBlock {
type: 'image' | 'text' | 'media' | 'youtube' | 'video';
files: UUID[];
content: string;
embeds: string[];
export interface IBlockText {
type: 'text';
text: string;
}
export interface IBlockEmbed {
type: 'embed';
url: string;
}
export type IBlock = IBlockText | IBlockEmbed;
export interface INode {
id?: number;
user: Partial<IUser>;