From ad5a97b8443a1b83afdb1f5ad92a219f197e0d49 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Sat, 22 Feb 2025 14:03:13 +0300 Subject: [PATCH] R: Remove redundant types and styles --- .../src/app/Navigation/Navigation.tsx | 11 +++--- .../src/app/Navigation/NavigationButton.tsx | 4 +- .../src/app/Navigation/UserDropdown.tsx | 7 ++-- .../frontend/src/backend/apiTransport.ts | 4 +- rsconcept/frontend/src/backend/queryClient.ts | 4 +- .../src/components/Container/FlexColumn.tsx | 4 +- .../src/components/Control/Button.tsx | 10 ++--- .../src/components/Control/SelectorButton.tsx | 9 +---- .../src/components/DataTable/DataTable.tsx | 6 +-- .../src/components/DataTable/TableBody.tsx | 8 ++-- .../frontend/src/components/InfoError.tsx | 2 +- .../src/components/Input/Checkbox.tsx | 4 +- .../src/components/Input/CheckboxTristate.tsx | 3 +- .../src/components/Input/FileInput.tsx | 4 +- .../frontend/src/components/Input/Label.tsx | 4 +- .../src/components/Input/SearchBar.tsx | 4 +- .../src/components/Input/SelectTree.tsx | 6 +-- .../src/components/Input/TextArea.tsx | 16 +++++--- .../src/components/Input/TextInput.tsx | 14 ++++--- .../src/components/Modal/ModalForm.tsx | 2 +- .../frontend/src/components/View/NoData.tsx | 4 +- .../src/components/View/ValueIcon.tsx | 4 +- rsconcept/frontend/src/components/props.d.ts | 37 +------------------ .../auth/pages/PasswordChangePage.tsx | 5 --- .../features/help/components/BadgeHelp.tsx | 2 +- .../features/help/components/LinkTopic.tsx | 2 +- .../features/help/components/TopicItem.tsx | 2 +- .../help/pages/ManualsPage/TopicsList.tsx | 2 +- .../help/pages/ManualsPage/ViewTopic.tsx | 2 +- .../src/features/library/backend/api.ts | 2 +- .../library/backend/useSetAccessPolicy.tsx | 2 +- .../library/components/EditorLibraryItem.tsx | 3 +- .../library/components/MiniSelectorOSS.tsx | 6 +-- .../library/components/PickSchema.tsx | 6 +-- .../library/components/SelectLocation.tsx | 8 ++-- .../components/SelectLocationContext.tsx | 4 +- .../library/components/ToolbarItemAccess.tsx | 2 +- .../frontend/src/features/library/labels.ts | 2 +- .../pages/LibraryPage/TableLibraryItems.tsx | 5 +-- .../pages/LibraryPage/ToolbarSearch.tsx | 3 +- .../pages/LibraryPage/ViewSideLocation.tsx | 5 +-- .../features/library/stores/librarySearch.ts | 2 +- .../frontend/src/features/oss/models/oss.ts | 2 +- .../pages/OssPage/EditorOssGraph/OssFlow.tsx | 5 +-- .../rsform/components/InfoConstituenta.tsx | 3 +- .../rsform/components/RSInput/utils.ts | 2 +- .../rsform/components/RefsInput/utils.ts | 2 +- .../components/ToolbarGraphSelection.tsx | 2 +- .../DlgEditWordForms/DlgEditWordForms.tsx | 2 +- .../features/rsform/dialogs/DlgRenameCst.tsx | 2 +- .../dialogs/DlgShowTypeGraph/MGraphFlow.tsx | 2 +- .../src/features/rsform/models/rsform.ts | 4 +- .../src/features/rsform/models/rslang.ts | 2 +- .../src/features/rsform/models/rslangAPI.ts | 4 +- .../EditorConstituenta/FormConstituenta.tsx | 6 +-- .../EditorRSExpression/EditorRSExpression.tsx | 5 +-- .../EditorRSExpression/RSTokenButton.tsx | 2 +- .../ToolbarRSExpression.tsx | 5 +-- .../RSFormPage/EditorRSList/TableRSList.tsx | 5 +-- .../RSFormPage/EditorTermGraph/TGFlow.tsx | 7 ++-- .../RSFormPage/EditorTermGraph/ViewHidden.tsx | 3 +- rsconcept/frontend/src/styling/styles.css | 6 +-- rsconcept/frontend/src/utils/codemirror.ts | 4 +- rsconcept/frontend/src/utils/utils.ts | 2 +- rsconcept/frontend/tests/mocks/auth.ts | 2 +- rsconcept/frontend/vite.config.ts | 6 +-- 66 files changed, 130 insertions(+), 191 deletions(-) diff --git a/rsconcept/frontend/src/app/Navigation/Navigation.tsx b/rsconcept/frontend/src/app/Navigation/Navigation.tsx index c0a6abb8..887ec111 100644 --- a/rsconcept/frontend/src/app/Navigation/Navigation.tsx +++ b/rsconcept/frontend/src/app/Navigation/Navigation.tsx @@ -1,7 +1,6 @@ import clsx from 'clsx'; import { IconLibrary2, IconManuals, IconNewItem2 } from '@/components/Icons'; -import { type EventMouse } from '@/components/props'; import { useWindowSize } from '@/hooks/useWindowSize'; import { useAppLayoutStore } from '@/stores/appLayout'; import { PARAMETER } from '@/utils/constants'; @@ -19,10 +18,12 @@ export function Navigation() { const size = useWindowSize(); const noNavigationAnimation = useAppLayoutStore(state => state.noNavigationAnimation); - const navigateHome = (event: EventMouse) => router.push(urls.home, event.ctrlKey || event.metaKey); - const navigateLibrary = (event: EventMouse) => router.push(urls.library, event.ctrlKey || event.metaKey); - const navigateHelp = (event: EventMouse) => router.push(urls.manuals, event.ctrlKey || event.metaKey); - const navigateCreateNew = (event: EventMouse) => router.push(urls.create_schema, event.ctrlKey || event.metaKey); + const navigateHome = (event: React.MouseEvent) => router.push(urls.home, event.ctrlKey || event.metaKey); + const navigateLibrary = (event: React.MouseEvent) => + router.push(urls.library, event.ctrlKey || event.metaKey); + const navigateHelp = (event: React.MouseEvent) => router.push(urls.manuals, event.ctrlKey || event.metaKey); + const navigateCreateNew = (event: React.MouseEvent) => + router.push(urls.create_schema, event.ctrlKey || event.metaKey); return (