1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-05-01 23:56:41 +07:00

added videoplayer

This commit is contained in:
Fedor Katurov 2021-03-26 09:06:27 +07:00
parent 998a2e305a
commit 869c71d05f
6 changed files with 245 additions and 1 deletions
src/redux/node

View file

@ -20,6 +20,7 @@ import { LabText } from '~/components/lab/LabText';
import { LabImage } from '~/components/lab/LabImage';
import { LabBottomPanel } from '~/components/lab/LabBottomPanel';
import { LabPad } from '~/components/lab/LabPad';
import { NodeWebmBlock } from '~/components/node/NodeWebmBlock';
const prefix = 'NODE.';
export const NODE_ACTIONS = {
@ -78,6 +79,7 @@ export const NODE_TYPES = {
IMAGE: 'image',
AUDIO: 'audio',
VIDEO: 'video',
WEBM: 'webm',
TEXT: 'text',
};
@ -101,6 +103,7 @@ export const NODE_HEADS: INodeComponents = {
export const NODE_COMPONENTS: INodeComponents = {
[NODE_TYPES.VIDEO]: NodeVideoBlock,
[NODE_TYPES.WEBM]: NodeWebmBlock,
[NODE_TYPES.AUDIO]: NodeAudioImageBlock,
};