From 6082b5a6a988352f5d48eb59f49040048abfd12f Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Thu, 19 Oct 2023 04:02:56 -0300 Subject: [PATCH] Add `VirtualHorizon` widget --- src/components/widgets/VirtualHorizon.vue | 206 ++++++++++++++++++++++ src/types/widgets.ts | 1 + src/views/WidgetsView.vue | 4 + 3 files changed, 211 insertions(+) create mode 100644 src/components/widgets/VirtualHorizon.vue diff --git a/src/components/widgets/VirtualHorizon.vue b/src/components/widgets/VirtualHorizon.vue new file mode 100644 index 000000000..09d5e3c84 --- /dev/null +++ b/src/components/widgets/VirtualHorizon.vue @@ -0,0 +1,206 @@ + + + + + diff --git a/src/types/widgets.ts b/src/types/widgets.ts index f4403c0a2..71c619fc6 100644 --- a/src/types/widgets.ts +++ b/src/types/widgets.ts @@ -17,6 +17,7 @@ export enum WidgetType { MiniWidgetsBar = 'MiniWidgetsBar', URLVideoPlayer = 'URLVideoPlayer', VideoPlayer = 'VideoPlayer', + VirtualHorizon = 'VirtualHorizon', } export type Widget = { diff --git a/src/views/WidgetsView.vue b/src/views/WidgetsView.vue index 1c850b98c..3268eff98 100644 --- a/src/views/WidgetsView.vue +++ b/src/views/WidgetsView.vue @@ -42,6 +42,9 @@ + @@ -70,6 +73,7 @@ import Map from '../components/widgets/Map.vue' import MiniWidgetsBar from '../components/widgets/MiniWidgetsBar.vue' import URLVideoPlayer from '../components/widgets/URLVideoPlayer.vue' import VideoPlayer from '../components/widgets/VideoPlayer.vue' +import VirtualHorizon from '../components/widgets/VirtualHorizon.vue' const store = useWidgetManagerStore()