mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-08-13 12:20:36 +03:00
R: Add use client directive
This commit is contained in:
parent
53f553449f
commit
b63a1d8454
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { Suspense } from 'react';
|
||||
import { Outlet } from 'react-router';
|
||||
import clsx from 'clsx';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { useNavigate, useRouteError } from 'react-router';
|
||||
|
||||
import { Button } from '@/components/control';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { useNavigation } from 'react-router';
|
||||
import { useDebounce } from 'use-debounce';
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use client';
|
||||
|
||||
import { IntlProvider } from 'react-intl';
|
||||
import { QueryClientProvider } from '@tanstack/react-query';
|
||||
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { ToastContainer, type ToastContainerProps } from 'react-toastify';
|
||||
|
||||
import { usePreferencesStore } from '@/stores/preferences';
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use client';
|
||||
|
||||
import { Tooltip } from '@/components/container';
|
||||
import { globalIDs } from '@/utils/constants';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { useWindowSize } from '@/hooks/use-window-size';
|
||||
import { usePreferencesStore } from '@/stores/preferences';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { useAuth } from '@/features/auth/backend/use-auth';
|
||||
|
||||
import { Dropdown, DropdownButton, useDropdown } from '@/components/dropdown';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { Suspense } from 'react';
|
||||
|
||||
import { useDropdown } from '@/components/dropdown';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import clsx from 'clsx';
|
||||
|
||||
import { IconLibrary2, IconManuals, IconNewItem2 } from '@/components/icons';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { useAuthSuspense } from '@/features/auth';
|
||||
|
||||
import { IconLogin, IconUser2 } from '@/components/icons';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { useAuthSuspense } from '@/features/auth';
|
||||
import { useLogout } from '@/features/auth/backend/use-logout';
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
'use no memo';
|
||||
'use client';
|
||||
|
||||
import { type Table } from '@tanstack/react-table';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
'use client';
|
||||
'use no memo';
|
||||
|
||||
import { useCallback } from 'react';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { useEffect, useState } from 'react';
|
||||
import clsx from 'clsx';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { Suspense, useState } from 'react';
|
||||
|
||||
import { HelpTopic } from '@/features/help';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { TextArea } from '@/components/input';
|
||||
|
||||
import { PromptInput } from '../../components/prompt-input';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { Controller, useForm, useWatch } from 'react-hook-form';
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { urls, useConceptNavigation } from '@/app';
|
||||
|
||||
import { MiniButton } from '@/components/control';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { ErrorBoundary } from 'react-error-boundary';
|
||||
import { isAxiosError } from 'axios';
|
||||
import { z } from 'zod';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { useState } from 'react';
|
||||
import clsx from 'clsx';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { urls, useConceptNavigation } from '@/app';
|
||||
import { type IPromptTemplate } from '@/features/ai/backend/types';
|
||||
import { useLabelUser } from '@/features/users';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { useFitHeight } from '@/stores/app-layout';
|
||||
|
||||
import { describePromptVariable } from '../../labels';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { urls, useConceptNavigation } from '@/app';
|
||||
|
||||
import { TextURL } from '@/components/control';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import React, { Suspense } from 'react';
|
||||
|
||||
import { type PlacesType, Tooltip } from '@/components/container';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import clsx from 'clsx';
|
||||
|
||||
import { SelectTree } from '@/components/input';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { urls, useConceptNavigation } from '@/app';
|
||||
import { useAuthSuspense } from '@/features/auth';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { Suspense } from 'react';
|
||||
import { useIntl } from 'react-intl';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { urls, useConceptNavigation } from '@/app';
|
||||
import { useAuthSuspense } from '@/features/auth';
|
||||
import { useRoleStore, UserRole } from '@/features/users';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { useState } from 'react';
|
||||
import { useIntl } from 'react-intl';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import clsx from 'clsx';
|
||||
|
||||
import { HelpTopic } from '@/features/help';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { useIntl } from 'react-intl';
|
||||
|
||||
import { useLabelUser } from '@/features/users';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { toast } from 'react-toastify';
|
||||
import clsx from 'clsx';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { Tooltip } from '@/components/container';
|
||||
import { globalIDs } from '@/utils/constants';
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { useFormContext, useWatch } from 'react-hook-form';
|
||||
|
||||
import { Label } from '@/components/input';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { Controller, useFormContext, useWatch } from 'react-hook-form';
|
||||
|
||||
import { Label, TextArea, TextInput } from '@/components/input';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { Controller, useFormContext, useWatch } from 'react-hook-form';
|
||||
|
||||
import { Label } from '@/components/input';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { useReactFlow } from 'reactflow';
|
||||
|
||||
import { useTermGraphStore } from '@/features/rsform/stores/term-graph';
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { toast } from 'react-toastify';
|
||||
|
||||
import { useLibrary } from '@/features/library/backend/use-library';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { Suspense, useEffect } from 'react';
|
||||
import clsx from 'clsx';
|
||||
import { useDebounce } from 'use-debounce';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
import { useAIStore } from '@/features/ai/stores/ai-context';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { urls, useConceptNavigation } from '@/app';
|
||||
import { useAuthSuspense } from '@/features/auth';
|
||||
import { useRoleStore, UserRole } from '@/features/users';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import clsx from 'clsx';
|
||||
|
||||
import { globalIDs } from '@/utils/constants';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { Tooltip } from '@/components/container';
|
||||
import { globalIDs } from '@/utils/constants';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { type IConstituenta } from '@/features/rsform/models/rsform';
|
||||
|
||||
import { MiniButton } from '@/components/control';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { FormProvider, useForm, useWatch } from 'react-hook-form';
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { IconShowKeyboard } from '@/features/rsform/components/icon-show-keyboard';
|
||||
|
||||
import { MiniButton } from '@/components/control';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { useReactFlow, useStoreApi } from 'reactflow';
|
||||
|
||||
import { HelpTopic } from '@/features/help';
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import { urls, useConceptNavigation } from '@/app';
|
||||
import { useAuthSuspense } from '@/features/auth';
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use client';
|
||||
|
||||
import fileDownload from 'js-file-download';
|
||||
|
||||
import { urls, useConceptNavigation } from '@/app';
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use client';
|
||||
|
||||
import { ComboBox } from '@/components/input/combo-box';
|
||||
import { type Styling } from '@/components/props';
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
'use client';
|
||||
|
||||
import { MiniButton } from '@/components/control';
|
||||
import { createColumnHelper, DataTable } from '@/components/data-table';
|
||||
import { IconRemove } from '@/components/icons';
|
||||
|
|
Loading…
Reference in New Issue
Block a user