mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
video node editor
This commit is contained in:
parent
12e366fce9
commit
8612cc5ce7
10 changed files with 105 additions and 6 deletions
|
@ -2,6 +2,7 @@ import { ValueOf } from '~/redux/types';
|
|||
import { LoginDialog } from '~/containers/dialogs/LoginDialog';
|
||||
import { EditorDialogImage } from '~/containers/editors/EditorDialogImage';
|
||||
import { EditorDialogText } from '~/containers/editors/EditorDialogText';
|
||||
import { EditorDialogVideo } from '~/containers/editors/EditorDialogVideo';
|
||||
import { NODE_TYPES } from '../node/constants';
|
||||
|
||||
export const MODAL_ACTIONS = {
|
||||
|
@ -13,18 +14,21 @@ export const MODAL_ACTIONS = {
|
|||
export const DIALOGS = {
|
||||
EDITOR_IMAGE: 'EDITOR_IMAGE',
|
||||
EDITOR_TEXT: 'EDITOR_TEXT',
|
||||
EDITOR_VIDEO: 'EDITOR_VIDEO',
|
||||
LOGIN: 'LOGIN',
|
||||
};
|
||||
|
||||
export const DIALOG_CONTENT = {
|
||||
[DIALOGS.EDITOR_IMAGE]: EditorDialogImage,
|
||||
[DIALOGS.EDITOR_TEXT]: EditorDialogText,
|
||||
[DIALOGS.EDITOR_VIDEO]: EditorDialogVideo,
|
||||
[DIALOGS.LOGIN]: LoginDialog,
|
||||
};
|
||||
|
||||
export const NODE_EDITOR_DIALOGS = {
|
||||
[NODE_TYPES.IMAGE]: DIALOGS.EDITOR_IMAGE,
|
||||
[NODE_TYPES.TEXT]: DIALOGS.EDITOR_TEXT,
|
||||
[NODE_TYPES.VIDEO]: DIALOGS.EDITOR_VIDEO,
|
||||
};
|
||||
|
||||
export interface IDialogProps {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue