From b14a1d5ef0729b35401af67574854d48d695d207 Mon Sep 17 00:00:00 2001 From: Arturo Manzoli Date: Thu, 18 Jul 2024 16:36:08 -0300 Subject: [PATCH] Edit Mode: New layout implementation --- src/App.vue | 38 +- src/components/EditMenu.vue | 775 +++++++++++++++++-------- src/components/ExpansiblePanel.vue | 47 +- src/components/widgets/VideoPlayer.vue | 13 +- 4 files changed, 597 insertions(+), 276 deletions(-) diff --git a/src/App.vue b/src/App.vue index dc606e9e7..eef53b480 100644 --- a/src/App.vue +++ b/src/App.vue @@ -89,11 +89,11 @@ :icon-class=" interfaceStore.isOnSmallScreen ? 'scale-[100%] -mb-[1px] md:ml-[2px]' - : 'scale-[95%] -mb-[1px] lg:-mr-[1px] -mr-[2px] xl:-mb-[2px]' + : 'scale-[95%] -mb-[2px] lg:-mr-[1px] -mr-[2px] xl:-mb-[2px]' " :variant="simplifiedMainMenu ? 'uncontained' : 'round'" :tooltip="simplifiedMainMenu ? 'Configuration' : undefined" - :button-class="!simplifiedMainMenu ? '-mt-1' : undefined" + :button-class="!simplifiedMainMenu ? '-mt-[5px]' : undefined" :width="buttonSize" :selected="showConfigurationMenu" @click="mainMenuStep = 2" @@ -178,14 +178,32 @@ - - Mission configuration + + +
+
Mission configuration
+ + mdi-close + + -
+
+

Misison Name

@@ -199,12 +217,14 @@
@@ -671,9 +691,9 @@ body.hide-cursor { } .main-view.edit-mode { - transform: scale(0.8); - right: -10%; - top: -10%; + transform: scale(0.78); + right: -11%; + top: -11%; } .swal2-container { diff --git a/src/components/EditMenu.vue b/src/components/EditMenu.vue index 812cbd947..2aa123f0c 100644 --- a/src/components/EditMenu.vue +++ b/src/components/EditMenu.vue @@ -1,295 +1,504 @@ + + + - {{ miniWidgetContainer.name }} -
- -
- --- + + + + + + + +
+
+
+
+
+
+

Widget type:

+ +
+
+
+ To be placed on the main view area +
+
+ Click to add +
+
+ To be placed on the top and bottom bars +
+
+ Drag in place to add
-
-
-
-
- - -
-
-
+
-
- {{ widgetType }} + + +
+
+
+ {{ + miniWidget.name.replace(/([a-z])([A-Z])/g, '$1 $2').replace(/^./, (str) => str.toUpperCase()) || + 'Very Generic Indicator' + }} +
- - + + - - +

New view name

+ +
- - Save + + Cancel + Save
-
+
- - + + - -
- -
+

New profile name

+ +

Vehicle types that use this profile by default:

+
- - Save + + Cancel + Save
-
+
@@ -303,7 +512,7 @@