From 3d86dee708f749e19019da782d03cb815eda0e38 Mon Sep 17 00:00:00 2001 From: mabasian <54101509+mabasian@users.noreply.github.com> Date: Wed, 18 Sep 2024 13:46:29 +0200 Subject: [PATCH] ADD: cpu widget to the new control page --- launcher/public/output.css | 8 + .../components/widgets/TheCpu.vue | 69 ++++++++ .../components/widgets/TheNetwork.vue | 2 +- .../control-page/sections/CommonSidebar.vue | 8 +- .../UI/the-control/ControlDashboard.vue | 2 +- .../src/components/UI/the-control/TheCpu.vue | 149 ------------------ 6 files changed, 84 insertions(+), 154 deletions(-) create mode 100755 launcher/src/components/UI/control-page/components/widgets/TheCpu.vue delete mode 100755 launcher/src/components/UI/the-control/TheCpu.vue diff --git a/launcher/public/output.css b/launcher/public/output.css index b3cc1de1ee..6eddc02808 100755 --- a/launcher/public/output.css +++ b/launcher/public/output.css @@ -2378,6 +2378,14 @@ video { width: 100vw; } +.w-2\/5{ + width: 40%; +} + +.w-\[90\%\]{ + width: 90%; +} + .min-w-\[100px\]{ min-width: 100px; } diff --git a/launcher/src/components/UI/control-page/components/widgets/TheCpu.vue b/launcher/src/components/UI/control-page/components/widgets/TheCpu.vue new file mode 100755 index 0000000000..59f0b81d7e --- /dev/null +++ b/launcher/src/components/UI/control-page/components/widgets/TheCpu.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/launcher/src/components/UI/control-page/components/widgets/TheNetwork.vue b/launcher/src/components/UI/control-page/components/widgets/TheNetwork.vue index 5b221714d8..eca8b65a9b 100755 --- a/launcher/src/components/UI/control-page/components/widgets/TheNetwork.vue +++ b/launcher/src/components/UI/control-page/components/widgets/TheNetwork.vue @@ -8,7 +8,7 @@ $t("controlPage.network") }} -
+
{{ controlStore.rx }}
diff --git a/launcher/src/components/UI/control-page/sections/CommonSidebar.vue b/launcher/src/components/UI/control-page/sections/CommonSidebar.vue index d143cf60ed..97899d4207 100644 --- a/launcher/src/components/UI/control-page/sections/CommonSidebar.vue +++ b/launcher/src/components/UI/control-page/sections/CommonSidebar.vue @@ -1,11 +1,12 @@ @@ -13,4 +14,5 @@ import WidgetCard from "../components/cards/WidgetCard.vue"; import TheNetwork from "../components/widgets/TheNetwork.vue"; import TheRam from "../components/widgets/TheRam.vue"; +import TheCpu from "../components/widgets/TheCpu.vue"; diff --git a/launcher/src/components/UI/the-control/ControlDashboard.vue b/launcher/src/components/UI/the-control/ControlDashboard.vue index eb6e16f10c..d431ac1f27 100755 --- a/launcher/src/components/UI/the-control/ControlDashboard.vue +++ b/launcher/src/components/UI/the-control/ControlDashboard.vue @@ -63,7 +63,7 @@ import TheStorage from "./TheStorage.vue"; import DataApi from "./DataApi.vue"; import SyncStatus from "./SyncStatus.vue"; import EpochSlot from "./EpochSlot.vue"; -import TheCpu from "./TheCpu.vue"; +import TheCpu from "../control-page/components/widgets/TheCpu.vue"; import TheHard from "./TheHard.vue"; import MachineName from "./MachineName.vue"; import DashboardCard from "./DashboardCard.vue"; diff --git a/launcher/src/components/UI/the-control/TheCpu.vue b/launcher/src/components/UI/the-control/TheCpu.vue deleted file mode 100755 index 732a1beb60..0000000000 --- a/launcher/src/components/UI/the-control/TheCpu.vue +++ /dev/null @@ -1,149 +0,0 @@ - - - - -