From b63a1d84542dcd02230ddf8c405c660794cd2158 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Tue, 5 Aug 2025 20:01:33 +0300 Subject: [PATCH] R: Add use client directive --- rsconcept/frontend/src/app/application-layout.tsx | 2 ++ rsconcept/frontend/src/app/error-fallback.tsx | 2 ++ rsconcept/frontend/src/app/global-loader.tsx | 2 ++ rsconcept/frontend/src/app/global-providers.tsx | 2 -- rsconcept/frontend/src/app/global-toaster.tsx | 2 ++ rsconcept/frontend/src/app/global-tooltips.tsx | 2 -- rsconcept/frontend/src/app/navigation/logo.tsx | 2 ++ rsconcept/frontend/src/app/navigation/menu-ai.tsx | 2 ++ rsconcept/frontend/src/app/navigation/menu-user.tsx | 2 ++ rsconcept/frontend/src/app/navigation/navigation.tsx | 2 ++ rsconcept/frontend/src/app/navigation/user-button.tsx | 2 ++ rsconcept/frontend/src/app/navigation/user-dropdown.tsx | 2 ++ .../frontend/src/components/data-table/pagination-tools.tsx | 1 - rsconcept/frontend/src/components/data-table/table-header.tsx | 1 - rsconcept/frontend/src/components/data-table/table-row.tsx | 1 + rsconcept/frontend/src/components/input/select-tree.tsx | 2 ++ .../src/features/ai/dialogs/dlg-ai-prompt/dlg-ai-prompt.tsx | 2 ++ .../src/features/ai/dialogs/dlg-ai-prompt/tab-prompt-edit.tsx | 2 ++ .../src/features/ai/dialogs/dlg-create-prompt-template.tsx | 2 ++ .../features/ai/pages/prompt-templates-page/menu-templates.tsx | 2 ++ .../ai/pages/prompt-templates-page/prompt-templates-page.tsx | 2 ++ .../tab-edit-template/tab-edit-template.tsx | 2 ++ .../tab-edit-template/toolbar-template.tsx | 2 ++ .../ai/pages/prompt-templates-page/tab-list-templates.tsx | 2 ++ .../ai/pages/prompt-templates-page/tab-view-variables.tsx | 2 ++ .../src/features/auth/components/expected-anonymous.tsx | 2 ++ rsconcept/frontend/src/features/help/components/badge-help.tsx | 2 ++ .../src/features/help/pages/manuals-page/topics-static.tsx | 2 ++ rsconcept/frontend/src/features/home/home-page.tsx | 2 ++ .../src/features/library/components/editor-library-item.tsx | 2 ++ .../frontend/src/features/library/components/menu-role.tsx | 2 ++ .../frontend/src/features/library/components/pick-schema.tsx | 2 ++ .../src/features/library/components/toolbar-item-access.tsx | 2 ++ .../features/library/pages/library-page/use-library-columns.tsx | 2 ++ .../features/library/pages/library-page/view-side-location.tsx | 2 ++ .../frontend/src/features/oss/components/tooltip-oss-item.tsx | 2 ++ .../oss/dialogs/dlg-create-block/tab-block-children.tsx | 1 + .../features/oss/dialogs/dlg-create-synthesis/tab-arguments.tsx | 2 ++ .../features/oss/dialogs/dlg-edit-operation/tab-arguments.tsx | 1 + .../oss/dialogs/dlg-show-term-graph/toolbar-graph-filter.tsx | 2 ++ .../oss-page/editor-oss-graph/context-menu/menu-operation.tsx | 1 + .../pages/oss-page/editor-oss-graph/side-panel/side-panel.tsx | 2 ++ .../oss-page/editor-oss-graph/side-panel/toolbar-schema.tsx | 2 ++ .../pages/oss-page/editor-oss-graph/side-panel/view-schema.tsx | 2 ++ .../frontend/src/features/oss/pages/oss-page/menu-main.tsx | 2 ++ .../src/features/rsform/components/badge-constituenta.tsx | 2 ++ .../src/features/rsform/components/constituenta-tooltip.tsx | 2 ++ .../rsform/components/term-graph/toolbar-focused-cst.tsx | 2 ++ .../src/features/rsform/dialogs/dlg-edit-cst/dlg-edit-cst.tsx | 2 ++ .../rsform-page/editor-rsexpression/toolbar-rsexpression.tsx | 2 ++ .../pages/rsform-page/editor-term-graph/toolbar-term-graph.tsx | 2 ++ .../src/features/rsform/pages/rsform-page/menu-edit-schema.tsx | 2 ++ .../src/features/rsform/pages/rsform-page/menu-main.tsx | 2 ++ .../frontend/src/features/users/components/select-user.tsx | 2 -- .../frontend/src/features/users/components/table-users.tsx | 2 -- 55 files changed, 94 insertions(+), 10 deletions(-) diff --git a/rsconcept/frontend/src/app/application-layout.tsx b/rsconcept/frontend/src/app/application-layout.tsx index b64e0be7..4d61f049 100644 --- a/rsconcept/frontend/src/app/application-layout.tsx +++ b/rsconcept/frontend/src/app/application-layout.tsx @@ -1,3 +1,5 @@ +'use client'; + import { Suspense } from 'react'; import { Outlet } from 'react-router'; import clsx from 'clsx'; diff --git a/rsconcept/frontend/src/app/error-fallback.tsx b/rsconcept/frontend/src/app/error-fallback.tsx index 46e597a2..7e57d970 100644 --- a/rsconcept/frontend/src/app/error-fallback.tsx +++ b/rsconcept/frontend/src/app/error-fallback.tsx @@ -1,3 +1,5 @@ +'use client'; + import { useNavigate, useRouteError } from 'react-router'; import { Button } from '@/components/control'; diff --git a/rsconcept/frontend/src/app/global-loader.tsx b/rsconcept/frontend/src/app/global-loader.tsx index dd56d1b8..22ad3688 100644 --- a/rsconcept/frontend/src/app/global-loader.tsx +++ b/rsconcept/frontend/src/app/global-loader.tsx @@ -1,3 +1,5 @@ +'use client'; + import { useNavigation } from 'react-router'; import { useDebounce } from 'use-debounce'; diff --git a/rsconcept/frontend/src/app/global-providers.tsx b/rsconcept/frontend/src/app/global-providers.tsx index ef94938d..fa1c3d29 100644 --- a/rsconcept/frontend/src/app/global-providers.tsx +++ b/rsconcept/frontend/src/app/global-providers.tsx @@ -1,5 +1,3 @@ -'use client'; - import { IntlProvider } from 'react-intl'; import { QueryClientProvider } from '@tanstack/react-query'; import { ReactQueryDevtools } from '@tanstack/react-query-devtools'; diff --git a/rsconcept/frontend/src/app/global-toaster.tsx b/rsconcept/frontend/src/app/global-toaster.tsx index 58c30215..751e37f3 100644 --- a/rsconcept/frontend/src/app/global-toaster.tsx +++ b/rsconcept/frontend/src/app/global-toaster.tsx @@ -1,3 +1,5 @@ +'use client'; + import { ToastContainer, type ToastContainerProps } from 'react-toastify'; import { usePreferencesStore } from '@/stores/preferences'; diff --git a/rsconcept/frontend/src/app/global-tooltips.tsx b/rsconcept/frontend/src/app/global-tooltips.tsx index c5674e9b..e618c2c6 100644 --- a/rsconcept/frontend/src/app/global-tooltips.tsx +++ b/rsconcept/frontend/src/app/global-tooltips.tsx @@ -1,5 +1,3 @@ -'use client'; - import { Tooltip } from '@/components/container'; import { globalIDs } from '@/utils/constants'; diff --git a/rsconcept/frontend/src/app/navigation/logo.tsx b/rsconcept/frontend/src/app/navigation/logo.tsx index d52a8155..7cd6d23a 100644 --- a/rsconcept/frontend/src/app/navigation/logo.tsx +++ b/rsconcept/frontend/src/app/navigation/logo.tsx @@ -1,3 +1,5 @@ +'use client'; + import { useWindowSize } from '@/hooks/use-window-size'; import { usePreferencesStore } from '@/stores/preferences'; diff --git a/rsconcept/frontend/src/app/navigation/menu-ai.tsx b/rsconcept/frontend/src/app/navigation/menu-ai.tsx index f41127b5..99c15eb3 100644 --- a/rsconcept/frontend/src/app/navigation/menu-ai.tsx +++ b/rsconcept/frontend/src/app/navigation/menu-ai.tsx @@ -1,3 +1,5 @@ +'use client'; + import { useAuth } from '@/features/auth/backend/use-auth'; import { Dropdown, DropdownButton, useDropdown } from '@/components/dropdown'; diff --git a/rsconcept/frontend/src/app/navigation/menu-user.tsx b/rsconcept/frontend/src/app/navigation/menu-user.tsx index d5c07aeb..22da2580 100644 --- a/rsconcept/frontend/src/app/navigation/menu-user.tsx +++ b/rsconcept/frontend/src/app/navigation/menu-user.tsx @@ -1,3 +1,5 @@ +'use client'; + import { Suspense } from 'react'; import { useDropdown } from '@/components/dropdown'; diff --git a/rsconcept/frontend/src/app/navigation/navigation.tsx b/rsconcept/frontend/src/app/navigation/navigation.tsx index f49f186c..6f3f00db 100644 --- a/rsconcept/frontend/src/app/navigation/navigation.tsx +++ b/rsconcept/frontend/src/app/navigation/navigation.tsx @@ -1,3 +1,5 @@ +'use client'; + import clsx from 'clsx'; import { IconLibrary2, IconManuals, IconNewItem2 } from '@/components/icons'; diff --git a/rsconcept/frontend/src/app/navigation/user-button.tsx b/rsconcept/frontend/src/app/navigation/user-button.tsx index a972ea80..8eeefdad 100644 --- a/rsconcept/frontend/src/app/navigation/user-button.tsx +++ b/rsconcept/frontend/src/app/navigation/user-button.tsx @@ -1,3 +1,5 @@ +'use client'; + import { useAuthSuspense } from '@/features/auth'; import { IconLogin, IconUser2 } from '@/components/icons'; diff --git a/rsconcept/frontend/src/app/navigation/user-dropdown.tsx b/rsconcept/frontend/src/app/navigation/user-dropdown.tsx index c9fc36c2..a2275425 100644 --- a/rsconcept/frontend/src/app/navigation/user-dropdown.tsx +++ b/rsconcept/frontend/src/app/navigation/user-dropdown.tsx @@ -1,3 +1,5 @@ +'use client'; + import { useAuthSuspense } from '@/features/auth'; import { useLogout } from '@/features/auth/backend/use-logout'; diff --git a/rsconcept/frontend/src/components/data-table/pagination-tools.tsx b/rsconcept/frontend/src/components/data-table/pagination-tools.tsx index b381be0a..71c516ca 100644 --- a/rsconcept/frontend/src/components/data-table/pagination-tools.tsx +++ b/rsconcept/frontend/src/components/data-table/pagination-tools.tsx @@ -1,5 +1,4 @@ 'use no memo'; -'use client'; import { type Table } from '@tanstack/react-table'; diff --git a/rsconcept/frontend/src/components/data-table/table-header.tsx b/rsconcept/frontend/src/components/data-table/table-header.tsx index bfa4e7ce..1f7396e7 100644 --- a/rsconcept/frontend/src/components/data-table/table-header.tsx +++ b/rsconcept/frontend/src/components/data-table/table-header.tsx @@ -1,5 +1,4 @@ 'use no memo'; -'use client'; import { flexRender, type Header, type HeaderGroup, type Table } from '@tanstack/react-table'; import clsx from 'clsx'; diff --git a/rsconcept/frontend/src/components/data-table/table-row.tsx b/rsconcept/frontend/src/components/data-table/table-row.tsx index 15f9edea..b50d3de0 100644 --- a/rsconcept/frontend/src/components/data-table/table-row.tsx +++ b/rsconcept/frontend/src/components/data-table/table-row.tsx @@ -1,3 +1,4 @@ +'use client'; 'use no memo'; import { useCallback } from 'react'; diff --git a/rsconcept/frontend/src/components/input/select-tree.tsx b/rsconcept/frontend/src/components/input/select-tree.tsx index a2cba59d..3bf7fbe0 100644 --- a/rsconcept/frontend/src/components/input/select-tree.tsx +++ b/rsconcept/frontend/src/components/input/select-tree.tsx @@ -1,3 +1,5 @@ +'use client'; + import { useEffect, useState } from 'react'; import clsx from 'clsx'; diff --git a/rsconcept/frontend/src/features/ai/dialogs/dlg-ai-prompt/dlg-ai-prompt.tsx b/rsconcept/frontend/src/features/ai/dialogs/dlg-ai-prompt/dlg-ai-prompt.tsx index ba8e4804..8ef7a907 100644 --- a/rsconcept/frontend/src/features/ai/dialogs/dlg-ai-prompt/dlg-ai-prompt.tsx +++ b/rsconcept/frontend/src/features/ai/dialogs/dlg-ai-prompt/dlg-ai-prompt.tsx @@ -1,3 +1,5 @@ +'use client'; + import { Suspense, useState } from 'react'; import { HelpTopic } from '@/features/help'; diff --git a/rsconcept/frontend/src/features/ai/dialogs/dlg-ai-prompt/tab-prompt-edit.tsx b/rsconcept/frontend/src/features/ai/dialogs/dlg-ai-prompt/tab-prompt-edit.tsx index 6fc70157..89dcd258 100644 --- a/rsconcept/frontend/src/features/ai/dialogs/dlg-ai-prompt/tab-prompt-edit.tsx +++ b/rsconcept/frontend/src/features/ai/dialogs/dlg-ai-prompt/tab-prompt-edit.tsx @@ -1,3 +1,5 @@ +'use client'; + import { TextArea } from '@/components/input'; import { PromptInput } from '../../components/prompt-input'; diff --git a/rsconcept/frontend/src/features/ai/dialogs/dlg-create-prompt-template.tsx b/rsconcept/frontend/src/features/ai/dialogs/dlg-create-prompt-template.tsx index a19ed5f1..65fa4dd0 100644 --- a/rsconcept/frontend/src/features/ai/dialogs/dlg-create-prompt-template.tsx +++ b/rsconcept/frontend/src/features/ai/dialogs/dlg-create-prompt-template.tsx @@ -1,3 +1,5 @@ +'use client'; + import { Controller, useForm, useWatch } from 'react-hook-form'; import { zodResolver } from '@hookform/resolvers/zod'; diff --git a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/menu-templates.tsx b/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/menu-templates.tsx index 5cbd2004..f5b9d19c 100644 --- a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/menu-templates.tsx +++ b/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/menu-templates.tsx @@ -1,3 +1,5 @@ +'use client'; + import { urls, useConceptNavigation } from '@/app'; import { MiniButton } from '@/components/control'; diff --git a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/prompt-templates-page.tsx b/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/prompt-templates-page.tsx index 63ba778e..ee2887c2 100644 --- a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/prompt-templates-page.tsx +++ b/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/prompt-templates-page.tsx @@ -1,3 +1,5 @@ +'use client'; + import { ErrorBoundary } from 'react-error-boundary'; import { isAxiosError } from 'axios'; import { z } from 'zod'; diff --git a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-edit-template/tab-edit-template.tsx b/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-edit-template/tab-edit-template.tsx index f4daef44..f3d1f463 100644 --- a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-edit-template/tab-edit-template.tsx +++ b/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-edit-template/tab-edit-template.tsx @@ -1,3 +1,5 @@ +'use client'; + import { useState } from 'react'; import clsx from 'clsx'; diff --git a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-edit-template/toolbar-template.tsx b/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-edit-template/toolbar-template.tsx index b479c17d..7eed176e 100644 --- a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-edit-template/toolbar-template.tsx +++ b/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-edit-template/toolbar-template.tsx @@ -1,3 +1,5 @@ +'use client'; + import { urls, useConceptNavigation } from '@/app'; import { useDeletePromptTemplate } from '@/features/ai/backend/use-delete-prompt-template'; import { useMutatingPrompts } from '@/features/ai/backend/use-mutating-prompts'; diff --git a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-list-templates.tsx b/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-list-templates.tsx index 3de10bc2..16baac41 100644 --- a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-list-templates.tsx +++ b/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-list-templates.tsx @@ -1,3 +1,5 @@ +'use client'; + import { urls, useConceptNavigation } from '@/app'; import { type IPromptTemplate } from '@/features/ai/backend/types'; import { useLabelUser } from '@/features/users'; diff --git a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-view-variables.tsx b/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-view-variables.tsx index 0e262b9b..ff6606ff 100644 --- a/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-view-variables.tsx +++ b/rsconcept/frontend/src/features/ai/pages/prompt-templates-page/tab-view-variables.tsx @@ -1,3 +1,5 @@ +'use client'; + import { useFitHeight } from '@/stores/app-layout'; import { describePromptVariable } from '../../labels'; diff --git a/rsconcept/frontend/src/features/auth/components/expected-anonymous.tsx b/rsconcept/frontend/src/features/auth/components/expected-anonymous.tsx index 26b0f8c5..6352f0ac 100644 --- a/rsconcept/frontend/src/features/auth/components/expected-anonymous.tsx +++ b/rsconcept/frontend/src/features/auth/components/expected-anonymous.tsx @@ -1,3 +1,5 @@ +'use client'; + import { urls, useConceptNavigation } from '@/app'; import { TextURL } from '@/components/control'; diff --git a/rsconcept/frontend/src/features/help/components/badge-help.tsx b/rsconcept/frontend/src/features/help/components/badge-help.tsx index 832881b4..1adc56eb 100644 --- a/rsconcept/frontend/src/features/help/components/badge-help.tsx +++ b/rsconcept/frontend/src/features/help/components/badge-help.tsx @@ -1,3 +1,5 @@ +'use client'; + import React, { Suspense } from 'react'; import { type PlacesType, Tooltip } from '@/components/container'; diff --git a/rsconcept/frontend/src/features/help/pages/manuals-page/topics-static.tsx b/rsconcept/frontend/src/features/help/pages/manuals-page/topics-static.tsx index 24399b08..e30338e8 100644 --- a/rsconcept/frontend/src/features/help/pages/manuals-page/topics-static.tsx +++ b/rsconcept/frontend/src/features/help/pages/manuals-page/topics-static.tsx @@ -1,3 +1,5 @@ +'use client'; + import clsx from 'clsx'; import { SelectTree } from '@/components/input'; diff --git a/rsconcept/frontend/src/features/home/home-page.tsx b/rsconcept/frontend/src/features/home/home-page.tsx index a1b161d7..13dc0b31 100644 --- a/rsconcept/frontend/src/features/home/home-page.tsx +++ b/rsconcept/frontend/src/features/home/home-page.tsx @@ -1,3 +1,5 @@ +'use client'; + import { urls, useConceptNavigation } from '@/app'; import { useAuthSuspense } from '@/features/auth'; diff --git a/rsconcept/frontend/src/features/library/components/editor-library-item.tsx b/rsconcept/frontend/src/features/library/components/editor-library-item.tsx index 8f1c1964..b51bf8f8 100644 --- a/rsconcept/frontend/src/features/library/components/editor-library-item.tsx +++ b/rsconcept/frontend/src/features/library/components/editor-library-item.tsx @@ -1,3 +1,5 @@ +'use client'; + import { Suspense } from 'react'; import { useIntl } from 'react-intl'; diff --git a/rsconcept/frontend/src/features/library/components/menu-role.tsx b/rsconcept/frontend/src/features/library/components/menu-role.tsx index 087ac3dc..23ab5b74 100644 --- a/rsconcept/frontend/src/features/library/components/menu-role.tsx +++ b/rsconcept/frontend/src/features/library/components/menu-role.tsx @@ -1,3 +1,5 @@ +'use client'; + import { urls, useConceptNavigation } from '@/app'; import { useAuthSuspense } from '@/features/auth'; import { useRoleStore, UserRole } from '@/features/users'; diff --git a/rsconcept/frontend/src/features/library/components/pick-schema.tsx b/rsconcept/frontend/src/features/library/components/pick-schema.tsx index 28ae53f0..aef24ebb 100644 --- a/rsconcept/frontend/src/features/library/components/pick-schema.tsx +++ b/rsconcept/frontend/src/features/library/components/pick-schema.tsx @@ -1,3 +1,5 @@ +'use client'; + import { useState } from 'react'; import { useIntl } from 'react-intl'; diff --git a/rsconcept/frontend/src/features/library/components/toolbar-item-access.tsx b/rsconcept/frontend/src/features/library/components/toolbar-item-access.tsx index 811ca8bf..5bfaad1d 100644 --- a/rsconcept/frontend/src/features/library/components/toolbar-item-access.tsx +++ b/rsconcept/frontend/src/features/library/components/toolbar-item-access.tsx @@ -1,3 +1,5 @@ +'use client'; + import clsx from 'clsx'; import { HelpTopic } from '@/features/help'; diff --git a/rsconcept/frontend/src/features/library/pages/library-page/use-library-columns.tsx b/rsconcept/frontend/src/features/library/pages/library-page/use-library-columns.tsx index 1b8192c2..6c8bbcc5 100644 --- a/rsconcept/frontend/src/features/library/pages/library-page/use-library-columns.tsx +++ b/rsconcept/frontend/src/features/library/pages/library-page/use-library-columns.tsx @@ -1,3 +1,5 @@ +'use client'; + import { useIntl } from 'react-intl'; import { useLabelUser } from '@/features/users'; diff --git a/rsconcept/frontend/src/features/library/pages/library-page/view-side-location.tsx b/rsconcept/frontend/src/features/library/pages/library-page/view-side-location.tsx index 871f728f..83569965 100644 --- a/rsconcept/frontend/src/features/library/pages/library-page/view-side-location.tsx +++ b/rsconcept/frontend/src/features/library/pages/library-page/view-side-location.tsx @@ -1,3 +1,5 @@ +'use client'; + import { toast } from 'react-toastify'; import clsx from 'clsx'; diff --git a/rsconcept/frontend/src/features/oss/components/tooltip-oss-item.tsx b/rsconcept/frontend/src/features/oss/components/tooltip-oss-item.tsx index 3f292e10..f646344c 100644 --- a/rsconcept/frontend/src/features/oss/components/tooltip-oss-item.tsx +++ b/rsconcept/frontend/src/features/oss/components/tooltip-oss-item.tsx @@ -1,3 +1,5 @@ +'use client'; + import { Tooltip } from '@/components/container'; import { globalIDs } from '@/utils/constants'; diff --git a/rsconcept/frontend/src/features/oss/dialogs/dlg-create-block/tab-block-children.tsx b/rsconcept/frontend/src/features/oss/dialogs/dlg-create-block/tab-block-children.tsx index 0ebf8a41..b350c678 100644 --- a/rsconcept/frontend/src/features/oss/dialogs/dlg-create-block/tab-block-children.tsx +++ b/rsconcept/frontend/src/features/oss/dialogs/dlg-create-block/tab-block-children.tsx @@ -1,4 +1,5 @@ 'use client'; + import { useFormContext, useWatch } from 'react-hook-form'; import { Label } from '@/components/input'; diff --git a/rsconcept/frontend/src/features/oss/dialogs/dlg-create-synthesis/tab-arguments.tsx b/rsconcept/frontend/src/features/oss/dialogs/dlg-create-synthesis/tab-arguments.tsx index 19e3238f..e602de40 100644 --- a/rsconcept/frontend/src/features/oss/dialogs/dlg-create-synthesis/tab-arguments.tsx +++ b/rsconcept/frontend/src/features/oss/dialogs/dlg-create-synthesis/tab-arguments.tsx @@ -1,3 +1,5 @@ +'use client'; + import { Controller, useFormContext, useWatch } from 'react-hook-form'; import { Label, TextArea, TextInput } from '@/components/input'; diff --git a/rsconcept/frontend/src/features/oss/dialogs/dlg-edit-operation/tab-arguments.tsx b/rsconcept/frontend/src/features/oss/dialogs/dlg-edit-operation/tab-arguments.tsx index e344b2f1..e5f0c3cd 100644 --- a/rsconcept/frontend/src/features/oss/dialogs/dlg-edit-operation/tab-arguments.tsx +++ b/rsconcept/frontend/src/features/oss/dialogs/dlg-edit-operation/tab-arguments.tsx @@ -1,4 +1,5 @@ 'use client'; + import { Controller, useFormContext, useWatch } from 'react-hook-form'; import { Label } from '@/components/input'; diff --git a/rsconcept/frontend/src/features/oss/dialogs/dlg-show-term-graph/toolbar-graph-filter.tsx b/rsconcept/frontend/src/features/oss/dialogs/dlg-show-term-graph/toolbar-graph-filter.tsx index 9ec2e028..718f1d0c 100644 --- a/rsconcept/frontend/src/features/oss/dialogs/dlg-show-term-graph/toolbar-graph-filter.tsx +++ b/rsconcept/frontend/src/features/oss/dialogs/dlg-show-term-graph/toolbar-graph-filter.tsx @@ -1,3 +1,5 @@ +'use client'; + import { useReactFlow } from 'reactflow'; import { useTermGraphStore } from '@/features/rsform/stores/term-graph'; diff --git a/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/context-menu/menu-operation.tsx b/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/context-menu/menu-operation.tsx index e9197db1..9d7b17a4 100644 --- a/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/context-menu/menu-operation.tsx +++ b/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/context-menu/menu-operation.tsx @@ -1,4 +1,5 @@ 'use client'; + import { toast } from 'react-toastify'; import { useLibrary } from '@/features/library/backend/use-library'; diff --git a/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/side-panel/side-panel.tsx b/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/side-panel/side-panel.tsx index 84193039..c8a0f9ea 100644 --- a/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/side-panel/side-panel.tsx +++ b/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/side-panel/side-panel.tsx @@ -1,3 +1,5 @@ +'use client'; + import { Suspense, useEffect } from 'react'; import clsx from 'clsx'; import { useDebounce } from 'use-debounce'; diff --git a/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/side-panel/toolbar-schema.tsx b/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/side-panel/toolbar-schema.tsx index c107ea31..26b78b1e 100644 --- a/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/side-panel/toolbar-schema.tsx +++ b/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/side-panel/toolbar-schema.tsx @@ -1,3 +1,5 @@ +'use client'; + import { urls, useConceptNavigation } from '@/app'; import { type IConstituenta, type IRSForm } from '@/features/rsform'; import { CstType, type IConstituentaBasicsDTO, type ICreateConstituentaDTO } from '@/features/rsform/backend/types'; diff --git a/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/side-panel/view-schema.tsx b/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/side-panel/view-schema.tsx index 4e1a2205..9b4b0505 100644 --- a/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/side-panel/view-schema.tsx +++ b/rsconcept/frontend/src/features/oss/pages/oss-page/editor-oss-graph/side-panel/view-schema.tsx @@ -1,3 +1,5 @@ +'use client'; + import { useEffect, useState } from 'react'; import { useAIStore } from '@/features/ai/stores/ai-context'; diff --git a/rsconcept/frontend/src/features/oss/pages/oss-page/menu-main.tsx b/rsconcept/frontend/src/features/oss/pages/oss-page/menu-main.tsx index 0748e607..d5fc73cc 100644 --- a/rsconcept/frontend/src/features/oss/pages/oss-page/menu-main.tsx +++ b/rsconcept/frontend/src/features/oss/pages/oss-page/menu-main.tsx @@ -1,3 +1,5 @@ +'use client'; + import { urls, useConceptNavigation } from '@/app'; import { useAuthSuspense } from '@/features/auth'; import { useRoleStore, UserRole } from '@/features/users'; diff --git a/rsconcept/frontend/src/features/rsform/components/badge-constituenta.tsx b/rsconcept/frontend/src/features/rsform/components/badge-constituenta.tsx index 15169707..2370d229 100644 --- a/rsconcept/frontend/src/features/rsform/components/badge-constituenta.tsx +++ b/rsconcept/frontend/src/features/rsform/components/badge-constituenta.tsx @@ -1,3 +1,5 @@ +'use client'; + import clsx from 'clsx'; import { globalIDs } from '@/utils/constants'; diff --git a/rsconcept/frontend/src/features/rsform/components/constituenta-tooltip.tsx b/rsconcept/frontend/src/features/rsform/components/constituenta-tooltip.tsx index 0a96ce48..db4295ba 100644 --- a/rsconcept/frontend/src/features/rsform/components/constituenta-tooltip.tsx +++ b/rsconcept/frontend/src/features/rsform/components/constituenta-tooltip.tsx @@ -1,3 +1,5 @@ +'use client'; + import { Tooltip } from '@/components/container'; import { globalIDs } from '@/utils/constants'; diff --git a/rsconcept/frontend/src/features/rsform/components/term-graph/toolbar-focused-cst.tsx b/rsconcept/frontend/src/features/rsform/components/term-graph/toolbar-focused-cst.tsx index dfd938d8..71c6761c 100644 --- a/rsconcept/frontend/src/features/rsform/components/term-graph/toolbar-focused-cst.tsx +++ b/rsconcept/frontend/src/features/rsform/components/term-graph/toolbar-focused-cst.tsx @@ -1,3 +1,5 @@ +'use client'; + import { type IConstituenta } from '@/features/rsform/models/rsform'; import { MiniButton } from '@/components/control'; diff --git a/rsconcept/frontend/src/features/rsform/dialogs/dlg-edit-cst/dlg-edit-cst.tsx b/rsconcept/frontend/src/features/rsform/dialogs/dlg-edit-cst/dlg-edit-cst.tsx index 394025a1..4632c3f8 100644 --- a/rsconcept/frontend/src/features/rsform/dialogs/dlg-edit-cst/dlg-edit-cst.tsx +++ b/rsconcept/frontend/src/features/rsform/dialogs/dlg-edit-cst/dlg-edit-cst.tsx @@ -1,3 +1,5 @@ +'use client'; + import { FormProvider, useForm, useWatch } from 'react-hook-form'; import { zodResolver } from '@hookform/resolvers/zod'; diff --git a/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-rsexpression/toolbar-rsexpression.tsx b/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-rsexpression/toolbar-rsexpression.tsx index 7fc29d3a..2ea977c9 100644 --- a/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-rsexpression/toolbar-rsexpression.tsx +++ b/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-rsexpression/toolbar-rsexpression.tsx @@ -1,3 +1,5 @@ +'use client'; + import { IconShowKeyboard } from '@/features/rsform/components/icon-show-keyboard'; import { MiniButton } from '@/components/control'; diff --git a/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-term-graph/toolbar-term-graph.tsx b/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-term-graph/toolbar-term-graph.tsx index bddd7615..1c0df580 100644 --- a/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-term-graph/toolbar-term-graph.tsx +++ b/rsconcept/frontend/src/features/rsform/pages/rsform-page/editor-term-graph/toolbar-term-graph.tsx @@ -1,3 +1,5 @@ +'use client'; + import { useReactFlow, useStoreApi } from 'reactflow'; import { HelpTopic } from '@/features/help'; diff --git a/rsconcept/frontend/src/features/rsform/pages/rsform-page/menu-edit-schema.tsx b/rsconcept/frontend/src/features/rsform/pages/rsform-page/menu-edit-schema.tsx index 23e92820..63307cfa 100644 --- a/rsconcept/frontend/src/features/rsform/pages/rsform-page/menu-edit-schema.tsx +++ b/rsconcept/frontend/src/features/rsform/pages/rsform-page/menu-edit-schema.tsx @@ -1,3 +1,5 @@ +'use client'; + import { urls, useConceptNavigation } from '@/app'; import { useAuthSuspense } from '@/features/auth'; diff --git a/rsconcept/frontend/src/features/rsform/pages/rsform-page/menu-main.tsx b/rsconcept/frontend/src/features/rsform/pages/rsform-page/menu-main.tsx index ca07bc4c..8a897339 100644 --- a/rsconcept/frontend/src/features/rsform/pages/rsform-page/menu-main.tsx +++ b/rsconcept/frontend/src/features/rsform/pages/rsform-page/menu-main.tsx @@ -1,3 +1,5 @@ +'use client'; + import fileDownload from 'js-file-download'; import { urls, useConceptNavigation } from '@/app'; diff --git a/rsconcept/frontend/src/features/users/components/select-user.tsx b/rsconcept/frontend/src/features/users/components/select-user.tsx index f9a9520a..ad7f729f 100644 --- a/rsconcept/frontend/src/features/users/components/select-user.tsx +++ b/rsconcept/frontend/src/features/users/components/select-user.tsx @@ -1,5 +1,3 @@ -'use client'; - import { ComboBox } from '@/components/input/combo-box'; import { type Styling } from '@/components/props'; diff --git a/rsconcept/frontend/src/features/users/components/table-users.tsx b/rsconcept/frontend/src/features/users/components/table-users.tsx index e1c9eee8..750ae117 100644 --- a/rsconcept/frontend/src/features/users/components/table-users.tsx +++ b/rsconcept/frontend/src/features/users/components/table-users.tsx @@ -1,5 +1,3 @@ -'use client'; - import { MiniButton } from '@/components/control'; import { createColumnHelper, DataTable } from '@/components/data-table'; import { IconRemove } from '@/components/icons';