({
);
}
-
-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 (