From 718519f164061a059372d1f35c88a453ba1f0819 Mon Sep 17 00:00:00 2001 From: mnenie <121057011+mneniee@users.noreply.github.com> Date: Fri, 24 Jan 2025 19:41:18 +0300 Subject: [PATCH] feat(unocss): add overrides and update components --- .../__snapshots__/HeaderWelcome.spec.ts.snap | 4 +-- .../__snapshots__/WorkSpace.spec.ts.snap | 4 +-- .../core/components/headers/HeaderMain.vue | 8 +++--- .../core/components/headers/HeaderWelcome.vue | 3 +- .../src/core/components/headers/UserMenu.vue | 14 +++------- .../headers/system/LanguageSelect.vue | 2 +- .../headers/system/ThemeSwitcher.vue | 4 +-- .../src/core/components/sidebar/InfoMenu.vue | 10 +++---- .../components/sidebar/IntegrationItems.vue | 6 ++-- .../src/core/components/sidebar/WorkSpace.vue | 6 ++-- .../core/components/sidebar/plan/PlanCard.vue | 8 ++++-- .../components/sidebar/plan/SubscribePlan.vue | 2 +- .../auth/components/forms/WorkspaceForm.vue | 4 +-- .../boards/components/BoardsDataTable.vue | 3 +- .../boards/components/NewBoardDialog.vue | 2 +- .../components/features/handlers/AddBoard.vue | 5 ++-- .../features/handlers/RemoveBoard.vue | 7 ++--- .../filters/BoardsAdvancedFilter.vue | 2 +- .../boards/components/filters/BoardsSort.vue | 2 +- .../components/filters/SearchBoards.vue | 2 +- .../components/forms/CreateBoardForm.vue | 10 ++++--- .../common/components/EmptyContainer.vue | 6 ++-- .../components/controls/TableControls.vue | 6 ++-- .../components/dialogs/HotkeysDialog.vue | 2 +- .../common/components/dialogs/ShareDialog.vue | 2 +- .../modules/editor/components/CommandMenu.vue | 2 +- .../components/menu/AdditionalItems.vue | 6 ++-- .../editor/components/menu/AiOffer.vue | 4 +-- .../editor/components/menu/AlignmentItems.vue | 28 ------------------- .../editor/components/menu/ListItems.vue | 27 ------------------ .../components/menu/TextHighlighter.vue | 1 + .../editor/components/menu/TextLink.vue | 12 ++++---- .../editor/components/menu/TextStyleItems.vue | 6 ++-- .../src/modules/editor/styles/index.css | 12 ++++---- .../src/modules/notes/components/NoteCard.vue | 6 ++-- .../modules/notes/components/NoteDialog.vue | 2 +- .../components/features/ManageNoteOptions.vue | 8 +++--- .../components/features/handlers/AddNote.vue | 5 ++-- .../features/handlers/RemoveNote.vue | 6 ++-- .../notes/components/filters/NotesSort.vue | 2 +- .../notes/components/filters/SearchNotes.vue | 2 +- .../modules/search/components/PanelItems.vue | 2 +- .../modules/search/components/SearchBox.vue | 2 +- .../search/components/SearchFilter.vue | 10 +++---- .../modules/search/components/SearchItem.vue | 2 +- .../__snapshots__/AboutSection.spec.ts.snap | 6 ++-- .../components/sections/AboutSection.vue | 5 ++-- .../workspace/components/WorkspaceMenu.vue | 8 +++--- .../client/src/shared/ui/_shortcuts/button.ts | 2 +- .../src/shared/ui/_shortcuts/command.ts | 10 +++---- .../client/src/shared/ui/_shortcuts/dialog.ts | 2 +- .../src/shared/ui/_shortcuts/dropdown-menu.ts | 8 +++--- apps/client/src/shared/ui/_shortcuts/input.ts | 2 +- .../client/src/shared/ui/_shortcuts/picker.ts | 2 +- .../src/shared/ui/_shortcuts/pin-input.ts | 2 +- .../client/src/shared/ui/_shortcuts/select.ts | 2 +- apps/client/src/shared/ui/_shortcuts/table.ts | 12 ++++---- apps/client/src/shared/ui/_shortcuts/tabs.ts | 2 +- .../src/shared/ui/_shortcuts/tags-input.ts | 6 ++-- apps/client/src/shared/ui/alert/UiAlert.vue | 2 +- .../__snapshots__/UiButton.spec.ts.snap | 2 +- apps/client/src/shared/ui/button/index.ts | 8 +++--- .../__snapshots__/UiPagination.spec.ts.snap | 8 +++--- apps/client/uno.config.ts | 7 +++++ 64 files changed, 158 insertions(+), 207 deletions(-) delete mode 100644 apps/client/src/modules/editor/components/menu/AlignmentItems.vue delete mode 100644 apps/client/src/modules/editor/components/menu/ListItems.vue diff --git a/apps/client/src/core/__tests__/__snapshots__/HeaderWelcome.spec.ts.snap b/apps/client/src/core/__tests__/__snapshots__/HeaderWelcome.spec.ts.snap index 3692f472..434f047c 100644 --- a/apps/client/src/core/__tests__/__snapshots__/HeaderWelcome.spec.ts.snap +++ b/apps/client/src/core/__tests__/__snapshots__/HeaderWelcome.spec.ts.snap @@ -23,8 +23,8 @@ exports[`tests for HeaderWelcome.vue > should be render correctly 1`] = `
- - + +
" diff --git a/apps/client/src/core/__tests__/__snapshots__/WorkSpace.spec.ts.snap b/apps/client/src/core/__tests__/__snapshots__/WorkSpace.spec.ts.snap index 35d141b0..ae6ddb43 100644 --- a/apps/client/src/core/__tests__/__snapshots__/WorkSpace.spec.ts.snap +++ b/apps/client/src/core/__tests__/__snapshots__/WorkSpace.spec.ts.snap @@ -1,9 +1,9 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`tests for WorkSpace.vue > should be render correctly 1`] = ` -"
" `; diff --git a/apps/client/src/core/components/headers/HeaderMain.vue b/apps/client/src/core/components/headers/HeaderMain.vue index 5a3c1b75..51374797 100644 --- a/apps/client/src/core/components/headers/HeaderMain.vue +++ b/apps/client/src/core/components/headers/HeaderMain.vue @@ -48,7 +48,7 @@ const { active } = useLayoutPaths(links, _projects) class="sticky top-0 left-0 right-0 z-999 w-full flex items-center justify-between px-15px py-8px min-h-52px max-h-52px border-b border-b-solid border-layout" > -
+
{{ $t('header.share') }} @@ -79,14 +79,14 @@ const { active } = useLayoutPaths(links, _projects)
diff --git a/apps/client/src/core/components/headers/HeaderWelcome.vue b/apps/client/src/core/components/headers/HeaderWelcome.vue index 9f17ea63..8b2b483f 100644 --- a/apps/client/src/core/components/headers/HeaderWelcome.vue +++ b/apps/client/src/core/components/headers/HeaderWelcome.vue @@ -90,13 +90,14 @@ const { width } = useWindowSize()
{{ t('welcome.header.login') }} - + {{ t('welcome.header.reg') }}
diff --git a/apps/client/src/core/components/headers/UserMenu.vue b/apps/client/src/core/components/headers/UserMenu.vue index be3a5d4c..a163c3e2 100644 --- a/apps/client/src/core/components/headers/UserMenu.vue +++ b/apps/client/src/core/components/headers/UserMenu.vue @@ -7,8 +7,6 @@ import { UiDropdownMenuContent, UiDropdownMenuGroup, UiDropdownMenuItem, - UiDropdownMenuLabel, - UiDropdownMenuSeparator, UiDropdownMenuShortcut, UiDropdownMenuTrigger, } from '@/shared/ui' @@ -32,22 +30,18 @@ watch([meta_x, ctrl_x], () => {
- - - test@gmail.com - - + - {{ $t('header.user.welcome') }} + {{ $t('header.user.welcome') }} ⇧P - {{ $t('header.user.logout') }} + {{ $t('header.user.logout') }} ⌘X diff --git a/apps/client/src/core/components/headers/system/LanguageSelect.vue b/apps/client/src/core/components/headers/system/LanguageSelect.vue index 2eb4da0d..acf1fa1f 100644 --- a/apps/client/src/core/components/headers/system/LanguageSelect.vue +++ b/apps/client/src/core/components/headers/system/LanguageSelect.vue @@ -36,7 +36,7 @@ const { setLanguage } = useLanguage(locales, language) class="p-1.5 px-2.5 h-fit gap-1 text-neutral-400 hover:text-neutral-700 dark:!text-neutral-400 dark:hover:!text-neutral-200" >
- {{ i18nLanguage }} + {{ i18nLanguage }} diff --git a/apps/client/src/core/components/headers/system/ThemeSwitcher.vue b/apps/client/src/core/components/headers/system/ThemeSwitcher.vue index bc37020e..309d2502 100644 --- a/apps/client/src/core/components/headers/system/ThemeSwitcher.vue +++ b/apps/client/src/core/components/headers/system/ThemeSwitcher.vue @@ -13,7 +13,7 @@ const toggleDark = useToggle(isDark) class="p-2 gap-1 text-neutral-400 hover:text-neutral-700 dark:!text-neutral-400 dark:hover:!text-neutral-200" @click="toggleDark()" > -
-
+
+
diff --git a/apps/client/src/core/components/sidebar/InfoMenu.vue b/apps/client/src/core/components/sidebar/InfoMenu.vue index 0a5e322c..8c7ee152 100644 --- a/apps/client/src/core/components/sidebar/InfoMenu.vue +++ b/apps/client/src/core/components/sidebar/InfoMenu.vue @@ -27,8 +27,8 @@ const [DifineTemplate, ReuseTemplate] = createReusableTemplate()