From f760d442240884e3318bc9787f6245954eced0c5 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 1 May 2022 15:34:15 +0200 Subject: [PATCH] Refactored/simplified UI code for entities management --- .../src/components/panels/Entities/Entity.vue | 91 +++---------------- .../components/panels/Entities/EntityIcon.vue | 71 +++++++++++++++ .../panels/Entities/EntityMixin.vue | 38 ++++++++ .../src/components/panels/Entities/Modal.vue | 2 +- .../src/components/panels/Entities/Switch.vue | 42 ++++----- .../components/panels/Entities/common.scss | 52 +++++++++++ 6 files changed, 195 insertions(+), 101 deletions(-) create mode 100644 platypush/backend/http/webapp/src/components/panels/Entities/EntityIcon.vue create mode 100644 platypush/backend/http/webapp/src/components/panels/Entities/EntityMixin.vue create mode 100644 platypush/backend/http/webapp/src/components/panels/Entities/common.scss diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Entity.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Entity.vue index 9b0248926..1e6eea805 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/Entity.vue +++ b/platypush/backend/http/webapp/src/components/panels/Entities/Entity.vue @@ -1,62 +1,30 @@ diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/EntityIcon.vue b/platypush/backend/http/webapp/src/components/panels/Entities/EntityIcon.vue new file mode 100644 index 000000000..ceb461e91 --- /dev/null +++ b/platypush/backend/http/webapp/src/components/panels/Entities/EntityIcon.vue @@ -0,0 +1,71 @@ + + + + + diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/EntityMixin.vue b/platypush/backend/http/webapp/src/components/panels/Entities/EntityMixin.vue new file mode 100644 index 000000000..74198d298 --- /dev/null +++ b/platypush/backend/http/webapp/src/components/panels/Entities/EntityMixin.vue @@ -0,0 +1,38 @@ + diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Modal.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Modal.vue index 18a847fc0..e130adc7b 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/Modal.vue +++ b/platypush/backend/http/webapp/src/components/panels/Entities/Modal.vue @@ -78,7 +78,7 @@
-
+
diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Switch.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Switch.vue index 2a9d2cd29..899436572 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/Switch.vue +++ b/platypush/backend/http/webapp/src/components/panels/Entities/Switch.vue @@ -1,36 +1,32 @@