From 4d5ef7de73d5d27c11deefa6eaadc149347c0493 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Wed, 7 Feb 2024 20:21:18 +0000 Subject: [PATCH 01/11] fix(nc-gui): extra divider issue on form view more option dropdown --- .../nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue b/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue index 05d567e9df..770088290e 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue @@ -181,10 +181,10 @@ const onDelete = async () => { {{ $t('labels.duplicateView') }} - + From 4c78952a1661eb7b06913dba5b012c7c5ea50b51 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Wed, 7 Feb 2024 20:21:19 +0000 Subject: [PATCH 02/11] fic(nc-gui): wrong user icon --- packages/nc-gui/assets/nc-icons/user.svg | 4 ++++ packages/nc-gui/components/workspace/View.vue | 2 +- packages/nc-gui/pages/account/index.vue | 4 ++-- packages/nc-gui/utils/iconUtils.ts | 2 ++ 4 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 packages/nc-gui/assets/nc-icons/user.svg diff --git a/packages/nc-gui/assets/nc-icons/user.svg b/packages/nc-gui/assets/nc-icons/user.svg new file mode 100644 index 0000000000..d7034eb189 --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/user.svg @@ -0,0 +1,4 @@ + + + + diff --git a/packages/nc-gui/components/workspace/View.vue b/packages/nc-gui/components/workspace/View.vue index d1eb44b7e2..50750cf56a 100644 --- a/packages/nc-gui/components/workspace/View.vue +++ b/packages/nc-gui/components/workspace/View.vue @@ -61,7 +61,7 @@ onMounted(() => { - + Members diff --git a/packages/nc-gui/pages/account/index.vue b/packages/nc-gui/pages/account/index.vue index 50d88086d5..c3bcbed677 100644 --- a/packages/nc-gui/pages/account/index.vue +++ b/packages/nc-gui/pages/account/index.vue @@ -65,7 +65,7 @@ const logout = async () => { @click="navigateTo('/account/profile')" > - + {{ $t('labels.profile') }} @@ -102,7 +102,7 @@ const logout = async () => { - + {{ $t('objects.users') }} diff --git a/packages/nc-gui/utils/iconUtils.ts b/packages/nc-gui/utils/iconUtils.ts index b8612ced26..8b364b5b1f 100644 --- a/packages/nc-gui/utils/iconUtils.ts +++ b/packages/nc-gui/utils/iconUtils.ts @@ -99,6 +99,7 @@ import NcUnStar from '~icons/nc-icons/star-remove' import NcSearch from '~icons/nc-icons/search' import NcCreditCard from '~icons/nc-icons/credit-card' import NcLayers from '~icons/nc-icons/layers' +import NcUser from '~icons/nc-icons/user' import NcUsers from '~icons/nc-icons/users' import NcCheck from '~icons/nc-icons/check' import NcIconsRowHeightMedium from '~icons/nc-icons/row-height-medium' @@ -327,6 +328,7 @@ export const iconMap = { accountCircle: h('span', { class: 'material-symbols' }, 'account_circle'), phUser: PhUser, phUsers: PhUsers, + user: NcUser, users: NcUsers, cloudDownload: h('span', { class: 'material-symbols' }, 'cloud_download'), download: MsDownloadRounded, From 934805a0c7627732fbe1c2b99eb6a1ba884d2a5c Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Wed, 7 Feb 2024 20:21:19 +0000 Subject: [PATCH 03/11] chore(nc-gui): lint --- packages/nc-gui/pages/account/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/pages/account/index.vue b/packages/nc-gui/pages/account/index.vue index c3bcbed677..c5794cb785 100644 --- a/packages/nc-gui/pages/account/index.vue +++ b/packages/nc-gui/pages/account/index.vue @@ -65,7 +65,7 @@ const logout = async () => { @click="navigateTo('/account/profile')" > - + {{ $t('labels.profile') }} @@ -102,7 +102,7 @@ const logout = async () => { - + {{ $t('objects.users') }} From 4711e77f977f3b3db3c093e420efe132d35eafb8 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Wed, 7 Feb 2024 20:21:19 +0000 Subject: [PATCH 04/11] fix(nc-gui): hide pagination for only 1 page --- packages/nc-gui/components/nc/Pagination.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/nc/Pagination.vue b/packages/nc-gui/components/nc/Pagination.vue index ec8bb6b2d3..fde01c4879 100644 --- a/packages/nc-gui/components/nc/Pagination.vue +++ b/packages/nc-gui/components/nc/Pagination.vue @@ -56,7 +56,7 @@ const pagesList = computed(() => { - + {{ props.firstPageTooltip }} From ca9b62c3d66436e635d9571496a153adc3197b4d Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Wed, 7 Feb 2024 20:21:19 +0000 Subject: [PATCH 05/11] fic(nc-gui): set new record dropdown position to topLeft --- packages/nc-gui/components/smartsheet/grid/Table.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/grid/Table.vue b/packages/nc-gui/components/smartsheet/grid/Table.vue index 8331f76c7a..f691c95fc1 100644 --- a/packages/nc-gui/components/smartsheet/grid/Table.vue +++ b/packages/nc-gui/components/smartsheet/grid/Table.vue @@ -1893,11 +1893,11 @@ onKeyStroke('ArrowDown', onDown) Date: Wed, 7 Feb 2024 20:21:19 +0000 Subject: [PATCH 06/11] fix(nc-gui): text area input ui changes --- packages/nc-gui/components/cell/RichText.vue | 6 ++++-- packages/nc-gui/components/cell/TextArea.vue | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/nc-gui/components/cell/RichText.vue b/packages/nc-gui/components/cell/RichText.vue index fecd9c0e4c..7a66bd44cd 100644 --- a/packages/nc-gui/components/cell/RichText.vue +++ b/packages/nc-gui/components/cell/RichText.vue @@ -8,7 +8,7 @@ import { generateJSON } from '@tiptap/html' import Underline from '@tiptap/extension-underline' import { TaskItem } from '@/helpers/dbTiptapExtensions/task-item' import { Link } from '@/helpers/dbTiptapExtensions/links' -import { IsExpandedFormOpenInj, ReadonlyInj, RowHeightInj } from '#imports' +import { IsExpandedFormOpenInj, ReadonlyInj, RowHeightInj, IsFormInj } from '#imports' const props = defineProps<{ value?: string | null @@ -26,6 +26,8 @@ const rowHeight = inject(RowHeightInj, ref(1 as const)) const readOnlyCell = inject(ReadonlyInj, ref(false)) +const isForm = inject(IsFormInj, ref(false)) + const turndownService = new TurndownService({}) turndownService.addRule('lineBreak', { @@ -199,7 +201,7 @@ watch(editorDom, () => { 'mt-2.5 flex-grow': fullMode, 'nc-scrollbar-md': !fullMode || (!fullMode && isExpandedFormOpen), 'flex-grow': isExpandedFormOpen, - [`!overflow-hidden children:line-clamp-${rowHeight}`]: !fullMode && readOnly && rowHeight && !isExpandedFormOpen, + [`!overflow-hidden children:line-clamp-${rowHeight}`]: !fullMode && readOnly && rowHeight && !isExpandedFormOpen && !isForm, }" /> diff --git a/packages/nc-gui/components/cell/TextArea.vue b/packages/nc-gui/components/cell/TextArea.vue index 250ede61ff..8d8f2dc091 100644 --- a/packages/nc-gui/components/cell/TextArea.vue +++ b/packages/nc-gui/components/cell/TextArea.vue @@ -207,15 +207,15 @@ watch(inputWrapperRef, () => { :class="{ 'min-h-10': rowHeight !== 1 || isExpandedFormOpen, 'min-h-9': rowHeight === 1 && !isExpandedFormOpen, - 'h-full': isForm, + 'h-full w-full': isForm, }" > { v-if="!isVisible" placement="bottom" class="!absolute right-0 hidden nc-text-area-expand-btn group-hover:block z-3" - :class="isExpandedFormOpen || isForm || isRichMode ? 'top-1' : 'bottom-1'" + :class=" isExpandedFormOpen || isForm ? 'top-1' : 'bottom-1'" > {{ $t('title.expand') }} From f5d409b2b7b2a6dc64d59cd5e40b1b98fcdbcb25 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Wed, 7 Feb 2024 20:21:19 +0000 Subject: [PATCH 07/11] fix(nc-gui): Wrong chevron Icon in grouping UI --- .../nc-gui/assets/nc-icons/chevron-down.svg | 3 +++ packages/nc-gui/components/cell/RichText.vue | 5 +++-- packages/nc-gui/components/cell/TextArea.vue | 2 +- .../components/smartsheet/grid/GroupBy.vue | 18 ++++-------------- packages/nc-gui/utils/iconUtils.ts | 2 ++ 5 files changed, 13 insertions(+), 17 deletions(-) create mode 100644 packages/nc-gui/assets/nc-icons/chevron-down.svg diff --git a/packages/nc-gui/assets/nc-icons/chevron-down.svg b/packages/nc-gui/assets/nc-icons/chevron-down.svg new file mode 100644 index 0000000000..0b0d8c8e04 --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/chevron-down.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/nc-gui/components/cell/RichText.vue b/packages/nc-gui/components/cell/RichText.vue index 7a66bd44cd..955d9296dc 100644 --- a/packages/nc-gui/components/cell/RichText.vue +++ b/packages/nc-gui/components/cell/RichText.vue @@ -8,7 +8,7 @@ import { generateJSON } from '@tiptap/html' import Underline from '@tiptap/extension-underline' import { TaskItem } from '@/helpers/dbTiptapExtensions/task-item' import { Link } from '@/helpers/dbTiptapExtensions/links' -import { IsExpandedFormOpenInj, ReadonlyInj, RowHeightInj, IsFormInj } from '#imports' +import { IsExpandedFormOpenInj, IsFormInj, ReadonlyInj, RowHeightInj } from '#imports' const props = defineProps<{ value?: string | null @@ -201,7 +201,8 @@ watch(editorDom, () => { 'mt-2.5 flex-grow': fullMode, 'nc-scrollbar-md': !fullMode || (!fullMode && isExpandedFormOpen), 'flex-grow': isExpandedFormOpen, - [`!overflow-hidden children:line-clamp-${rowHeight}`]: !fullMode && readOnly && rowHeight && !isExpandedFormOpen && !isForm, + [`!overflow-hidden children:line-clamp-${rowHeight}`]: + !fullMode && readOnly && rowHeight && !isExpandedFormOpen && !isForm, }" /> diff --git a/packages/nc-gui/components/cell/TextArea.vue b/packages/nc-gui/components/cell/TextArea.vue index 8d8f2dc091..606fe8c549 100644 --- a/packages/nc-gui/components/cell/TextArea.vue +++ b/packages/nc-gui/components/cell/TextArea.vue @@ -271,7 +271,7 @@ watch(inputWrapperRef, () => { v-if="!isVisible" placement="bottom" class="!absolute right-0 hidden nc-text-area-expand-btn group-hover:block z-3" - :class=" isExpandedFormOpen || isForm ? 'top-1' : 'bottom-1'" + :class="isExpandedFormOpen || isForm ? 'top-1' : 'bottom-1'" > {{ $t('title.expand') }} diff --git a/packages/nc-gui/components/smartsheet/grid/GroupBy.vue b/packages/nc-gui/components/smartsheet/grid/GroupBy.vue index 0e30a42b1a..32ffaab35e 100644 --- a/packages/nc-gui/components/smartsheet/grid/GroupBy.vue +++ b/packages/nc-gui/components/smartsheet/grid/GroupBy.vue @@ -241,20 +241,10 @@ const shouldRenderCell = (column) => - - - + diff --git a/packages/nc-gui/utils/iconUtils.ts b/packages/nc-gui/utils/iconUtils.ts index 8b364b5b1f..85020c37ed 100644 --- a/packages/nc-gui/utils/iconUtils.ts +++ b/packages/nc-gui/utils/iconUtils.ts @@ -111,6 +111,7 @@ import NcNotification from '~icons/material-symbols/notifications-outline' import NcCommentHere from '~icons/nc-icons/comment-here' import NcAddDataSource from '~icons/nc-icons/add-data-source' import NcDatabaseIcon from '~icons/nc-icons/database' +import NcChevronDown from '~icons/nc-icons/chevron-down' // keep it for reference // todo: remove it after all icons are migrated @@ -462,6 +463,7 @@ export const iconMap = { commentHere: NcCommentHere, fileImage: FileImageIcon, paste: h('span', { class: 'material-symbols' }, 'content_paste'), + chevronDown: NcChevronDown, } export const getMdiIcon = (type: string): any => { From 9aa44ba1278777e59843026c809d620ac163d10c Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Wed, 7 Feb 2024 20:21:19 +0000 Subject: [PATCH 08/11] fix(nc-gui): update icons with nocodb design library --- .../nc-gui/assets/nc-icons/arrow-down.svg | 4 +++ packages/nc-gui/assets/nc-icons/arrow-up.svg | 4 +++ packages/nc-gui/assets/nc-icons/copy.svg | 11 +++++++ packages/nc-gui/assets/nc-icons/download.svg | 6 ++-- packages/nc-gui/assets/nc-icons/duplicate.svg | 6 ++++ packages/nc-gui/assets/nc-icons/edit.svg | 11 +++++++ packages/nc-gui/assets/nc-icons/eye.svg | 2 +- packages/nc-gui/assets/nc-icons/pencil.svg | 10 +++++++ packages/nc-gui/assets/nc-icons/rename.svg | 4 +++ packages/nc-gui/assets/nc-icons/trash.svg | 6 ++++ packages/nc-gui/assets/nc-icons/upload.svg | 6 ++-- .../components/cell/attachment/Modal.vue | 7 +++-- .../dashboard/TreeView/ProjectNode.vue | 4 +-- .../dashboard/TreeView/TableNode.vue | 2 +- .../nc-gui/components/dlg/TableRename.vue | 2 +- packages/nc-gui/components/nc/Pagination.vue | 2 +- .../components/smartsheet/details/Fields.vue | 14 ++++----- .../smartsheet/details/Webhooks.vue | 4 ++- .../components/smartsheet/grid/Table.vue | 2 +- .../components/smartsheet/header/Menu.vue | 2 +- .../smartsheet/sidebar/RenameableMenuItem.vue | 2 +- .../smartsheet/toolbar/ViewActionMenu.vue | 13 ++++----- .../smartsheet/toolbar/ViewActions.vue | 6 ++-- .../components/workspace/ProjectList.vue | 2 +- packages/nc-gui/utils/iconUtils.ts | 29 ++++++++++++++----- 25 files changed, 113 insertions(+), 48 deletions(-) create mode 100644 packages/nc-gui/assets/nc-icons/arrow-down.svg create mode 100644 packages/nc-gui/assets/nc-icons/arrow-up.svg create mode 100644 packages/nc-gui/assets/nc-icons/copy.svg create mode 100644 packages/nc-gui/assets/nc-icons/duplicate.svg create mode 100644 packages/nc-gui/assets/nc-icons/edit.svg create mode 100644 packages/nc-gui/assets/nc-icons/pencil.svg create mode 100644 packages/nc-gui/assets/nc-icons/rename.svg create mode 100644 packages/nc-gui/assets/nc-icons/trash.svg diff --git a/packages/nc-gui/assets/nc-icons/arrow-down.svg b/packages/nc-gui/assets/nc-icons/arrow-down.svg new file mode 100644 index 0000000000..cb6599ab1b --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/arrow-down.svg @@ -0,0 +1,4 @@ + + + + diff --git a/packages/nc-gui/assets/nc-icons/arrow-up.svg b/packages/nc-gui/assets/nc-icons/arrow-up.svg new file mode 100644 index 0000000000..812dbfd386 --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/arrow-up.svg @@ -0,0 +1,4 @@ + + + + diff --git a/packages/nc-gui/assets/nc-icons/copy.svg b/packages/nc-gui/assets/nc-icons/copy.svg new file mode 100644 index 0000000000..c88b1da9a5 --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/copy.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/packages/nc-gui/assets/nc-icons/download.svg b/packages/nc-gui/assets/nc-icons/download.svg index 2403b35d0e..cb7eed4256 100644 --- a/packages/nc-gui/assets/nc-icons/download.svg +++ b/packages/nc-gui/assets/nc-icons/download.svg @@ -1,5 +1,5 @@ - - - + + + diff --git a/packages/nc-gui/assets/nc-icons/duplicate.svg b/packages/nc-gui/assets/nc-icons/duplicate.svg new file mode 100644 index 0000000000..ce9269e3db --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/duplicate.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/packages/nc-gui/assets/nc-icons/edit.svg b/packages/nc-gui/assets/nc-icons/edit.svg new file mode 100644 index 0000000000..fe5c8a9b2b --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/edit.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/packages/nc-gui/assets/nc-icons/eye.svg b/packages/nc-gui/assets/nc-icons/eye.svg index 4477b47d64..3e19595fa4 100644 --- a/packages/nc-gui/assets/nc-icons/eye.svg +++ b/packages/nc-gui/assets/nc-icons/eye.svg @@ -1,4 +1,4 @@ - + diff --git a/packages/nc-gui/assets/nc-icons/pencil.svg b/packages/nc-gui/assets/nc-icons/pencil.svg new file mode 100644 index 0000000000..5e4bc9914e --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/pencil.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/packages/nc-gui/assets/nc-icons/rename.svg b/packages/nc-gui/assets/nc-icons/rename.svg new file mode 100644 index 0000000000..4f3ee84e6b --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/rename.svg @@ -0,0 +1,4 @@ + + + + diff --git a/packages/nc-gui/assets/nc-icons/trash.svg b/packages/nc-gui/assets/nc-icons/trash.svg new file mode 100644 index 0000000000..49e05923ec --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/trash.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/packages/nc-gui/assets/nc-icons/upload.svg b/packages/nc-gui/assets/nc-icons/upload.svg index 0e2e786b63..fa26eb96e0 100644 --- a/packages/nc-gui/assets/nc-icons/upload.svg +++ b/packages/nc-gui/assets/nc-icons/upload.svg @@ -1,5 +1,5 @@ - - - + + + diff --git a/packages/nc-gui/components/cell/attachment/Modal.vue b/packages/nc-gui/components/cell/attachment/Modal.vue index bd5a8d5117..0e0bb4bdf7 100644 --- a/packages/nc-gui/components/cell/attachment/Modal.vue +++ b/packages/nc-gui/components/cell/attachment/Modal.vue @@ -158,8 +158,8 @@ const handleFileDelete = (i: number) => { {{ $t('title.renameFile') }} - - + + @@ -249,7 +249,8 @@ const handleFileDelete = (i: number) => { } } - .nc-attachment-download { + .nc-attachment-download, + .nc-attachment-rename { @apply bg-white absolute bottom-2 right-2; @apply transition-opacity duration-150 ease-in opacity-0 hover:ring; @apply cursor-pointer rounded shadow flex items-center p-1 border-1; diff --git a/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue b/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue index c21832cfd4..1f14ae556e 100644 --- a/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue +++ b/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue @@ -463,7 +463,7 @@ const projectDelete = () => { - + {{ $t('general.rename') }} @@ -717,7 +717,7 @@ const projectDelete = () => { - + {{ $t('general.rename') }} diff --git a/packages/nc-gui/components/dashboard/TreeView/TableNode.vue b/packages/nc-gui/components/dashboard/TreeView/TableNode.vue index 3a120bdc2b..309446907d 100644 --- a/packages/nc-gui/components/dashboard/TreeView/TableNode.vue +++ b/packages/nc-gui/components/dashboard/TreeView/TableNode.vue @@ -268,7 +268,7 @@ const isTableOpened = computed(() => { @click="openRenameTableDialog(table, base.sources[sourceIndex].id)" > - + {{ $t('general.rename') }} diff --git a/packages/nc-gui/components/dlg/TableRename.vue b/packages/nc-gui/components/dlg/TableRename.vue index bcd996fbf1..1b5dd6fc7e 100644 --- a/packages/nc-gui/components/dlg/TableRename.vue +++ b/packages/nc-gui/components/dlg/TableRename.vue @@ -193,7 +193,7 @@ const renameTable = async (undo = false, disableTitleDiffCheck?: boolean | undef - + {{ $t('activity.renameTable') }} diff --git a/packages/nc-gui/components/nc/Pagination.vue b/packages/nc-gui/components/nc/Pagination.vue index fde01c4879..32cc5a0abf 100644 --- a/packages/nc-gui/components/nc/Pagination.vue +++ b/packages/nc-gui/components/nc/Pagination.vue @@ -56,7 +56,7 @@ const pagesList = computed(() => { - + {{ props.firstPageTooltip }} diff --git a/packages/nc-gui/components/smartsheet/details/Fields.vue b/packages/nc-gui/components/smartsheet/details/Fields.vue index 669c27d68f..58595e85e0 100644 --- a/packages/nc-gui/components/smartsheet/details/Fields.vue +++ b/packages/nc-gui/components/smartsheet/details/Fields.vue @@ -5,7 +5,6 @@ import { UITypes, isSystemColumn, isVirtualCol } from 'nocodb-sdk' import Draggable from 'vuedraggable' import { onKeyDown, useMagicKeys } from '@vueuse/core' import type { ColumnType, SelectOptionsType } from 'nocodb-sdk' -import { Icon } from '@iconify/vue' import { type Field, getUniqueColumnName, ref, useSmartsheetStoreOrThrow } from '#imports' interface TableExplorerColumn extends ColumnType { @@ -1054,7 +1053,8 @@ watch( data-testid="nc-field-item-action-duplicate" @click="duplicateField(field)" > - {{ $t('general.duplicate') }} + + {{ $t('general.duplicate') }} - {{ - $t('general.insertAbove') - }} + + {{ $t('general.insertAbove') }} - {{ - $t('general.insertBelow') - }} + + {{ $t('general.insertBelow') }} diff --git a/packages/nc-gui/components/smartsheet/details/Webhooks.vue b/packages/nc-gui/components/smartsheet/details/Webhooks.vue index d26829dee8..3b90d104e4 100644 --- a/packages/nc-gui/components/smartsheet/details/Webhooks.vue +++ b/packages/nc-gui/components/smartsheet/details/Webhooks.vue @@ -265,7 +265,9 @@ watch( @click="copyWebhook(hook)" > {{ $t('general.duplicating') }} - {{ $t('general.duplicate') }} + + {{ $t('general.duplicate') }} + diff --git a/packages/nc-gui/components/smartsheet/grid/Table.vue b/packages/nc-gui/components/smartsheet/grid/Table.vue index f691c95fc1..67f4b53d4f 100644 --- a/packages/nc-gui/components/smartsheet/grid/Table.vue +++ b/packages/nc-gui/components/smartsheet/grid/Table.vue @@ -1712,7 +1712,7 @@ onKeyStroke('ArrowDown', onDown) @click="emits('bulkUpdateDlg')" > - + {{ $t('title.updateSelectedRows') }} diff --git a/packages/nc-gui/components/smartsheet/header/Menu.vue b/packages/nc-gui/components/smartsheet/header/Menu.vue index fe85fe6feb..fa2b8f09be 100644 --- a/packages/nc-gui/components/smartsheet/header/Menu.vue +++ b/packages/nc-gui/components/smartsheet/header/Menu.vue @@ -313,7 +313,7 @@ const isDuplicateAllowed = computed(() => { - + {{ $t('general.edit') }} diff --git a/packages/nc-gui/components/smartsheet/sidebar/RenameableMenuItem.vue b/packages/nc-gui/components/smartsheet/sidebar/RenameableMenuItem.vue index 1962ee0986..f1ef1aa46d 100644 --- a/packages/nc-gui/components/smartsheet/sidebar/RenameableMenuItem.vue +++ b/packages/nc-gui/components/smartsheet/sidebar/RenameableMenuItem.vue @@ -242,7 +242,7 @@ watch(rightSidebarState, () => { - + Rename diff --git a/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue b/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue index 770088290e..59f8de7d24 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue @@ -3,9 +3,6 @@ import type { TableType, ViewType } from 'nocodb-sdk' import { ViewTypes } from 'nocodb-sdk' import { LockType } from '~/lib' -import UploadIcon from '~icons/nc-icons/upload' -import DownloadIcon from '~icons/nc-icons/download' - const props = defineProps<{ view: ViewType table: TableType @@ -167,13 +164,13 @@ const onDelete = async () => { - + {{ $t('activity.renameView') }} {{ $t('msg.info.disabledAsViewLocked') }} - + {{ $t('activity.renameView') }} @@ -197,7 +194,7 @@ const onDelete = async () => { ]" class="nc-base-menu-item group" > - + {{ $t('general.upload') }} @@ -217,7 +214,7 @@ const onDelete = async () => { class="nc-base-menu-item" :class="{ disabled: lockType === LockType.Locked }" > - + {{ `${$t('general.upload')} ${type.toUpperCase()}` }} @@ -235,7 +232,7 @@ const onDelete = async () => { ]" class="nc-base-menu-item group nc-view-context-download-option" > - + {{ $t('general.download') }} diff --git a/packages/nc-gui/components/smartsheet/toolbar/ViewActions.vue b/packages/nc-gui/components/smartsheet/toolbar/ViewActions.vue index 4a6ba370f0..38aaab5515 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/ViewActions.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/ViewActions.vue @@ -1,7 +1,5 @@ - + {{ props.firstPageTooltip }} diff --git a/packages/nc-gui/components/smartsheet/Pagination.vue b/packages/nc-gui/components/smartsheet/Pagination.vue index 5f248727d5..773b32762d 100644 --- a/packages/nc-gui/components/smartsheet/Pagination.vue +++ b/packages/nc-gui/components/smartsheet/Pagination.vue @@ -100,7 +100,7 @@ const renderAltOrOptlKey = () => { 'ml-8': alignLeft, }" > - + Date: Wed, 7 Feb 2024 20:21:19 +0000 Subject: [PATCH 10/11] fix(nc-gui): updated paste icons & removed duplicate icon files --- packages/nc-gui/assets/nc-icons/paste.svg | 4 ++++ packages/nc-gui/utils/iconUtils.ts | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 packages/nc-gui/assets/nc-icons/paste.svg diff --git a/packages/nc-gui/assets/nc-icons/paste.svg b/packages/nc-gui/assets/nc-icons/paste.svg new file mode 100644 index 0000000000..0a46a4c8f8 --- /dev/null +++ b/packages/nc-gui/assets/nc-icons/paste.svg @@ -0,0 +1,4 @@ + + + + diff --git a/packages/nc-gui/utils/iconUtils.ts b/packages/nc-gui/utils/iconUtils.ts index bcb2387305..519c261e75 100644 --- a/packages/nc-gui/utils/iconUtils.ts +++ b/packages/nc-gui/utils/iconUtils.ts @@ -115,6 +115,7 @@ import NcRename from '~icons/nc-icons/rename' import NcDuplicate from '~icons/nc-icons/duplicate' import NcEdit from '~icons/nc-icons/edit' import NcCopy from '~icons/nc-icons/copy' +import NcPaste from '~icons/nc-icons/paste' import NcArrowUp from '~icons/nc-icons/arrow-up' import NcArrowDown from '~icons/nc-icons/arrow-down' import NcUpload from '~icons/nc-icons/upload' @@ -470,7 +471,7 @@ export const iconMap = { role_no_access: NoAccess, commentHere: NcCommentHere, fileImage: FileImageIcon, - paste: h('span', { class: 'material-symbols' }, 'content_paste'), + paste: NcPaste, chevronDown: NcChevronDown, pencil: NcPencil, rename: NcRename, From ab37d5c3382f3e309371abbb85e81ed75ba09fd6 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Wed, 7 Feb 2024 20:21:19 +0000 Subject: [PATCH 11/11] chore(nc-gui): fix typo error --- .../nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue | 2 +- packages/nc-gui/components/smartsheet/toolbar/ViewActions.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue b/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue index 59f8de7d24..65c79b2d6e 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue @@ -232,7 +232,7 @@ const onDelete = async () => { ]" class="nc-base-menu-item group nc-view-context-download-option" > - + {{ $t('general.download') }} diff --git a/packages/nc-gui/components/smartsheet/toolbar/ViewActions.vue b/packages/nc-gui/components/smartsheet/toolbar/ViewActions.vue index 38aaab5515..e95329df8c 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/ViewActions.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/ViewActions.vue @@ -145,7 +145,7 @@ useMenuCloseOnEsc(open) - + {{ $t('general.download') }}