From bc9c999a3d3f38a73a24de71c8b2665d364a35bd Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 23 Mar 2023 12:18:47 +0530 Subject: [PATCH] refactor: remove unused icons from icon map and combine import statement Signed-off-by: Pranav C --- packages/nc-gui/components.d.ts | 1 - .../nc-gui/components/dashboard/TreeView.vue | 2 +- .../components/dashboard/settings/Modal.vue | 3 +-- .../nc-gui/components/general/PreviewAs.vue | 11 +++++------ .../components/smartsheet/header/CellIcon.ts | 2 +- .../smartsheet/header/VirtualCellIcon.ts | 3 +-- .../smartsheet/toolbar/ColumnFilterMenu.vue | 2 +- .../smartsheet/toolbar/ExportSubActions.vue | 2 +- .../components/smartsheet/toolbar/LockType.vue | 3 +-- .../smartsheet/toolbar/SearchData.vue | 2 +- .../smartsheet/toolbar/ViewActions.vue | 3 +-- .../[projectType]/[projectId]/index/index.vue | 6 +++--- packages/nc-gui/utils/iconUtils.ts | 18 ------------------ 13 files changed, 17 insertions(+), 41 deletions(-) diff --git a/packages/nc-gui/components.d.ts b/packages/nc-gui/components.d.ts index f9852cd594..b7e6585456 100644 --- a/packages/nc-gui/components.d.ts +++ b/packages/nc-gui/components.d.ts @@ -259,7 +259,6 @@ declare module '@vue/runtime-core' { NcIconsRowHeightMedium: typeof import('~icons/nc-icons/row-height-medium')['default'] NcIconsRowHeightShort: typeof import('~icons/nc-icons/row-height-short')['default'] NcIconsRowHeightTall: typeof import('~icons/nc-icons/row-height-tall')['default'] - 'Ph:clockClockwiseThin': typeof import('~icons/ph/clock-clockwise-thin')['default'] PhArrowClockwiseThin: typeof import('~icons/ph/arrow-clockwise-thin')['default'] PhAtThin: typeof import('~icons/ph/at-thin')['default'] PhBracketsAngleThin: typeof import('~icons/ph/brackets-angle-thin')['default'] diff --git a/packages/nc-gui/components/dashboard/TreeView.vue b/packages/nc-gui/components/dashboard/TreeView.vue index 13a6974e5d..0517af9602 100644 --- a/packages/nc-gui/components/dashboard/TreeView.vue +++ b/packages/nc-gui/components/dashboard/TreeView.vue @@ -29,10 +29,10 @@ import { useToggle, useUIPermission, watchEffect, + iconMap } from '#imports' import PhEyeThin from '~icons/ph/EyeThin' import PhTableThin from '~icons/ph/TableThin' -import { iconMap } from '~/utils' const { isMobileMode } = useGlobal() diff --git a/packages/nc-gui/components/dashboard/settings/Modal.vue b/packages/nc-gui/components/dashboard/settings/Modal.vue index 49b5d98074..4c19528ed1 100644 --- a/packages/nc-gui/components/dashboard/settings/Modal.vue +++ b/packages/nc-gui/components/dashboard/settings/Modal.vue @@ -2,8 +2,7 @@ import type { FunctionalComponent, SVGAttributes } from 'vue' import DataSources from './DataSources.vue' import Misc from './Misc.vue' -import { iconMap } from '~/utils' -import { DataSourcesSubTab, useI18n, useNuxtApp, useUIPermission, useVModel, watch } from '#imports' +import { DataSourcesSubTab,iconMap, useI18n, useNuxtApp, useUIPermission, useVModel, watch } from '#imports' interface Props { modelValue: boolean diff --git a/packages/nc-gui/components/general/PreviewAs.vue b/packages/nc-gui/components/general/PreviewAs.vue index 800e012f49..65132b41dc 100644 --- a/packages/nc-gui/components/general/PreviewAs.vue +++ b/packages/nc-gui/components/general/PreviewAs.vue @@ -1,10 +1,9 @@