mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
creating youtube node
This commit is contained in:
parent
8612cc5ce7
commit
f7c2f0e90f
6 changed files with 22 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue