From b5bbb75b72eca804d209572ca7a17863390c64a0 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 9 Aug 2022 19:31:53 +0800 Subject: [PATCH] refactor(gui-v2): remove icon import --- packages/nc-gui-v2/components.d.ts | 5 +++++ .../smartsheet/sidebar/MenuBottom.vue | 19 +++++++------------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/nc-gui-v2/components.d.ts b/packages/nc-gui-v2/components.d.ts index 0e5864cd54..c8bc67e00d 100644 --- a/packages/nc-gui-v2/components.d.ts +++ b/packages/nc-gui-v2/components.d.ts @@ -63,10 +63,15 @@ declare module '@vue/runtime-core' { AUploadDragger: typeof import('ant-design-vue/es')['UploadDragger'] MaterialSymbolsMenu: typeof import('~icons/material-symbols/menu')['default'] MdiAt: typeof import('~icons/mdi/at')['default'] + MdiCardsHeart: typeof import('~icons/mdi/cards-heart')['default'] MdiDotsVertical: typeof import('~icons/mdi/dots-vertical')['default'] + MdiHook: typeof import('~icons/mdi/hook')['default'] MdiLogout: typeof import('~icons/mdi/logout')['default'] + MdiPlus: typeof import('~icons/mdi/plus')['default'] MdiReload: typeof import('~icons/mdi/reload')['default'] + MdiShieldLockOutline: typeof import('~icons/mdi/shield-lock-outline')['default'] MdiTableArrowRight: typeof import('~icons/mdi/table-arrow-right')['default'] + MdiXml: typeof import('~icons/mdi/xml')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue b/packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue index 58f4093713..ae24403dee 100644 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue +++ b/packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue @@ -2,11 +2,6 @@ import { ViewTypes } from 'nocodb-sdk' import { ref, useNuxtApp } from '#imports' import { viewIcons } from '~/utils' -import MdiPlusIcon from '~icons/mdi/plus' -import MdiXml from '~icons/mdi/xml' -import MdiHook from '~icons/mdi/hook' -import MdiHeartsCard from '~icons/mdi/cards-heart' -import MdiShieldLockOutline from '~icons/mdi/shield-lock-outline' interface Emits { (event: 'openModal', data: { type: ViewTypes; title?: string }): void @@ -42,7 +37,7 @@ function onOpenModal(type: ViewTypes, title = '') { - + @@ -59,7 +54,7 @@ function onOpenModal(type: ViewTypes, title = '') {
- +
@@ -77,7 +72,7 @@ function onOpenModal(type: ViewTypes, title = '') {
- +
@@ -95,7 +90,7 @@ function onOpenModal(type: ViewTypes, title = '') {
- +
@@ -105,14 +100,14 @@ function onOpenModal(type: ViewTypes, title = '') { class="flex items-center gap-2 w-full mx-3 px-4 py-3 rounded !bg-primary text-white transform translate-x-4 hover:(translate-x-0 shadow-lg) transition duration-150 ease" @click="onApiSnippet" > - Get API Snippet + Get API Snippet @@ -143,7 +138,7 @@ function onOpenModal(type: ViewTypes, title = '') { class="group flex items-center gap-2 w-full mx-3 px-4 py-2 rounded-l !bg-primary text-white transform translate-x-4 hover:(translate-x-0 shadow-lg !opacity-100) transition duration-150 ease" @click.stop > - + {{ $t('activity.sponsorUs') }}