From 7ca89abaf68660dbc071de773b3cae8d709a01ca Mon Sep 17 00:00:00 2001
From: mabasian <54101509+mabasian@users.noreply.github.com>
Date: Wed, 18 Sep 2024 17:21:28 +0200
Subject: [PATCH] ADD: alert box added to the new control
---
launcher/public/output.css | 5 +++
.../UI/control-page/ControlScreen.vue | 2 +
.../components/alert}/ControlAlert.vue | 40 +++++++++----------
.../components/widgets/VolumeWidget.vue | 18 +++++++++
.../UI/control-page/sections/AlertSection.vue | 8 ++--
.../control-page/sections/CommonSidebar.vue | 7 ++--
.../UI/the-control/ControlScreen.vue | 2 +-
7 files changed, 51 insertions(+), 31 deletions(-)
rename launcher/src/components/UI/{the-control => control-page/components/alert}/ControlAlert.vue (98%)
create mode 100644 launcher/src/components/UI/control-page/components/widgets/VolumeWidget.vue
diff --git a/launcher/public/output.css b/launcher/public/output.css
index 059694f49f..ba2a6d039f 100755
--- a/launcher/public/output.css
+++ b/launcher/public/output.css
@@ -4205,6 +4205,11 @@ video {
background-color: rgb(248 113 113 / var(--tw-bg-opacity));
}
+.bg-yellow-500{
+ --tw-bg-opacity: 1;
+ background-color: rgb(234 179 8 / var(--tw-bg-opacity));
+}
+
.bg-opacity-80{
--tw-bg-opacity: 0.8;
}
diff --git a/launcher/src/components/UI/control-page/ControlScreen.vue b/launcher/src/components/UI/control-page/ControlScreen.vue
index a234f8b18e..89505831e9 100644
--- a/launcher/src/components/UI/control-page/ControlScreen.vue
+++ b/launcher/src/components/UI/control-page/ControlScreen.vue
@@ -3,6 +3,7 @@
@@ -10,6 +11,7 @@
diff --git a/launcher/src/components/UI/control-page/sections/AlertSection.vue b/launcher/src/components/UI/control-page/sections/AlertSection.vue
index 8eea9cd390..f707639e31 100644
--- a/launcher/src/components/UI/control-page/sections/AlertSection.vue
+++ b/launcher/src/components/UI/control-page/sections/AlertSection.vue
@@ -1,11 +1,9 @@
-
-
-
+
+
diff --git a/launcher/src/components/UI/control-page/sections/CommonSidebar.vue b/launcher/src/components/UI/control-page/sections/CommonSidebar.vue
index 5c9e72dede..fedf30dc63 100644
--- a/launcher/src/components/UI/control-page/sections/CommonSidebar.vue
+++ b/launcher/src/components/UI/control-page/sections/CommonSidebar.vue
@@ -1,9 +1,7 @@
-
+
-
+
@@ -16,4 +14,5 @@ import TheNetwork from "../components/widgets/TheNetwork.vue";
import TheRam from "../components/widgets/TheRam.vue";
import TheCpu from "../components/widgets/TheCpu.vue";
import InfoWidget from "../components/widgets/InfoWidget.vue";
+import VolumeWidget from "../components/widgets/VolumeWidget.vue";
diff --git a/launcher/src/components/UI/the-control/ControlScreen.vue b/launcher/src/components/UI/the-control/ControlScreen.vue
index 6499a7b443..9fdbd9b160 100644
--- a/launcher/src/components/UI/the-control/ControlScreen.vue
+++ b/launcher/src/components/UI/the-control/ControlScreen.vue
@@ -134,7 +134,7 @@ import LogsSection from "../node-page/sections/LogsSection.vue";
import { useStateHandler } from "@/composables/services";
import ControlDashboard from "./ControlDashboard.vue";
import ControlPlugins from "./ControlPlugins.vue";
-import ControlAlert from "./ControlAlert.vue";
+import ControlAlert from "../control-page/components/alert/ControlAlert.vue";
import { saveAs } from "file-saver";
import ExpertWindow from "../node-page/sections/ExpertWindow.vue";
import { useServices } from "@/store/services";