From 6dea33e1e3e3ee2be2f1f1f88478d6e62bad7831 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 20 Aug 2022 19:36:20 +0530 Subject: [PATCH] chore(gui-v2): remove duplicate and unused components Signed-off-by: Pranav C --- .../smartsheet/sidebar/toolbar/AddRow.vue | 23 ---- .../smartsheet/sidebar/toolbar/LockMenu.vue | 116 ------------------ .../smartsheet/sidebar/toolbar/Reload.vue | 17 --- packages/nc-gui-v2/utils/viewUtils.ts | 3 +- 4 files changed, 2 insertions(+), 157 deletions(-) delete mode 100644 packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/AddRow.vue delete mode 100644 packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/LockMenu.vue delete mode 100644 packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/Reload.vue diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/AddRow.vue b/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/AddRow.vue deleted file mode 100644 index a7053ac8bb..0000000000 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/AddRow.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/LockMenu.vue b/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/LockMenu.vue deleted file mode 100644 index 27e9c9fcec..0000000000 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/LockMenu.vue +++ /dev/null @@ -1,116 +0,0 @@ - - - - - diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/Reload.vue b/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/Reload.vue deleted file mode 100644 index 5c780b1c16..0000000000 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/toolbar/Reload.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/packages/nc-gui-v2/utils/viewUtils.ts b/packages/nc-gui-v2/utils/viewUtils.ts index 46a0d43c3f..f8b23afb6e 100644 --- a/packages/nc-gui-v2/utils/viewUtils.ts +++ b/packages/nc-gui-v2/utils/viewUtils.ts @@ -1,4 +1,5 @@ import { ViewTypes } from 'nocodb-sdk' +import { themeV2Colors } from '~/utils' import MdiGridIcon from '~icons/mdi/grid-large' import MdiFormIcon from '~icons/mdi/form-select' @@ -9,7 +10,7 @@ import MdiEyeIcon from '~icons/mdi/eye-circle-outline' export const viewIcons = { [ViewTypes.GRID]: { icon: MdiGridIcon, color: '#8f96f2' }, - [ViewTypes.FORM]: { icon: MdiFormIcon, color: '#ec4899' }, + [ViewTypes.FORM]: { icon: MdiFormIcon, color: themeV2Colors.pink['500'] }, calendar: { icon: MdiCalendarIcon, color: 'purple' }, [ViewTypes.GALLERY]: { icon: MdiGalleryIcon, color: 'orange' }, [ViewTypes.KANBAN]: { icon: MdiKanbanIcon, color: 'green' },