From f4036be52b30f86f51f373a8299b590cedac26ae Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 22 Apr 2023 16:31:47 +0200 Subject: [PATCH] Extracted and refactored more common elements of the Entity components. --- .../src/components/panels/Entities/Cpu.vue | 4 -- .../components/panels/Entities/CpuInfo.vue | 51 -------------- .../components/panels/Entities/CpuTimes.vue | 6 -- .../src/components/panels/Entities/Device.vue | 6 -- .../src/components/panels/Entities/Disk.vue | 53 +-------------- .../src/components/panels/Entities/Entity.vue | 28 ++++---- .../panels/Entities/MemoryStats.vue | 55 +--------------- .../panels/Entities/NetworkInterface.vue | 66 ++----------------- .../components/panels/Entities/common.scss | 58 ++++++++++++++++ 9 files changed, 76 insertions(+), 251 deletions(-) diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Cpu.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Cpu.vue index 1651837e9..e5e72ff83 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/Cpu.vue +++ b/platypush/backend/http/webapp/src/components/panels/Entities/Cpu.vue @@ -38,9 +38,5 @@ export default { font-weight: bold; } } - - .icon { - margin-right: 1em; - } } diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/CpuInfo.vue b/platypush/backend/http/webapp/src/components/panels/Entities/CpuInfo.vue index 5d68e4eca..c3b1fa3bf 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/CpuInfo.vue +++ b/platypush/backend/http/webapp/src/components/panels/Entities/CpuInfo.vue @@ -166,55 +166,4 @@ export default { diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/CpuTimes.vue b/platypush/backend/http/webapp/src/components/panels/Entities/CpuTimes.vue index 8c845e685..2ddcdc5fa 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/CpuTimes.vue +++ b/platypush/backend/http/webapp/src/components/panels/Entities/CpuTimes.vue @@ -28,10 +28,4 @@ export default { diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Device.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Device.vue index b599e53d6..0d824cdb1 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/Device.vue +++ b/platypush/backend/http/webapp/src/components/panels/Entities/Device.vue @@ -28,10 +28,4 @@ export default { diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Disk.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Disk.vue index 58c0eca02..3614c48b3 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/Disk.vue +++ b/platypush/backend/http/webapp/src/components/panels/Entities/Disk.vue @@ -1,5 +1,5 @@