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

creating youtube node

This commit is contained in:
Fedor Katurov 2019-10-19 19:53:53 +07:00
parent 8612cc5ce7
commit f7c2f0e90f
6 changed files with 22 additions and 6 deletions

View file

@ -5,6 +5,7 @@ import { NodeTextBlock } from '~/components/node/NodeTextBlock';
import { ImageEditor } from '~/components/editors/ImageEditor';
import { TextEditor } from '~/components/editors/TextEditor';
import { VideoEditor } from '~/components/editors/VideoEditor';
import { UPLOAD_TYPES } from '../uploads/constants';
const prefix = 'NODE.';
export const NODE_ACTIONS = {
@ -86,6 +87,10 @@ export const NODE_EDITORS = {
[NODE_TYPES.VIDEO]: VideoEditor,
};
export const NODE_UPLOAD_TYPES = {
[NODE_TYPES.IMAGE]: [UPLOAD_TYPES.IMAGE],
};
export const NODE_EDITOR_DATA: Record<
typeof NODE_TYPES[keyof typeof NODE_TYPES],
Partial<INode>