From dc3950b4bcc7c1b3f7bcfacc6631e31abb85665b Mon Sep 17 00:00:00 2001 From: Oleksandra Nedashkivska Date: Mon, 16 Sep 2024 12:15:20 +0300 Subject: [PATCH 1/4] OV-308: * replace video player --- .../components/upload-video/components/components.ts | 1 - .../common/components/upload-video/upload-video.tsx | 9 +++------ .../video-player/components/components.ts | 0 .../video-player/components/control/control.tsx | 2 +- .../components/control/libs/constants/constants.ts | 0 .../components/control/libs/constants/max-percent.ts | 0 .../components/control/libs/constants/max-volume.ts | 0 .../components/control/libs/constants/min-volume.ts | 0 .../video-player/components/control/libs/enums/enums.ts | 0 .../components/control/libs/enums/video-event.ts | 0 .../components/control/libs/helpers/get-time.ts | 0 .../components/control/libs/helpers/helpers.ts | 0 .../video-player/components/video/user-video.tsx | 0 .../components => }/video-player/libs/enums/enums.ts | 0 .../components => }/video-player/libs/enums/error-id.ts | 0 .../video-player/libs/enums/error-message.ts | 0 .../video-player/libs/enums/error-title.ts | 0 .../video-player/libs/types/player-options.ts | 0 .../components => }/video-player/libs/types/types.ts | 0 .../video-player/libs/types/video-duration.type.ts | 0 .../components => }/video-player/video-player.tsx | 2 +- .../video-player/libs => }/constants/constants.ts | 0 .../video-player/libs => }/constants/fps.constant.ts | 0 23 files changed, 5 insertions(+), 9 deletions(-) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/components/components.ts (100%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/components/control/control.tsx (98%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/components/control/libs/constants/constants.ts (100%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/components/control/libs/constants/max-percent.ts (100%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/components/control/libs/constants/max-volume.ts (100%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/components/control/libs/constants/min-volume.ts (100%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/components/control/libs/enums/enums.ts (100%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/components/control/libs/enums/video-event.ts (100%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/components/control/libs/helpers/get-time.ts (100%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/components/control/libs/helpers/helpers.ts (100%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/components/video/user-video.tsx (100%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/libs/enums/enums.ts (100%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/libs/enums/error-id.ts (100%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/libs/enums/error-message.ts (100%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/libs/enums/error-title.ts (100%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/libs/types/player-options.ts (100%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/libs/types/types.ts (100%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/libs/types/video-duration.type.ts (100%) rename frontend/src/bundles/common/components/{upload-video/components => }/video-player/video-player.tsx (97%) rename frontend/src/bundles/common/{components/upload-video/components/video-player/libs => }/constants/constants.ts (100%) rename frontend/src/bundles/common/{components/upload-video/components/video-player/libs => }/constants/fps.constant.ts (100%) diff --git a/frontend/src/bundles/common/components/upload-video/components/components.ts b/frontend/src/bundles/common/components/upload-video/components/components.ts index 74cacb545..9fcdd90ed 100644 --- a/frontend/src/bundles/common/components/upload-video/components/components.ts +++ b/frontend/src/bundles/common/components/upload-video/components/components.ts @@ -1,3 +1,2 @@ export { CheckboxForm } from './checkbox-form/checkbox-form.js'; export { VideoDropzone } from './dropzone/video-dropzone.js'; -export { VideoPlayer } from './video-player/video-player.js'; diff --git a/frontend/src/bundles/common/components/upload-video/upload-video.tsx b/frontend/src/bundles/common/components/upload-video/upload-video.tsx index 3c9722e50..8d57f9798 100644 --- a/frontend/src/bundles/common/components/upload-video/upload-video.tsx +++ b/frontend/src/bundles/common/components/upload-video/upload-video.tsx @@ -1,11 +1,8 @@ import { Button, Flex, Text } from '~/bundles/common/components/components.js'; import { useCallback, useState } from '~/bundles/common/hooks/hooks.js'; -import { - CheckboxForm, - VideoDropzone, - VideoPlayer, -} from './components/components.js'; +import { VideoPlayer } from '../video-player/video-player.js'; +import { CheckboxForm, VideoDropzone } from './components/components.js'; const UploadVideo: React.FC = () => { const [videoSource, setVideoSource] = useState(null); @@ -45,7 +42,7 @@ const UploadVideo: React.FC = () => { onRemoveVideo={handleRemoveVideo} onSetVideo={handleSetVideo} /> -