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

fixed file dropping and panel buttons

This commit is contained in:
Fedor Katurov 2019-10-21 13:27:28 +07:00
parent 554a2ccfa7
commit 2ca9e9bdef
6 changed files with 41 additions and 14 deletions

View file

@ -7,6 +7,7 @@ import { ImageEditor } from '~/components/editors/ImageEditor';
import { TextEditor } from '~/components/editors/TextEditor';
import { VideoEditor } from '~/components/editors/VideoEditor';
import { UPLOAD_TYPES } from '../uploads/constants';
import { EditorImageUploadButton } from '~/components/editors/EditorImageUploadButton';
const prefix = 'NODE.';
export const NODE_ACTIONS = {
@ -89,8 +90,8 @@ export const NODE_EDITORS = {
[NODE_TYPES.VIDEO]: VideoEditor,
};
export const NODE_UPLOAD_TYPES = {
[NODE_TYPES.IMAGE]: [UPLOAD_TYPES.IMAGE],
export const NODE_PANEL_COMPONENTS = {
[NODE_TYPES.IMAGE]: [EditorImageUploadButton],
};
export const NODE_EDITOR_DATA: Record<