From d83e37ac28fd1ba5c6dd8d1757e1a7f8acbd16d5 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 19 Aug 2022 11:20:56 +0530 Subject: [PATCH] refactor(gui-v2): avoid repetition by splitting into multiple component Signed-off-by: Pranav C --- .../components/general/language/Menu.vue | 65 +++++++++++++++++++ .../components/general/language/index.vue | 36 ++++++++++ .../components/smartsheet/sidebar/index.vue | 1 - .../pages/[projectType]/[projectId]/index.vue | 1 - 4 files changed, 101 insertions(+), 2 deletions(-) create mode 100644 packages/nc-gui-v2/components/general/language/Menu.vue create mode 100644 packages/nc-gui-v2/components/general/language/index.vue diff --git a/packages/nc-gui-v2/components/general/language/Menu.vue b/packages/nc-gui-v2/components/general/language/Menu.vue new file mode 100644 index 0000000000..08c5f3a07d --- /dev/null +++ b/packages/nc-gui-v2/components/general/language/Menu.vue @@ -0,0 +1,65 @@ + + + diff --git a/packages/nc-gui-v2/components/general/language/index.vue b/packages/nc-gui-v2/components/general/language/index.vue new file mode 100644 index 0000000000..9df4b15f14 --- /dev/null +++ b/packages/nc-gui-v2/components/general/language/index.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/index.vue b/packages/nc-gui-v2/components/smartsheet/sidebar/index.vue index e896faf7f3..1f60a3e46f 100644 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/index.vue +++ b/packages/nc-gui-v2/components/smartsheet/sidebar/index.vue @@ -12,7 +12,6 @@ import { inject, provide, ref, - useElementHover, useRoute, useRouter, useViews, diff --git a/packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue b/packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue index 542c5ec082..e026d75408 100644 --- a/packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue +++ b/packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue @@ -8,7 +8,6 @@ import { provideSidebar, ref, useClipboard, - useElementHover, useGlobal, useProject, useRoute,