From 6b447ceb38701354581d5b3ce226cc36630994fb Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Mon, 25 Jul 2022 10:34:49 +0200 Subject: [PATCH] chore(gui-v2): fix eslint issues # What's changed? * transform some components to script setup * fix linting issues --- .../nc-gui-v2/components/cell/Duration.vue | 2 +- .../components/cell/JsonEditableCell.vue | 97 ++++++++----------- packages/nc-gui-v2/components/cell/Time.vue | 18 +++- .../nc-gui-v2/components/dlg/TableCreate.vue | 31 +++--- .../smartsheet-header/VirtualCellIcon.vue | 5 +- .../smartsheet-toolbar/LockMenu.vue | 74 +++++++++----- .../smartsheet-toolbar/MoreActions.vue | 12 +-- .../smartsheet-toolbar/SortListMenu.vue | 4 +- .../components/ListChildItems.vue | 5 +- .../components/ListChildItemsModal.vue | 6 +- .../virtual-cell/components/ListItems.vue | 3 +- .../nc-gui-v2/composables/useViewCreate.ts | 7 +- packages/nc-gui-v2/plugins/i18n.ts | 6 +- 13 files changed, 147 insertions(+), 123 deletions(-) diff --git a/packages/nc-gui-v2/components/cell/Duration.vue b/packages/nc-gui-v2/components/cell/Duration.vue index 8e92ecea70..00a46e0847 100644 --- a/packages/nc-gui-v2/components/cell/Duration.vue +++ b/packages/nc-gui-v2/components/cell/Duration.vue @@ -66,7 +66,7 @@ const submitDuration = () => { @keypress="checkDurationFormat($event)" @keydown.enter="submitDuration" /> -
+
Please enter a number
diff --git a/packages/nc-gui-v2/components/cell/JsonEditableCell.vue b/packages/nc-gui-v2/components/cell/JsonEditableCell.vue index 5561b8424e..9f9e2e00e8 100644 --- a/packages/nc-gui-v2/components/cell/JsonEditableCell.vue +++ b/packages/nc-gui-v2/components/cell/JsonEditableCell.vue @@ -1,66 +1,47 @@ - + + diff --git a/packages/nc-gui-v2/components/cell/Time.vue b/packages/nc-gui-v2/components/cell/Time.vue index 9261d40ac8..40954b39dd 100644 --- a/packages/nc-gui-v2/components/cell/Time.vue +++ b/packages/nc-gui-v2/components/cell/Time.vue @@ -1,17 +1,27 @@