From e6fdaf571a6d860f7eb2af56727dca644a1484bf Mon Sep 17 00:00:00 2001 From: Pedro Lamas Date: Tue, 25 Jul 2023 10:18:21 +0100 Subject: [PATCH] refactor: move each camera to its own component Signed-off-by: Pedro Lamas --- src/components/widgets/camera/CameraItem.vue | 407 ++---------------- .../camera/services/HlsstreamCamera.vue | 52 +++ .../widgets/camera/services/IframeCamera.vue | 35 ++ .../camera/services/IpstreamCamera.vue | 33 ++ .../services/MjpegstreamerAdaptiveCamera.vue | 92 ++++ .../camera/services/MjpegstreamerCamera.vue | 39 ++ .../services/WebrtcCamerastreamerCamera.vue | 107 +++++ src/dynamicImports.ts | 4 + src/mixins/camera.ts | 105 +++++ 9 files changed, 509 insertions(+), 365 deletions(-) create mode 100644 src/components/widgets/camera/services/HlsstreamCamera.vue create mode 100644 src/components/widgets/camera/services/IframeCamera.vue create mode 100644 src/components/widgets/camera/services/IpstreamCamera.vue create mode 100644 src/components/widgets/camera/services/MjpegstreamerAdaptiveCamera.vue create mode 100644 src/components/widgets/camera/services/MjpegstreamerCamera.vue create mode 100644 src/components/widgets/camera/services/WebrtcCamerastreamerCamera.vue create mode 100644 src/mixins/camera.ts diff --git a/src/components/widgets/camera/CameraItem.vue b/src/components/widgets/camera/CameraItem.vue index 5ee11f2ea8..f68571475f 100644 --- a/src/components/widgets/camera/CameraItem.vue +++ b/src/components/widgets/camera/CameraItem.vue @@ -4,35 +4,18 @@ class="camera-container" v-on="$listeners" > - - -