diff --git a/rsconcept/frontend/package.json b/rsconcept/frontend/package.json index 2c01f781..67a486e7 100644 --- a/rsconcept/frontend/package.json +++ b/rsconcept/frontend/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "type": "module", "scripts": { - "generate": "lezer-generator src/components/RSInput/rslang/rslangFast.grammar -o src/components/RSInput/rslang/parser.ts && lezer-generator src/components/RSInput/rslang/rslangAST.grammar -o src/components/RSInput/rslang/parserAST.ts && lezer-generator src/components/RefsInput/parse/refsText.grammar -o src/components/RefsInput/parse/parser.ts", + "generate": "lezer-generator src/components/rs-input/rslang/rslang-fast.grammar -o src/components/rs-input/rslang/parser.ts && lezer-generator src/components/rs-input/rslang/rslang-ast.grammar -o src/components/rs-input/rslang/parserAST.ts && lezer-generator src/components/refs-input/parse/refs-text.grammar -o src/components/refs-input/parse/parser.ts", "test": "jest", "test:e2e": "playwright test", "dev": "vite --host", diff --git a/rsconcept/frontend/src/app/Navigation/index.tsx b/rsconcept/frontend/src/app/Navigation/index.tsx deleted file mode 100644 index 61f39d15..00000000 --- a/rsconcept/frontend/src/app/Navigation/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export { Navigation } from './Navigation'; diff --git a/rsconcept/frontend/src/app/ApplicationLayout.tsx b/rsconcept/frontend/src/app/application-layout.tsx similarity index 77% rename from rsconcept/frontend/src/app/ApplicationLayout.tsx rename to rsconcept/frontend/src/app/application-layout.tsx index 8a65e672..84cb4c60 100644 --- a/rsconcept/frontend/src/app/ApplicationLayout.tsx +++ b/rsconcept/frontend/src/app/application-layout.tsx @@ -1,18 +1,18 @@ import { Suspense } from 'react'; import { Outlet } from 'react-router'; -import { ModalLoader } from '@/components/Modal'; -import { useAppLayoutStore, useMainHeight, useViewportHeight } from '@/stores/appLayout'; +import { ModalLoader } from '@/components/modal1'; +import { useAppLayoutStore, useMainHeight, useViewportHeight } from '@/stores/app-layout'; import { useDialogsStore } from '@/stores/dialogs'; -import { NavigationState } from './Navigation/NavigationContext'; -import { Footer } from './Footer'; -import { GlobalDialogs } from './GlobalDialogs'; -import { GlobalLoader } from './GlobalLoader'; -import { ToasterThemed } from './GlobalToaster'; -import { GlobalTooltips } from './GlobalTooltips'; -import { MutationErrors } from './MutationErrors'; -import { Navigation } from './Navigation'; +import { NavigationState } from './navigation1/navigation-context'; +import { Footer } from './footer1'; +import { GlobalDialogs } from './global-dialogs'; +import { GlobalLoader } from './global-Loader'; +import { ToasterThemed } from './global-toaster'; +import { GlobalTooltips } from './global-tooltips'; +import { MutationErrors } from './mutation-errors'; +import { Navigation } from './navigation1'; export function ApplicationLayout() { const mainHeight = useMainHeight(); diff --git a/rsconcept/frontend/src/app/ErrorFallback.tsx b/rsconcept/frontend/src/app/error-fallback.tsx similarity index 84% rename from rsconcept/frontend/src/app/ErrorFallback.tsx rename to rsconcept/frontend/src/app/error-fallback.tsx index 713e4277..e02a9654 100644 --- a/rsconcept/frontend/src/app/ErrorFallback.tsx +++ b/rsconcept/frontend/src/app/error-fallback.tsx @@ -1,7 +1,7 @@ import { useNavigate, useRouteError } from 'react-router'; -import { Button } from '@/components/Control'; -import { InfoError } from '@/components/InfoError'; +import { Button } from '@/components/control1'; +import { InfoError } from '@/components/info-error'; export function ErrorFallback() { const error = useRouteError(); diff --git a/rsconcept/frontend/src/app/Footer.tsx b/rsconcept/frontend/src/app/footer1.tsx similarity index 94% rename from rsconcept/frontend/src/app/Footer.tsx rename to rsconcept/frontend/src/app/footer1.tsx index ff0e71db..23222843 100644 --- a/rsconcept/frontend/src/app/Footer.tsx +++ b/rsconcept/frontend/src/app/footer1.tsx @@ -1,6 +1,6 @@ import clsx from 'clsx'; -import { TextURL } from '@/components/Control'; +import { TextURL } from '@/components/control1'; import { external_urls } from '@/utils/constants'; export function Footer() { diff --git a/rsconcept/frontend/src/app/GlobalLoader.tsx b/rsconcept/frontend/src/app/global-Loader.tsx similarity index 84% rename from rsconcept/frontend/src/app/GlobalLoader.tsx rename to rsconcept/frontend/src/app/global-Loader.tsx index ef538032..72bf9f28 100644 --- a/rsconcept/frontend/src/app/GlobalLoader.tsx +++ b/rsconcept/frontend/src/app/global-Loader.tsx @@ -1,8 +1,8 @@ import { useNavigation } from 'react-router'; import { useDebounce } from 'use-debounce'; -import { Loader } from '@/components/Loader'; -import { ModalBackdrop } from '@/components/Modal/ModalBackdrop'; +import { Loader } from '@/components/loader1'; +import { ModalBackdrop } from '@/components/modal1/modal-backdrop'; import { PARAMETER } from '@/utils/constants'; export function GlobalLoader() { diff --git a/rsconcept/frontend/src/app/GlobalDialogs.tsx b/rsconcept/frontend/src/app/global-dialogs.tsx similarity index 69% rename from rsconcept/frontend/src/app/GlobalDialogs.tsx rename to rsconcept/frontend/src/app/global-dialogs.tsx index 8ae4e2f7..6893984f 100644 --- a/rsconcept/frontend/src/app/GlobalDialogs.tsx +++ b/rsconcept/frontend/src/app/global-dialogs.tsx @@ -5,113 +5,113 @@ import React from 'react'; import { DialogType, useDialogsStore } from '@/stores/dialogs'; const DlgChangeInputSchema = React.lazy(() => - import('@/features/oss/dialogs/DlgChangeInputSchema').then(module => ({ default: module.DlgChangeInputSchema })) + import('@/features/oss/dialogs/dlg-change-input-schema').then(module => ({ default: module.DlgChangeInputSchema })) ); const DlgChangeLocation = React.lazy(() => - import('@/features/library/dialogs/DlgChangeLocation').then(module => ({ + import('@/features/library/dialogs/dlg-change-location').then(module => ({ default: module.DlgChangeLocation })) ); const DlgCloneLibraryItem = React.lazy(() => - import('@/features/library/dialogs/DlgCloneLibraryItem').then(module => ({ + import('@/features/library/dialogs/dlg-clone-library-item').then(module => ({ default: module.DlgCloneLibraryItem })) ); const DlgCreateCst = React.lazy(() => - import('@/features/rsform/dialogs/DlgCreateCst').then(module => ({ default: module.DlgCreateCst })) + import('@/features/rsform/dialogs/dlg-create-cst').then(module => ({ default: module.DlgCreateCst })) ); const DlgCreateOperation = React.lazy(() => - import('@/features/oss/dialogs/DlgCreateOperation').then(module => ({ + import('@/features/oss/dialogs/dlg-create-operation').then(module => ({ default: module.DlgCreateOperation })) ); const DlgCreateVersion = React.lazy(() => - import('@/features/library/dialogs/DlgCreateVersion').then(module => ({ + import('@/features/library/dialogs/dlg-create-version').then(module => ({ default: module.DlgCreateVersion })) ); const DlgCstTemplate = React.lazy(() => - import('@/features/rsform/dialogs/DlgCstTemplate').then(module => ({ + import('@/features/rsform/dialogs/dlg-cst-template').then(module => ({ default: module.DlgCstTemplate })) ); const DlgDeleteCst = React.lazy(() => - import('@/features/rsform/dialogs/DlgDeleteCst').then(module => ({ + import('@/features/rsform/dialogs/dlg-delete-cst').then(module => ({ default: module.DlgDeleteCst })) ); const DlgDeleteOperation = React.lazy(() => - import('@/features/oss/dialogs/DlgDeleteOperation').then(module => ({ + import('@/features/oss/dialogs/dlg-delete-operation').then(module => ({ default: module.DlgDeleteOperation })) ); const DlgEditEditors = React.lazy(() => - import('@/features/library/dialogs/DlgEditEditors').then(module => ({ + import('@/features/library/dialogs/dlg-edit-editors').then(module => ({ default: module.DlgEditEditors })) ); const DlgEditOperation = React.lazy(() => - import('@/features/oss/dialogs/DlgEditOperation').then(module => ({ + import('@/features/oss/dialogs/dlg-edit-operation').then(module => ({ default: module.DlgEditOperation })) ); const DlgEditReference = React.lazy(() => - import('@/features/rsform/dialogs/DlgEditReference').then(module => ({ + import('@/features/rsform/dialogs/dlg-edit-reference').then(module => ({ default: module.DlgEditReference })) ); const DlgEditVersions = React.lazy(() => - import('@/features/library/dialogs/DlgEditVersions').then(module => ({ + import('@/features/library/dialogs/dlg-edit-versions').then(module => ({ default: module.DlgEditVersions })) ); const DlgEditWordForms = React.lazy(() => - import('@/features/rsform/dialogs/DlgEditWordForms').then(module => ({ + import('@/features/rsform/dialogs/dlg-edit-word-forms').then(module => ({ default: module.DlgEditWordForms })) ); const DlgInlineSynthesis = React.lazy(() => - import('@/features/rsform/dialogs/DlgInlineSynthesis').then(module => ({ + import('@/features/rsform/dialogs/dlg-inline-synthesis').then(module => ({ default: module.DlgInlineSynthesis })) ); const DlgRelocateConstituents = React.lazy(() => - import('@/features/oss/dialogs/DlgRelocateConstituents').then(module => ({ + import('@/features/oss/dialogs/dlg-relocate-constituents').then(module => ({ default: module.DlgRelocateConstituents })) ); const DlgRenameCst = React.lazy(() => - import('@/features/rsform/dialogs/DlgRenameCst').then(module => ({ + import('@/features/rsform/dialogs/dlg-rename-cst').then(module => ({ default: module.DlgRenameCst })) ); const DlgShowAST = React.lazy(() => - import('@/features/rsform/dialogs/DlgShowAST').then(module => ({ + import('@/features/rsform/dialogs/dlg-show-ast').then(module => ({ default: module.DlgShowAST })) ); const DlgShowQR = React.lazy(() => - import('@/features/rsform/dialogs/DlgShowQR').then(module => ({ + import('@/features/rsform/dialogs/dlg-show-qr').then(module => ({ default: module.DlgShowQR })) ); const DlgShowTypeGraph = React.lazy(() => - import('@/features/rsform/dialogs/DlgShowTypeGraph').then(module => ({ + import('@/features/rsform/dialogs/dlg-show-type-graph').then(module => ({ default: module.DlgShowTypeGraph })) ); const DlgSubstituteCst = React.lazy(() => - import('@/features/rsform/dialogs/DlgSubstituteCst').then(module => ({ + import('@/features/rsform/dialogs/dlg-substitute-cst').then(module => ({ default: module.DlgSubstituteCst })) ); const DlgUploadRSForm = React.lazy(() => - import('@/features/rsform/dialogs/DlgUploadRSForm').then(module => ({ + import('@/features/rsform/dialogs/dlg-upload-rsform').then(module => ({ default: module.DlgUploadRSForm })) ); const DlgGraphParams = React.lazy(() => - import('@/features/rsform/dialogs/DlgGraphParams').then(module => ({ default: module.DlgGraphParams })) + import('@/features/rsform/dialogs/dlg-graph-params').then(module => ({ default: module.DlgGraphParams })) ); export const GlobalDialogs = () => { diff --git a/rsconcept/frontend/src/app/GlobalProviders.tsx b/rsconcept/frontend/src/app/global-providers.tsx similarity index 90% rename from rsconcept/frontend/src/app/GlobalProviders.tsx rename to rsconcept/frontend/src/app/global-providers.tsx index 08e02d6d..ef94938d 100644 --- a/rsconcept/frontend/src/app/GlobalProviders.tsx +++ b/rsconcept/frontend/src/app/global-providers.tsx @@ -4,7 +4,7 @@ import { IntlProvider } from 'react-intl'; import { QueryClientProvider } from '@tanstack/react-query'; import { ReactQueryDevtools } from '@tanstack/react-query-devtools'; -import { queryClient } from '@/backend/queryClient'; +import { queryClient } from '@/backend/query-client'; // prettier-ignore export function GlobalProviders({ children }: React.PropsWithChildren) { diff --git a/rsconcept/frontend/src/app/GlobalToaster.tsx b/rsconcept/frontend/src/app/global-toaster.tsx similarity index 100% rename from rsconcept/frontend/src/app/GlobalToaster.tsx rename to rsconcept/frontend/src/app/global-toaster.tsx diff --git a/rsconcept/frontend/src/app/GlobalTooltips.tsx b/rsconcept/frontend/src/app/global-tooltips.tsx similarity index 90% rename from rsconcept/frontend/src/app/GlobalTooltips.tsx rename to rsconcept/frontend/src/app/global-tooltips.tsx index 591678c2..179c4326 100644 --- a/rsconcept/frontend/src/app/GlobalTooltips.tsx +++ b/rsconcept/frontend/src/app/global-tooltips.tsx @@ -1,6 +1,6 @@ 'use client'; -import { Tooltip } from '@/components/Container'; +import { Tooltip } from '@/components/container1'; import { globalIDs } from '@/utils/constants'; export const GlobalTooltips = () => { diff --git a/rsconcept/frontend/src/app/index.tsx b/rsconcept/frontend/src/app/index.tsx index 2b904858..ab7f9e01 100644 --- a/rsconcept/frontend/src/app/index.tsx +++ b/rsconcept/frontend/src/app/index.tsx @@ -1,9 +1,9 @@ -export { useConceptNavigation } from './Navigation/NavigationContext'; -export { useBlockNavigation } from './Navigation/NavigationContext'; +export { useConceptNavigation } from './navigation1/navigation-context'; +export { useBlockNavigation } from './navigation1/navigation-context'; export { urls } from './urls'; import { RouterProvider } from 'react-router'; -import { Router } from './Router'; +import { Router } from './router1'; export function App() { return ; diff --git a/rsconcept/frontend/src/app/MutationErrors.tsx b/rsconcept/frontend/src/app/mutation-errors.tsx similarity index 75% rename from rsconcept/frontend/src/app/MutationErrors.tsx rename to rsconcept/frontend/src/app/mutation-errors.tsx index 8674e8b5..c5754947 100644 --- a/rsconcept/frontend/src/app/MutationErrors.tsx +++ b/rsconcept/frontend/src/app/mutation-errors.tsx @@ -1,8 +1,8 @@ -import { useMutationErrors } from '@/backend/useMutationErrors'; -import { Button } from '@/components/Control'; -import { DescribeError } from '@/components/InfoError'; -import { ModalBackdrop } from '@/components/Modal/ModalBackdrop'; -import { useEscapeKey } from '@/hooks/useEscapeKey'; +import { useMutationErrors } from '@/backend/use-mutation-errors'; +import { Button } from '@/components/control1'; +import { DescribeError } from '@/components/info-error'; +import { ModalBackdrop } from '@/components/modal1/modal-backdrop'; +import { useEscapeKey } from '@/hooks/use-escape-key'; import { useDialogsStore } from '@/stores/dialogs'; export function MutationErrors() { diff --git a/rsconcept/frontend/src/app/navigation1/index.tsx b/rsconcept/frontend/src/app/navigation1/index.tsx new file mode 100644 index 00000000..31ba062c --- /dev/null +++ b/rsconcept/frontend/src/app/navigation1/index.tsx @@ -0,0 +1 @@ +export { Navigation } from './navigation1'; diff --git a/rsconcept/frontend/src/app/Navigation/Logo.tsx b/rsconcept/frontend/src/app/navigation1/logo1.tsx similarity index 87% rename from rsconcept/frontend/src/app/Navigation/Logo.tsx rename to rsconcept/frontend/src/app/navigation1/logo1.tsx index b0dac8a9..d52a8155 100644 --- a/rsconcept/frontend/src/app/Navigation/Logo.tsx +++ b/rsconcept/frontend/src/app/navigation1/logo1.tsx @@ -1,4 +1,4 @@ -import { useWindowSize } from '@/hooks/useWindowSize'; +import { useWindowSize } from '@/hooks/use-window-size'; import { usePreferencesStore } from '@/stores/preferences'; export function Logo() { diff --git a/rsconcept/frontend/src/app/Navigation/NavigationButton.tsx b/rsconcept/frontend/src/app/navigation1/navigation-button.tsx similarity index 100% rename from rsconcept/frontend/src/app/Navigation/NavigationButton.tsx rename to rsconcept/frontend/src/app/navigation1/navigation-button.tsx diff --git a/rsconcept/frontend/src/app/Navigation/NavigationContext.tsx b/rsconcept/frontend/src/app/navigation1/navigation-context.tsx similarity index 100% rename from rsconcept/frontend/src/app/Navigation/NavigationContext.tsx rename to rsconcept/frontend/src/app/navigation1/navigation-context.tsx diff --git a/rsconcept/frontend/src/app/Navigation/Navigation.tsx b/rsconcept/frontend/src/app/navigation1/navigation1.tsx similarity index 83% rename from rsconcept/frontend/src/app/Navigation/Navigation.tsx rename to rsconcept/frontend/src/app/navigation1/navigation1.tsx index 7ce8e79d..ca91a6cf 100644 --- a/rsconcept/frontend/src/app/Navigation/Navigation.tsx +++ b/rsconcept/frontend/src/app/navigation1/navigation1.tsx @@ -1,14 +1,14 @@ -import { IconLibrary2, IconManuals, IconNewItem2 } from '@/components/Icons'; -import { useWindowSize } from '@/hooks/useWindowSize'; -import { useAppLayoutStore } from '@/stores/appLayout'; +import { IconLibrary2, IconManuals, IconNewItem2 } from '@/components/icons1'; +import { useWindowSize } from '@/hooks/use-window-size'; +import { useAppLayoutStore } from '@/stores/app-layout'; import { urls } from '../urls'; -import { Logo } from './Logo'; -import { NavigationButton } from './NavigationButton'; -import { useConceptNavigation } from './NavigationContext'; -import { ToggleNavigation } from './ToggleNavigation'; -import { UserMenu } from './UserMenu'; +import { Logo } from './logo1'; +import { NavigationButton } from './navigation-button'; +import { useConceptNavigation } from './navigation-context'; +import { ToggleNavigation } from './toggle-navigation'; +import { UserMenu } from './user-menu'; export function Navigation() { const router = useConceptNavigation(); diff --git a/rsconcept/frontend/src/app/Navigation/ToggleNavigation.tsx b/rsconcept/frontend/src/app/navigation1/toggle-navigation.tsx similarity index 95% rename from rsconcept/frontend/src/app/Navigation/ToggleNavigation.tsx rename to rsconcept/frontend/src/app/navigation1/toggle-navigation.tsx index 6b2df435..3ab5d237 100644 --- a/rsconcept/frontend/src/app/Navigation/ToggleNavigation.tsx +++ b/rsconcept/frontend/src/app/navigation1/toggle-navigation.tsx @@ -1,7 +1,7 @@ 'use client'; -import { IconDarkTheme, IconLightTheme, IconPin, IconUnpin } from '@/components/Icons'; -import { useAppLayoutStore } from '@/stores/appLayout'; +import { IconDarkTheme, IconLightTheme, IconPin, IconUnpin } from '@/components/icons1'; +import { useAppLayoutStore } from '@/stores/app-layout'; import { usePreferencesStore } from '@/stores/preferences'; import { globalIDs } from '@/utils/constants'; diff --git a/rsconcept/frontend/src/app/Navigation/UserButton.tsx b/rsconcept/frontend/src/app/navigation1/user-button.tsx similarity index 90% rename from rsconcept/frontend/src/app/Navigation/UserButton.tsx rename to rsconcept/frontend/src/app/navigation1/user-button.tsx index 12fe1f0d..d2b28e83 100644 --- a/rsconcept/frontend/src/app/Navigation/UserButton.tsx +++ b/rsconcept/frontend/src/app/navigation1/user-button.tsx @@ -1,10 +1,10 @@ import { useAuthSuspense } from '@/features/auth'; -import { IconLogin, IconUser2 } from '@/components/Icons'; +import { IconLogin, IconUser2 } from '@/components/icons1'; import { usePreferencesStore } from '@/stores/preferences'; import { globalIDs } from '@/utils/constants'; -import { NavigationButton } from './NavigationButton'; +import { NavigationButton } from './navigation-button'; interface UserButtonProps { onLogin: () => void; diff --git a/rsconcept/frontend/src/app/Navigation/UserDropdown.tsx b/rsconcept/frontend/src/app/navigation1/user-dropdown.tsx similarity index 95% rename from rsconcept/frontend/src/app/Navigation/UserDropdown.tsx rename to rsconcept/frontend/src/app/navigation1/user-dropdown.tsx index b136bf02..53deacc8 100644 --- a/rsconcept/frontend/src/app/Navigation/UserDropdown.tsx +++ b/rsconcept/frontend/src/app/navigation1/user-dropdown.tsx @@ -1,7 +1,7 @@ import { useAuthSuspense } from '@/features/auth'; -import { useLogout } from '@/features/auth/backend/useLogout'; +import { useLogout } from '@/features/auth/backend/use-logout'; -import { Dropdown, DropdownButton } from '@/components/Dropdown'; +import { Dropdown, DropdownButton } from '@/components/dropdown1'; import { IconAdmin, IconAdminOff, @@ -15,13 +15,13 @@ import { IconLogout, IconRESTapi, IconUser -} from '@/components/Icons'; +} from '@/components/icons1'; import { usePreferencesStore } from '@/stores/preferences'; import { globalIDs } from '@/utils/constants'; import { urls } from '../urls'; -import { useConceptNavigation } from './NavigationContext'; +import { useConceptNavigation } from './navigation-context'; interface UserDropdownProps { isOpen: boolean; diff --git a/rsconcept/frontend/src/app/Navigation/UserMenu.tsx b/rsconcept/frontend/src/app/navigation1/user-menu.tsx similarity index 70% rename from rsconcept/frontend/src/app/Navigation/UserMenu.tsx rename to rsconcept/frontend/src/app/navigation1/user-menu.tsx index 1e146448..8fa6859d 100644 --- a/rsconcept/frontend/src/app/Navigation/UserMenu.tsx +++ b/rsconcept/frontend/src/app/navigation1/user-menu.tsx @@ -1,13 +1,13 @@ import { Suspense } from 'react'; -import { useDropdown } from '@/components/Dropdown'; -import { Loader } from '@/components/Loader'; +import { useDropdown } from '@/components/dropdown1'; +import { Loader } from '@/components/loader1'; import { urls } from '../urls'; -import { useConceptNavigation } from './NavigationContext'; -import { UserButton } from './UserButton'; -import { UserDropdown } from './UserDropdown'; +import { useConceptNavigation } from './navigation-context'; +import { UserButton } from './user-button'; +import { UserDropdown } from './user-dropdown'; export function UserMenu() { const router = useConceptNavigation(); diff --git a/rsconcept/frontend/src/app/Router.tsx b/rsconcept/frontend/src/app/router1.tsx similarity index 57% rename from rsconcept/frontend/src/app/Router.tsx rename to rsconcept/frontend/src/app/router1.tsx index a0c0d505..b0b9e382 100644 --- a/rsconcept/frontend/src/app/Router.tsx +++ b/rsconcept/frontend/src/app/router1.tsx @@ -1,20 +1,20 @@ import { createBrowserRouter } from 'react-router'; -import { prefetchAuth } from '@/features/auth/backend/useAuth'; -import { LoginPage } from '@/features/auth/pages/LoginPage'; -import { HomePage } from '@/features/home/HomePage'; -import { NotFoundPage } from '@/features/home/NotFoundPage'; -import { prefetchLibrary } from '@/features/library/backend/useLibrary'; -import { CreateItemPage } from '@/features/library/pages/CreateItemPage'; -import { prefetchOSS } from '@/features/oss/backend/useOSS'; -import { prefetchRSForm } from '@/features/rsform/backend/useRSForm'; -import { prefetchProfile } from '@/features/users/backend/useProfile'; -import { prefetchUsers } from '@/features/users/backend/useUsers'; +import { prefetchAuth } from '@/features/auth/backend/use-auth'; +import { LoginPage } from '@/features/auth/pages/login-page'; +import { HomePage } from '@/features/home/home-page'; +import { NotFoundPage } from '@/features/home/not-found-page'; +import { prefetchLibrary } from '@/features/library/backend/use-library'; +import { CreateItemPage } from '@/features/library/pages/create-item-page'; +import { prefetchOSS } from '@/features/oss/backend/use-oss'; +import { prefetchRSForm } from '@/features/rsform/backend/use-rsform'; +import { prefetchProfile } from '@/features/users/backend/use-profile'; +import { prefetchUsers } from '@/features/users/backend/use-users'; -import { Loader } from '@/components/Loader'; +import { Loader } from '@/components/loader1'; -import { ApplicationLayout } from './ApplicationLayout'; -import { ErrorFallback } from './ErrorFallback'; +import { ApplicationLayout } from './application-layout'; +import { ErrorFallback } from './error-fallback'; import { routes } from './urls'; export const Router = createBrowserRouter([ @@ -39,25 +39,25 @@ export const Router = createBrowserRouter([ }, { path: routes.signup, - lazy: () => import('@/features/users/pages/RegisterPage') + lazy: () => import('@/features/users/pages/register-page') }, { path: routes.profile, loader: prefetchProfile, - lazy: () => import('@/features/users/pages/UserProfilePage') + lazy: () => import('@/features/users/pages/user-profile-page') }, { path: routes.restore_password, - lazy: () => import('@/features/auth/pages/RestorePasswordPage') + lazy: () => import('@/features/auth/pages/restore-password-page') }, { path: routes.password_change, - lazy: () => import('@/features/auth/pages/PasswordChangePage') + lazy: () => import('@/features/auth/pages/password-change-page') }, { path: routes.library, loader: () => Promise.allSettled([prefetchLibrary(), prefetchUsers()]), - lazy: () => import('@/features/library/pages/LibraryPage') + lazy: () => import('@/features/library/pages/library-page') }, { path: routes.create_schema, @@ -66,24 +66,24 @@ export const Router = createBrowserRouter([ { path: `${routes.rsforms}/:id`, loader: data => prefetchRSForm(parseRSFormURL(data.params.id, data.request.url)), - lazy: () => import('@/features/rsform/pages/RSFormPage') + lazy: () => import('@/features/rsform/pages/rsform-page') }, { path: `${routes.oss}/:id`, loader: data => prefetchOSS(parseOssURL(data.params.id)), - lazy: () => import('@/features/oss/pages/OssPage') + lazy: () => import('@/features/oss/pages/oss-page') }, { path: routes.manuals, - lazy: () => import('@/features/help/pages/ManualsPage') + lazy: () => import('@/features/help/pages/manuals-page') }, { path: `${routes.icons}`, - lazy: () => import('@/features/home/IconsPage') + lazy: () => import('@/features/home/icons-page') }, { path: `${routes.database_schema}`, - lazy: () => import('@/features/home/DatabaseSchemaPage') + lazy: () => import('@/features/home/database-schema-page') } ] } diff --git a/rsconcept/frontend/src/app/urls.ts b/rsconcept/frontend/src/app/urls.ts index a2e93cab..996b192e 100644 --- a/rsconcept/frontend/src/app/urls.ts +++ b/rsconcept/frontend/src/app/urls.ts @@ -2,7 +2,7 @@ * Module: Internal navigation constants. */ -import { buildConstants } from '@/utils/buildConstants'; +import { buildConstants } from '@/utils/build-constants'; /** * Routes. diff --git a/rsconcept/frontend/src/backend/apiTransport.ts b/rsconcept/frontend/src/backend/api-transport.ts similarity index 98% rename from rsconcept/frontend/src/backend/apiTransport.ts rename to rsconcept/frontend/src/backend/api-transport.ts index 3cb61b40..26983dc2 100644 --- a/rsconcept/frontend/src/backend/apiTransport.ts +++ b/rsconcept/frontend/src/backend/api-transport.ts @@ -5,7 +5,7 @@ import { toast } from 'react-toastify'; import axios, { type AxiosError, type AxiosRequestConfig } from 'axios'; import { type z, ZodError } from 'zod'; -import { buildConstants } from '@/utils/buildConstants'; +import { buildConstants } from '@/utils/build-constants'; import { PARAMETER } from '@/utils/constants'; import { errorMsg } from '@/utils/labels'; import { extractErrorMessage } from '@/utils/utils'; diff --git a/rsconcept/frontend/src/backend/queryClient.ts b/rsconcept/frontend/src/backend/query-client.ts similarity index 91% rename from rsconcept/frontend/src/backend/queryClient.ts rename to rsconcept/frontend/src/backend/query-client.ts index 94fe6a76..8d0bfd31 100644 --- a/rsconcept/frontend/src/backend/queryClient.ts +++ b/rsconcept/frontend/src/backend/query-client.ts @@ -1,7 +1,7 @@ import { QueryClient } from '@tanstack/react-query'; import { type ZodError } from 'zod'; -import { type AxiosError } from './apiTransport'; +import { type AxiosError } from './api-transport'; import { DELAYS } from './configuration'; declare module '@tanstack/react-query' { diff --git a/rsconcept/frontend/src/backend/useMutationErrors.tsx b/rsconcept/frontend/src/backend/use-mutation-errors.tsx similarity index 100% rename from rsconcept/frontend/src/backend/useMutationErrors.tsx rename to rsconcept/frontend/src/backend/use-mutation-errors.tsx diff --git a/rsconcept/frontend/src/components/Container/index.tsx b/rsconcept/frontend/src/components/Container/index.tsx deleted file mode 100644 index 60ce8da4..00000000 --- a/rsconcept/frontend/src/components/Container/index.tsx +++ /dev/null @@ -1,2 +0,0 @@ -export { Divider } from './Divider'; -export { type PlacesType, Tooltip } from './Tooltip'; diff --git a/rsconcept/frontend/src/components/Control/index.tsx b/rsconcept/frontend/src/components/Control/index.tsx deleted file mode 100644 index fcc48974..00000000 --- a/rsconcept/frontend/src/components/Control/index.tsx +++ /dev/null @@ -1,5 +0,0 @@ -export { Button } from './Button'; -export { MiniButton } from './MiniButton'; -export { SelectorButton } from './SelectorButton'; -export { SubmitButton } from './SubmitButton'; -export { TextURL } from './TextURL'; diff --git a/rsconcept/frontend/src/components/Dropdown/index.tsx b/rsconcept/frontend/src/components/Dropdown/index.tsx deleted file mode 100644 index b368e60a..00000000 --- a/rsconcept/frontend/src/components/Dropdown/index.tsx +++ /dev/null @@ -1,4 +0,0 @@ -export { Dropdown } from './Dropdown'; -export { DropdownButton } from './DropdownButton'; -export { DropdownCheckbox } from './DropdownCheckbox'; -export { useDropdown } from './useDropdown'; diff --git a/rsconcept/frontend/src/components/Input/index.tsx b/rsconcept/frontend/src/components/Input/index.tsx deleted file mode 100644 index 2461f51f..00000000 --- a/rsconcept/frontend/src/components/Input/index.tsx +++ /dev/null @@ -1,11 +0,0 @@ -export { Checkbox, type CheckboxProps } from './Checkbox'; -export { CheckboxTristate } from './CheckboxTristate'; -export { ErrorField } from './ErrorField'; -export { FileInput } from './FileInput'; -export { Label } from './Label'; -export { SearchBar } from './SearchBar'; -export { SelectMulti, type SelectMultiProps } from './SelectMulti'; -export { SelectSingle, type SelectSingleProps } from './SelectSingle'; -export { SelectTree } from './SelectTree'; -export { TextArea } from './TextArea'; -export { TextInput } from './TextInput'; diff --git a/rsconcept/frontend/src/components/Modal/index.tsx b/rsconcept/frontend/src/components/Modal/index.tsx deleted file mode 100644 index c9ddb230..00000000 --- a/rsconcept/frontend/src/components/Modal/index.tsx +++ /dev/null @@ -1,3 +0,0 @@ -export { ModalForm } from './ModalForm'; -export { ModalLoader } from './ModalLoader'; -export { ModalView } from './ModalView'; diff --git a/rsconcept/frontend/src/components/Container/Divider.tsx b/rsconcept/frontend/src/components/container1/divider1.tsx similarity index 100% rename from rsconcept/frontend/src/components/Container/Divider.tsx rename to rsconcept/frontend/src/components/container1/divider1.tsx diff --git a/rsconcept/frontend/src/components/container1/index.tsx b/rsconcept/frontend/src/components/container1/index.tsx new file mode 100644 index 00000000..cec5ed98 --- /dev/null +++ b/rsconcept/frontend/src/components/container1/index.tsx @@ -0,0 +1,2 @@ +export { Divider } from './divider1'; +export { type PlacesType, Tooltip } from './tooltip1'; diff --git a/rsconcept/frontend/src/components/Container/Tooltip.tsx b/rsconcept/frontend/src/components/container1/tooltip1.tsx similarity index 100% rename from rsconcept/frontend/src/components/Container/Tooltip.tsx rename to rsconcept/frontend/src/components/container1/tooltip1.tsx diff --git a/rsconcept/frontend/src/components/Control/Button.tsx b/rsconcept/frontend/src/components/control1/button1.tsx similarity index 100% rename from rsconcept/frontend/src/components/Control/Button.tsx rename to rsconcept/frontend/src/components/control1/button1.tsx diff --git a/rsconcept/frontend/src/components/control1/index.tsx b/rsconcept/frontend/src/components/control1/index.tsx new file mode 100644 index 00000000..06f9a81a --- /dev/null +++ b/rsconcept/frontend/src/components/control1/index.tsx @@ -0,0 +1,5 @@ +export { Button } from './button1'; +export { MiniButton } from './mini-button'; +export { SelectorButton } from './selector-button'; +export { SubmitButton } from './submit-button'; +export { TextURL } from './text-url'; diff --git a/rsconcept/frontend/src/components/Control/MiniButton.tsx b/rsconcept/frontend/src/components/control1/mini-button.tsx similarity index 100% rename from rsconcept/frontend/src/components/Control/MiniButton.tsx rename to rsconcept/frontend/src/components/control1/mini-button.tsx diff --git a/rsconcept/frontend/src/components/Control/SelectorButton.tsx b/rsconcept/frontend/src/components/control1/selector-button.tsx similarity index 100% rename from rsconcept/frontend/src/components/Control/SelectorButton.tsx rename to rsconcept/frontend/src/components/control1/selector-button.tsx diff --git a/rsconcept/frontend/src/components/Control/SubmitButton.tsx b/rsconcept/frontend/src/components/control1/submit-button.tsx similarity index 100% rename from rsconcept/frontend/src/components/Control/SubmitButton.tsx rename to rsconcept/frontend/src/components/control1/submit-button.tsx diff --git a/rsconcept/frontend/src/components/Control/TextURL.tsx b/rsconcept/frontend/src/components/control1/text-url.tsx similarity index 100% rename from rsconcept/frontend/src/components/Control/TextURL.tsx rename to rsconcept/frontend/src/components/control1/text-url.tsx diff --git a/rsconcept/frontend/src/components/DataTable/DataTable.tsx b/rsconcept/frontend/src/components/data-table/data-table.tsx similarity index 96% rename from rsconcept/frontend/src/components/DataTable/DataTable.tsx rename to rsconcept/frontend/src/components/data-table/data-table.tsx index 71dd7647..5b1d6b99 100644 --- a/rsconcept/frontend/src/components/DataTable/DataTable.tsx +++ b/rsconcept/frontend/src/components/data-table/data-table.tsx @@ -20,11 +20,11 @@ import { import { type Styling } from '../props'; -import { DefaultNoData } from './DefaultNoData'; -import { PaginationTools } from './PaginationTools'; -import { TableBody } from './TableBody'; -import { TableFooter } from './TableFooter'; -import { TableHeader } from './TableHeader'; +import { DefaultNoData } from './default-no-data'; +import { PaginationTools } from './pagination-tools'; +import { TableBody } from './table-body'; +import { TableFooter } from './table-footer'; +import { TableHeader } from './table-header'; export { type ColumnSort, createColumnHelper, type RowSelectionState, type VisibilityState }; diff --git a/rsconcept/frontend/src/components/DataTable/DefaultNoData.tsx b/rsconcept/frontend/src/components/data-table/default-no-data.tsx similarity index 100% rename from rsconcept/frontend/src/components/DataTable/DefaultNoData.tsx rename to rsconcept/frontend/src/components/data-table/default-no-data.tsx diff --git a/rsconcept/frontend/src/components/DataTable/index.tsx b/rsconcept/frontend/src/components/data-table/index.tsx similarity index 83% rename from rsconcept/frontend/src/components/DataTable/index.tsx rename to rsconcept/frontend/src/components/data-table/index.tsx index a626e427..fc8bfb12 100644 --- a/rsconcept/frontend/src/components/DataTable/index.tsx +++ b/rsconcept/frontend/src/components/data-table/index.tsx @@ -4,4 +4,4 @@ export { type IConditionalStyle, type RowSelectionState, type VisibilityState -} from './DataTable'; +} from './data-table'; diff --git a/rsconcept/frontend/src/components/DataTable/PaginationTools.tsx b/rsconcept/frontend/src/components/data-table/pagination-tools.tsx similarity index 99% rename from rsconcept/frontend/src/components/DataTable/PaginationTools.tsx rename to rsconcept/frontend/src/components/data-table/pagination-tools.tsx index affa8cab..ecb66ab5 100644 --- a/rsconcept/frontend/src/components/DataTable/PaginationTools.tsx +++ b/rsconcept/frontend/src/components/data-table/pagination-tools.tsx @@ -6,7 +6,7 @@ import { type Table } from '@tanstack/react-table'; import { prefixes } from '@/utils/constants'; -import { IconPageFirst, IconPageLast, IconPageLeft, IconPageRight } from '../Icons'; +import { IconPageFirst, IconPageLast, IconPageLeft, IconPageRight } from '../icons1'; interface PaginationToolsProps { id?: string; diff --git a/rsconcept/frontend/src/components/DataTable/SelectAll.tsx b/rsconcept/frontend/src/components/data-table/select-all.tsx similarity index 93% rename from rsconcept/frontend/src/components/DataTable/SelectAll.tsx rename to rsconcept/frontend/src/components/data-table/select-all.tsx index 7f47fc58..8e8cb6e0 100644 --- a/rsconcept/frontend/src/components/DataTable/SelectAll.tsx +++ b/rsconcept/frontend/src/components/data-table/select-all.tsx @@ -2,7 +2,7 @@ import { type Table } from '@tanstack/react-table'; -import { CheckboxTristate } from '../Input'; +import { CheckboxTristate } from '../input1'; interface SelectAllProps { table: Table; diff --git a/rsconcept/frontend/src/components/DataTable/SelectRow.tsx b/rsconcept/frontend/src/components/data-table/select-row.tsx similarity index 92% rename from rsconcept/frontend/src/components/DataTable/SelectRow.tsx rename to rsconcept/frontend/src/components/data-table/select-row.tsx index 88f59606..f255303d 100644 --- a/rsconcept/frontend/src/components/DataTable/SelectRow.tsx +++ b/rsconcept/frontend/src/components/data-table/select-row.tsx @@ -2,7 +2,7 @@ import { type Row } from '@tanstack/react-table'; -import { Checkbox } from '../Input'; +import { Checkbox } from '../input1'; interface SelectRowProps { row: Row; diff --git a/rsconcept/frontend/src/components/DataTable/SortingIcon.tsx b/rsconcept/frontend/src/components/data-table/sorting-icon.tsx similarity index 89% rename from rsconcept/frontend/src/components/DataTable/SortingIcon.tsx rename to rsconcept/frontend/src/components/data-table/sorting-icon.tsx index 524df298..7e516774 100644 --- a/rsconcept/frontend/src/components/DataTable/SortingIcon.tsx +++ b/rsconcept/frontend/src/components/data-table/sorting-icon.tsx @@ -2,7 +2,7 @@ import { type Column } from '@tanstack/react-table'; -import { IconSortAsc, IconSortDesc } from '../Icons'; +import { IconSortAsc, IconSortDesc } from '../icons1'; interface SortingIconProps { column: Column; diff --git a/rsconcept/frontend/src/components/DataTable/TableBody.tsx b/rsconcept/frontend/src/components/data-table/table-body.tsx similarity index 98% rename from rsconcept/frontend/src/components/DataTable/TableBody.tsx rename to rsconcept/frontend/src/components/data-table/table-body.tsx index dcda038b..8277919f 100644 --- a/rsconcept/frontend/src/components/DataTable/TableBody.tsx +++ b/rsconcept/frontend/src/components/data-table/table-body.tsx @@ -3,7 +3,7 @@ import { type Cell, flexRender, type Row, type Table } from '@tanstack/react-table'; import clsx from 'clsx'; -import { SelectRow } from './SelectRow'; +import { SelectRow } from './select-row'; import { type IConditionalStyle } from '.'; interface TableBodyProps { diff --git a/rsconcept/frontend/src/components/DataTable/TableFooter.tsx b/rsconcept/frontend/src/components/data-table/table-footer.tsx similarity index 100% rename from rsconcept/frontend/src/components/DataTable/TableFooter.tsx rename to rsconcept/frontend/src/components/data-table/table-footer.tsx diff --git a/rsconcept/frontend/src/components/DataTable/TableHeader.tsx b/rsconcept/frontend/src/components/data-table/table-header.tsx similarity index 95% rename from rsconcept/frontend/src/components/DataTable/TableHeader.tsx rename to rsconcept/frontend/src/components/data-table/table-header.tsx index 83034335..5e85a90b 100644 --- a/rsconcept/frontend/src/components/DataTable/TableHeader.tsx +++ b/rsconcept/frontend/src/components/data-table/table-header.tsx @@ -2,8 +2,8 @@ import { flexRender, type Header, type HeaderGroup, type Table } from '@tanstack/react-table'; -import { SelectAll } from './SelectAll'; -import { SortingIcon } from './SortingIcon'; +import { SelectAll } from './select-all'; +import { SortingIcon } from './sorting-icon'; interface TableHeaderProps { table: Table; diff --git a/rsconcept/frontend/src/components/Dropdown/DropdownButton.tsx b/rsconcept/frontend/src/components/dropdown1/dropdown-button.tsx similarity index 100% rename from rsconcept/frontend/src/components/Dropdown/DropdownButton.tsx rename to rsconcept/frontend/src/components/dropdown1/dropdown-button.tsx diff --git a/rsconcept/frontend/src/components/Dropdown/DropdownCheckbox.tsx b/rsconcept/frontend/src/components/dropdown1/dropdown-checkbox.tsx similarity index 90% rename from rsconcept/frontend/src/components/Dropdown/DropdownCheckbox.tsx rename to rsconcept/frontend/src/components/dropdown1/dropdown-checkbox.tsx index 6849d772..2db9baa2 100644 --- a/rsconcept/frontend/src/components/Dropdown/DropdownCheckbox.tsx +++ b/rsconcept/frontend/src/components/dropdown1/dropdown-checkbox.tsx @@ -1,6 +1,6 @@ import clsx from 'clsx'; -import { Checkbox, type CheckboxProps } from '../Input'; +import { Checkbox, type CheckboxProps } from '../input1'; /** Animated {@link Checkbox} inside a {@link Dropdown} item. */ export function DropdownCheckbox({ onChange: setValue, disabled, ...restProps }: CheckboxProps) { diff --git a/rsconcept/frontend/src/components/Dropdown/Dropdown.tsx b/rsconcept/frontend/src/components/dropdown1/dropdown1.tsx similarity index 100% rename from rsconcept/frontend/src/components/Dropdown/Dropdown.tsx rename to rsconcept/frontend/src/components/dropdown1/dropdown1.tsx diff --git a/rsconcept/frontend/src/components/dropdown1/index.tsx b/rsconcept/frontend/src/components/dropdown1/index.tsx new file mode 100644 index 00000000..cf1e13c1 --- /dev/null +++ b/rsconcept/frontend/src/components/dropdown1/index.tsx @@ -0,0 +1,4 @@ +export { DropdownButton } from './dropdown-button'; +export { DropdownCheckbox } from './dropdown-checkbox'; +export { Dropdown } from './dropdown1'; +export { useDropdown } from './use-dropdown'; diff --git a/rsconcept/frontend/src/components/Dropdown/useDropdown.ts b/rsconcept/frontend/src/components/dropdown1/use-dropdown.ts similarity index 84% rename from rsconcept/frontend/src/components/Dropdown/useDropdown.ts rename to rsconcept/frontend/src/components/dropdown1/use-dropdown.ts index dc7c9b00..df14cc1f 100644 --- a/rsconcept/frontend/src/components/Dropdown/useDropdown.ts +++ b/rsconcept/frontend/src/components/dropdown1/use-dropdown.ts @@ -2,7 +2,7 @@ import { useRef, useState } from 'react'; -import { useClickedOutside } from '@/hooks/useClickedOutside'; +import { useClickedOutside } from '@/hooks/use-clicked-outside'; export function useDropdown() { const [isOpen, setIsOpen] = useState(false); diff --git a/rsconcept/frontend/src/components/Flow/DynamicEdge.tsx b/rsconcept/frontend/src/components/flow1/dynamic-edge.tsx similarity index 100% rename from rsconcept/frontend/src/components/Flow/DynamicEdge.tsx rename to rsconcept/frontend/src/components/flow1/dynamic-edge.tsx diff --git a/rsconcept/frontend/src/components/Icons.tsx b/rsconcept/frontend/src/components/icons1.tsx similarity index 100% rename from rsconcept/frontend/src/components/Icons.tsx rename to rsconcept/frontend/src/components/icons1.tsx diff --git a/rsconcept/frontend/src/components/InfoError.tsx b/rsconcept/frontend/src/components/info-error.tsx similarity index 96% rename from rsconcept/frontend/src/components/InfoError.tsx rename to rsconcept/frontend/src/components/info-error.tsx index ae7ec93c..474b6b80 100644 --- a/rsconcept/frontend/src/components/InfoError.tsx +++ b/rsconcept/frontend/src/components/info-error.tsx @@ -1,10 +1,10 @@ import clsx from 'clsx'; import { ZodError } from 'zod'; -import { type AxiosError, isAxiosError } from '@/backend/apiTransport'; +import { type AxiosError, isAxiosError } from '@/backend/api-transport'; import { isResponseHtml } from '@/utils/utils'; -import { PrettyJson } from './View'; +import { PrettyJson } from './view1'; export type ErrorData = string | Error | AxiosError | ZodError; diff --git a/rsconcept/frontend/src/components/Input/CheckboxTristate.tsx b/rsconcept/frontend/src/components/input1/checkbox-tristate.tsx similarity index 94% rename from rsconcept/frontend/src/components/Input/CheckboxTristate.tsx rename to rsconcept/frontend/src/components/input1/checkbox-tristate.tsx index b89ba2a8..3c0311dc 100644 --- a/rsconcept/frontend/src/components/Input/CheckboxTristate.tsx +++ b/rsconcept/frontend/src/components/input1/checkbox-tristate.tsx @@ -2,9 +2,9 @@ import clsx from 'clsx'; import { globalIDs } from '@/utils/constants'; -import { CheckboxChecked, CheckboxNull } from '../Icons'; +import { CheckboxChecked, CheckboxNull } from '../icons1'; -import { type CheckboxProps } from './Checkbox'; +import { type CheckboxProps } from './checkbox1'; export interface CheckboxTristateProps extends Omit { /** Current value - `null`, `true` or `false`. */ diff --git a/rsconcept/frontend/src/components/Input/Checkbox.tsx b/rsconcept/frontend/src/components/input1/checkbox1.tsx similarity index 97% rename from rsconcept/frontend/src/components/Input/Checkbox.tsx rename to rsconcept/frontend/src/components/input1/checkbox1.tsx index 85a8b1ab..79a38f29 100644 --- a/rsconcept/frontend/src/components/Input/Checkbox.tsx +++ b/rsconcept/frontend/src/components/input1/checkbox1.tsx @@ -2,7 +2,7 @@ import clsx from 'clsx'; import { globalIDs } from '@/utils/constants'; -import { CheckboxChecked } from '../Icons'; +import { CheckboxChecked } from '../icons1'; import { type Button } from '../props'; export interface CheckboxProps extends Omit { diff --git a/rsconcept/frontend/src/components/Input/ErrorField.tsx b/rsconcept/frontend/src/components/input1/error-field.tsx similarity index 100% rename from rsconcept/frontend/src/components/Input/ErrorField.tsx rename to rsconcept/frontend/src/components/input1/error-field.tsx diff --git a/rsconcept/frontend/src/components/Input/FileInput.tsx b/rsconcept/frontend/src/components/input1/file-input.tsx similarity index 93% rename from rsconcept/frontend/src/components/Input/FileInput.tsx rename to rsconcept/frontend/src/components/input1/file-input.tsx index 72b4c787..21629d52 100644 --- a/rsconcept/frontend/src/components/Input/FileInput.tsx +++ b/rsconcept/frontend/src/components/input1/file-input.tsx @@ -3,11 +3,11 @@ import { useRef, useState } from 'react'; import clsx from 'clsx'; -import { Button } from '../Control'; -import { IconUpload } from '../Icons'; +import { Button } from '../control1'; +import { IconUpload } from '../icons1'; import { type Titled } from '../props'; -import { Label } from './Label'; +import { Label } from './label1'; interface FileInputProps extends Titled, Omit, 'accept' | 'type'> { /** Label to display in file upload button. */ diff --git a/rsconcept/frontend/src/components/input1/index.tsx b/rsconcept/frontend/src/components/input1/index.tsx new file mode 100644 index 00000000..e67a7cae --- /dev/null +++ b/rsconcept/frontend/src/components/input1/index.tsx @@ -0,0 +1,11 @@ +export { CheckboxTristate } from './checkbox-tristate'; +export { Checkbox, type CheckboxProps } from './checkbox1'; +export { ErrorField } from './error-field'; +export { FileInput } from './file-input'; +export { Label } from './label1'; +export { SearchBar } from './search-bar'; +export { SelectMulti, type SelectMultiProps } from './select-multi'; +export { SelectSingle, type SelectSingleProps } from './select-single'; +export { SelectTree } from './select-tree'; +export { TextArea } from './text-area'; +export { TextInput } from './text-input'; diff --git a/rsconcept/frontend/src/components/Input/Label.tsx b/rsconcept/frontend/src/components/input1/label1.tsx similarity index 100% rename from rsconcept/frontend/src/components/Input/Label.tsx rename to rsconcept/frontend/src/components/input1/label1.tsx diff --git a/rsconcept/frontend/src/components/Input/SearchBar.tsx b/rsconcept/frontend/src/components/input1/search-bar.tsx similarity index 93% rename from rsconcept/frontend/src/components/Input/SearchBar.tsx rename to rsconcept/frontend/src/components/input1/search-bar.tsx index 1391354c..1c49ad84 100644 --- a/rsconcept/frontend/src/components/Input/SearchBar.tsx +++ b/rsconcept/frontend/src/components/input1/search-bar.tsx @@ -1,9 +1,9 @@ import clsx from 'clsx'; -import { IconSearch } from '@/components/Icons'; +import { IconSearch } from '@/components/icons1'; import { type Styling } from '@/components/props'; -import { TextInput } from './TextInput'; +import { TextInput } from './text-input'; interface SearchBarProps extends Styling { /** Id of the search bar. */ diff --git a/rsconcept/frontend/src/components/Input/SelectMulti.tsx b/rsconcept/frontend/src/components/input1/select-multi.tsx similarity index 96% rename from rsconcept/frontend/src/components/Input/SelectMulti.tsx rename to rsconcept/frontend/src/components/input1/select-multi.tsx index 1f691538..ae01918c 100644 --- a/rsconcept/frontend/src/components/Input/SelectMulti.tsx +++ b/rsconcept/frontend/src/components/input1/select-multi.tsx @@ -9,10 +9,10 @@ import Select, { type StylesConfig } from 'react-select'; -import { useWindowSize } from '@/hooks/useWindowSize'; +import { useWindowSize } from '@/hooks/use-window-size'; import { APP_COLORS, SELECT_THEME } from '@/styling/colors'; -import { IconClose, IconDropArrow, IconDropArrowUp } from '../Icons'; +import { IconClose, IconDropArrow, IconDropArrowUp } from '../icons1'; function DropdownIndicator = GroupBase