diff --git a/packages/nc-gui-v2/.eslintrc.js b/packages/nc-gui-v2/.eslintrc.js index 140e59ec6a..f7291c452f 100644 --- a/packages/nc-gui-v2/.eslintrc.js +++ b/packages/nc-gui-v2/.eslintrc.js @@ -2,6 +2,11 @@ const baseRules = { 'vue/no-setup-props-destructure': 0, 'no-console': 0, 'antfu/if-newline': 0, + 'no-unused-vars': 0, + '@typescript-eslint/no-unused-vars': [ + 'error', + { argsIgnorePattern: '^_', varsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' }, + ], 'prettier/prettier': ['error', {}, { usePrettierrc: true }], } diff --git a/packages/nc-gui-v2/app.vue b/packages/nc-gui-v2/app.vue index 3fe585a1a1..28c63b040c 100644 --- a/packages/nc-gui-v2/app.vue +++ b/packages/nc-gui-v2/app.vue @@ -1,96 +1,5 @@ - - diff --git a/packages/nc-gui-v2/assets/style-v2.scss b/packages/nc-gui-v2/assets/style-v2.scss index 462ee5f05b..9bc1f12ce1 100644 --- a/packages/nc-gui-v2/assets/style-v2.scss +++ b/packages/nc-gui-v2/assets/style-v2.scss @@ -2,7 +2,7 @@ @import 'ant-design-vue/dist/antd.min.css'; :root { - --header-height: 56px; + --header-height: 50px; } .ant-layout-header { @@ -18,7 +18,7 @@ main { } main { - @apply flex-0 w-full relative scrollbar-thin-primary; + @apply flex-0 w-full relative scrollbar-thin-dull; overflow-x: hidden; } @@ -75,7 +75,7 @@ html { // menu item styling .nc-menu-item { - @apply cursor-pointer text-xs flex align-center gap-2 px-4 py-3 relative after:(content-[''] absolute top-0 left-0 w-full h-full right 0 bg-current opacity-0 transition transition-opactity duration-100) hover:(after:(opacity-5)); + @apply cursor-pointer text-xs flex items-center gap-2 px-4 py-3 after:(content-[''] absolute top-0 left-0 bottom-0 w-full h-full right-0 bg-current opacity-0 transition transition-opactity duration-100) hover:(after:(opacity-5)); } .nc-sidebar-right-item { @@ -106,5 +106,5 @@ html { } .ant-modal-wrap { - @apply !scrollbar-thin-primary; + @apply !scrollbar-thin-dull; } diff --git a/packages/nc-gui-v2/components.d.ts b/packages/nc-gui-v2/components.d.ts index 0e5864cd54..208e7f88ab 100644 --- a/packages/nc-gui-v2/components.d.ts +++ b/packages/nc-gui-v2/components.d.ts @@ -23,6 +23,7 @@ declare module '@vue/runtime-core' { AEmpty: typeof import('ant-design-vue/es')['Empty'] AForm: typeof import('ant-design-vue/es')['Form'] AFormItem: typeof import('ant-design-vue/es')['FormItem'] + AImage: typeof import('ant-design-vue/es')['Image'] AInput: typeof import('ant-design-vue/es')['Input'] AInputNumber: typeof import('ant-design-vue/es')['InputNumber'] AInputPassword: typeof import('ant-design-vue/es')['InputPassword'] @@ -40,14 +41,12 @@ declare module '@vue/runtime-core' { AMenuItemGroup: typeof import('ant-design-vue/es')['MenuItemGroup'] AModal: typeof import('ant-design-vue/es')['Modal'] APagination: typeof import('ant-design-vue/es')['Pagination'] - APopconfirm: typeof import('ant-design-vue/es')['Popconfirm'] ARadio: typeof import('ant-design-vue/es')['Radio'] ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup'] ARate: typeof import('ant-design-vue/es')['Rate'] ARow: typeof import('ant-design-vue/es')['Row'] ASelect: typeof import('ant-design-vue/es')['Select'] ASelectOption: typeof import('ant-design-vue/es')['SelectOption'] - ASkeleton: typeof import('ant-design-vue/es')['Skeleton'] ASkeletonImage: typeof import('ant-design-vue/es')['SkeletonImage'] ASpin: typeof import('ant-design-vue/es')['Spin'] ASubMenu: typeof import('ant-design-vue/es')['SubMenu'] @@ -61,12 +60,68 @@ declare module '@vue/runtime-core' { ATooltip: typeof import('ant-design-vue/es')['Tooltip'] ATypographyTitle: typeof import('ant-design-vue/es')['TypographyTitle'] AUploadDragger: typeof import('ant-design-vue/es')['UploadDragger'] + CilFullscreen: typeof import('~icons/cil/fullscreen')['default'] + CilFullscreenExit: typeof import('~icons/cil/fullscreen-exit')['default'] + IcOutlineInsertDriveFile: typeof import('~icons/ic/outline-insert-drive-file')['default'] + IcRoundKeyboardArrowDown: typeof import('~icons/ic/round-keyboard-arrow-down')['default'] + MaterialSymbolsArrowBackRounded: typeof import('~icons/material-symbols/arrow-back-rounded')['default'] + MaterialSymbolsArrowForwardRounded: typeof import('~icons/material-symbols/arrow-forward-rounded')['default'] + MaterialSymbolsAttachFile: typeof import('~icons/material-symbols/attach-file')['default'] + MaterialSymbolsChevronLeftRounded: typeof import('~icons/material-symbols/chevron-left-rounded')['default'] + MaterialSymbolsChevronRightRounded: typeof import('~icons/material-symbols/chevron-right-rounded')['default'] + MaterialSymbolsFileCopyOutline: typeof import('~icons/material-symbols/file-copy-outline')['default'] MaterialSymbolsMenu: typeof import('~icons/material-symbols/menu')['default'] + MaterialSymbolsTranslate: typeof import('~icons/material-symbols/translate')['default'] + MdiAccountGroup: typeof import('~icons/mdi/account-group')['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'] + MdiCardsHeart: typeof import('~icons/mdi/cards-heart')['default'] + MdiCellphoneMessage: typeof import('~icons/mdi/cellphone-message')['default'] + MdiChat: typeof import('~icons/mdi/chat')['default'] + MdiCheck: typeof import('~icons/mdi/check')['default'] + MdiChevronDown: typeof import('~icons/mdi/chevron-down')['default'] + MdiCloseCircle: typeof import('~icons/mdi/close-circle')['default'] + MdiContentCopy: typeof import('~icons/mdi/content-copy')['default'] + MdiContentSave: typeof import('~icons/mdi/content-save')['default'] + MdiDatabase: typeof import('~icons/mdi/database')['default'] + MdiDeleteOutline: typeof import('~icons/mdi/delete-outline')['default'] + MdiDiscord: typeof import('~icons/mdi/discord')['default'] MdiDotsVertical: typeof import('~icons/mdi/dots-vertical')['default'] + MdiDownload: typeof import('~icons/mdi/download')['default'] + MdiDrag: typeof import('~icons/mdi/drag')['default'] + MdiEmail: typeof import('~icons/mdi/email')['default'] + MdiEyeOffOutline: typeof import('~icons/mdi/eye-off-outline')['default'] + MdiFlag: typeof import('~icons/mdi/flag')['default'] + MdiFolder: typeof import('~icons/mdi/folder')['default'] + MdiFunction: typeof import('~icons/mdi/function')['default'] + MdiGestureDoubleTap: typeof import('~icons/mdi/gesture-double-tap')['default'] + MdiHeart: typeof import('~icons/mdi/heart')['default'] + MdiHook: typeof import('~icons/mdi/hook')['default'] + MdiInformation: typeof import('~icons/mdi/information')['default'] + MdiLink: typeof import('~icons/mdi/link')['default'] + MdiLinkVariantRemove: typeof import('~icons/mdi/link-variant-remove')['default'] MdiLogout: typeof import('~icons/mdi/logout')['default'] + MdiMagnify: typeof import('~icons/mdi/magnify')['default'] + MdiMenuDown: typeof import('~icons/mdi/menu-down')['default'] + MdiMicrosoftTeams: typeof import('~icons/mdi/microsoft-teams')['default'] + MdiMoonFull: typeof import('~icons/mdi/moon-full')['default'] + MdiNotebookCheckOutline: typeof import('~icons/mdi/notebook-check-outline')['default'] + MdiOpenInNew: typeof import('~icons/mdi/open-in-new')['default'] + MdiPlus: typeof import('~icons/mdi/plus')['default'] + MdiPlusOutline: typeof import('~icons/mdi/plus-outline')['default'] MdiReload: typeof import('~icons/mdi/reload')['default'] - MdiTableArrowRight: typeof import('~icons/mdi/table-arrow-right')['default'] + MdiShieldLockOutline: typeof import('~icons/mdi/shield-lock-outline')['default'] + MdiSlack: typeof import('~icons/mdi/slack')['default'] + MdiStar: typeof import('~icons/mdi/star')['default'] + MdiStore: typeof import('~icons/mdi/store')['default'] + MdiTableBorder: typeof import('~icons/mdi/table-border')['default'] + MdiThumbUp: typeof import('~icons/mdi/thumb-up')['default'] + MdiTrashCan: typeof import('~icons/mdi/trash-can')['default'] + MdiWhatsapp: typeof import('~icons/mdi/whatsapp')['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/cell/Currency.vue b/packages/nc-gui-v2/components/cell/Currency.vue index 54bfdc53d2..85cdd3cf63 100644 --- a/packages/nc-gui-v2/components/cell/Currency.vue +++ b/packages/nc-gui-v2/components/cell/Currency.vue @@ -1,4 +1,5 @@