From 3e4d67c9a03cd22f30479c7a473ce0602a165611 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Wed, 19 Feb 2025 23:29:45 +0300 Subject: [PATCH] R: Remove all default exports --- .../frontend/src/app/ApplicationLayout.tsx | 4 +- rsconcept/frontend/src/app/GlobalDialogs.tsx | 132 +++++++++++++++--- .../frontend/src/app/GlobalProviders.tsx | 4 +- rsconcept/frontend/src/app/GlobalTooltips.tsx | 2 +- rsconcept/frontend/src/app/MutationErrors.tsx | 2 +- .../frontend/src/app/Navigation/Logo.tsx | 5 +- .../src/app/Navigation/Navigation.tsx | 10 +- .../src/app/Navigation/NavigationButton.tsx | 4 +- .../src/app/Navigation/ToggleNavigation.tsx | 4 +- .../src/app/Navigation/UserButton.tsx | 6 +- .../src/app/Navigation/UserDropdown.tsx | 4 +- .../frontend/src/app/Navigation/UserMenu.tsx | 8 +- rsconcept/frontend/src/app/Router.tsx | 10 +- rsconcept/frontend/src/app/index.tsx | 4 +- .../src/components/DataTable/DataTable.tsx | 14 +- .../components/DataTable/DefaultNoData.tsx | 4 +- .../components/DataTable/PaginationTools.tsx | 4 +- .../src/components/DataTable/SelectAll.tsx | 4 +- .../src/components/DataTable/SelectRow.tsx | 4 +- .../src/components/DataTable/SortingIcon.tsx | 4 +- .../src/components/DataTable/TableBody.tsx | 6 +- .../src/components/DataTable/TableFooter.tsx | 4 +- .../src/components/DataTable/TableHeader.tsx | 8 +- .../src/components/DataTable/index.tsx | 2 +- .../src/components/Dropdown/useDropdown.ts | 2 +- .../src/components/Flow/DynamicEdge.tsx | 4 +- .../src/components/Input/SelectMulti.tsx | 2 +- .../src/components/Input/SelectSingle.tsx | 2 +- .../src/components/Modal/ModalForm.tsx | 2 +- .../src/components/Modal/ModalView.tsx | 2 +- .../src/components/View/PDFViewer.tsx | 2 +- .../src/features/auth/pages/LoginPage.tsx | 6 +- .../auth/pages/PasswordChangePage.tsx | 2 +- .../features/help/components/BadgeHelp.tsx | 4 +- .../features/help/components/InfoCstClass.tsx | 4 +- .../help/components/InfoCstStatus.tsx | 4 +- .../src/features/help/items/HelpAccess.tsx | 4 +- .../src/features/help/items/HelpConcept.tsx | 4 +- .../src/features/help/items/HelpExteor.tsx | 4 +- .../src/features/help/items/HelpInfo.tsx | 4 +- .../src/features/help/items/HelpInterface.tsx | 4 +- .../src/features/help/items/HelpMain.tsx | 4 +- .../src/features/help/items/HelpRSLang.tsx | 6 +- .../help/items/HelpTerminologyControl.tsx | 4 +- .../src/features/help/items/HelpThesaurus.tsx | 4 +- .../src/features/help/items/HelpVersions.tsx | 4 +- .../features/help/items/cc/HelpConceptOSS.tsx | 4 +- .../help/items/cc/HelpConceptPropagation.tsx | 4 +- .../help/items/cc/HelpConceptRelations.tsx | 4 +- .../help/items/cc/HelpConceptSynthesis.tsx | 4 +- .../help/items/cc/HelpConceptSystem.tsx | 4 +- .../help/items/cc/HelpCstAttributes.tsx | 4 +- .../src/features/help/items/info/HelpAPI.tsx | 4 +- .../help/items/info/HelpContributors.tsx | 4 +- .../features/help/items/info/HelpPrivacy.tsx | 4 +- .../features/help/items/info/HelpRules.tsx | 4 +- .../help/items/rslang/HelpRSLangCorrect.tsx | 4 +- .../help/items/rslang/HelpRSLangInterpret.tsx | 4 +- .../items/rslang/HelpRSLangOperations.tsx | 4 +- .../help/items/rslang/HelpRSLangTemplates.tsx | 4 +- .../help/items/rslang/HelpRSLangTypes.tsx | 4 +- .../features/help/items/ui/HelpCstClass.tsx | 6 +- .../features/help/items/ui/HelpCstStatus.tsx | 6 +- .../help/items/ui/HelpFormulaTree.tsx | 4 +- .../features/help/items/ui/HelpLibrary.tsx | 4 +- .../features/help/items/ui/HelpOssGraph.tsx | 4 +- .../src/features/help/items/ui/HelpRSCard.tsx | 4 +- .../features/help/items/ui/HelpRSEditor.tsx | 4 +- .../help/items/ui/HelpRSGraphTerm.tsx | 4 +- .../src/features/help/items/ui/HelpRSList.tsx | 6 +- .../src/features/help/items/ui/HelpRSMenu.tsx | 4 +- .../help/items/ui/HelpRelocateCst.tsx | 4 +- .../help/items/ui/HelpSubstitutions.tsx | 4 +- .../features/help/items/ui/HelpTypeGraph.tsx | 4 +- .../help/pages/ManualsPage/ManualsPage.tsx | 6 +- .../help/pages/ManualsPage/TopicPage.tsx | 82 ++++++----- .../help/pages/ManualsPage/TopicsDropdown.tsx | 4 +- .../help/pages/ManualsPage/TopicsList.tsx | 10 +- .../help/pages/ManualsPage/TopicsStatic.tsx | 4 +- .../help/pages/ManualsPage/ViewTopic.tsx | 6 +- .../frontend/src/features/home/HomePage.tsx | 4 +- .../src/features/home/NotFoundPage.tsx | 2 - .../library/components/BadgeLocation.tsx | 4 +- .../library/components/PickSchema.tsx | 4 +- .../library/components/SelectLocation.tsx | 4 +- .../components/SelectLocationContext.tsx | 2 +- .../library/dialogs/DlgChangeLocation.tsx | 4 +- .../library/dialogs/DlgCloneLibraryItem.tsx | 4 +- .../library/dialogs/DlgCreateVersion.tsx | 4 +- .../dialogs/DlgEditEditors/DlgEditEditors.tsx | 4 +- .../library/dialogs/DlgEditEditors/index.tsx | 2 +- .../DlgEditVersions/DlgEditVersions.tsx | 6 +- .../dialogs/DlgEditVersions/TableVersions.tsx | 6 +- .../library/dialogs/DlgEditVersions/index.tsx | 2 +- .../pages/CreateItemPage/CreateItemPage.tsx | 6 +- .../pages/CreateItemPage/FormCreateItem.tsx | 4 +- .../library/pages/CreateItemPage/index.tsx | 2 +- .../library/pages/LibraryPage/LibraryPage.tsx | 6 +- .../pages/LibraryPage/TableLibraryItems.tsx | 10 +- .../pages/LibraryPage/ToolbarSearch.tsx | 4 +- .../pages/LibraryPage/ViewSideLocation.tsx | 8 +- .../oss/components/PickMultiOperation.tsx | 2 +- .../oss/components/TooltipOperation.tsx | 6 +- .../oss/dialogs/DlgChangeInputSchema.tsx | 4 +- .../DlgCreateOperation/DlgCreateOperation.tsx | 8 +- .../DlgCreateOperation/TabInputOperation.tsx | 4 +- .../TabSynthesisOperation.tsx | 4 +- .../oss/dialogs/DlgCreateOperation/index.tsx | 2 +- .../oss/dialogs/DlgDeleteOperation.tsx | 4 +- .../DlgEditOperation/DlgEditOperation.tsx | 10 +- .../dialogs/DlgEditOperation/TabArguments.tsx | 4 +- .../dialogs/DlgEditOperation/TabOperation.tsx | 4 +- .../dialogs/DlgEditOperation/TabSynthesis.tsx | 4 +- .../oss/dialogs/DlgEditOperation/index.tsx | 2 +- .../oss/dialogs/DlgRelocateConstituents.tsx | 4 +- .../OssPage/EditorOssCard/EditorOssCard.tsx | 8 +- .../pages/OssPage/EditorOssCard/FormOSS.tsx | 4 +- .../pages/OssPage/EditorOssCard/OssStats.tsx | 4 +- .../oss/pages/OssPage/EditorOssCard/index.tsx | 2 +- .../OssPage/EditorOssGraph/EditorOssGraph.tsx | 6 +- .../EditorOssGraph/NodeContextMenu.tsx | 6 +- .../pages/OssPage/EditorOssGraph/OssFlow.tsx | 8 +- .../EditorOssGraph/ToolbarOssGraph.tsx | 4 +- .../EditorOssGraph/graph/InputNode.tsx | 6 +- .../OssPage/EditorOssGraph/graph/NodeCore.tsx | 6 +- .../EditorOssGraph/graph/OperationNode.tsx | 6 +- .../EditorOssGraph/graph/OssNodeTypes.ts | 4 +- .../pages/OssPage/EditorOssGraph/index.tsx | 2 +- .../oss/pages/OssPage/MenuOssTabs.tsx | 4 +- .../features/oss/pages/OssPage/OssPage.tsx | 4 +- .../features/oss/pages/OssPage/OssTabs.tsx | 14 +- .../rsform/components/BadgeGrammeme.tsx | 4 +- .../rsform/components/BadgeWordForm.tsx | 2 +- .../rsform/components/InfoConstituenta.tsx | 4 +- .../rsform/components/PickConstituenta.tsx | 2 +- .../components/PickMultiConstituenta.tsx | 4 +- .../rsform/components/PickSubstitutions.tsx | 2 +- .../rsform/components/SelectWordForm.tsx | 3 +- .../components/ToolbarGraphSelection.tsx | 4 +- .../WordformButton.tsx | 6 +- .../dialogs/DlgCreateCst/DlgCreateCst.tsx | 6 +- .../dialogs/DlgCreateCst/FormCreateCst.tsx | 4 +- .../rsform/dialogs/DlgCreateCst/index.tsx | 2 +- .../dialogs/DlgCstTemplate/DlgCstTemplate.tsx | 10 +- .../dialogs/DlgCstTemplate/TabArguments.tsx | 6 +- .../dialogs/DlgCstTemplate/TabTemplate.tsx | 4 +- .../rsform/dialogs/DlgCstTemplate/index.tsx | 2 +- .../dialogs/DlgDeleteCst/DlgDeleteCst.tsx | 6 +- .../dialogs/DlgDeleteCst/ListConstituents.tsx | 4 +- .../rsform/dialogs/DlgDeleteCst/index.tsx | 2 +- .../DlgEditReference/DlgEditReference.tsx | 4 +- .../rsform/dialogs/DlgEditReference/index.tsx | 2 +- .../DlgEditWordForms/DlgEditWordForms.tsx | 4 +- .../DlgEditWordForms/TableWordForms.tsx | 2 +- .../rsform/dialogs/DlgEditWordForms/index.tsx | 2 +- .../rsform/dialogs/DlgGraphParams.tsx | 4 +- .../DlgInlineSynthesis/DlgInlineSynthesis.tsx | 10 +- .../DlgInlineSynthesis/TabConstituents.tsx | 4 +- .../dialogs/DlgInlineSynthesis/TabSource.tsx | 4 +- .../DlgInlineSynthesis/TabSubstitutions.tsx | 4 +- .../dialogs/DlgInlineSynthesis/index.tsx | 2 +- .../features/rsform/dialogs/DlgRenameCst.tsx | 4 +- .../rsform/dialogs/DlgShowAST/ASTFlow.tsx | 4 +- .../rsform/dialogs/DlgShowAST/DlgShowAST.tsx | 6 +- .../dialogs/DlgShowAST/graph/ASTEdgeTypes.ts | 2 +- .../dialogs/DlgShowAST/graph/ASTNode.tsx | 4 +- .../dialogs/DlgShowAST/graph/ASTNodeTypes.ts | 2 +- .../rsform/dialogs/DlgShowAST/index.tsx | 2 +- .../src/features/rsform/dialogs/DlgShowQR.tsx | 4 +- .../DlgShowTypeGraph/DlgShowTypeGraph.tsx | 6 +- .../dialogs/DlgShowTypeGraph/MGraphFlow.tsx | 4 +- .../DlgShowTypeGraph/graph/BooleanEdge.tsx | 4 +- .../DlgShowTypeGraph/graph/CartesianEdge.tsx | 4 +- .../DlgShowTypeGraph/graph/MGraphEdgeTypes.ts | 4 +- .../DlgShowTypeGraph/graph/MGraphNode.tsx | 4 +- .../DlgShowTypeGraph/graph/MGraphNodeTypes.ts | 2 +- .../rsform/dialogs/DlgShowTypeGraph/index.tsx | 2 +- .../rsform/dialogs/DlgSubstituteCst.tsx | 4 +- .../rsform/dialogs/DlgUploadRSForm.tsx | 4 +- .../EditorConstituenta/EditorConstituenta.tsx | 10 +- .../EditorConstituenta/EditorControls.tsx | 4 +- .../ToolbarConstituenta.tsx | 4 +- .../RSFormPage/EditorConstituenta/index.tsx | 2 +- .../EditorRSExpression/RSEditControls.tsx | 4 +- .../EditorRSExpression/RSLocalButton.tsx | 4 +- .../EditorRSExpression/RSTokenButton.tsx | 4 +- .../EditorRSFormCard/EditorRSFormCard.tsx | 8 +- .../EditorRSFormCard/FormRSForm.tsx | 6 +- .../EditorRSFormCard/RSFormStats.tsx | 4 +- .../EditorRSFormCard/ToolbarVersioning.tsx | 4 +- .../RSFormPage/EditorRSFormCard/index.tsx | 2 +- .../RSFormPage/EditorRSList/EditorRSList.tsx | 6 +- .../RSFormPage/EditorRSList/TableRSList.tsx | 8 +- .../pages/RSFormPage/EditorRSList/index.tsx | 2 +- .../EditorTermGraph/EditorTermGraph.tsx | 6 +- .../EditorTermGraph/GraphSelectors.tsx | 6 +- .../EditorTermGraph/SchemasGuide.tsx | 4 +- .../EditorTermGraph/SelectedCounter.tsx | 9 +- .../RSFormPage/EditorTermGraph/TGFlow.tsx | 18 ++- .../EditorTermGraph/ToolbarFocusedCst.tsx | 4 +- .../EditorTermGraph/ToolbarTermGraph.tsx | 4 +- .../RSFormPage/EditorTermGraph/ViewHidden.tsx | 6 +- .../EditorTermGraph/graph/TGEdgeTypes.ts | 2 +- .../EditorTermGraph/graph/TGNode.tsx | 4 +- .../EditorTermGraph/graph/TGNodeTypes.ts | 2 +- .../RSFormPage/EditorTermGraph/index.tsx | 2 +- .../rsform/pages/RSFormPage/MenuRSTabs.tsx | 4 +- .../rsform/pages/RSFormPage/RSFormPage.tsx | 4 +- .../rsform/pages/RSFormPage/RSTabs.tsx | 16 +-- .../ViewConstituents/ConstituentsSearch.tsx | 4 +- .../ViewConstituents/SelectGraphFilter.tsx | 6 +- .../ViewConstituents/SelectMatchMode.tsx | 6 +- .../TableSideConstituents.tsx | 6 +- .../ViewConstituents/ViewConstituents.tsx | 4 +- .../features/users/components/TableUsers.tsx | 2 +- .../users/pages/RegisterPage/FormSignup.tsx | 4 +- .../users/pages/RegisterPage/RegisterPage.tsx | 2 +- .../pages/UserProfilePage/EditorPassword.tsx | 4 +- .../pages/UserProfilePage/EditorProfile.tsx | 4 +- .../pages/UserProfilePage/UserProfilePage.tsx | 4 +- .../frontend/src/hooks/useClickedOutside.ts | 8 +- rsconcept/frontend/src/hooks/useEscapeKey.ts | 4 +- .../frontend/src/hooks/useQueryStrings.ts | 4 +- rsconcept/frontend/src/hooks/useWindowSize.ts | 4 +- rsconcept/frontend/src/main.tsx | 4 +- 225 files changed, 495 insertions(+), 726 deletions(-) rename rsconcept/frontend/src/features/rsform/{dialogs/DlgEditReference => components}/WordformButton.tsx (77%) diff --git a/rsconcept/frontend/src/app/ApplicationLayout.tsx b/rsconcept/frontend/src/app/ApplicationLayout.tsx index 58eeadaa..b8288e11 100644 --- a/rsconcept/frontend/src/app/ApplicationLayout.tsx +++ b/rsconcept/frontend/src/app/ApplicationLayout.tsx @@ -14,7 +14,7 @@ import { GlobalTooltips } from './GlobalTooltips'; import { MutationErrors } from './MutationErrors'; import { Navigation } from './Navigation'; -function ApplicationLayout() { +export function ApplicationLayout() { const mainHeight = useMainHeight(); const viewportHeight = useViewportHeight(); const showScroll = useAppLayoutStore(state => !state.noScroll); @@ -58,5 +58,3 @@ function ApplicationLayout() { ); } - -export default ApplicationLayout; diff --git a/rsconcept/frontend/src/app/GlobalDialogs.tsx b/rsconcept/frontend/src/app/GlobalDialogs.tsx index c49ed7d8..8ae4e2f7 100644 --- a/rsconcept/frontend/src/app/GlobalDialogs.tsx +++ b/rsconcept/frontend/src/app/GlobalDialogs.tsx @@ -4,29 +4,115 @@ import React from 'react'; import { DialogType, useDialogsStore } from '@/stores/dialogs'; -const DlgChangeInputSchema = React.lazy(() => import('@/features/oss/dialogs/DlgChangeInputSchema')); -const DlgChangeLocation = React.lazy(() => import('@/features/library/dialogs/DlgChangeLocation')); -const DlgCloneLibraryItem = React.lazy(() => import('@/features/library/dialogs/DlgCloneLibraryItem')); -const DlgCreateCst = React.lazy(() => import('@/features/rsform/dialogs/DlgCreateCst')); -const DlgCreateOperation = React.lazy(() => import('@/features/oss/dialogs/DlgCreateOperation')); -const DlgCreateVersion = React.lazy(() => import('@/features/library/dialogs/DlgCreateVersion')); -const DlgCstTemplate = React.lazy(() => import('@/features/rsform/dialogs/DlgCstTemplate')); -const DlgDeleteCst = React.lazy(() => import('@/features/rsform/dialogs/DlgDeleteCst')); -const DlgDeleteOperation = React.lazy(() => import('@/features/oss/dialogs/DlgDeleteOperation')); -const DlgEditEditors = React.lazy(() => import('@/features/library/dialogs/DlgEditEditors')); -const DlgEditOperation = React.lazy(() => import('@/features/oss/dialogs/DlgEditOperation')); -const DlgEditReference = React.lazy(() => import('@/features/rsform/dialogs/DlgEditReference')); -const DlgEditVersions = React.lazy(() => import('@/features/library/dialogs/DlgEditVersions')); -const DlgEditWordForms = React.lazy(() => import('@/features/rsform/dialogs/DlgEditWordForms')); -const DlgGraphParams = React.lazy(() => import('@/features/rsform/dialogs/DlgGraphParams')); -const DlgInlineSynthesis = React.lazy(() => import('@/features/rsform/dialogs/DlgInlineSynthesis')); -const DlgRelocateConstituents = React.lazy(() => import('@/features/oss/dialogs/DlgRelocateConstituents')); -const DlgRenameCst = React.lazy(() => import('@/features/rsform/dialogs/DlgRenameCst')); -const DlgShowAST = React.lazy(() => import('@/features/rsform/dialogs/DlgShowAST')); -const DlgShowQR = React.lazy(() => import('@/features/rsform/dialogs/DlgShowQR')); -const DlgShowTypeGraph = React.lazy(() => import('@/features/rsform/dialogs/DlgShowTypeGraph')); -const DlgSubstituteCst = React.lazy(() => import('@/features/rsform/dialogs/DlgSubstituteCst')); -const DlgUploadRSForm = React.lazy(() => import('@/features/rsform/dialogs/DlgUploadRSForm')); +const DlgChangeInputSchema = React.lazy(() => + import('@/features/oss/dialogs/DlgChangeInputSchema').then(module => ({ default: module.DlgChangeInputSchema })) +); +const DlgChangeLocation = React.lazy(() => + import('@/features/library/dialogs/DlgChangeLocation').then(module => ({ + default: module.DlgChangeLocation + })) +); +const DlgCloneLibraryItem = React.lazy(() => + import('@/features/library/dialogs/DlgCloneLibraryItem').then(module => ({ + default: module.DlgCloneLibraryItem + })) +); +const DlgCreateCst = React.lazy(() => + import('@/features/rsform/dialogs/DlgCreateCst').then(module => ({ default: module.DlgCreateCst })) +); +const DlgCreateOperation = React.lazy(() => + import('@/features/oss/dialogs/DlgCreateOperation').then(module => ({ + default: module.DlgCreateOperation + })) +); +const DlgCreateVersion = React.lazy(() => + import('@/features/library/dialogs/DlgCreateVersion').then(module => ({ + default: module.DlgCreateVersion + })) +); +const DlgCstTemplate = React.lazy(() => + import('@/features/rsform/dialogs/DlgCstTemplate').then(module => ({ + default: module.DlgCstTemplate + })) +); +const DlgDeleteCst = React.lazy(() => + import('@/features/rsform/dialogs/DlgDeleteCst').then(module => ({ + default: module.DlgDeleteCst + })) +); +const DlgDeleteOperation = React.lazy(() => + import('@/features/oss/dialogs/DlgDeleteOperation').then(module => ({ + default: module.DlgDeleteOperation + })) +); +const DlgEditEditors = React.lazy(() => + import('@/features/library/dialogs/DlgEditEditors').then(module => ({ + default: module.DlgEditEditors + })) +); +const DlgEditOperation = React.lazy(() => + import('@/features/oss/dialogs/DlgEditOperation').then(module => ({ + default: module.DlgEditOperation + })) +); +const DlgEditReference = React.lazy(() => + import('@/features/rsform/dialogs/DlgEditReference').then(module => ({ + default: module.DlgEditReference + })) +); +const DlgEditVersions = React.lazy(() => + import('@/features/library/dialogs/DlgEditVersions').then(module => ({ + default: module.DlgEditVersions + })) +); +const DlgEditWordForms = React.lazy(() => + import('@/features/rsform/dialogs/DlgEditWordForms').then(module => ({ + default: module.DlgEditWordForms + })) +); +const DlgInlineSynthesis = React.lazy(() => + import('@/features/rsform/dialogs/DlgInlineSynthesis').then(module => ({ + default: module.DlgInlineSynthesis + })) +); +const DlgRelocateConstituents = React.lazy(() => + import('@/features/oss/dialogs/DlgRelocateConstituents').then(module => ({ + default: module.DlgRelocateConstituents + })) +); +const DlgRenameCst = React.lazy(() => + import('@/features/rsform/dialogs/DlgRenameCst').then(module => ({ + default: module.DlgRenameCst + })) +); +const DlgShowAST = React.lazy(() => + import('@/features/rsform/dialogs/DlgShowAST').then(module => ({ + default: module.DlgShowAST + })) +); +const DlgShowQR = React.lazy(() => + import('@/features/rsform/dialogs/DlgShowQR').then(module => ({ + default: module.DlgShowQR + })) +); +const DlgShowTypeGraph = React.lazy(() => + import('@/features/rsform/dialogs/DlgShowTypeGraph').then(module => ({ + default: module.DlgShowTypeGraph + })) +); +const DlgSubstituteCst = React.lazy(() => + import('@/features/rsform/dialogs/DlgSubstituteCst').then(module => ({ + default: module.DlgSubstituteCst + })) +); +const DlgUploadRSForm = React.lazy(() => + import('@/features/rsform/dialogs/DlgUploadRSForm').then(module => ({ + default: module.DlgUploadRSForm + })) +); +const DlgGraphParams = React.lazy(() => + import('@/features/rsform/dialogs/DlgGraphParams').then(module => ({ default: module.DlgGraphParams })) +); export const GlobalDialogs = () => { const active = useDialogsStore(state => state.active); diff --git a/rsconcept/frontend/src/app/GlobalProviders.tsx b/rsconcept/frontend/src/app/GlobalProviders.tsx index e038f43a..08e02d6d 100644 --- a/rsconcept/frontend/src/app/GlobalProviders.tsx +++ b/rsconcept/frontend/src/app/GlobalProviders.tsx @@ -7,7 +7,7 @@ import { ReactQueryDevtools } from '@tanstack/react-query-devtools'; import { queryClient } from '@/backend/queryClient'; // prettier-ignore -function GlobalProviders({ children }: React.PropsWithChildren) { +export function GlobalProviders({ children }: React.PropsWithChildren) { return ( @@ -18,5 +18,3 @@ function GlobalProviders({ children }: React.PropsWithChildren) { ); } - -export default GlobalProviders; diff --git a/rsconcept/frontend/src/app/GlobalTooltips.tsx b/rsconcept/frontend/src/app/GlobalTooltips.tsx index 9b633016..20d761cd 100644 --- a/rsconcept/frontend/src/app/GlobalTooltips.tsx +++ b/rsconcept/frontend/src/app/GlobalTooltips.tsx @@ -1,6 +1,6 @@ 'use client'; -import InfoConstituenta from '@/features/rsform/components/InfoConstituenta'; +import { InfoConstituenta } from '@/features/rsform/components/InfoConstituenta'; import { Tooltip } from '@/components/Container'; import { Loader } from '@/components/Loader'; diff --git a/rsconcept/frontend/src/app/MutationErrors.tsx b/rsconcept/frontend/src/app/MutationErrors.tsx index 6361dda9..ffee0201 100644 --- a/rsconcept/frontend/src/app/MutationErrors.tsx +++ b/rsconcept/frontend/src/app/MutationErrors.tsx @@ -3,7 +3,7 @@ import clsx from 'clsx'; import { useMutationErrors } from '@/backend/useMutationErrors'; import { Button } from '@/components/Control'; import { DescribeError } from '@/components/InfoError'; -import useEscapeKey from '@/hooks/useEscapeKey'; +import { useEscapeKey } from '@/hooks/useEscapeKey'; import { useDialogsStore } from '@/stores/dialogs'; export function MutationErrors() { diff --git a/rsconcept/frontend/src/app/Navigation/Logo.tsx b/rsconcept/frontend/src/app/Navigation/Logo.tsx index 7c3695df..e6d8d302 100644 --- a/rsconcept/frontend/src/app/Navigation/Logo.tsx +++ b/rsconcept/frontend/src/app/Navigation/Logo.tsx @@ -1,7 +1,7 @@ -import useWindowSize from '@/hooks/useWindowSize'; +import { useWindowSize } from '@/hooks/useWindowSize'; import { usePreferencesStore } from '@/stores/preferences'; -function Logo() { +export function Logo() { const darkMode = usePreferencesStore(state => state.darkMode); const size = useWindowSize(); @@ -13,4 +13,3 @@ function Logo() { /> ); } -export default Logo; diff --git a/rsconcept/frontend/src/app/Navigation/Navigation.tsx b/rsconcept/frontend/src/app/Navigation/Navigation.tsx index 809692f8..0bc69660 100644 --- a/rsconcept/frontend/src/app/Navigation/Navigation.tsx +++ b/rsconcept/frontend/src/app/Navigation/Navigation.tsx @@ -2,17 +2,17 @@ import clsx from 'clsx'; import { IconLibrary2, IconManuals, IconNewItem2 } from '@/components/Icons'; import { CProps } from '@/components/props'; -import useWindowSize from '@/hooks/useWindowSize'; +import { useWindowSize } from '@/hooks/useWindowSize'; import { useAppLayoutStore } from '@/stores/appLayout'; import { PARAMETER } from '@/utils/constants'; import { urls } from '../urls'; -import Logo from './Logo'; -import NavigationButton from './NavigationButton'; +import { Logo } from './Logo'; +import { NavigationButton } from './NavigationButton'; import { useConceptNavigation } from './NavigationContext'; -import ToggleNavigation from './ToggleNavigation'; -import UserMenu from './UserMenu'; +import { ToggleNavigation } from './ToggleNavigation'; +import { UserMenu } from './UserMenu'; export function Navigation() { const router = useConceptNavigation(); diff --git a/rsconcept/frontend/src/app/Navigation/NavigationButton.tsx b/rsconcept/frontend/src/app/Navigation/NavigationButton.tsx index 93eab2b8..530ed41d 100644 --- a/rsconcept/frontend/src/app/Navigation/NavigationButton.tsx +++ b/rsconcept/frontend/src/app/Navigation/NavigationButton.tsx @@ -9,7 +9,7 @@ interface NavigationButtonProps extends CProps.Titled, CProps.Styling { onClick?: (event: CProps.EventMouse) => void; } -function NavigationButton({ +export function NavigationButton({ icon, title, className, @@ -47,5 +47,3 @@ function NavigationButton({ ); } - -export default NavigationButton; diff --git a/rsconcept/frontend/src/app/Navigation/ToggleNavigation.tsx b/rsconcept/frontend/src/app/Navigation/ToggleNavigation.tsx index 7aa5d0ff..a70e592c 100644 --- a/rsconcept/frontend/src/app/Navigation/ToggleNavigation.tsx +++ b/rsconcept/frontend/src/app/Navigation/ToggleNavigation.tsx @@ -5,7 +5,7 @@ import { useAppLayoutStore } from '@/stores/appLayout'; import { usePreferencesStore } from '@/stores/preferences'; import { globals, PARAMETER } from '@/utils/constants'; -function ToggleNavigation() { +export function ToggleNavigation() { const darkMode = usePreferencesStore(state => state.darkMode); const toggleDarkMode = usePreferencesStore(state => state.toggleDarkMode); const noNavigation = useAppLayoutStore(state => state.noNavigation); @@ -55,5 +55,3 @@ function ToggleNavigation() { ); } - -export default ToggleNavigation; diff --git a/rsconcept/frontend/src/app/Navigation/UserButton.tsx b/rsconcept/frontend/src/app/Navigation/UserButton.tsx index 22b83c12..1501633a 100644 --- a/rsconcept/frontend/src/app/Navigation/UserButton.tsx +++ b/rsconcept/frontend/src/app/Navigation/UserButton.tsx @@ -3,14 +3,14 @@ import { useAuthSuspense } from '@/features/auth'; import { IconLogin, IconUser2 } from '@/components/Icons'; import { usePreferencesStore } from '@/stores/preferences'; -import NavigationButton from './NavigationButton'; +import { NavigationButton } from './NavigationButton'; interface UserButtonProps { onLogin: () => void; onClickUser: () => void; } -function UserButton({ onLogin, onClickUser }: UserButtonProps) { +export function UserButton({ onLogin, onClickUser }: UserButtonProps) { const { user, isAnonymous } = useAuthSuspense(); const adminMode = usePreferencesStore(state => state.adminMode); if (isAnonymous) { @@ -32,5 +32,3 @@ function UserButton({ onLogin, onClickUser }: UserButtonProps) { ); } } - -export default UserButton; diff --git a/rsconcept/frontend/src/app/Navigation/UserDropdown.tsx b/rsconcept/frontend/src/app/Navigation/UserDropdown.tsx index e441f421..4983dabb 100644 --- a/rsconcept/frontend/src/app/Navigation/UserDropdown.tsx +++ b/rsconcept/frontend/src/app/Navigation/UserDropdown.tsx @@ -27,7 +27,7 @@ interface UserDropdownProps { hideDropdown: () => void; } -function UserDropdown({ isOpen, hideDropdown }: UserDropdownProps) { +export function UserDropdown({ isOpen, hideDropdown }: UserDropdownProps) { const router = useConceptNavigation(); const { user } = useAuthSuspense(); const { logout } = useLogout(); @@ -141,5 +141,3 @@ function UserDropdown({ isOpen, hideDropdown }: UserDropdownProps) { ); } - -export default UserDropdown; diff --git a/rsconcept/frontend/src/app/Navigation/UserMenu.tsx b/rsconcept/frontend/src/app/Navigation/UserMenu.tsx index dfa3e4d5..1e48a02f 100644 --- a/rsconcept/frontend/src/app/Navigation/UserMenu.tsx +++ b/rsconcept/frontend/src/app/Navigation/UserMenu.tsx @@ -6,10 +6,10 @@ import { Loader } from '@/components/Loader'; import { urls } from '../urls'; import { useConceptNavigation } from './NavigationContext'; -import UserButton from './UserButton'; -import UserDropdown from './UserDropdown'; +import { UserButton } from './UserButton'; +import { UserDropdown } from './UserDropdown'; -function UserMenu() { +export function UserMenu() { const router = useConceptNavigation(); const menu = useDropdown(); return ( @@ -21,5 +21,3 @@ function UserMenu() { ); } - -export default UserMenu; diff --git a/rsconcept/frontend/src/app/Router.tsx b/rsconcept/frontend/src/app/Router.tsx index 4e7dcaf9..a0c0d505 100644 --- a/rsconcept/frontend/src/app/Router.tsx +++ b/rsconcept/frontend/src/app/Router.tsx @@ -1,11 +1,11 @@ import { createBrowserRouter } from 'react-router'; import { prefetchAuth } from '@/features/auth/backend/useAuth'; -import LoginPage from '@/features/auth/pages/LoginPage'; -import HomePage from '@/features/home/HomePage'; -import NotFoundPage from '@/features/home/NotFoundPage'; +import { LoginPage } from '@/features/auth/pages/LoginPage'; +import { HomePage } from '@/features/home/HomePage'; +import { NotFoundPage } from '@/features/home/NotFoundPage'; import { prefetchLibrary } from '@/features/library/backend/useLibrary'; -import CreateItemPage from '@/features/library/pages/CreateItemPage'; +import { CreateItemPage } from '@/features/library/pages/CreateItemPage'; import { prefetchOSS } from '@/features/oss/backend/useOSS'; import { prefetchRSForm } from '@/features/rsform/backend/useRSForm'; import { prefetchProfile } from '@/features/users/backend/useProfile'; @@ -13,7 +13,7 @@ import { prefetchUsers } from '@/features/users/backend/useUsers'; import { Loader } from '@/components/Loader'; -import ApplicationLayout from './ApplicationLayout'; +import { ApplicationLayout } from './ApplicationLayout'; import { ErrorFallback } from './ErrorFallback'; import { routes } from './urls'; diff --git a/rsconcept/frontend/src/app/index.tsx b/rsconcept/frontend/src/app/index.tsx index 899e2cf3..2b904858 100644 --- a/rsconcept/frontend/src/app/index.tsx +++ b/rsconcept/frontend/src/app/index.tsx @@ -5,8 +5,6 @@ import { RouterProvider } from 'react-router'; import { Router } from './Router'; -function App() { +export function App() { return ; } - -export default App; diff --git a/rsconcept/frontend/src/components/DataTable/DataTable.tsx b/rsconcept/frontend/src/components/DataTable/DataTable.tsx index 0d62c213..a00127df 100644 --- a/rsconcept/frontend/src/components/DataTable/DataTable.tsx +++ b/rsconcept/frontend/src/components/DataTable/DataTable.tsx @@ -19,11 +19,11 @@ import { import { CProps } from '../props'; -import DefaultNoData from './DefaultNoData'; -import PaginationTools from './PaginationTools'; -import TableBody from './TableBody'; -import TableFooter from './TableFooter'; -import TableHeader from './TableHeader'; +import { DefaultNoData } from './DefaultNoData'; +import { PaginationTools } from './PaginationTools'; +import { TableBody } from './TableBody'; +import { TableFooter } from './TableFooter'; +import { TableHeader } from './TableHeader'; export { type ColumnSort, createColumnHelper, type RowSelectionState, type VisibilityState }; @@ -109,7 +109,7 @@ export interface DataTableProps * @param headPosition - Top position of sticky header (0 if no other sticky elements are present). * No sticky header if omitted */ -function DataTable({ +export function DataTable({ id, style, className, @@ -229,5 +229,3 @@ function DataTable({ ); } - -export default DataTable; diff --git a/rsconcept/frontend/src/components/DataTable/DefaultNoData.tsx b/rsconcept/frontend/src/components/DataTable/DefaultNoData.tsx index 70ff4f98..3afeca6c 100644 --- a/rsconcept/frontend/src/components/DataTable/DefaultNoData.tsx +++ b/rsconcept/frontend/src/components/DataTable/DefaultNoData.tsx @@ -1,5 +1,3 @@ -function defaultNoDataComponent() { +export function DefaultNoData() { return
Данные отсутствуют
; } - -export default defaultNoDataComponent; diff --git a/rsconcept/frontend/src/components/DataTable/PaginationTools.tsx b/rsconcept/frontend/src/components/DataTable/PaginationTools.tsx index c1fafb27..b97b52a2 100644 --- a/rsconcept/frontend/src/components/DataTable/PaginationTools.tsx +++ b/rsconcept/frontend/src/components/DataTable/PaginationTools.tsx @@ -16,7 +16,7 @@ interface PaginationToolsProps { onChangePaginationOption?: (newValue: number) => void; } -function PaginationTools({ +export function PaginationTools({ id, table, paginationOptions, @@ -106,5 +106,3 @@ function PaginationTools({ ); } - -export default PaginationTools; diff --git a/rsconcept/frontend/src/components/DataTable/SelectAll.tsx b/rsconcept/frontend/src/components/DataTable/SelectAll.tsx index 256de3f8..243490fb 100644 --- a/rsconcept/frontend/src/components/DataTable/SelectAll.tsx +++ b/rsconcept/frontend/src/components/DataTable/SelectAll.tsx @@ -9,7 +9,7 @@ interface SelectAllProps { resetLastSelected: () => void; } -function SelectAll({ table, resetLastSelected }: SelectAllProps) { +export function SelectAll({ table, resetLastSelected }: SelectAllProps) { function handleChange(value: boolean | null) { resetLastSelected(); table.toggleAllPageRowsSelected(value !== false); @@ -26,5 +26,3 @@ function SelectAll({ table, resetLastSelected }: SelectAllProps) { /> ); } - -export default SelectAll; diff --git a/rsconcept/frontend/src/components/DataTable/SelectRow.tsx b/rsconcept/frontend/src/components/DataTable/SelectRow.tsx index f1d4c503..ec21b558 100644 --- a/rsconcept/frontend/src/components/DataTable/SelectRow.tsx +++ b/rsconcept/frontend/src/components/DataTable/SelectRow.tsx @@ -9,7 +9,7 @@ interface SelectRowProps { onChangeLastSelected: (newValue: string) => void; } -function SelectRow({ row, onChangeLastSelected }: SelectRowProps) { +export function SelectRow({ row, onChangeLastSelected }: SelectRowProps) { function handleChange(value: boolean) { onChangeLastSelected(row.id); row.toggleSelected(value); @@ -17,5 +17,3 @@ function SelectRow({ row, onChangeLastSelected }: SelectRowProps) return ; } - -export default SelectRow; diff --git a/rsconcept/frontend/src/components/DataTable/SortingIcon.tsx b/rsconcept/frontend/src/components/DataTable/SortingIcon.tsx index 12e1d3a5..441f2a5b 100644 --- a/rsconcept/frontend/src/components/DataTable/SortingIcon.tsx +++ b/rsconcept/frontend/src/components/DataTable/SortingIcon.tsx @@ -8,7 +8,7 @@ interface SortingIconProps { column: Column; } -function SortingIcon({ column }: SortingIconProps) { +export function SortingIcon({ column }: SortingIconProps) { return ( <> {{ @@ -18,5 +18,3 @@ function SortingIcon({ column }: SortingIconProps) { ); } - -export default SortingIcon; diff --git a/rsconcept/frontend/src/components/DataTable/TableBody.tsx b/rsconcept/frontend/src/components/DataTable/TableBody.tsx index d5ebbebb..a3b53208 100644 --- a/rsconcept/frontend/src/components/DataTable/TableBody.tsx +++ b/rsconcept/frontend/src/components/DataTable/TableBody.tsx @@ -5,7 +5,7 @@ import clsx from 'clsx'; import { CProps } from '../props'; -import SelectRow from './SelectRow'; +import { SelectRow } from './SelectRow'; import { IConditionalStyle } from '.'; interface TableBodyProps { @@ -22,7 +22,7 @@ interface TableBodyProps { onRowDoubleClicked?: (rowData: TData, event: CProps.EventMouse) => void; } -function TableBody({ +export function TableBody({ table, dense, noHeader, @@ -104,5 +104,3 @@ function TableBody({ ); } - -export default TableBody; diff --git a/rsconcept/frontend/src/components/DataTable/TableFooter.tsx b/rsconcept/frontend/src/components/DataTable/TableFooter.tsx index eb648e1f..bcd0b7fe 100644 --- a/rsconcept/frontend/src/components/DataTable/TableFooter.tsx +++ b/rsconcept/frontend/src/components/DataTable/TableFooter.tsx @@ -6,7 +6,7 @@ interface TableFooterProps { table: Table; } -function TableFooter({ table }: TableFooterProps) { +export function TableFooter({ table }: TableFooterProps) { return ( {table.getFooterGroups().map((footerGroup: HeaderGroup) => ( @@ -21,5 +21,3 @@ function TableFooter({ table }: TableFooterProps) { ); } - -export default TableFooter; diff --git a/rsconcept/frontend/src/components/DataTable/TableHeader.tsx b/rsconcept/frontend/src/components/DataTable/TableHeader.tsx index 17abec57..edad90bb 100644 --- a/rsconcept/frontend/src/components/DataTable/TableHeader.tsx +++ b/rsconcept/frontend/src/components/DataTable/TableHeader.tsx @@ -2,8 +2,8 @@ import { flexRender, Header, HeaderGroup, Table } from '@tanstack/react-table'; -import SelectAll from './SelectAll'; -import SortingIcon from './SortingIcon'; +import { SelectAll } from './SelectAll'; +import { SortingIcon } from './SortingIcon'; interface TableHeaderProps { table: Table; @@ -13,7 +13,7 @@ interface TableHeaderProps { resetLastSelected: () => void; } -function TableHeader({ +export function TableHeader({ table, headPosition, enableRowSelection, @@ -61,5 +61,3 @@ function TableHeader({ ); } - -export default TableHeader; diff --git a/rsconcept/frontend/src/components/DataTable/index.tsx b/rsconcept/frontend/src/components/DataTable/index.tsx index 41542053..a626e427 100644 --- a/rsconcept/frontend/src/components/DataTable/index.tsx +++ b/rsconcept/frontend/src/components/DataTable/index.tsx @@ -1,6 +1,6 @@ export { createColumnHelper, - default, + DataTable, type IConditionalStyle, type RowSelectionState, type VisibilityState diff --git a/rsconcept/frontend/src/components/Dropdown/useDropdown.ts b/rsconcept/frontend/src/components/Dropdown/useDropdown.ts index 284e7928..dc7c9b00 100644 --- a/rsconcept/frontend/src/components/Dropdown/useDropdown.ts +++ b/rsconcept/frontend/src/components/Dropdown/useDropdown.ts @@ -2,7 +2,7 @@ import { useRef, useState } from 'react'; -import useClickedOutside from '@/hooks/useClickedOutside'; +import { useClickedOutside } from '@/hooks/useClickedOutside'; export function useDropdown() { const [isOpen, setIsOpen] = useState(false); diff --git a/rsconcept/frontend/src/components/Flow/DynamicEdge.tsx b/rsconcept/frontend/src/components/Flow/DynamicEdge.tsx index 81c452e8..b6d66c6d 100644 --- a/rsconcept/frontend/src/components/Flow/DynamicEdge.tsx +++ b/rsconcept/frontend/src/components/Flow/DynamicEdge.tsx @@ -4,7 +4,7 @@ import { PARAMETER } from '@/utils/constants'; const RADIUS = PARAMETER.graphNodeRadius + PARAMETER.graphNodePadding; -function DynamicEdge({ id, markerEnd, style, ...props }: EdgeProps) { +export function DynamicEdge({ id, markerEnd, style, ...props }: EdgeProps) { const sourceY = props.sourceY - PARAMETER.graphNodeRadius - PARAMETER.graphHandleSize; const targetY = props.targetY + PARAMETER.graphNodeRadius + PARAMETER.graphHandleSize; @@ -32,5 +32,3 @@ function DynamicEdge({ id, markerEnd, style, ...props }: EdgeProps) { ); } - -export default DynamicEdge; diff --git a/rsconcept/frontend/src/components/Input/SelectMulti.tsx b/rsconcept/frontend/src/components/Input/SelectMulti.tsx index 8e08812a..4fe0eba6 100644 --- a/rsconcept/frontend/src/components/Input/SelectMulti.tsx +++ b/rsconcept/frontend/src/components/Input/SelectMulti.tsx @@ -9,7 +9,7 @@ import Select, { StylesConfig } from 'react-select'; -import useWindowSize from '@/hooks/useWindowSize'; +import { useWindowSize } from '@/hooks/useWindowSize'; import { APP_COLORS, SELECT_THEME } from '@/styling/colors'; import { IconClose, IconDropArrow, IconDropArrowUp } from '../Icons'; diff --git a/rsconcept/frontend/src/components/Input/SelectSingle.tsx b/rsconcept/frontend/src/components/Input/SelectSingle.tsx index a8bedbd6..41576926 100644 --- a/rsconcept/frontend/src/components/Input/SelectSingle.tsx +++ b/rsconcept/frontend/src/components/Input/SelectSingle.tsx @@ -9,7 +9,7 @@ import Select, { StylesConfig } from 'react-select'; -import useWindowSize from '@/hooks/useWindowSize'; +import { useWindowSize } from '@/hooks/useWindowSize'; import { APP_COLORS, SELECT_THEME } from '@/styling/colors'; import { IconClose, IconDropArrow, IconDropArrowUp } from '../Icons'; diff --git a/rsconcept/frontend/src/components/Modal/ModalForm.tsx b/rsconcept/frontend/src/components/Modal/ModalForm.tsx index abe0f040..72c50a39 100644 --- a/rsconcept/frontend/src/components/Modal/ModalForm.tsx +++ b/rsconcept/frontend/src/components/Modal/ModalForm.tsx @@ -4,7 +4,7 @@ import clsx from 'clsx'; import { BadgeHelp, HelpTopic } from '@/features/help'; -import useEscapeKey from '@/hooks/useEscapeKey'; +import { useEscapeKey } from '@/hooks/useEscapeKey'; import { useDialogsStore } from '@/stores/dialogs'; import { PARAMETER } from '@/utils/constants'; import { prepareTooltip } from '@/utils/utils'; diff --git a/rsconcept/frontend/src/components/Modal/ModalView.tsx b/rsconcept/frontend/src/components/Modal/ModalView.tsx index 8ee40d5c..487c4c4b 100644 --- a/rsconcept/frontend/src/components/Modal/ModalView.tsx +++ b/rsconcept/frontend/src/components/Modal/ModalView.tsx @@ -4,7 +4,7 @@ import clsx from 'clsx'; import { BadgeHelp } from '@/features/help'; -import useEscapeKey from '@/hooks/useEscapeKey'; +import { useEscapeKey } from '@/hooks/useEscapeKey'; import { useDialogsStore } from '@/stores/dialogs'; import { PARAMETER } from '@/utils/constants'; import { prepareTooltip } from '@/utils/utils'; diff --git a/rsconcept/frontend/src/components/View/PDFViewer.tsx b/rsconcept/frontend/src/components/View/PDFViewer.tsx index ecc5cbd8..4b678520 100644 --- a/rsconcept/frontend/src/components/View/PDFViewer.tsx +++ b/rsconcept/frontend/src/components/View/PDFViewer.tsx @@ -1,6 +1,6 @@ 'use client'; -import useWindowSize from '@/hooks/useWindowSize'; +import { useWindowSize } from '@/hooks/useWindowSize'; import { useFitHeight } from '@/stores/appLayout'; /** Maximum width of the viewer. */ diff --git a/rsconcept/frontend/src/features/auth/pages/LoginPage.tsx b/rsconcept/frontend/src/features/auth/pages/LoginPage.tsx index 2bb31a3f..56b75cd8 100644 --- a/rsconcept/frontend/src/features/auth/pages/LoginPage.tsx +++ b/rsconcept/frontend/src/features/auth/pages/LoginPage.tsx @@ -10,7 +10,7 @@ import { isAxiosError } from '@/backend/apiTransport'; import { SubmitButton, TextURL } from '@/components/Control'; import { ErrorData } from '@/components/InfoError'; import { TextInput } from '@/components/Input'; -import useQueryStrings from '@/hooks/useQueryStrings'; +import { useQueryStrings } from '@/hooks/useQueryStrings'; import { resources } from '@/utils/constants'; import { IUserLoginDTO, schemaUserLogin } from '../backend/types'; @@ -18,7 +18,7 @@ import { useAuthSuspense } from '../backend/useAuth'; import { useLogin } from '../backend/useLogin'; import { ExpectedAnonymous } from '../components/ExpectedAnonymous'; -function LoginPage() { +export function LoginPage() { const router = useConceptNavigation(); const query = useQueryStrings(); const initialName = query.get('username') ?? ''; @@ -92,8 +92,6 @@ function LoginPage() { ); } -export default LoginPage; - // ====== Internals ========= function ServerError({ error }: { error: ErrorData }): React.ReactElement | null { if (isAxiosError(error) && error.response && error.response.status === 400) { diff --git a/rsconcept/frontend/src/features/auth/pages/PasswordChangePage.tsx b/rsconcept/frontend/src/features/auth/pages/PasswordChangePage.tsx index efd30838..a5d09eb8 100644 --- a/rsconcept/frontend/src/features/auth/pages/PasswordChangePage.tsx +++ b/rsconcept/frontend/src/features/auth/pages/PasswordChangePage.tsx @@ -10,7 +10,7 @@ import { SubmitButton } from '@/components/Control'; import { ErrorData, InfoError } from '@/components/InfoError'; import { TextInput } from '@/components/Input'; import { Loader } from '@/components/Loader'; -import useQueryStrings from '@/hooks/useQueryStrings'; +import { useQueryStrings } from '@/hooks/useQueryStrings'; import { useResetPassword } from '../backend/useResetPassword'; diff --git a/rsconcept/frontend/src/features/help/components/BadgeHelp.tsx b/rsconcept/frontend/src/features/help/components/BadgeHelp.tsx index e48acb12..f3d341ef 100644 --- a/rsconcept/frontend/src/features/help/components/BadgeHelp.tsx +++ b/rsconcept/frontend/src/features/help/components/BadgeHelp.tsx @@ -9,7 +9,9 @@ import { usePreferencesStore } from '@/stores/preferences'; import { HelpTopic } from '../models/helpTopic'; -const TopicPage = React.lazy(() => import('@/features/help/pages/ManualsPage/TopicPage')); +const TopicPage = React.lazy(() => + import('@/features/help/pages/ManualsPage/TopicPage').then(module => ({ default: module.TopicPage })) +); interface BadgeHelpProps extends CProps.Styling { /** Topic to display in a tooltip. */ diff --git a/rsconcept/frontend/src/features/help/components/InfoCstClass.tsx b/rsconcept/frontend/src/features/help/components/InfoCstClass.tsx index 7d6aaa41..cfe331bc 100644 --- a/rsconcept/frontend/src/features/help/components/InfoCstClass.tsx +++ b/rsconcept/frontend/src/features/help/components/InfoCstClass.tsx @@ -10,7 +10,7 @@ interface InfoCstClassProps { header?: string; } -function InfoCstClass({ header }: InfoCstClassProps) { +export function InfoCstClass({ header }: InfoCstClassProps) { return (
{header ?

{header}

: null} @@ -31,5 +31,3 @@ function InfoCstClass({ header }: InfoCstClassProps) {
); } - -export default InfoCstClass; diff --git a/rsconcept/frontend/src/features/help/components/InfoCstStatus.tsx b/rsconcept/frontend/src/features/help/components/InfoCstStatus.tsx index 28e9212f..851a5143 100644 --- a/rsconcept/frontend/src/features/help/components/InfoCstStatus.tsx +++ b/rsconcept/frontend/src/features/help/components/InfoCstStatus.tsx @@ -10,7 +10,7 @@ interface InfoCstStatusProps { title?: string; } -function InfoCstStatus({ title }: InfoCstStatusProps) { +export function InfoCstStatus({ title }: InfoCstStatusProps) { return (
{title ?

{title}

: null} @@ -37,5 +37,3 @@ function InfoCstStatus({ title }: InfoCstStatusProps) {
); } - -export default InfoCstStatus; diff --git a/rsconcept/frontend/src/features/help/items/HelpAccess.tsx b/rsconcept/frontend/src/features/help/items/HelpAccess.tsx index 9700d954..bc67a489 100644 --- a/rsconcept/frontend/src/features/help/items/HelpAccess.tsx +++ b/rsconcept/frontend/src/features/help/items/HelpAccess.tsx @@ -1,6 +1,6 @@ import { IconHide, IconImmutable, IconPrivate, IconProtected, IconPublic } from '@/components/Icons'; -function HelpAccess() { +export function HelpAccess() { return (

Организация доступов

@@ -29,5 +29,3 @@ function HelpAccess() {
); } - -export default HelpAccess; diff --git a/rsconcept/frontend/src/features/help/items/HelpConcept.tsx b/rsconcept/frontend/src/features/help/items/HelpConcept.tsx index f938b526..deab5ce0 100644 --- a/rsconcept/frontend/src/features/help/items/HelpConcept.tsx +++ b/rsconcept/frontend/src/features/help/items/HelpConcept.tsx @@ -4,7 +4,7 @@ import { external_urls } from '@/utils/constants'; import { Subtopics } from '../components/Subtopics'; import { HelpTopic } from '../models/helpTopic'; -function HelpConceptSystem() { +export function HelpConcept() { return (

Концептуализация

@@ -43,5 +43,3 @@ function HelpConceptSystem() {
); } - -export default HelpConceptSystem; diff --git a/rsconcept/frontend/src/features/help/items/HelpExteor.tsx b/rsconcept/frontend/src/features/help/items/HelpExteor.tsx index b3592ea6..30d41749 100644 --- a/rsconcept/frontend/src/features/help/items/HelpExteor.tsx +++ b/rsconcept/frontend/src/features/help/items/HelpExteor.tsx @@ -1,7 +1,7 @@ import { TextURL } from '@/components/Control'; import { external_urls, PARAMETER } from '@/utils/constants'; -function HelpExteor() { +export function HelpExteor() { return (

Экстеор

@@ -38,5 +38,3 @@ function HelpExteor() {
); } - -export default HelpExteor; diff --git a/rsconcept/frontend/src/features/help/items/HelpInfo.tsx b/rsconcept/frontend/src/features/help/items/HelpInfo.tsx index 80a4a1b2..99de1689 100644 --- a/rsconcept/frontend/src/features/help/items/HelpInfo.tsx +++ b/rsconcept/frontend/src/features/help/items/HelpInfo.tsx @@ -1,7 +1,7 @@ import { Subtopics } from '../components/Subtopics'; import { HelpTopic } from '../models/helpTopic'; -function HelpInfo() { +export function HelpInfo() { return (

Справочная информация и документы

@@ -14,5 +14,3 @@ function HelpInfo() {
); } - -export default HelpInfo; diff --git a/rsconcept/frontend/src/features/help/items/HelpInterface.tsx b/rsconcept/frontend/src/features/help/items/HelpInterface.tsx index 807fab79..084cabec 100644 --- a/rsconcept/frontend/src/features/help/items/HelpInterface.tsx +++ b/rsconcept/frontend/src/features/help/items/HelpInterface.tsx @@ -12,7 +12,7 @@ import { import { Subtopics } from '../components/Subtopics'; import { HelpTopic } from '../models/helpTopic'; -function HelpInterface() { +export function HelpInterface() { return (

Пользовательский интерфейс

@@ -60,5 +60,3 @@ function HelpInterface() {
); } - -export default HelpInterface; diff --git a/rsconcept/frontend/src/features/help/items/HelpMain.tsx b/rsconcept/frontend/src/features/help/items/HelpMain.tsx index 10ba4711..7efa21d1 100644 --- a/rsconcept/frontend/src/features/help/items/HelpMain.tsx +++ b/rsconcept/frontend/src/features/help/items/HelpMain.tsx @@ -5,7 +5,7 @@ import { LinkTopic } from '../components/LinkTopic'; import { TopicItem } from '../components/TopicItem'; import { HelpTopic } from '../models/helpTopic'; -function HelpMain() { +export function HelpMain() { return (

Портал

@@ -66,5 +66,3 @@ function HelpMain() {
); } - -export default HelpMain; diff --git a/rsconcept/frontend/src/features/help/items/HelpRSLang.tsx b/rsconcept/frontend/src/features/help/items/HelpRSLang.tsx index d7d55783..173a02e1 100644 --- a/rsconcept/frontend/src/features/help/items/HelpRSLang.tsx +++ b/rsconcept/frontend/src/features/help/items/HelpRSLang.tsx @@ -1,11 +1,11 @@ import { EmbedYoutube } from '@/components/View'; -import useWindowSize from '@/hooks/useWindowSize'; +import { useWindowSize } from '@/hooks/useWindowSize'; import { external_urls, youtube } from '@/utils/constants'; import { Subtopics } from '../components/Subtopics'; import { HelpTopic } from '../models/helpTopic'; -function HelpRSLang() { +export function HelpRSLang() { const windowSize = useWindowSize(); const videoHeight = (() => { @@ -35,5 +35,3 @@ function HelpRSLang() { ); } - -export default HelpRSLang; diff --git a/rsconcept/frontend/src/features/help/items/HelpTerminologyControl.tsx b/rsconcept/frontend/src/features/help/items/HelpTerminologyControl.tsx index ff2e113c..f2f06be2 100644 --- a/rsconcept/frontend/src/features/help/items/HelpTerminologyControl.tsx +++ b/rsconcept/frontend/src/features/help/items/HelpTerminologyControl.tsx @@ -1,4 +1,4 @@ -function HelpTerminologyControl() { +export function HelpTerminologyControl() { return (

Терминологизация

@@ -24,5 +24,3 @@ function HelpTerminologyControl() {
); } - -export default HelpTerminologyControl; diff --git a/rsconcept/frontend/src/features/help/items/HelpThesaurus.tsx b/rsconcept/frontend/src/features/help/items/HelpThesaurus.tsx index 04150b78..3cb4ba1c 100644 --- a/rsconcept/frontend/src/features/help/items/HelpThesaurus.tsx +++ b/rsconcept/frontend/src/features/help/items/HelpThesaurus.tsx @@ -30,7 +30,7 @@ import { import { LinkTopic } from '../components/LinkTopic'; import { HelpTopic } from '../models/helpTopic'; -function HelpThesaurus() { +export function HelpThesaurus() { return (

Тезаурус

@@ -281,5 +281,3 @@ function HelpThesaurus() {
); } - -export default HelpThesaurus; diff --git a/rsconcept/frontend/src/features/help/items/HelpVersions.tsx b/rsconcept/frontend/src/features/help/items/HelpVersions.tsx index ef1f857b..028d46cc 100644 --- a/rsconcept/frontend/src/features/help/items/HelpVersions.tsx +++ b/rsconcept/frontend/src/features/help/items/HelpVersions.tsx @@ -1,6 +1,6 @@ import { IconEditor, IconNewVersion, IconShare, IconUpload, IconVersions } from '@/components/Icons'; -function HelpVersions() { +export function HelpVersions() { return (

Версионирование схем

@@ -28,5 +28,3 @@ function HelpVersions() {
); } - -export default HelpVersions; diff --git a/rsconcept/frontend/src/features/help/items/cc/HelpConceptOSS.tsx b/rsconcept/frontend/src/features/help/items/cc/HelpConceptOSS.tsx index 12bb2aee..ea806fc6 100644 --- a/rsconcept/frontend/src/features/help/items/cc/HelpConceptOSS.tsx +++ b/rsconcept/frontend/src/features/help/items/cc/HelpConceptOSS.tsx @@ -11,7 +11,7 @@ import { import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpConceptOSS() { +export function HelpConceptOSS() { return (

Операционная схема синтеза

@@ -70,5 +70,3 @@ function HelpConceptOSS() {
); } - -export default HelpConceptOSS; diff --git a/rsconcept/frontend/src/features/help/items/cc/HelpConceptPropagation.tsx b/rsconcept/frontend/src/features/help/items/cc/HelpConceptPropagation.tsx index 88116019..456a35eb 100644 --- a/rsconcept/frontend/src/features/help/items/cc/HelpConceptPropagation.tsx +++ b/rsconcept/frontend/src/features/help/items/cc/HelpConceptPropagation.tsx @@ -3,7 +3,7 @@ import { IconPredecessor } from '@/components/Icons'; import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpConceptPropagation() { +export function HelpConceptPropagation() { return (

Сквозные изменения

@@ -44,5 +44,3 @@ function HelpConceptPropagation() {
); } - -export default HelpConceptPropagation; diff --git a/rsconcept/frontend/src/features/help/items/cc/HelpConceptRelations.tsx b/rsconcept/frontend/src/features/help/items/cc/HelpConceptRelations.tsx index 36274cab..04f107bd 100644 --- a/rsconcept/frontend/src/features/help/items/cc/HelpConceptRelations.tsx +++ b/rsconcept/frontend/src/features/help/items/cc/HelpConceptRelations.tsx @@ -1,7 +1,7 @@ import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpConceptRelations() { +export function HelpConceptRelations() { return (

Связи между конституентами

@@ -38,5 +38,3 @@ function HelpConceptRelations() {
); } - -export default HelpConceptRelations; diff --git a/rsconcept/frontend/src/features/help/items/cc/HelpConceptSynthesis.tsx b/rsconcept/frontend/src/features/help/items/cc/HelpConceptSynthesis.tsx index b3791598..8ac19625 100644 --- a/rsconcept/frontend/src/features/help/items/cc/HelpConceptSynthesis.tsx +++ b/rsconcept/frontend/src/features/help/items/cc/HelpConceptSynthesis.tsx @@ -1,7 +1,7 @@ import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpConceptSynthesis() { +export function HelpConceptSynthesis() { return (

Синтез концептуальных схем

@@ -46,5 +46,3 @@ function HelpConceptSynthesis() {
); } - -export default HelpConceptSynthesis; diff --git a/rsconcept/frontend/src/features/help/items/cc/HelpConceptSystem.tsx b/rsconcept/frontend/src/features/help/items/cc/HelpConceptSystem.tsx index 6be37c02..24186ef3 100644 --- a/rsconcept/frontend/src/features/help/items/cc/HelpConceptSystem.tsx +++ b/rsconcept/frontend/src/features/help/items/cc/HelpConceptSystem.tsx @@ -1,7 +1,7 @@ import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpConceptSystem() { +export function HelpConceptSystem() { return (

Концептуальная схема – Система определений

@@ -61,5 +61,3 @@ function HelpConceptSystem() {
); } - -export default HelpConceptSystem; diff --git a/rsconcept/frontend/src/features/help/items/cc/HelpCstAttributes.tsx b/rsconcept/frontend/src/features/help/items/cc/HelpCstAttributes.tsx index b2fd42b7..835782f8 100644 --- a/rsconcept/frontend/src/features/help/items/cc/HelpCstAttributes.tsx +++ b/rsconcept/frontend/src/features/help/items/cc/HelpCstAttributes.tsx @@ -1,7 +1,7 @@ import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpCstAttributes() { +export function HelpCstAttributes() { return (

Атрибуты конституенты

@@ -64,5 +64,3 @@ function HelpCstAttributes() {
); } - -export default HelpCstAttributes; diff --git a/rsconcept/frontend/src/features/help/items/info/HelpAPI.tsx b/rsconcept/frontend/src/features/help/items/info/HelpAPI.tsx index 08d49d93..38f1bd0b 100644 --- a/rsconcept/frontend/src/features/help/items/info/HelpAPI.tsx +++ b/rsconcept/frontend/src/features/help/items/info/HelpAPI.tsx @@ -1,7 +1,7 @@ import { TextURL } from '@/components/Control'; import { external_urls } from '@/utils/constants'; -function HelpAPI() { +export function HelpAPI() { return (

Программный интерфейс Портала

@@ -16,5 +16,3 @@ function HelpAPI() {
); } - -export default HelpAPI; diff --git a/rsconcept/frontend/src/features/help/items/info/HelpContributors.tsx b/rsconcept/frontend/src/features/help/items/info/HelpContributors.tsx index 1bcf66f5..4b54e34c 100644 --- a/rsconcept/frontend/src/features/help/items/info/HelpContributors.tsx +++ b/rsconcept/frontend/src/features/help/items/info/HelpContributors.tsx @@ -4,7 +4,7 @@ import { external_urls } from '@/utils/constants'; import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpInfo() { +export function HelpContributors() { return (

Благодарности разработчикам и исследователям

@@ -291,5 +291,3 @@ function HelpInfo() {
); } - -export default HelpInfo; diff --git a/rsconcept/frontend/src/features/help/items/info/HelpPrivacy.tsx b/rsconcept/frontend/src/features/help/items/info/HelpPrivacy.tsx index 8dc73c7a..78ab3d59 100644 --- a/rsconcept/frontend/src/features/help/items/info/HelpPrivacy.tsx +++ b/rsconcept/frontend/src/features/help/items/info/HelpPrivacy.tsx @@ -6,12 +6,10 @@ interface HelpPrivacyProps { minWidth: number; } -function HelpPrivacy({ offsetXpx, minWidth }: HelpPrivacyProps) { +export function HelpPrivacy({ offsetXpx, minWidth }: HelpPrivacyProps) { return (
); } - -export default HelpPrivacy; diff --git a/rsconcept/frontend/src/features/help/items/info/HelpRules.tsx b/rsconcept/frontend/src/features/help/items/info/HelpRules.tsx index 74b7c6a2..a80e93f8 100644 --- a/rsconcept/frontend/src/features/help/items/info/HelpRules.tsx +++ b/rsconcept/frontend/src/features/help/items/info/HelpRules.tsx @@ -3,7 +3,7 @@ import { urls } from '@/app'; import { TextURL } from '@/components/Control'; import { external_urls } from '@/utils/constants'; -function HelpRules() { +export function HelpRules() { return (

Правила поведения участников Портала

@@ -53,5 +53,3 @@ function HelpRules() {
); } - -export default HelpRules; diff --git a/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangCorrect.tsx b/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangCorrect.tsx index b1e5b98e..e467ee93 100644 --- a/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangCorrect.tsx +++ b/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangCorrect.tsx @@ -1,7 +1,7 @@ import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpRSLangCorrect() { +export function HelpRSLangCorrect() { return (

Переносимость и корректность

@@ -33,5 +33,3 @@ function HelpRSLangCorrect() {
); } - -export default HelpRSLangCorrect; diff --git a/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangInterpret.tsx b/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangInterpret.tsx index 1326ba10..ba039e5c 100644 --- a/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangInterpret.tsx +++ b/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangInterpret.tsx @@ -1,7 +1,7 @@ import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpRSLangInterpret() { +export function HelpRSLangInterpret() { return (

Интерпретируемость

@@ -41,5 +41,3 @@ function HelpRSLangInterpret() {
); } - -export default HelpRSLangInterpret; diff --git a/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangOperations.tsx b/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangOperations.tsx index 23fdeb1e..ee23c3ab 100644 --- a/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangOperations.tsx +++ b/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangOperations.tsx @@ -10,7 +10,7 @@ import { import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpRSLangOperations() { +export function HelpRSLangOperations() { return (

Операции над концептуальными схемами

@@ -80,5 +80,3 @@ function HelpRSLangOperations() {
); } - -export default HelpRSLangOperations; diff --git a/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangTemplates.tsx b/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangTemplates.tsx index a5f31198..50feff93 100644 --- a/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangTemplates.tsx +++ b/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangTemplates.tsx @@ -1,4 +1,4 @@ -function HelpRSLangTemplates() { +export function HelpRSLangTemplates() { return (

Шаблоны

@@ -24,5 +24,3 @@ function HelpRSLangTemplates() {
); } - -export default HelpRSLangTemplates; diff --git a/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangTypes.tsx b/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangTypes.tsx index ed8d688e..6fc80c0b 100644 --- a/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangTypes.tsx +++ b/rsconcept/frontend/src/features/help/items/rslang/HelpRSLangTypes.tsx @@ -1,4 +1,4 @@ -function HelpRSLangTypes() { +export function HelpRSLangTypes() { return (

Типизация

@@ -41,5 +41,3 @@ function HelpRSLangTypes() {
); } - -export default HelpRSLangTypes; diff --git a/rsconcept/frontend/src/features/help/items/ui/HelpCstClass.tsx b/rsconcept/frontend/src/features/help/items/ui/HelpCstClass.tsx index 9abe6a12..de3f7377 100644 --- a/rsconcept/frontend/src/features/help/items/ui/HelpCstClass.tsx +++ b/rsconcept/frontend/src/features/help/items/ui/HelpCstClass.tsx @@ -1,7 +1,5 @@ -import InfoCstClass from '../../components/InfoCstClass'; +import { InfoCstClass } from '../../components/InfoCstClass'; -function HelpCstClass() { +export function HelpCstClass() { return ; } - -export default HelpCstClass; diff --git a/rsconcept/frontend/src/features/help/items/ui/HelpCstStatus.tsx b/rsconcept/frontend/src/features/help/items/ui/HelpCstStatus.tsx index a762f00b..01e676a1 100644 --- a/rsconcept/frontend/src/features/help/items/ui/HelpCstStatus.tsx +++ b/rsconcept/frontend/src/features/help/items/ui/HelpCstStatus.tsx @@ -1,7 +1,5 @@ -import InfoCstStatus from '../../components/InfoCstStatus'; +import { InfoCstStatus } from '../../components/InfoCstStatus'; -function HelpCstStatus() { +export function HelpCstStatus() { return ; } - -export default HelpCstStatus; diff --git a/rsconcept/frontend/src/features/help/items/ui/HelpFormulaTree.tsx b/rsconcept/frontend/src/features/help/items/ui/HelpFormulaTree.tsx index fe59d6bd..d1c5c25d 100644 --- a/rsconcept/frontend/src/features/help/items/ui/HelpFormulaTree.tsx +++ b/rsconcept/frontend/src/features/help/items/ui/HelpFormulaTree.tsx @@ -1,6 +1,6 @@ import { APP_COLORS } from '@/styling/colors'; -function HelpFormulaTree() { +export function HelpFormulaTree() { return (

Дерево разбора выражения

@@ -32,5 +32,3 @@ function HelpFormulaTree() {
); } - -export default HelpFormulaTree; diff --git a/rsconcept/frontend/src/features/help/items/ui/HelpLibrary.tsx b/rsconcept/frontend/src/features/help/items/ui/HelpLibrary.tsx index db15d5ec..10c70763 100644 --- a/rsconcept/frontend/src/features/help/items/ui/HelpLibrary.tsx +++ b/rsconcept/frontend/src/features/help/items/ui/HelpLibrary.tsx @@ -21,7 +21,7 @@ import { APP_COLORS } from '@/styling/colors'; import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpLibrary() { +export function HelpLibrary() { return (

Библиотека схем

@@ -89,5 +89,3 @@ function HelpLibrary() {
); } - -export default HelpLibrary; diff --git a/rsconcept/frontend/src/features/help/items/ui/HelpOssGraph.tsx b/rsconcept/frontend/src/features/help/items/ui/HelpOssGraph.tsx index 45390782..64be15ef 100644 --- a/rsconcept/frontend/src/features/help/items/ui/HelpOssGraph.tsx +++ b/rsconcept/frontend/src/features/help/items/ui/HelpOssGraph.tsx @@ -23,7 +23,7 @@ import { import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpOssGraph() { +export function HelpOssGraph() { return (

Граф синтеза

@@ -117,5 +117,3 @@ function HelpOssGraph() {
); } - -export default HelpOssGraph; diff --git a/rsconcept/frontend/src/features/help/items/ui/HelpRSCard.tsx b/rsconcept/frontend/src/features/help/items/ui/HelpRSCard.tsx index 9cccb09a..dd23af2d 100644 --- a/rsconcept/frontend/src/features/help/items/ui/HelpRSCard.tsx +++ b/rsconcept/frontend/src/features/help/items/ui/HelpRSCard.tsx @@ -13,7 +13,7 @@ import { import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpRSCard() { +export function HelpRSCard() { return (

Карточка схемы

@@ -60,5 +60,3 @@ function HelpRSCard() {
); } - -export default HelpRSCard; diff --git a/rsconcept/frontend/src/features/help/items/ui/HelpRSEditor.tsx b/rsconcept/frontend/src/features/help/items/ui/HelpRSEditor.tsx index 8a07eb56..bb016c59 100644 --- a/rsconcept/frontend/src/features/help/items/ui/HelpRSEditor.tsx +++ b/rsconcept/frontend/src/features/help/items/ui/HelpRSEditor.tsx @@ -23,7 +23,7 @@ import { APP_COLORS } from '@/styling/colors'; import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpRSEditor() { +export function HelpRSEditor() { return (

Редактор конституенты

@@ -110,5 +110,3 @@ function HelpRSEditor() {
); } - -export default HelpRSEditor; diff --git a/rsconcept/frontend/src/features/help/items/ui/HelpRSGraphTerm.tsx b/rsconcept/frontend/src/features/help/items/ui/HelpRSGraphTerm.tsx index 21670e60..3aeac41c 100644 --- a/rsconcept/frontend/src/features/help/items/ui/HelpRSGraphTerm.tsx +++ b/rsconcept/frontend/src/features/help/items/ui/HelpRSGraphTerm.tsx @@ -25,7 +25,7 @@ import { APP_COLORS } from '@/styling/colors'; import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpRSGraphTerm() { +export function HelpRSGraphTerm() { return (

Граф термов

@@ -121,5 +121,3 @@ function HelpRSGraphTerm() {
); } - -export default HelpRSGraphTerm; diff --git a/rsconcept/frontend/src/features/help/items/ui/HelpRSList.tsx b/rsconcept/frontend/src/features/help/items/ui/HelpRSList.tsx index e11a71a4..b169f730 100644 --- a/rsconcept/frontend/src/features/help/items/ui/HelpRSList.tsx +++ b/rsconcept/frontend/src/features/help/items/ui/HelpRSList.tsx @@ -11,11 +11,11 @@ import { IconReset } from '@/components/Icons'; -import InfoCstStatus from '../../components/InfoCstStatus'; +import { InfoCstStatus } from '../../components/InfoCstStatus'; import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpRSList() { +export function HelpRSList() { return (

Список конституент

@@ -63,5 +63,3 @@ function HelpRSList() {
); } - -export default HelpRSList; diff --git a/rsconcept/frontend/src/features/help/items/ui/HelpRSMenu.tsx b/rsconcept/frontend/src/features/help/items/ui/HelpRSMenu.tsx index 06db944b..4998592f 100644 --- a/rsconcept/frontend/src/features/help/items/ui/HelpRSMenu.tsx +++ b/rsconcept/frontend/src/features/help/items/ui/HelpRSMenu.tsx @@ -18,7 +18,7 @@ import { import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpRSMenu() { +export function HelpRSMenu() { return (

Редактирование схемы

@@ -100,5 +100,3 @@ function HelpRSMenu() {
); } - -export default HelpRSMenu; diff --git a/rsconcept/frontend/src/features/help/items/ui/HelpRelocateCst.tsx b/rsconcept/frontend/src/features/help/items/ui/HelpRelocateCst.tsx index 7f3f58a8..df15d841 100644 --- a/rsconcept/frontend/src/features/help/items/ui/HelpRelocateCst.tsx +++ b/rsconcept/frontend/src/features/help/items/ui/HelpRelocateCst.tsx @@ -3,7 +3,7 @@ import { IconMoveDown, IconMoveUp, IconOSS, IconPredecessor } from '@/components import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpRelocateCst() { +export function HelpRelocateCst() { return (

Перенос конституент

@@ -32,5 +32,3 @@ function HelpRelocateCst() {
); } - -export default HelpRelocateCst; diff --git a/rsconcept/frontend/src/features/help/items/ui/HelpSubstitutions.tsx b/rsconcept/frontend/src/features/help/items/ui/HelpSubstitutions.tsx index 799b9690..ec76460a 100644 --- a/rsconcept/frontend/src/features/help/items/ui/HelpSubstitutions.tsx +++ b/rsconcept/frontend/src/features/help/items/ui/HelpSubstitutions.tsx @@ -1,4 +1,4 @@ -function HelpSubstitutions() { +export function HelpSubstitutions() { return (

Таблица отождествлений

@@ -19,5 +19,3 @@ function HelpSubstitutions() {
); } - -export default HelpSubstitutions; diff --git a/rsconcept/frontend/src/features/help/items/ui/HelpTypeGraph.tsx b/rsconcept/frontend/src/features/help/items/ui/HelpTypeGraph.tsx index 1af0ebd3..3649844b 100644 --- a/rsconcept/frontend/src/features/help/items/ui/HelpTypeGraph.tsx +++ b/rsconcept/frontend/src/features/help/items/ui/HelpTypeGraph.tsx @@ -3,7 +3,7 @@ import { APP_COLORS } from '@/styling/colors'; import { LinkTopic } from '../../components/LinkTopic'; import { HelpTopic } from '../../models/helpTopic'; -function HelpTypeGraph() { +export function HelpTypeGraph() { return (

Граф ступеней

@@ -32,5 +32,3 @@ function HelpTypeGraph() {
); } - -export default HelpTypeGraph; diff --git a/rsconcept/frontend/src/features/help/pages/ManualsPage/ManualsPage.tsx b/rsconcept/frontend/src/features/help/pages/ManualsPage/ManualsPage.tsx index b8af8e2d..c024c6d3 100644 --- a/rsconcept/frontend/src/features/help/pages/ManualsPage/ManualsPage.tsx +++ b/rsconcept/frontend/src/features/help/pages/ManualsPage/ManualsPage.tsx @@ -2,14 +2,14 @@ import { urls, useConceptNavigation } from '@/app'; -import useQueryStrings from '@/hooks/useQueryStrings'; +import { useQueryStrings } from '@/hooks/useQueryStrings'; import { useMainHeight } from '@/stores/appLayout'; import { PARAMETER } from '@/utils/constants'; import { HelpTopic } from '../../models/helpTopic'; -import TopicsList from './TopicsList'; -import ViewTopic from './ViewTopic'; +import { TopicsList } from './TopicsList'; +import { ViewTopic } from './ViewTopic'; export function ManualsPage() { const router = useConceptNavigation(); diff --git a/rsconcept/frontend/src/features/help/pages/ManualsPage/TopicPage.tsx b/rsconcept/frontend/src/features/help/pages/ManualsPage/TopicPage.tsx index e8a5b2c2..a4f3feaa 100644 --- a/rsconcept/frontend/src/features/help/pages/ManualsPage/TopicPage.tsx +++ b/rsconcept/frontend/src/features/help/pages/ManualsPage/TopicPage.tsx @@ -1,43 +1,43 @@ -import useWindowSize from '@/hooks/useWindowSize'; +import { useWindowSize } from '@/hooks/useWindowSize'; -import HelpConceptOSS from '../../items/cc/HelpConceptOSS'; -import HelpConceptPropagation from '../../items/cc/HelpConceptPropagation'; -import HelpConceptRelations from '../../items/cc/HelpConceptRelations'; -import HelpConceptSynthesis from '../../items/cc/HelpConceptSynthesis'; -import HelpConceptSystem from '../../items/cc/HelpConceptSystem'; -import HelpCstAttributes from '../../items/cc/HelpCstAttributes'; -import HelpAccess from '../../items/HelpAccess'; -import HelpConcept from '../../items/HelpConcept'; -import HelpExteor from '../../items/HelpExteor'; -import HelpInfo from '../../items/HelpInfo'; -import HelpInterface from '../../items/HelpInterface'; -import HelpMain from '../../items/HelpMain'; -import HelpRSLang from '../../items/HelpRSLang'; -import HelpTerminologyControl from '../../items/HelpTerminologyControl'; -import HelpThesaurus from '../../items/HelpThesaurus'; -import HelpVersions from '../../items/HelpVersions'; -import HelpAPI from '../../items/info/HelpAPI'; -import HelpContributors from '../../items/info/HelpContributors'; -import HelpPrivacy from '../../items/info/HelpPrivacy'; -import HelpRules from '../../items/info/HelpRules'; -import HelpRSLangCorrect from '../../items/rslang/HelpRSLangCorrect'; -import HelpRSLangInterpret from '../../items/rslang/HelpRSLangInterpret'; -import HelpRSLangOperations from '../../items/rslang/HelpRSLangOperations'; -import HelpRSLangTemplates from '../../items/rslang/HelpRSLangTemplates'; -import HelpRSLangTypes from '../../items/rslang/HelpRSLangTypes'; -import HelpCstClass from '../../items/ui/HelpCstClass'; -import HelpCstStatus from '../../items/ui/HelpCstStatus'; -import HelpFormulaTree from '../../items/ui/HelpFormulaTree'; -import HelpLibrary from '../../items/ui/HelpLibrary'; -import HelpOssGraph from '../../items/ui/HelpOssGraph'; -import HelpRelocateCst from '../../items/ui/HelpRelocateCst'; -import HelpRSCard from '../../items/ui/HelpRSCard'; -import HelpRSEditor from '../../items/ui/HelpRSEditor'; -import HelpRSGraphTerm from '../../items/ui/HelpRSGraphTerm'; -import HelpRSList from '../../items/ui/HelpRSList'; -import HelpRSMenu from '../../items/ui/HelpRSMenu'; -import HelpSubstitutions from '../../items/ui/HelpSubstitutions'; -import HelpTypeGraph from '../../items/ui/HelpTypeGraph'; +import { HelpConceptOSS } from '../../items/cc/HelpConceptOSS'; +import { HelpConceptPropagation } from '../../items/cc/HelpConceptPropagation'; +import { HelpConceptRelations } from '../../items/cc/HelpConceptRelations'; +import { HelpConceptSynthesis } from '../../items/cc/HelpConceptSynthesis'; +import { HelpConceptSystem } from '../../items/cc/HelpConceptSystem'; +import { HelpCstAttributes } from '../../items/cc/HelpCstAttributes'; +import { HelpAccess } from '../../items/HelpAccess'; +import { HelpConcept } from '../../items/HelpConcept'; +import { HelpExteor } from '../../items/HelpExteor'; +import { HelpInfo } from '../../items/HelpInfo'; +import { HelpInterface } from '../../items/HelpInterface'; +import { HelpMain } from '../../items/HelpMain'; +import { HelpRSLang } from '../../items/HelpRSLang'; +import { HelpTerminologyControl } from '../../items/HelpTerminologyControl'; +import { HelpThesaurus } from '../../items/HelpThesaurus'; +import { HelpVersions } from '../../items/HelpVersions'; +import { HelpAPI } from '../../items/info/HelpAPI'; +import { HelpContributors } from '../../items/info/HelpContributors'; +import { HelpPrivacy } from '../../items/info/HelpPrivacy'; +import { HelpRules } from '../../items/info/HelpRules'; +import { HelpRSLangCorrect } from '../../items/rslang/HelpRSLangCorrect'; +import { HelpRSLangInterpret } from '../../items/rslang/HelpRSLangInterpret'; +import { HelpRSLangOperations } from '../../items/rslang/HelpRSLangOperations'; +import { HelpRSLangTemplates } from '../../items/rslang/HelpRSLangTemplates'; +import { HelpRSLangTypes } from '../../items/rslang/HelpRSLangTypes'; +import { HelpCstClass } from '../../items/ui/HelpCstClass'; +import { HelpCstStatus } from '../../items/ui/HelpCstStatus'; +import { HelpFormulaTree } from '../../items/ui/HelpFormulaTree'; +import { HelpLibrary } from '../../items/ui/HelpLibrary'; +import { HelpOssGraph } from '../../items/ui/HelpOssGraph'; +import { HelpRelocateCst } from '../../items/ui/HelpRelocateCst'; +import { HelpRSCard } from '../../items/ui/HelpRSCard'; +import { HelpRSEditor } from '../../items/ui/HelpRSEditor'; +import { HelpRSGraphTerm } from '../../items/ui/HelpRSGraphTerm'; +import { HelpRSList } from '../../items/ui/HelpRSList'; +import { HelpRSMenu } from '../../items/ui/HelpRSMenu'; +import { HelpSubstitutions } from '../../items/ui/HelpSubstitutions'; +import { HelpTypeGraph } from '../../items/ui/HelpTypeGraph'; import { HelpTopic } from '../../models/helpTopic'; // PDF Viewer setup @@ -51,7 +51,7 @@ interface TopicPageProps { topic: HelpTopic; } -function TopicPage({ topic }: TopicPageProps) { +export function TopicPage({ topic }: TopicPageProps) { const size = useWindowSize(); if (topic === HelpTopic.MAIN) return ; @@ -106,5 +106,3 @@ function TopicPage({ topic }: TopicPageProps) { if (topic === HelpTopic.EXTEOR) return ; return null; } - -export default TopicPage; diff --git a/rsconcept/frontend/src/features/help/pages/ManualsPage/TopicsDropdown.tsx b/rsconcept/frontend/src/features/help/pages/ManualsPage/TopicsDropdown.tsx index 123a031a..260ea942 100644 --- a/rsconcept/frontend/src/features/help/pages/ManualsPage/TopicsDropdown.tsx +++ b/rsconcept/frontend/src/features/help/pages/ManualsPage/TopicsDropdown.tsx @@ -17,7 +17,7 @@ interface TopicsDropdownProps { onChangeTopic: (newTopic: HelpTopic) => void; } -function TopicsDropdown({ activeTopic, onChangeTopic }: TopicsDropdownProps) { +export function TopicsDropdown({ activeTopic, onChangeTopic }: TopicsDropdownProps) { const menu = useDropdown(); const noNavigation = useAppLayoutStore(state => state.noNavigation); const treeHeight = useFitHeight('4rem + 2px'); @@ -74,5 +74,3 @@ function TopicsDropdown({ activeTopic, onChangeTopic }: TopicsDropdownProps) { ); } - -export default TopicsDropdown; diff --git a/rsconcept/frontend/src/features/help/pages/ManualsPage/TopicsList.tsx b/rsconcept/frontend/src/features/help/pages/ManualsPage/TopicsList.tsx index c51493b3..06a15783 100644 --- a/rsconcept/frontend/src/features/help/pages/ManualsPage/TopicsList.tsx +++ b/rsconcept/frontend/src/features/help/pages/ManualsPage/TopicsList.tsx @@ -1,18 +1,18 @@ 'use client'; -import useWindowSize from '@/hooks/useWindowSize'; +import { useWindowSize } from '@/hooks/useWindowSize'; import { HelpTopic } from '../../models/helpTopic'; -import TopicsDropdown from './TopicsDropdown'; -import TopicsStatic from './TopicsStatic'; +import { TopicsDropdown } from './TopicsDropdown'; +import { TopicsStatic } from './TopicsStatic'; interface TopicsListProps { activeTopic: HelpTopic; onChangeTopic: (newTopic: HelpTopic) => void; } -function TopicsList({ activeTopic, onChangeTopic }: TopicsListProps) { +export function TopicsList({ activeTopic, onChangeTopic }: TopicsListProps) { const size = useWindowSize(); if (!size.isSmall) { @@ -21,5 +21,3 @@ function TopicsList({ activeTopic, onChangeTopic }: TopicsListProps) { return ; } } - -export default TopicsList; diff --git a/rsconcept/frontend/src/features/help/pages/ManualsPage/TopicsStatic.tsx b/rsconcept/frontend/src/features/help/pages/ManualsPage/TopicsStatic.tsx index e812ef62..2dcd53bb 100644 --- a/rsconcept/frontend/src/features/help/pages/ManualsPage/TopicsStatic.tsx +++ b/rsconcept/frontend/src/features/help/pages/ManualsPage/TopicsStatic.tsx @@ -12,7 +12,7 @@ interface TopicsStaticProps { onChangeTopic: (newTopic: HelpTopic) => void; } -function TopicsStatic({ activeTopic, onChangeTopic }: TopicsStaticProps) { +export function TopicsStatic({ activeTopic, onChangeTopic }: TopicsStaticProps) { const topicsHeight = useFitHeight('1rem + 2px'); return ( ); } - -export default TopicsStatic; diff --git a/rsconcept/frontend/src/features/help/pages/ManualsPage/ViewTopic.tsx b/rsconcept/frontend/src/features/help/pages/ManualsPage/ViewTopic.tsx index 5cb2608d..d4ea3084 100644 --- a/rsconcept/frontend/src/features/help/pages/ManualsPage/ViewTopic.tsx +++ b/rsconcept/frontend/src/features/help/pages/ManualsPage/ViewTopic.tsx @@ -4,13 +4,13 @@ import { useMainHeight } from '@/stores/appLayout'; import { HelpTopic } from '../../models/helpTopic'; -import TopicPage from './TopicPage'; +import { TopicPage } from './TopicPage'; interface ViewTopicProps { topic: HelpTopic; } -function ViewTopic({ topic }: ViewTopicProps) { +export function ViewTopic({ topic }: ViewTopicProps) { const mainHeight = useMainHeight(); return (
); } - -export default ViewTopic; diff --git a/rsconcept/frontend/src/features/home/HomePage.tsx b/rsconcept/frontend/src/features/home/HomePage.tsx index 6f9e72d2..33a3b0e4 100644 --- a/rsconcept/frontend/src/features/home/HomePage.tsx +++ b/rsconcept/frontend/src/features/home/HomePage.tsx @@ -1,7 +1,7 @@ import { urls, useConceptNavigation } from '@/app'; import { useAuthSuspense } from '@/features/auth'; -function HomePage() { +export function HomePage() { const router = useConceptNavigation(); const { isAnonymous } = useAuthSuspense(); @@ -13,5 +13,3 @@ function HomePage() { return null; } - -export default HomePage; diff --git a/rsconcept/frontend/src/features/home/NotFoundPage.tsx b/rsconcept/frontend/src/features/home/NotFoundPage.tsx index e0023bda..212063fb 100644 --- a/rsconcept/frontend/src/features/home/NotFoundPage.tsx +++ b/rsconcept/frontend/src/features/home/NotFoundPage.tsx @@ -9,5 +9,3 @@ export function NotFoundPage() {
); } - -export default NotFoundPage; diff --git a/rsconcept/frontend/src/features/library/components/BadgeLocation.tsx b/rsconcept/frontend/src/features/library/components/BadgeLocation.tsx index fd61e8b0..d222b486 100644 --- a/rsconcept/frontend/src/features/library/components/BadgeLocation.tsx +++ b/rsconcept/frontend/src/features/library/components/BadgeLocation.tsx @@ -9,12 +9,10 @@ interface BadgeLocationProps { /** * Displays location icon with a full text tooltip. */ -function BadgeLocation({ location }: BadgeLocationProps) { +export function BadgeLocation({ location }: BadgeLocationProps) { return (
); } - -export default BadgeLocation; diff --git a/rsconcept/frontend/src/features/library/components/PickSchema.tsx b/rsconcept/frontend/src/features/library/components/PickSchema.tsx index 3c5a1e7b..37b712a1 100644 --- a/rsconcept/frontend/src/features/library/components/PickSchema.tsx +++ b/rsconcept/frontend/src/features/library/components/PickSchema.tsx @@ -4,7 +4,7 @@ import clsx from 'clsx'; import { FlexColumn } from '@/components/Container'; import { MiniButton } from '@/components/Control'; -import DataTable, { createColumnHelper, IConditionalStyle } from '@/components/DataTable'; +import { createColumnHelper, DataTable, IConditionalStyle } from '@/components/DataTable'; import { Dropdown, useDropdown } from '@/components/Dropdown'; import { IconClose, IconFolderTree } from '@/components/Icons'; import { SearchBar } from '@/components/Input'; @@ -15,7 +15,7 @@ import { prefixes } from '@/utils/constants'; import { ILibraryItem, LibraryItemType } from '../backend/types'; import { matchLibraryItem } from '../models/libraryAPI'; -import SelectLocation from './SelectLocation'; +import { SelectLocation } from './SelectLocation'; interface PickSchemaProps extends CProps.Styling { id?: string; diff --git a/rsconcept/frontend/src/features/library/components/SelectLocation.tsx b/rsconcept/frontend/src/features/library/components/SelectLocation.tsx index fdc5ba8a..eefd1107 100644 --- a/rsconcept/frontend/src/features/library/components/SelectLocation.tsx +++ b/rsconcept/frontend/src/features/library/components/SelectLocation.tsx @@ -19,7 +19,7 @@ interface SelectLocationProps extends CProps.Styling { dense?: boolean; } -function SelectLocation({ value, dense, prefix, onClick, className, style }: SelectLocationProps) { +export function SelectLocation({ value, dense, prefix, onClick, className, style }: SelectLocationProps) { const { folders } = useFolders(); const activeNode = folders.at(value); const items = folders.getTree(); @@ -102,5 +102,3 @@ function SelectLocation({ value, dense, prefix, onClick, className, style }: Sel ); } - -export default SelectLocation; diff --git a/rsconcept/frontend/src/features/library/components/SelectLocationContext.tsx b/rsconcept/frontend/src/features/library/components/SelectLocationContext.tsx index c2356779..81d5c9cd 100644 --- a/rsconcept/frontend/src/features/library/components/SelectLocationContext.tsx +++ b/rsconcept/frontend/src/features/library/components/SelectLocationContext.tsx @@ -8,7 +8,7 @@ import { IconFolderTree } from '@/components/Icons'; import { CProps } from '@/components/props'; import { prefixes } from '@/utils/constants'; -import SelectLocation from './SelectLocation'; +import { SelectLocation } from './SelectLocation'; interface SelectLocationContextProps extends CProps.Styling { value: string; diff --git a/rsconcept/frontend/src/features/library/dialogs/DlgChangeLocation.tsx b/rsconcept/frontend/src/features/library/dialogs/DlgChangeLocation.tsx index a311c3e6..0d843ac3 100644 --- a/rsconcept/frontend/src/features/library/dialogs/DlgChangeLocation.tsx +++ b/rsconcept/frontend/src/features/library/dialogs/DlgChangeLocation.tsx @@ -29,7 +29,7 @@ export interface DlgChangeLocationProps { onChangeLocation: (newLocation: string) => void; } -function DlgChangeLocation() { +export function DlgChangeLocation() { const { initial, onChangeLocation } = useDialogsStore(state => state.props as DlgChangeLocationProps); const { user } = useAuthSuspense(); @@ -97,5 +97,3 @@ function DlgChangeLocation() { ); } - -export default DlgChangeLocation; diff --git a/rsconcept/frontend/src/features/library/dialogs/DlgCloneLibraryItem.tsx b/rsconcept/frontend/src/features/library/dialogs/DlgCloneLibraryItem.tsx index d0717cd2..893bae3a 100644 --- a/rsconcept/frontend/src/features/library/dialogs/DlgCloneLibraryItem.tsx +++ b/rsconcept/frontend/src/features/library/dialogs/DlgCloneLibraryItem.tsx @@ -28,7 +28,7 @@ export interface DlgCloneLibraryItemProps { totalCount: number; } -function DlgCloneLibraryItem() { +export function DlgCloneLibraryItem() { const { base, initialLocation, selected, totalCount } = useDialogsStore( state => state.props as DlgCloneLibraryItemProps ); @@ -174,5 +174,3 @@ function DlgCloneLibraryItem() { ); } - -export default DlgCloneLibraryItem; diff --git a/rsconcept/frontend/src/features/library/dialogs/DlgCreateVersion.tsx b/rsconcept/frontend/src/features/library/dialogs/DlgCreateVersion.tsx index 2d783666..42a67bcb 100644 --- a/rsconcept/frontend/src/features/library/dialogs/DlgCreateVersion.tsx +++ b/rsconcept/frontend/src/features/library/dialogs/DlgCreateVersion.tsx @@ -21,7 +21,7 @@ export interface DlgCreateVersionProps { totalCount: number; } -function DlgCreateVersion() { +export function DlgCreateVersion() { const { itemID, versions, selected, totalCount, onCreate } = useDialogsStore( state => state.props as DlgCreateVersionProps ); @@ -70,5 +70,3 @@ function DlgCreateVersion() { ); } - -export default DlgCreateVersion; diff --git a/rsconcept/frontend/src/features/library/dialogs/DlgEditEditors/DlgEditEditors.tsx b/rsconcept/frontend/src/features/library/dialogs/DlgEditEditors/DlgEditEditors.tsx index a213e3d2..cc4d3329 100644 --- a/rsconcept/frontend/src/features/library/dialogs/DlgEditEditors/DlgEditEditors.tsx +++ b/rsconcept/frontend/src/features/library/dialogs/DlgEditEditors/DlgEditEditors.tsx @@ -18,7 +18,7 @@ export interface DlgEditEditorsProps { initialEditors: number[]; } -function DlgEditEditors() { +export function DlgEditEditors() { const { initialEditors: initial, itemID } = useDialogsStore(state => state.props as DlgEditEditorsProps); const { setEditors } = useSetEditors(); @@ -70,5 +70,3 @@ function DlgEditEditors() { ); } - -export default DlgEditEditors; diff --git a/rsconcept/frontend/src/features/library/dialogs/DlgEditEditors/index.tsx b/rsconcept/frontend/src/features/library/dialogs/DlgEditEditors/index.tsx index 4afa4b72..b0b1b396 100644 --- a/rsconcept/frontend/src/features/library/dialogs/DlgEditEditors/index.tsx +++ b/rsconcept/frontend/src/features/library/dialogs/DlgEditEditors/index.tsx @@ -1 +1 @@ -export { default } from './DlgEditEditors'; +export { DlgEditEditors } from './DlgEditEditors'; diff --git a/rsconcept/frontend/src/features/library/dialogs/DlgEditVersions/DlgEditVersions.tsx b/rsconcept/frontend/src/features/library/dialogs/DlgEditVersions/DlgEditVersions.tsx index 920db4c4..be7d5239 100644 --- a/rsconcept/frontend/src/features/library/dialogs/DlgEditVersions/DlgEditVersions.tsx +++ b/rsconcept/frontend/src/features/library/dialogs/DlgEditVersions/DlgEditVersions.tsx @@ -19,14 +19,14 @@ import { useMutatingLibrary } from '../../backend/useMutatingLibrary'; import { useVersionDelete } from '../../backend/useVersionDelete'; import { useVersionUpdate } from '../../backend/useVersionUpdate'; -import TableVersions from './TableVersions'; +import { TableVersions } from './TableVersions'; export interface DlgEditVersionsProps { itemID: number; afterDelete: (targetVersion: number) => void; } -function DlgEditVersions() { +export function DlgEditVersions() { const { itemID, afterDelete } = useDialogsStore(state => state.props as DlgEditVersionsProps); const hideDialog = useDialogsStore(state => state.hideDialog); const { schema } = useRSFormSuspense({ itemID }); @@ -128,5 +128,3 @@ function DlgEditVersions() { ); } - -export default DlgEditVersions; diff --git a/rsconcept/frontend/src/features/library/dialogs/DlgEditVersions/TableVersions.tsx b/rsconcept/frontend/src/features/library/dialogs/DlgEditVersions/TableVersions.tsx index 54e726b9..fa0825fe 100644 --- a/rsconcept/frontend/src/features/library/dialogs/DlgEditVersions/TableVersions.tsx +++ b/rsconcept/frontend/src/features/library/dialogs/DlgEditVersions/TableVersions.tsx @@ -4,7 +4,7 @@ import { useIntl } from 'react-intl'; import clsx from 'clsx'; import { MiniButton } from '@/components/Control'; -import DataTable, { createColumnHelper, IConditionalStyle } from '@/components/DataTable'; +import { createColumnHelper, DataTable, IConditionalStyle } from '@/components/DataTable'; import { IconRemove } from '@/components/Icons'; import { APP_COLORS } from '@/styling/colors'; @@ -20,7 +20,7 @@ interface TableVersionsProps { const columnHelper = createColumnHelper(); -function TableVersions({ processing, items, onDelete, selected, onSelect }: TableVersionsProps) { +export function TableVersions({ processing, items, onDelete, selected, onSelect }: TableVersionsProps) { const intl = useIntl(); function handleDeleteVersion(event: React.MouseEvent, targetVersion: number) { @@ -98,5 +98,3 @@ function TableVersions({ processing, items, onDelete, selected, onSelect }: Tabl /> ); } - -export default TableVersions; diff --git a/rsconcept/frontend/src/features/library/dialogs/DlgEditVersions/index.tsx b/rsconcept/frontend/src/features/library/dialogs/DlgEditVersions/index.tsx index 71239953..5ec9767b 100644 --- a/rsconcept/frontend/src/features/library/dialogs/DlgEditVersions/index.tsx +++ b/rsconcept/frontend/src/features/library/dialogs/DlgEditVersions/index.tsx @@ -1 +1 @@ -export { default } from './DlgEditVersions'; +export { DlgEditVersions } from './DlgEditVersions'; diff --git a/rsconcept/frontend/src/features/library/pages/CreateItemPage/CreateItemPage.tsx b/rsconcept/frontend/src/features/library/pages/CreateItemPage/CreateItemPage.tsx index 8c921d2c..0a8316b0 100644 --- a/rsconcept/frontend/src/features/library/pages/CreateItemPage/CreateItemPage.tsx +++ b/rsconcept/frontend/src/features/library/pages/CreateItemPage/CreateItemPage.tsx @@ -1,13 +1,11 @@ import { RequireAuth } from '@/features/auth'; -import FormCreateItem from './FormCreateItem'; +import { FormCreateItem } from './FormCreateItem'; -function CreateItemPage() { +export function CreateItemPage() { return ( ); } - -export default CreateItemPage; diff --git a/rsconcept/frontend/src/features/library/pages/CreateItemPage/FormCreateItem.tsx b/rsconcept/frontend/src/features/library/pages/CreateItemPage/FormCreateItem.tsx index 67677d7d..b8023e13 100644 --- a/rsconcept/frontend/src/features/library/pages/CreateItemPage/FormCreateItem.tsx +++ b/rsconcept/frontend/src/features/library/pages/CreateItemPage/FormCreateItem.tsx @@ -26,7 +26,7 @@ import { LocationHead } from '../../models/library'; import { combineLocation } from '../../models/libraryAPI'; import { useLibrarySearchStore } from '../../stores/librarySearch'; -function FormCreateItem() { +export function FormCreateItem() { const router = useConceptNavigation(); const { user } = useAuthSuspense(); const { createItem, isPending, error: serverError, reset: clearServerError } = useCreateItem(); @@ -249,5 +249,3 @@ function FormCreateItem() { ); } - -export default FormCreateItem; diff --git a/rsconcept/frontend/src/features/library/pages/CreateItemPage/index.tsx b/rsconcept/frontend/src/features/library/pages/CreateItemPage/index.tsx index 6e2a571c..3d2c2baa 100644 --- a/rsconcept/frontend/src/features/library/pages/CreateItemPage/index.tsx +++ b/rsconcept/frontend/src/features/library/pages/CreateItemPage/index.tsx @@ -1 +1 @@ -export { default } from './CreateItemPage'; +export { CreateItemPage } from './CreateItemPage'; diff --git a/rsconcept/frontend/src/features/library/pages/LibraryPage/LibraryPage.tsx b/rsconcept/frontend/src/features/library/pages/LibraryPage/LibraryPage.tsx index f7ee03e2..55f1ac3e 100644 --- a/rsconcept/frontend/src/features/library/pages/LibraryPage/LibraryPage.tsx +++ b/rsconcept/frontend/src/features/library/pages/LibraryPage/LibraryPage.tsx @@ -16,9 +16,9 @@ import { useLibrarySuspense } from '../../backend/useLibrary'; import { useRenameLocation } from '../../backend/useRenameLocation'; import { useCreateLibraryFilter, useLibrarySearchStore } from '../../stores/librarySearch'; -import TableLibraryItems from './TableLibraryItems'; -import ToolbarSearch from './ToolbarSearch'; -import ViewSideLocation from './ViewSideLocation'; +import { TableLibraryItems } from './TableLibraryItems'; +import { ToolbarSearch } from './ToolbarSearch'; +import { ViewSideLocation } from './ViewSideLocation'; export function LibraryPage() { const { items: libraryItems } = useLibrarySuspense(); diff --git a/rsconcept/frontend/src/features/library/pages/LibraryPage/TableLibraryItems.tsx b/rsconcept/frontend/src/features/library/pages/LibraryPage/TableLibraryItems.tsx index b2682469..7b4ba46e 100644 --- a/rsconcept/frontend/src/features/library/pages/LibraryPage/TableLibraryItems.tsx +++ b/rsconcept/frontend/src/features/library/pages/LibraryPage/TableLibraryItems.tsx @@ -9,16 +9,16 @@ import { useLabelUser } from '@/features/users'; import { FlexColumn } from '@/components/Container'; import { MiniButton, TextURL } from '@/components/Control'; -import DataTable, { createColumnHelper, IConditionalStyle, VisibilityState } from '@/components/DataTable'; +import { createColumnHelper, DataTable, IConditionalStyle, VisibilityState } from '@/components/DataTable'; import { IconFolderTree } from '@/components/Icons'; import { CProps } from '@/components/props'; -import useWindowSize from '@/hooks/useWindowSize'; +import { useWindowSize } from '@/hooks/useWindowSize'; import { useFitHeight } from '@/stores/appLayout'; import { usePreferencesStore } from '@/stores/preferences'; import { APP_COLORS } from '@/styling/colors'; import { ILibraryItem, LibraryItemType } from '../../backend/types'; -import BadgeLocation from '../../components/BadgeLocation'; +import { BadgeLocation } from '../../components/BadgeLocation'; import { useLibrarySearchStore } from '../../stores/librarySearch'; interface TableLibraryItemsProps { @@ -27,7 +27,7 @@ interface TableLibraryItemsProps { const columnHelper = createColumnHelper(); -function TableLibraryItems({ items }: TableLibraryItemsProps) { +export function TableLibraryItems({ items }: TableLibraryItemsProps) { const router = useConceptNavigation(); const intl = useIntl(); const getUserLabel = useLabelUser(); @@ -185,5 +185,3 @@ function TableLibraryItems({ items }: TableLibraryItemsProps) { /> ); } - -export default TableLibraryItems; diff --git a/rsconcept/frontend/src/features/library/pages/LibraryPage/ToolbarSearch.tsx b/rsconcept/frontend/src/features/library/pages/LibraryPage/ToolbarSearch.tsx index 6758bc9b..802f5881 100644 --- a/rsconcept/frontend/src/features/library/pages/LibraryPage/ToolbarSearch.tsx +++ b/rsconcept/frontend/src/features/library/pages/LibraryPage/ToolbarSearch.tsx @@ -30,7 +30,7 @@ interface ToolbarSearchProps { filtered: number; } -function ToolbarSearch({ total, filtered }: ToolbarSearchProps) { +export function ToolbarSearch({ total, filtered }: ToolbarSearchProps) { const headMenu = useDropdown(); const userMenu = useDropdown(); @@ -212,5 +212,3 @@ function ToolbarSearch({ total, filtered }: ToolbarSearchProps) { ); } - -export default ToolbarSearch; diff --git a/rsconcept/frontend/src/features/library/pages/LibraryPage/ViewSideLocation.tsx b/rsconcept/frontend/src/features/library/pages/LibraryPage/ViewSideLocation.tsx index a500bdbe..c64c987c 100644 --- a/rsconcept/frontend/src/features/library/pages/LibraryPage/ViewSideLocation.tsx +++ b/rsconcept/frontend/src/features/library/pages/LibraryPage/ViewSideLocation.tsx @@ -8,13 +8,13 @@ import { MiniButton } from '@/components/Control'; import { SubfoldersIcon } from '@/components/DomainIcons'; import { IconFolderEdit, IconFolderTree } from '@/components/Icons'; import { CProps } from '@/components/props'; -import useWindowSize from '@/hooks/useWindowSize'; +import { useWindowSize } from '@/hooks/useWindowSize'; import { useFitHeight } from '@/stores/appLayout'; import { PARAMETER, prefixes } from '@/utils/constants'; import { infoMsg } from '@/utils/labels'; import { useLibrary } from '../../backend/useLibrary'; -import SelectLocation from '../../components/SelectLocation'; +import { SelectLocation } from '../../components/SelectLocation'; import { FolderNode } from '../../models/FolderTree'; import { useLibrarySearchStore } from '../../stores/librarySearch'; @@ -23,7 +23,7 @@ interface ViewSideLocationProps { onRenameLocation: () => void; } -function ViewSideLocation({ isVisible, onRenameLocation }: ViewSideLocationProps) { +export function ViewSideLocation({ isVisible, onRenameLocation }: ViewSideLocationProps) { const { user, isAnonymous } = useAuthSuspense(); const { items } = useLibrary(); const windowSize = useWindowSize(); @@ -111,5 +111,3 @@ function ViewSideLocation({ isVisible, onRenameLocation }: ViewSideLocationProps ); } - -export default ViewSideLocation; diff --git a/rsconcept/frontend/src/features/oss/components/PickMultiOperation.tsx b/rsconcept/frontend/src/features/oss/components/PickMultiOperation.tsx index 18dae4cf..7a19467f 100644 --- a/rsconcept/frontend/src/features/oss/components/PickMultiOperation.tsx +++ b/rsconcept/frontend/src/features/oss/components/PickMultiOperation.tsx @@ -4,7 +4,7 @@ import { useState } from 'react'; import clsx from 'clsx'; import { MiniButton } from '@/components/Control'; -import DataTable, { createColumnHelper } from '@/components/DataTable'; +import { createColumnHelper, DataTable } from '@/components/DataTable'; import { IconMoveDown, IconMoveUp, IconRemove } from '@/components/Icons'; import { CProps } from '@/components/props'; import { NoData } from '@/components/View'; diff --git a/rsconcept/frontend/src/features/oss/components/TooltipOperation.tsx b/rsconcept/frontend/src/features/oss/components/TooltipOperation.tsx index 186dc4ab..eb5ab2f4 100644 --- a/rsconcept/frontend/src/features/oss/components/TooltipOperation.tsx +++ b/rsconcept/frontend/src/features/oss/components/TooltipOperation.tsx @@ -3,7 +3,7 @@ import { createColumnHelper } from '@tanstack/react-table'; import { Tooltip } from '@/components/Container'; -import DataTable from '@/components/DataTable'; +import { DataTable } from '@/components/DataTable'; import { IconPageRight } from '@/components/Icons'; import { ICstSubstituteInfo, OperationType } from '../backend/types'; @@ -17,7 +17,7 @@ interface TooltipOperationProps { const columnHelper = createColumnHelper(); -function TooltipOperation({ node, anchor }: TooltipOperationProps) { +export function TooltipOperation({ node, anchor }: TooltipOperationProps) { const columns = [ columnHelper.accessor('substitution_term', { id: 'substitution_term', @@ -88,5 +88,3 @@ function TooltipOperation({ node, anchor }: TooltipOperationProps) { ); } - -export default TooltipOperation; diff --git a/rsconcept/frontend/src/features/oss/dialogs/DlgChangeInputSchema.tsx b/rsconcept/frontend/src/features/oss/dialogs/DlgChangeInputSchema.tsx index 7bab46fb..b914c9c3 100644 --- a/rsconcept/frontend/src/features/oss/dialogs/DlgChangeInputSchema.tsx +++ b/rsconcept/frontend/src/features/oss/dialogs/DlgChangeInputSchema.tsx @@ -23,7 +23,7 @@ export interface DlgChangeInputSchemaProps { positions: IOperationPosition[]; } -function DlgChangeInputSchema() { +export function DlgChangeInputSchema() { const { oss, target, positions } = useDialogsStore(state => state.props as DlgChangeInputSchemaProps); const { inputUpdate } = useInputUpdate(); @@ -84,5 +84,3 @@ function DlgChangeInputSchema() { ); } - -export default DlgChangeInputSchema; diff --git a/rsconcept/frontend/src/features/oss/dialogs/DlgCreateOperation/DlgCreateOperation.tsx b/rsconcept/frontend/src/features/oss/dialogs/DlgCreateOperation/DlgCreateOperation.tsx index 5ab0db8f..ff84943c 100644 --- a/rsconcept/frontend/src/features/oss/dialogs/DlgCreateOperation/DlgCreateOperation.tsx +++ b/rsconcept/frontend/src/features/oss/dialogs/DlgCreateOperation/DlgCreateOperation.tsx @@ -17,8 +17,8 @@ import { describeOperationType, labelOperationType } from '../../labels'; import { IOperationSchema } from '../../models/oss'; import { calculateInsertPosition } from '../../models/ossAPI'; -import TabInputOperation from './TabInputOperation'; -import TabSynthesisOperation from './TabSynthesisOperation'; +import { TabInputOperation } from './TabInputOperation'; +import { TabSynthesisOperation } from './TabSynthesisOperation'; export interface DlgCreateOperationProps { oss: IOperationSchema; @@ -34,7 +34,7 @@ export enum TabID { SYNTHESIS = 1 } -function DlgCreateOperation() { +export function DlgCreateOperation() { const { operationCreate } = useOperationCreate(); const { oss, positions, initialInputs, onCreate, defaultX, defaultY } = useDialogsStore( @@ -128,5 +128,3 @@ function DlgCreateOperation() { ); } - -export default DlgCreateOperation; diff --git a/rsconcept/frontend/src/features/oss/dialogs/DlgCreateOperation/TabInputOperation.tsx b/rsconcept/frontend/src/features/oss/dialogs/DlgCreateOperation/TabInputOperation.tsx index a9d78693..e65f0e02 100644 --- a/rsconcept/frontend/src/features/oss/dialogs/DlgCreateOperation/TabInputOperation.tsx +++ b/rsconcept/frontend/src/features/oss/dialogs/DlgCreateOperation/TabInputOperation.tsx @@ -14,7 +14,7 @@ import { sortItemsForOSS } from '../../models/ossAPI'; import { DlgCreateOperationProps } from './DlgCreateOperation'; -function TabInputOperation() { +export function TabInputOperation() { const { oss } = useDialogsStore(state => state.props as DlgCreateOperationProps); const { items: libraryItems } = useLibrary(); const sortedItems = sortItemsForOSS(oss, libraryItems); @@ -112,5 +112,3 @@ function TabInputOperation() { ); } - -export default TabInputOperation; diff --git a/rsconcept/frontend/src/features/oss/dialogs/DlgCreateOperation/TabSynthesisOperation.tsx b/rsconcept/frontend/src/features/oss/dialogs/DlgCreateOperation/TabSynthesisOperation.tsx index 0f3a3371..69be9ceb 100644 --- a/rsconcept/frontend/src/features/oss/dialogs/DlgCreateOperation/TabSynthesisOperation.tsx +++ b/rsconcept/frontend/src/features/oss/dialogs/DlgCreateOperation/TabSynthesisOperation.tsx @@ -9,7 +9,7 @@ import { PickMultiOperation } from '../../components/PickMultiOperation'; import { DlgCreateOperationProps } from './DlgCreateOperation'; -function TabSynthesisOperation() { +export function TabSynthesisOperation() { const { oss } = useDialogsStore(state => state.props as DlgCreateOperationProps); const { register, @@ -58,5 +58,3 @@ function TabSynthesisOperation() { ); } - -export default TabSynthesisOperation; diff --git a/rsconcept/frontend/src/features/oss/dialogs/DlgCreateOperation/index.tsx b/rsconcept/frontend/src/features/oss/dialogs/DlgCreateOperation/index.tsx index 1c74c44a..e89fcbe1 100644 --- a/rsconcept/frontend/src/features/oss/dialogs/DlgCreateOperation/index.tsx +++ b/rsconcept/frontend/src/features/oss/dialogs/DlgCreateOperation/index.tsx @@ -1 +1 @@ -export { default } from './DlgCreateOperation'; +export { DlgCreateOperation } from './DlgCreateOperation'; diff --git a/rsconcept/frontend/src/features/oss/dialogs/DlgDeleteOperation.tsx b/rsconcept/frontend/src/features/oss/dialogs/DlgDeleteOperation.tsx index 4b289052..dacfc080 100644 --- a/rsconcept/frontend/src/features/oss/dialogs/DlgDeleteOperation.tsx +++ b/rsconcept/frontend/src/features/oss/dialogs/DlgDeleteOperation.tsx @@ -20,7 +20,7 @@ export interface DlgDeleteOperationProps { positions: IOperationPosition[]; } -function DlgDeleteOperation() { +export function DlgDeleteOperation() { const { oss, target, positions } = useDialogsStore(state => state.props as DlgDeleteOperationProps); const { operationDelete } = useOperationDelete(); @@ -82,5 +82,3 @@ function DlgDeleteOperation() { ); } - -export default DlgDeleteOperation; diff --git a/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/DlgEditOperation.tsx b/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/DlgEditOperation.tsx index 75434c71..dc501c63 100644 --- a/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/DlgEditOperation.tsx +++ b/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/DlgEditOperation.tsx @@ -16,9 +16,9 @@ import { IOperationPosition, IOperationUpdateDTO, OperationType, schemaOperation import { useOperationUpdate } from '../../backend/useOperationUpdate'; import { IOperation, IOperationSchema } from '../../models/oss'; -import TabArguments from './TabArguments'; -import TabOperation from './TabOperation'; -import TabSynthesis from './TabSynthesis'; +import { TabArguments } from './TabArguments'; +import { TabOperation } from './TabOperation'; +import { TabSynthesis } from './TabSynthesis'; export interface DlgEditOperationProps { oss: IOperationSchema; @@ -32,7 +32,7 @@ export enum TabID { SUBSTITUTION = 2 } -function DlgEditOperation() { +export function DlgEditOperation() { const { oss, target, positions } = useDialogsStore(state => state.props as DlgEditOperationProps); const { operationUpdate } = useOperationUpdate(); @@ -108,5 +108,3 @@ function DlgEditOperation() { ); } - -export default DlgEditOperation; diff --git a/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/TabArguments.tsx b/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/TabArguments.tsx index f804c75e..ef3eedd2 100644 --- a/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/TabArguments.tsx +++ b/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/TabArguments.tsx @@ -10,7 +10,7 @@ import { PickMultiOperation } from '../../components/PickMultiOperation'; import { DlgEditOperationProps } from './DlgEditOperation'; -function TabArguments() { +export function TabArguments() { const { control, setValue } = useFormContext(); const { oss, target } = useDialogsStore(state => state.props as DlgEditOperationProps); const potentialCycle = [target.id, ...oss.graph.expandAllOutputs([target.id])]; @@ -45,5 +45,3 @@ function TabArguments() { ); } - -export default TabArguments; diff --git a/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/TabOperation.tsx b/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/TabOperation.tsx index e2ee4d31..53fa09ea 100644 --- a/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/TabOperation.tsx +++ b/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/TabOperation.tsx @@ -4,7 +4,7 @@ import { TextArea, TextInput } from '@/components/Input'; import { IOperationUpdateDTO } from '../../backend/types'; -function TabOperation() { +export function TabOperation() { const { register, formState: { errors } @@ -39,5 +39,3 @@ function TabOperation() { ); } - -export default TabOperation; diff --git a/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/TabSynthesis.tsx b/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/TabSynthesis.tsx index 1a4aed05..61d74ffe 100644 --- a/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/TabSynthesis.tsx +++ b/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/TabSynthesis.tsx @@ -13,7 +13,7 @@ import { SubstitutionValidator } from '../../models/ossAPI'; import { DlgEditOperationProps } from './DlgEditOperation'; -function TabSynthesis() { +export function TabSynthesis() { const { oss } = useDialogsStore(state => state.props as DlgEditOperationProps); const { control } = useFormContext(); const inputs = useWatch({ control, name: 'arguments' }); @@ -53,5 +53,3 @@ function TabSynthesis() { ); } - -export default TabSynthesis; diff --git a/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/index.tsx b/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/index.tsx index d64e0b15..90973acd 100644 --- a/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/index.tsx +++ b/rsconcept/frontend/src/features/oss/dialogs/DlgEditOperation/index.tsx @@ -1 +1 @@ -export { default } from './DlgEditOperation'; +export { DlgEditOperation } from './DlgEditOperation'; diff --git a/rsconcept/frontend/src/features/oss/dialogs/DlgRelocateConstituents.tsx b/rsconcept/frontend/src/features/oss/dialogs/DlgRelocateConstituents.tsx index b4ffa07b..a8981585 100644 --- a/rsconcept/frontend/src/features/oss/dialogs/DlgRelocateConstituents.tsx +++ b/rsconcept/frontend/src/features/oss/dialogs/DlgRelocateConstituents.tsx @@ -27,7 +27,7 @@ export interface DlgRelocateConstituentsProps { positions: IOperationPosition[]; } -function DlgRelocateConstituents() { +export function DlgRelocateConstituents() { const { oss, initialTarget, positions } = useDialogsStore(state => state.props as DlgRelocateConstituentsProps); const { items: libraryItems } = useLibrary(); const { updatePositions } = useUpdatePositions(); @@ -165,5 +165,3 @@ function DlgRelocateConstituents() { ); } - -export default DlgRelocateConstituents; diff --git a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssCard/EditorOssCard.tsx b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssCard/EditorOssCard.tsx index 8d7b2fff..0feb0e64 100644 --- a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssCard/EditorOssCard.tsx +++ b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssCard/EditorOssCard.tsx @@ -11,10 +11,10 @@ import { globals } from '@/utils/constants'; import { useOssEdit } from '../OssEditContext'; -import FormOSS from './FormOSS'; -import OssStats from './OssStats'; +import { FormOSS } from './FormOSS'; +import { OssStats } from './OssStats'; -function EditorOssCard() { +export function EditorOssCard() { const controller = useOssEdit(); const { isModified } = useModificationStore(); @@ -56,5 +56,3 @@ function EditorOssCard() { ); } - -export default EditorOssCard; diff --git a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssCard/FormOSS.tsx b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssCard/FormOSS.tsx index 6cdee388..c64b1251 100644 --- a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssCard/FormOSS.tsx +++ b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssCard/FormOSS.tsx @@ -18,7 +18,7 @@ import { globals } from '@/utils/constants'; import { useMutatingOss } from '../../../backend/useMutatingOss'; import { useOssEdit } from '../OssEditContext'; -function FormOSS() { +export function FormOSS() { const { updateItem: updateOss } = useUpdateItem(); const controller = useOssEdit(); const { isModified, setIsModified } = useModificationStore(); @@ -106,5 +106,3 @@ function FormOSS() { ); } - -export default FormOSS; diff --git a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssCard/OssStats.tsx b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssCard/OssStats.tsx index db02666b..424a5dc7 100644 --- a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssCard/OssStats.tsx +++ b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssCard/OssStats.tsx @@ -9,7 +9,7 @@ interface OssStatsProps { stats: IOperationSchemaStats; } -function OssStats({ stats }: OssStatsProps) { +export function OssStats({ stats }: OssStatsProps) { return (
); } - -export default OssStats; diff --git a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssCard/index.tsx b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssCard/index.tsx index ad067087..19d8c82d 100644 --- a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssCard/index.tsx +++ b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssCard/index.tsx @@ -1 +1 @@ -export { default } from './EditorOssCard'; +export { EditorOssCard } from './EditorOssCard'; diff --git a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/EditorOssGraph.tsx b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/EditorOssGraph.tsx index 5d38ce39..d93bdf73 100644 --- a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/EditorOssGraph.tsx +++ b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/EditorOssGraph.tsx @@ -2,14 +2,12 @@ import { ReactFlowProvider } from 'reactflow'; -import OssFlow from './OssFlow'; +import { OssFlow } from './OssFlow'; -function EditorOssGraph() { +export function EditorOssGraph() { return ( ); } - -export default EditorOssGraph; diff --git a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/NodeContextMenu.tsx b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/NodeContextMenu.tsx index 55ab1b57..452b6169 100644 --- a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/NodeContextMenu.tsx +++ b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/NodeContextMenu.tsx @@ -12,7 +12,7 @@ import { IconNewRSForm, IconRSForm } from '@/components/Icons'; -import useClickedOutside from '@/hooks/useClickedOutside'; +import { useClickedOutside } from '@/hooks/useClickedOutside'; import { PARAMETER } from '@/utils/constants'; import { prepareTooltip } from '@/utils/utils'; @@ -38,7 +38,7 @@ interface NodeContextMenuProps extends ContextMenuData { onRelocateConstituents: (target: number) => void; } -function NodeContextMenu({ +export function NodeContextMenu({ isOpen, operation, cursorX, @@ -188,5 +188,3 @@ function NodeContextMenu({
); } - -export default NodeContextMenu; diff --git a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/OssFlow.tsx b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/OssFlow.tsx index 6e13dbd9..ecb9fc5c 100644 --- a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/OssFlow.tsx +++ b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/OssFlow.tsx @@ -36,13 +36,13 @@ import { useOSSGraphStore } from '../../../stores/ossGraph'; import { useOssEdit } from '../OssEditContext'; import { OssNodeTypes } from './graph/OssNodeTypes'; -import NodeContextMenu, { ContextMenuData } from './NodeContextMenu'; -import ToolbarOssGraph from './ToolbarOssGraph'; +import { ContextMenuData, NodeContextMenu } from './NodeContextMenu'; +import { ToolbarOssGraph } from './ToolbarOssGraph'; const ZOOM_MAX = 2; const ZOOM_MIN = 0.5; -function OssFlow() { +export function OssFlow() { const mainHeight = useMainHeight(); const controller = useOssEdit(); const router = useConceptNavigation(); @@ -350,5 +350,3 @@ function OssFlow() { ); } - -export default OssFlow; diff --git a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/ToolbarOssGraph.tsx b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/ToolbarOssGraph.tsx index 4411779c..6c363033 100644 --- a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/ToolbarOssGraph.tsx +++ b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/ToolbarOssGraph.tsx @@ -40,7 +40,7 @@ interface ToolbarOssGraphProps { onResetPositions: () => void; } -function ToolbarOssGraph({ +export function ToolbarOssGraph({ onCreate, onDelete, onEdit, @@ -177,5 +177,3 @@ function ToolbarOssGraph({ ); } -//IconExecute -export default ToolbarOssGraph; diff --git a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/graph/InputNode.tsx b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/graph/InputNode.tsx index 3888fd87..a2d86c63 100644 --- a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/graph/InputNode.tsx +++ b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/graph/InputNode.tsx @@ -2,9 +2,9 @@ import { Handle, Position } from 'reactflow'; import { OssNodeInternal } from '../../../../models/ossLayout'; -import NodeCore from './NodeCore'; +import { NodeCore } from './NodeCore'; -function InputNode(node: OssNodeInternal) { +export function InputNode(node: OssNodeInternal) { return ( <> @@ -12,5 +12,3 @@ function InputNode(node: OssNodeInternal) { ); } - -export default InputNode; diff --git a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/graph/NodeCore.tsx b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/graph/NodeCore.tsx index 7d6203f6..34853209 100644 --- a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/graph/NodeCore.tsx +++ b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/graph/NodeCore.tsx @@ -7,7 +7,7 @@ import { PARAMETER, prefixes } from '@/utils/constants'; import { truncateToLastWord } from '@/utils/utils'; import { OperationType } from '../../../../backend/types'; -import TooltipOperation from '../../../../components/TooltipOperation'; +import { TooltipOperation } from '../../../../components/TooltipOperation'; import { OssNodeInternal } from '../../../../models/ossLayout'; import { useOssEdit } from '../../OssEditContext'; @@ -15,7 +15,7 @@ interface NodeCoreProps { node: OssNodeInternal; } -function NodeCore({ node }: NodeCoreProps) { +export function NodeCore({ node }: NodeCoreProps) { const controller = useOssEdit(); const hasFile = !!node.data.operation.result; @@ -72,5 +72,3 @@ function NodeCore({ node }: NodeCoreProps) { ); } - -export default NodeCore; diff --git a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/graph/OperationNode.tsx b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/graph/OperationNode.tsx index f0b1ae16..f6020c0d 100644 --- a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/graph/OperationNode.tsx +++ b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/graph/OperationNode.tsx @@ -4,9 +4,9 @@ import { Handle, Position } from 'reactflow'; import { OssNodeInternal } from '../../../../models/ossLayout'; -import NodeCore from './NodeCore'; +import { NodeCore } from './NodeCore'; -function OperationNode(node: OssNodeInternal) { +export function OperationNode(node: OssNodeInternal) { return ( <> @@ -16,5 +16,3 @@ function OperationNode(node: OssNodeInternal) { ); } - -export default OperationNode; diff --git a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/graph/OssNodeTypes.ts b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/graph/OssNodeTypes.ts index e4d56180..ece97306 100644 --- a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/graph/OssNodeTypes.ts +++ b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/graph/OssNodeTypes.ts @@ -1,7 +1,7 @@ import { NodeTypes } from 'reactflow'; -import InputNode from './InputNode'; -import OperationNode from './OperationNode'; +import { InputNode } from './InputNode'; +import { OperationNode } from './OperationNode'; export const OssNodeTypes: NodeTypes = { synthesis: OperationNode, diff --git a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/index.tsx b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/index.tsx index b91afe89..a32a2a08 100644 --- a/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/index.tsx +++ b/rsconcept/frontend/src/features/oss/pages/OssPage/EditorOssGraph/index.tsx @@ -1 +1 @@ -export { default } from './EditorOssGraph'; +export { EditorOssGraph } from './EditorOssGraph'; diff --git a/rsconcept/frontend/src/features/oss/pages/OssPage/MenuOssTabs.tsx b/rsconcept/frontend/src/features/oss/pages/OssPage/MenuOssTabs.tsx index efcf383d..c0fdd87d 100644 --- a/rsconcept/frontend/src/features/oss/pages/OssPage/MenuOssTabs.tsx +++ b/rsconcept/frontend/src/features/oss/pages/OssPage/MenuOssTabs.tsx @@ -28,7 +28,7 @@ import { useMutatingOss } from '../../backend/useMutatingOss'; import { useOssEdit } from './OssEditContext'; -function MenuOssTabs() { +export function MenuOssTabs() { const controller = useOssEdit(); const router = useConceptNavigation(); const { user, isAnonymous } = useAuthSuspense(); @@ -211,5 +211,3 @@ function MenuOssTabs() { ); } - -export default MenuOssTabs; diff --git a/rsconcept/frontend/src/features/oss/pages/OssPage/OssPage.tsx b/rsconcept/frontend/src/features/oss/pages/OssPage/OssPage.tsx index 3968d40b..fb2d612d 100644 --- a/rsconcept/frontend/src/features/oss/pages/OssPage/OssPage.tsx +++ b/rsconcept/frontend/src/features/oss/pages/OssPage/OssPage.tsx @@ -10,11 +10,11 @@ import { urls, useBlockNavigation, useConceptNavigation } from '@/app'; import { isAxiosError } from '@/backend/apiTransport'; import { TextURL } from '@/components/Control'; import { ErrorData } from '@/components/InfoError'; -import useQueryStrings from '@/hooks/useQueryStrings'; +import { useQueryStrings } from '@/hooks/useQueryStrings'; import { useModificationStore } from '@/stores/modification'; import { OssEditState, OssTabID } from './OssEditContext'; -import OssTabs from './OssTabs'; +import { OssTabs } from './OssTabs'; const paramsSchema = z.object({ id: z.coerce.number(), diff --git a/rsconcept/frontend/src/features/oss/pages/OssPage/OssTabs.tsx b/rsconcept/frontend/src/features/oss/pages/OssPage/OssTabs.tsx index 699b7162..59a5eb12 100644 --- a/rsconcept/frontend/src/features/oss/pages/OssPage/OssTabs.tsx +++ b/rsconcept/frontend/src/features/oss/pages/OssPage/OssTabs.tsx @@ -9,16 +9,16 @@ import { Overlay } from '@/components/Container'; import { TabLabel, TabList, TabPanel, Tabs } from '@/components/Tabs'; import { useAppLayoutStore } from '@/stores/appLayout'; -import EditorRSForm from './EditorOssCard'; -import EditorTermGraph from './EditorOssGraph'; -import MenuOssTabs from './MenuOssTabs'; +import { EditorOssCard } from './EditorOssCard'; +import { EditorOssGraph } from './EditorOssGraph'; +import { MenuOssTabs } from './MenuOssTabs'; import { OssTabID, useOssEdit } from './OssEditContext'; interface OssTabsProps { activeTab: OssTabID; } -function OssTabs({ activeTab }: OssTabsProps) { +export function OssTabs({ activeTab }: OssTabsProps) { const router = useConceptNavigation(); const { schema, navigateTab } = useOssEdit(); @@ -74,15 +74,13 @@ function OssTabs({ activeTab }: OssTabsProps) {
- + - +
); } - -export default OssTabs; diff --git a/rsconcept/frontend/src/features/rsform/components/BadgeGrammeme.tsx b/rsconcept/frontend/src/features/rsform/components/BadgeGrammeme.tsx index da14773e..dd09b75c 100644 --- a/rsconcept/frontend/src/features/rsform/components/BadgeGrammeme.tsx +++ b/rsconcept/frontend/src/features/rsform/components/BadgeGrammeme.tsx @@ -14,7 +14,7 @@ interface BadgeGrammemeProps { /** * Displays a badge with a grammeme tag. */ -function BadgeGrammeme({ grammeme }: BadgeGrammemeProps) { +export function BadgeGrammeme({ grammeme }: BadgeGrammemeProps) { return (
); } - -export default BadgeGrammeme; diff --git a/rsconcept/frontend/src/features/rsform/components/BadgeWordForm.tsx b/rsconcept/frontend/src/features/rsform/components/BadgeWordForm.tsx index a29a67d4..755da016 100644 --- a/rsconcept/frontend/src/features/rsform/components/BadgeWordForm.tsx +++ b/rsconcept/frontend/src/features/rsform/components/BadgeWordForm.tsx @@ -1,6 +1,6 @@ import { IWordForm } from '../models/language'; -import BadgeGrammeme from './BadgeGrammeme'; +import { BadgeGrammeme } from './BadgeGrammeme'; interface BadgeWordFormProps { /** Word form to display. */ diff --git a/rsconcept/frontend/src/features/rsform/components/InfoConstituenta.tsx b/rsconcept/frontend/src/features/rsform/components/InfoConstituenta.tsx index 046673c5..f7739ae2 100644 --- a/rsconcept/frontend/src/features/rsform/components/InfoConstituenta.tsx +++ b/rsconcept/frontend/src/features/rsform/components/InfoConstituenta.tsx @@ -11,7 +11,7 @@ interface InfoConstituentaProps extends CProps.Div { data: IConstituenta; } -function InfoConstituenta({ data, className, ...restProps }: InfoConstituentaProps) { +export function InfoConstituenta({ data, className, ...restProps }: InfoConstituentaProps) { return (

@@ -63,5 +63,3 @@ function InfoConstituenta({ data, className, ...restProps }: InfoConstituentaPro

); } - -export default InfoConstituenta; diff --git a/rsconcept/frontend/src/features/rsform/components/PickConstituenta.tsx b/rsconcept/frontend/src/features/rsform/components/PickConstituenta.tsx index a81edde3..6182ecab 100644 --- a/rsconcept/frontend/src/features/rsform/components/PickConstituenta.tsx +++ b/rsconcept/frontend/src/features/rsform/components/PickConstituenta.tsx @@ -3,7 +3,7 @@ import { useState } from 'react'; import clsx from 'clsx'; -import DataTable, { createColumnHelper, IConditionalStyle } from '@/components/DataTable'; +import { createColumnHelper, DataTable, IConditionalStyle } from '@/components/DataTable'; import { SearchBar } from '@/components/Input'; import { CProps } from '@/components/props'; import { NoData } from '@/components/View'; diff --git a/rsconcept/frontend/src/features/rsform/components/PickMultiConstituenta.tsx b/rsconcept/frontend/src/features/rsform/components/PickMultiConstituenta.tsx index 063a335a..51249a62 100644 --- a/rsconcept/frontend/src/features/rsform/components/PickMultiConstituenta.tsx +++ b/rsconcept/frontend/src/features/rsform/components/PickMultiConstituenta.tsx @@ -3,7 +3,7 @@ import { useState } from 'react'; import clsx from 'clsx'; -import DataTable, { createColumnHelper, RowSelectionState } from '@/components/DataTable'; +import { createColumnHelper, DataTable, RowSelectionState } from '@/components/DataTable'; import { SearchBar } from '@/components/Input'; import { CProps } from '@/components/props'; import { NoData } from '@/components/View'; @@ -15,7 +15,7 @@ import { isBasicConcept, matchConstituenta } from '../models/rsformAPI'; import { CstMatchMode } from '../stores/cstSearch'; import { BadgeConstituenta } from './BadgeConstituenta'; -import ToolbarGraphSelection from './ToolbarGraphSelection'; +import { ToolbarGraphSelection } from './ToolbarGraphSelection'; interface PickMultiConstituentaProps extends CProps.Styling { id?: string; diff --git a/rsconcept/frontend/src/features/rsform/components/PickSubstitutions.tsx b/rsconcept/frontend/src/features/rsform/components/PickSubstitutions.tsx index cc8c5f6e..b8d8ab63 100644 --- a/rsconcept/frontend/src/features/rsform/components/PickSubstitutions.tsx +++ b/rsconcept/frontend/src/features/rsform/components/PickSubstitutions.tsx @@ -7,7 +7,7 @@ import clsx from 'clsx'; import { ILibraryItem, SelectLibraryItem } from '@/features/library'; import { MiniButton } from '@/components/Control'; -import DataTable, { createColumnHelper, IConditionalStyle } from '@/components/DataTable'; +import { createColumnHelper, DataTable, IConditionalStyle } from '@/components/DataTable'; import { IconAccept, IconPageLeft, IconPageRight, IconRemove, IconReplace } from '@/components/Icons'; import { CProps } from '@/components/props'; import { NoData } from '@/components/View'; diff --git a/rsconcept/frontend/src/features/rsform/components/SelectWordForm.tsx b/rsconcept/frontend/src/features/rsform/components/SelectWordForm.tsx index ca9fe20e..f2c94d8e 100644 --- a/rsconcept/frontend/src/features/rsform/components/SelectWordForm.tsx +++ b/rsconcept/frontend/src/features/rsform/components/SelectWordForm.tsx @@ -5,10 +5,11 @@ import clsx from 'clsx'; import { CProps } from '@/components/props'; import { prefixes } from '@/utils/constants'; -import WordformButton from '../dialogs/DlgEditReference/WordformButton'; import { Grammeme, IGrammemeOption } from '../models/language'; import { supportedGrammeOptions } from '../models/languageAPI'; +import { WordformButton } from './WordformButton'; + /** * Represents recommended wordforms data. */ diff --git a/rsconcept/frontend/src/features/rsform/components/ToolbarGraphSelection.tsx b/rsconcept/frontend/src/features/rsform/components/ToolbarGraphSelection.tsx index b3847cb2..55c6be55 100644 --- a/rsconcept/frontend/src/features/rsform/components/ToolbarGraphSelection.tsx +++ b/rsconcept/frontend/src/features/rsform/components/ToolbarGraphSelection.tsx @@ -24,7 +24,7 @@ interface ToolbarGraphSelectionProps extends CProps.Styling { emptySelection?: boolean; } -function ToolbarGraphSelection({ +export function ToolbarGraphSelection({ className, graph, value: selected, @@ -101,5 +101,3 @@ function ToolbarGraphSelection({
); } - -export default ToolbarGraphSelection; diff --git a/rsconcept/frontend/src/features/rsform/dialogs/DlgEditReference/WordformButton.tsx b/rsconcept/frontend/src/features/rsform/components/WordformButton.tsx similarity index 77% rename from rsconcept/frontend/src/features/rsform/dialogs/DlgEditReference/WordformButton.tsx rename to rsconcept/frontend/src/features/rsform/components/WordformButton.tsx index 39b56582..dd383c99 100644 --- a/rsconcept/frontend/src/features/rsform/dialogs/DlgEditReference/WordformButton.tsx +++ b/rsconcept/frontend/src/features/rsform/components/WordformButton.tsx @@ -1,6 +1,6 @@ import clsx from 'clsx'; -import { Grammeme } from '../../models/language'; +import { Grammeme } from '../models/language'; interface WordformButtonProps { text: string; @@ -10,7 +10,7 @@ interface WordformButtonProps { onSelectGrams: (grams: Grammeme[]) => void; } -function WordformButton({ text, example, grams, onSelectGrams, isSelected, ...restProps }: WordformButtonProps) { +export function WordformButton({ text, example, grams, onSelectGrams, isSelected, ...restProps }: WordformButtonProps) { return ( ); } - -export default RSLocalButton; diff --git a/rsconcept/frontend/src/features/rsform/pages/RSFormPage/EditorRSExpression/RSTokenButton.tsx b/rsconcept/frontend/src/features/rsform/pages/RSFormPage/EditorRSExpression/RSTokenButton.tsx index ad7e0c9f..481e3026 100644 --- a/rsconcept/frontend/src/features/rsform/pages/RSFormPage/EditorRSExpression/RSTokenButton.tsx +++ b/rsconcept/frontend/src/features/rsform/pages/RSFormPage/EditorRSExpression/RSTokenButton.tsx @@ -11,7 +11,7 @@ interface RSTokenButtonProps { onInsert: (token: TokenID, key?: string) => void; } -function RSTokenButton({ token, disabled, onInsert }: RSTokenButtonProps) { +export function RSTokenButton({ token, disabled, onInsert }: RSTokenButtonProps) { const label = labelToken(token); return (