From 54465d36a791654317ad6ecc0e5a727984991b76 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sat, 18 Jun 2022 11:39:04 +0200 Subject: [PATCH] Refactor page-editor elements to use Composition API (#8721) * refactor(client): refactor page-editor elements to use Composition API * Apply review suggestions from @Johann150 Co-authored-by: Johann150 Co-authored-by: Johann150 --- .../page-editor/els/page-editor.el.button.vue | 48 ++++------- .../page-editor/els/page-editor.el.canvas.vue | 34 +++----- .../els/page-editor.el.counter.vue | 30 ++----- .../page-editor/els/page-editor.el.if.vue | 63 ++++++-------- .../page-editor/els/page-editor.el.image.vue | 64 ++++++-------- .../page-editor/els/page-editor.el.note.vue | 57 +++++-------- .../els/page-editor.el.number-input.vue | 30 ++----- .../page-editor/els/page-editor.el.post.vue | 34 +++----- .../els/page-editor.el.radio-button.vue | 49 ++++------- .../els/page-editor.el.section.vue | 83 ++++++++----------- .../page-editor/els/page-editor.el.switch.vue | 30 ++----- .../els/page-editor.el.text-input.vue | 30 ++----- .../page-editor/els/page-editor.el.text.vue | 30 ++----- .../els/page-editor.el.textarea-input.vue | 30 ++----- .../els/page-editor.el.textarea.vue | 30 ++----- 15 files changed, 214 insertions(+), 428 deletions(-) diff --git a/packages/client/src/pages/page-editor/els/page-editor.el.button.vue b/packages/client/src/pages/page-editor/els/page-editor.el.button.vue index 827679d6a..4c2e0e4eb 100644 --- a/packages/client/src/pages/page-editor/els/page-editor.el.button.vue +++ b/packages/client/src/pages/page-editor/els/page-editor.el.button.vue @@ -38,44 +38,28 @@ - diff --git a/packages/client/src/pages/page-editor/els/page-editor.el.canvas.vue b/packages/client/src/pages/page-editor/els/page-editor.el.canvas.vue index ba5d0ba1f..191321ae1 100644 --- a/packages/client/src/pages/page-editor/els/page-editor.el.canvas.vue +++ b/packages/client/src/pages/page-editor/els/page-editor.el.canvas.vue @@ -20,33 +20,19 @@ - diff --git a/packages/client/src/pages/page-editor/els/page-editor.el.counter.vue b/packages/client/src/pages/page-editor/els/page-editor.el.counter.vue index dc98a610b..1a2078448 100644 --- a/packages/client/src/pages/page-editor/els/page-editor.el.counter.vue +++ b/packages/client/src/pages/page-editor/els/page-editor.el.counter.vue @@ -18,31 +18,17 @@ - diff --git a/packages/client/src/pages/page-editor/els/page-editor.el.if.vue b/packages/client/src/pages/page-editor/els/page-editor.el.if.vue index be3a520ea..d763070b1 100644 --- a/packages/client/src/pages/page-editor/els/page-editor.el.if.vue +++ b/packages/client/src/pages/page-editor/els/page-editor.el.if.vue @@ -25,54 +25,39 @@ -