From d9cad8e4a9b6b651cb934aff2e59c72f69c5ec16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Sun, 18 Aug 2024 07:24:39 -0700 Subject: [PATCH 1/2] assets: Add WebcamView MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/assets/widgets/WebcamView.png | Bin 0 -> 4910 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/assets/widgets/WebcamView.png diff --git a/src/assets/widgets/WebcamView.png b/src/assets/widgets/WebcamView.png new file mode 100644 index 0000000000000000000000000000000000000000..abeb5dc6247c52bddc96d5af7dfac27c3d0ec7e2 GIT binary patch literal 4910 zcmcgwX*kqv)W83;FvebZ?508tMMxqwwAdayWhqM-WLKfW{0B*tlqHl*4>H-a)RUzd zrAVmAPNuYA2xZ1PGw(d#-jDC6_rtmFbMABQ>zwP{_qng%^}Ft1XCaD}#{vLEtt^i@ z0RZt;2w(*G%jsw;@jvUllZ82`=~J8qVB3t#r&m&8D_FbSJ3O5acDq~Q#iChZlI9LcIxJTq78*Z@LQ2a)Qf8c zTxv9(K|L$*9fHYS`)~a_8Lk$vmt6eikB&{s!5$GHFt%eU)VmUoqqaDMvio^s25-+5b7R!bb*K-oWi6X7Z?(TI0*R{<{Ai%(@| zx$fV8v4B~2{AMmhe{rJRChJ#mUbv?u=ECjeOS=F8_e+m?x9MU=#vvmUx_>9vk=?!khv$&K-%24`A6~BtNGtmOQ}W* zA~4}<1QJ%dtuD;fOycJH3yTmv@PMqu695sY!kPP|IXWpPvc3vlMSWf~0&zR~RNEKv zOT|_PuV)e%SBsJG?w5Zv8h;^4T1-_rNFwel6EMtjgfcf@D*M`kp}Mh?^Q)$N5a0#U z=TlixFp)~e`8Y4NPeJq(S>()uaH2f*qWp&;e>CuM49+^5>cJc~n#kCWWX59pq1D_l zK>rI=O|AH;%VVaPowZr_p_7fqX-mu4ad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ym#mkBo+4$JT7YX9yoZ5TrV#n zR3pM0z+Hf2)v|25!te}DUY zA;2C2b>$yE(vWaTx?>^*0VvPb`0`I_rt*w50B63(2i-^jWzCI~6>#|q?Z%+1K%GAn zuRyTeSda^~~ay5R&=rH9J)C4;+gIaIA1YNh-(z0E09OSE;2M zK0y?2ws8v~%D)nUWokO&Gr!@V_gL~ADP|D(fKzsLq_-ddy#+mc1Z%+OljJ)}@YuLh k0K`4RaV-9?MXenPX+~T+qI1E8Pk;fd<95et%zcvn2NG$`aR2}S literal 0 HcmV?d00001 From f7af0d29c1be9df1148399c6b68f0248c8a5e008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Sun, 18 Aug 2024 07:25:37 -0700 Subject: [PATCH 2/2] widgets: Add Webcam MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/components/EditMenu.vue | 2 + src/components/widgets/Webcam.vue | 104 ++++++++++++++++++++++++++++++ src/types/widgets.ts | 1 + 3 files changed, 107 insertions(+) create mode 100644 src/components/widgets/Webcam.vue diff --git a/src/components/EditMenu.vue b/src/components/EditMenu.vue index e358eba38..066a1610c 100644 --- a/src/components/EditMenu.vue +++ b/src/components/EditMenu.vue @@ -609,6 +609,7 @@ import MiniWidgetsBarImg from '@/assets/widgets/MiniWidgetsBar.png' import URLVideoPlayerImg from '@/assets/widgets/URLVideoPlayer.png' import VideoPlayerImg from '@/assets/widgets/VideoPlayer.png' import VirtualHorizonImg from '@/assets/widgets/VirtualHorizon.png' +import WebcamViewImg from '@/assets/widgets/WebcamView.png' import { useInteractionDialog } from '@/composables/interactionDialog' import { MavType } from '@/libs/connection/m2r/messages/mavlink2rest-enum' import { isHorizontalScroll } from '@/libs/utils' @@ -674,6 +675,7 @@ const widgetImages = { CompassHUD: CompassHUDImg, IFrame: IFrameImg, ImageView: ImageViewImg, + Webcam: WebcamViewImg, Map: MapImg, MiniWidgetsBar: MiniWidgetsBarImg, URLVideoPlayer: URLVideoPlayerImg, diff --git a/src/components/widgets/Webcam.vue b/src/components/widgets/Webcam.vue new file mode 100644 index 000000000..dfcae06a7 --- /dev/null +++ b/src/components/widgets/Webcam.vue @@ -0,0 +1,104 @@ + + + + + diff --git a/src/types/widgets.ts b/src/types/widgets.ts index 23e2f704e..3475157a7 100644 --- a/src/types/widgets.ts +++ b/src/types/widgets.ts @@ -11,6 +11,7 @@ export enum WidgetType { CompassHUD = 'CompassHUD', IFrame = 'IFrame', ImageView = 'ImageView', + Webcam = 'Webcam', Map = 'Map', MiniWidgetsBar = 'MiniWidgetsBar', URLVideoPlayer = 'URLVideoPlayer',