From 3b3de7da22bd2003e134297cd01c4d8d1071f9d6 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Mon, 15 Aug 2022 13:56:45 +0200 Subject: [PATCH 1/8] chore(gui-v2): fix closed menu icon style --- .../nc-gui-v2/pages/[projectType]/[projectId]/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue b/packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue index d2e6d3d68c..0613ecb484 100644 --- a/packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue +++ b/packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue @@ -56,7 +56,11 @@ await loadTables() collapsible theme="light" > -
+
Date: Mon, 15 Aug 2022 14:09:53 +0200 Subject: [PATCH 2/8] refactor(gui-v2): show sidebar toggle on hover # What's changed? * delay toggle tooltips and view create tooltips by 1s * cleanup imports * fix some minor padding issues --- packages/nc-gui-v2/components.d.ts | 9 +++ .../components/dashboard/TreeView.vue | 2 +- .../components/smartsheet/Pagination.vue | 2 +- .../smartsheet/sidebar/MenuBottom.vue | 8 +-- .../components/smartsheet/sidebar/index.vue | 43 ++++++++------ .../smartsheet/sidebar/menu/ApiSnippet.vue | 2 - packages/nc-gui-v2/nuxt.config.ts | 3 + .../pages/[projectType]/[projectId]/index.vue | 59 +++++++++++++------ 8 files changed, 85 insertions(+), 43 deletions(-) diff --git a/packages/nc-gui-v2/components.d.ts b/packages/nc-gui-v2/components.d.ts index abb6418425..bb21bcdfd3 100644 --- a/packages/nc-gui-v2/components.d.ts +++ b/packages/nc-gui-v2/components.d.ts @@ -12,6 +12,7 @@ declare module '@vue/runtime-core' { ABadgeRibbon: typeof import('ant-design-vue/es')['BadgeRibbon'] AButton: typeof import('ant-design-vue/es')['Button'] ACard: typeof import('ant-design-vue/es')['Card'] + ACardMeta: typeof import('ant-design-vue/es')['CardMeta'] ACarousel: typeof import('ant-design-vue/es')['Carousel'] ACheckbox: typeof import('ant-design-vue/es')['Checkbox'] ACol: typeof import('ant-design-vue/es')['Col'] @@ -84,12 +85,14 @@ declare module '@vue/runtime-core' { MdiAccountGroup: typeof import('~icons/mdi/account-group')['default'] MdiAccountOutline: typeof import('~icons/mdi/account-outline')['default'] MdiAccountPlusOutline: typeof import('~icons/mdi/account-plus-outline')['default'] + MdiAccountSupervisorOutline: typeof import('~icons/mdi/account-supervisor-outline')['default'] MdiAlphaA: typeof import('~icons/mdi/alpha-a')['default'] MdiApi: typeof import('~icons/mdi/api')['default'] MdiArrowExpand: typeof import('~icons/mdi/arrow-expand')['default'] MdiArrowLeftBold: typeof import('~icons/mdi/arrow-left-bold')['default'] MdiAt: typeof import('~icons/mdi/at')['default'] MdiCalculator: typeof import('~icons/mdi/calculator')['default'] + MdiCalendarMonth: typeof import('~icons/mdi/calendar-month')['default'] MdiCardsHeart: typeof import('~icons/mdi/cards-heart')['default'] MdiCellphoneMessage: typeof import('~icons/mdi/cellphone-message')['default'] MdiChat: typeof import('~icons/mdi/chat')['default'] @@ -102,6 +105,7 @@ declare module '@vue/runtime-core' { MdiContentCopy: typeof import('~icons/mdi/content-copy')['default'] MdiContentSave: typeof import('~icons/mdi/content-save')['default'] MdiDatabaseOutline: typeof import('~icons/mdi/database-outline')['default'] + MdiDelete: typeof import('~icons/mdi/delete')['default'] MdiDeleteOutline: typeof import('~icons/mdi/delete-outline')['default'] MdiDiscord: typeof import('~icons/mdi/discord')['default'] MdiDotsVertical: typeof import('~icons/mdi/dots-vertical')['default'] @@ -114,6 +118,7 @@ declare module '@vue/runtime-core' { MdiEmail: typeof import('~icons/mdi/email')['default'] MdiEmailArrowRightOutline: typeof import('~icons/mdi/email-arrow-right-outline')['default'] MdiExitToApp: typeof import('~icons/mdi/exit-to-app')['default'] + MdiExport: typeof import('~icons/mdi/export')['default'] MdiEyeOffOutline: typeof import('~icons/mdi/eye-off-outline')['default'] MdiFileDocumentOutline: typeof import('~icons/mdi/file-document-outline')['default'] MdiFileExcel: typeof import('~icons/mdi/file-excel')['default'] @@ -122,6 +127,7 @@ declare module '@vue/runtime-core' { MdiFolder: typeof import('~icons/mdi/folder')['default'] MdiFunction: typeof import('~icons/mdi/function')['default'] MdiGestureDoubleTap: typeof import('~icons/mdi/gesture-double-tap')['default'] + MdiGithub: typeof import('~icons/mdi/github')['default'] MdiHeart: typeof import('~icons/mdi/heart')['default'] MdiHook: typeof import('~icons/mdi/hook')['default'] MdiInformation: typeof import('~icons/mdi/information')['default'] @@ -139,12 +145,14 @@ declare module '@vue/runtime-core' { MdiNumeric: typeof import('~icons/mdi/numeric')['default'] MdiOpenInNew: typeof import('~icons/mdi/open-in-new')['default'] MdiPlus: typeof import('~icons/mdi/plus')['default'] + MdiPlusBoxOutline: typeof import('~icons/mdi/plus-box-outline')['default'] MdiPlusOutline: typeof import('~icons/mdi/plus-outline')['default'] MdiRefresh: typeof import('~icons/mdi/refresh')['default'] MdiReload: typeof import('~icons/mdi/reload')['default'] MdiSearch: typeof import('~icons/mdi/search')['default'] MdiSlack: typeof import('~icons/mdi/slack')['default'] MdiStar: typeof import('~icons/mdi/star')['default'] + MdiStarOutline: typeof import('~icons/mdi/star-outline')['default'] MdiStore: typeof import('~icons/mdi/store')['default'] MdiTable: typeof import('~icons/mdi/table')['default'] MdiTableArrowRight: typeof import('~icons/mdi/table-arrow-right')['default'] @@ -153,6 +161,7 @@ declare module '@vue/runtime-core' { MdiText: typeof import('~icons/mdi/text')['default'] MdiThumbUp: typeof import('~icons/mdi/thumb-up')['default'] MdiTrashCan: typeof import('~icons/mdi/trash-can')['default'] + MdiTwitter: typeof import('~icons/mdi/twitter')['default'] MdiUploadOutline: typeof import('~icons/mdi/upload-outline')['default'] MdiViewListOutline: typeof import('~icons/mdi/view-list-outline')['default'] MdiWhatsapp: typeof import('~icons/mdi/whatsapp')['default'] diff --git a/packages/nc-gui-v2/components/dashboard/TreeView.vue b/packages/nc-gui-v2/components/dashboard/TreeView.vue index 2267c3e197..7e5ad0f52a 100644 --- a/packages/nc-gui-v2/components/dashboard/TreeView.vue +++ b/packages/nc-gui-v2/components/dashboard/TreeView.vue @@ -137,7 +137,7 @@ const activeTable = computed(() => {