R: Migrate to snake-case pt2

This commit is contained in:
Ivan 2025-03-12 12:04:50 +03:00
parent 1192ec7f47
commit 5c08f8e693
235 changed files with 367 additions and 367 deletions

View File

@ -1,18 +1,18 @@
import { Suspense } from 'react';
import { Outlet } from 'react-router';
import { ModalLoader } from '@/components/modal1';
import { ModalLoader } from '@/components/modal';
import { useAppLayoutStore, useMainHeight, useViewportHeight } from '@/stores/app-layout';
import { useDialogsStore } from '@/stores/dialogs';
import { NavigationState } from './navigation1/navigation-context';
import { Footer } from './footer1';
import { NavigationState } from './navigation/navigation-context';
import { Footer } from './footer';
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';
import { Navigation } from './navigation';
export function ApplicationLayout() {
const mainHeight = useMainHeight();

View File

@ -1,6 +1,6 @@
import { useNavigate, useRouteError } from 'react-router';
import { Button } from '@/components/control1';
import { Button } from '@/components/control';
import { InfoError } from '@/components/info-error';
export function ErrorFallback() {

View File

@ -1,6 +1,6 @@
import clsx from 'clsx';
import { TextURL } from '@/components/control1';
import { TextURL } from '@/components/control';
import { external_urls } from '@/utils/constants';
export function Footer() {

View File

@ -1,8 +1,8 @@
import { useNavigation } from 'react-router';
import { useDebounce } from 'use-debounce';
import { Loader } from '@/components/loader1';
import { ModalBackdrop } from '@/components/modal1/modal-backdrop';
import { Loader } from '@/components/loader';
import { ModalBackdrop } from '@/components/modal/modal-backdrop';
import { PARAMETER } from '@/utils/constants';
export function GlobalLoader() {

View File

@ -1,6 +1,6 @@
'use client';
import { Tooltip } from '@/components/container1';
import { Tooltip } from '@/components/container';
import { globalIDs } from '@/utils/constants';
export const GlobalTooltips = () => {

View File

@ -3,7 +3,7 @@ export { useBlockNavigation } from './navigation1/navigation-context';
export { urls } from './urls';
import { RouterProvider } from 'react-router';
import { Router } from './router1';
import { Router } from './router';
export function App() {
return <RouterProvider router={Router} />;

View File

@ -1,7 +1,7 @@
import { useMutationErrors } from '@/backend/use-mutation-errors';
import { Button } from '@/components/control1';
import { Button } from '@/components/control';
import { DescribeError } from '@/components/info-error';
import { ModalBackdrop } from '@/components/modal1/modal-backdrop';
import { ModalBackdrop } from '@/components/modal/modal-backdrop';
import { useEscapeKey } from '@/hooks/use-escape-key';
import { useDialogsStore } from '@/stores/dialogs';

View File

@ -0,0 +1 @@
export { Navigation } from './navigation';

View File

@ -1,10 +1,10 @@
import { IconLibrary2, IconManuals, IconNewItem2 } from '@/components/icons1';
import { IconLibrary2, IconManuals, IconNewItem2 } from '@/components/icons';
import { useWindowSize } from '@/hooks/use-window-size';
import { useAppLayoutStore } from '@/stores/app-layout';
import { urls } from '../urls';
import { Logo } from './logo1';
import { Logo } from './logo';
import { NavigationButton } from './navigation-button';
import { useConceptNavigation } from './navigation-context';
import { ToggleNavigation } from './toggle-navigation';

View File

@ -1,6 +1,6 @@
'use client';
import { IconDarkTheme, IconLightTheme, IconPin, IconUnpin } from '@/components/icons1';
import { IconDarkTheme, IconLightTheme, IconPin, IconUnpin } from '@/components/icons';
import { useAppLayoutStore } from '@/stores/app-layout';
import { usePreferencesStore } from '@/stores/preferences';
import { globalIDs } from '@/utils/constants';

View File

@ -1,6 +1,6 @@
import { useAuthSuspense } from '@/features/auth';
import { IconLogin, IconUser2 } from '@/components/icons1';
import { IconLogin, IconUser2 } from '@/components/icons';
import { usePreferencesStore } from '@/stores/preferences';
import { globalIDs } from '@/utils/constants';

View File

@ -1,7 +1,7 @@
import { useAuthSuspense } from '@/features/auth';
import { useLogout } from '@/features/auth/backend/use-logout';
import { Dropdown, DropdownButton } from '@/components/dropdown1';
import { Dropdown, DropdownButton } from '@/components/dropdown';
import {
IconAdmin,
IconAdminOff,
@ -15,7 +15,7 @@ import {
IconLogout,
IconRESTapi,
IconUser
} from '@/components/icons1';
} from '@/components/icons';
import { usePreferencesStore } from '@/stores/preferences';
import { globalIDs } from '@/utils/constants';

View File

@ -1,7 +1,7 @@
import { Suspense } from 'react';
import { useDropdown } from '@/components/dropdown1';
import { Loader } from '@/components/loader1';
import { useDropdown } from '@/components/dropdown';
import { Loader } from '@/components/loader';
import { urls } from '../urls';

View File

@ -1 +0,0 @@
export { Navigation } from './navigation1';

View File

@ -11,7 +11,7 @@ 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/loader1';
import { Loader } from '@/components/loader';
import { ApplicationLayout } from './application-layout';
import { ErrorFallback } from './error-fallback';

View File

@ -0,0 +1,2 @@
export { Divider } from './divider';
export { type PlacesType, Tooltip } from './tooltip';

View File

@ -1,2 +0,0 @@
export { Divider } from './divider1';
export { type PlacesType, Tooltip } from './tooltip1';

View File

@ -1,4 +1,4 @@
export { Button } from './button1';
export { Button } from './button';
export { MiniButton } from './mini-button';
export { SelectorButton } from './selector-button';
export { SubmitButton } from './submit-button';

View File

@ -6,7 +6,7 @@ import { type Table } from '@tanstack/react-table';
import { prefixes } from '@/utils/constants';
import { IconPageFirst, IconPageLast, IconPageLeft, IconPageRight } from '../icons1';
import { IconPageFirst, IconPageLast, IconPageLeft, IconPageRight } from '../icons';
interface PaginationToolsProps<TData> {
id?: string;

View File

@ -2,7 +2,7 @@
import { type Table } from '@tanstack/react-table';
import { CheckboxTristate } from '../input1';
import { CheckboxTristate } from '../input';
interface SelectAllProps<TData> {
table: Table<TData>;

View File

@ -2,7 +2,7 @@
import { type Row } from '@tanstack/react-table';
import { Checkbox } from '../input1';
import { Checkbox } from '../input';
interface SelectRowProps<TData> {
row: Row<TData>;

View File

@ -2,7 +2,7 @@
import { type Column } from '@tanstack/react-table';
import { IconSortAsc, IconSortDesc } from '../icons1';
import { IconSortAsc, IconSortDesc } from '../icons';
interface SortingIconProps<TData> {
column: Column<TData>;

View File

@ -1,6 +1,6 @@
import clsx from 'clsx';
import { Checkbox, type CheckboxProps } from '../input1';
import { Checkbox, type CheckboxProps } from '../input';
/** Animated {@link Checkbox} inside a {@link Dropdown} item. */
export function DropdownCheckbox({ onChange: setValue, disabled, ...restProps }: CheckboxProps) {

View File

@ -1,4 +1,4 @@
export { DropdownButton } from './dropdown-button';
export { DropdownCheckbox } from './dropdown-checkbox';
export { Dropdown } from './dropdown1';
export { Dropdown } from './dropdown';
export { useDropdown } from './use-dropdown';

View File

@ -4,7 +4,7 @@ import { ZodError } from 'zod';
import { type AxiosError, isAxiosError } from '@/backend/api-transport';
import { isResponseHtml } from '@/utils/utils';
import { PrettyJson } from './view1';
import { PrettyJson } from './view';
export type ErrorData = string | Error | AxiosError | ZodError;

View File

@ -2,9 +2,9 @@ import clsx from 'clsx';
import { globalIDs } from '@/utils/constants';
import { CheckboxChecked, CheckboxNull } from '../icons1';
import { CheckboxChecked, CheckboxNull } from '../icons';
import { type CheckboxProps } from './checkbox1';
import { type CheckboxProps } from './checkbox';
export interface CheckboxTristateProps extends Omit<CheckboxProps, 'value' | 'onChange'> {
/** Current value - `null`, `true` or `false`. */

View File

@ -2,7 +2,7 @@ import clsx from 'clsx';
import { globalIDs } from '@/utils/constants';
import { CheckboxChecked } from '../icons1';
import { CheckboxChecked } from '../icons';
import { type Button } from '../props';
export interface CheckboxProps extends Omit<Button, 'value' | 'onClick' | 'onChange'> {

View File

@ -3,11 +3,11 @@
import { useRef, useState } from 'react';
import clsx from 'clsx';
import { Button } from '../control1';
import { IconUpload } from '../icons1';
import { Button } from '../control';
import { IconUpload } from '../icons';
import { type Titled } from '../props';
import { Label } from './label1';
import { Label } from './label';
interface FileInputProps extends Titled, Omit<React.ComponentProps<'input'>, 'accept' | 'type'> {
/** Label to display in file upload button. */

View File

@ -1,8 +1,8 @@
export { CheckboxTristate } from './checkbox-tristate';
export { Checkbox, type CheckboxProps } from './checkbox1';
export { Checkbox, type CheckboxProps } from './checkbox';
export { ErrorField } from './error-field';
export { FileInput } from './file-input';
export { Label } from './label1';
export { Label } from './label';
export { SearchBar } from './search-bar';
export { SelectMulti, type SelectMultiProps } from './select-multi';
export { SelectSingle, type SelectSingleProps } from './select-single';

View File

@ -1,6 +1,6 @@
import clsx from 'clsx';
import { IconSearch } from '@/components/icons1';
import { IconSearch } from '@/components/icons';
import { type Styling } from '@/components/props';
import { TextInput } from './text-input';

View File

@ -12,7 +12,7 @@ import Select, {
import { useWindowSize } from '@/hooks/use-window-size';
import { APP_COLORS, SELECT_THEME } from '@/styling/colors';
import { IconClose, IconDropArrow, IconDropArrowUp } from '../icons1';
import { IconClose, IconDropArrow, IconDropArrowUp } from '../icons';
function DropdownIndicator<Option, Group extends GroupBase<Option> = GroupBase<Option>>(
props: DropdownIndicatorProps<Option, true, Group>

View File

@ -12,7 +12,7 @@ import Select, {
import { useWindowSize } from '@/hooks/use-window-size';
import { APP_COLORS, SELECT_THEME } from '@/styling/colors';
import { IconClose, IconDropArrow, IconDropArrowUp } from '../icons1';
import { IconClose, IconDropArrow, IconDropArrowUp } from '../icons';
function DropdownIndicator<Option, Group extends GroupBase<Option> = GroupBase<Option>>(
props: DropdownIndicatorProps<Option, false, Group>

View File

@ -3,8 +3,8 @@ import clsx from 'clsx';
import { globalIDs, PARAMETER } from '@/utils/constants';
import { MiniButton } from '../control1';
import { IconDropArrow, IconPageRight } from '../icons1';
import { MiniButton } from '../control';
import { IconDropArrow, IconPageRight } from '../icons';
import { type Styling } from '../props';
interface SelectTreeProps<ItemType> extends Styling {

View File

@ -1,6 +1,6 @@
import clsx from 'clsx';
import { Label } from './label1';
import { Label } from './label';
import { type Editor, type ErrorProcessing, type Titled } from '../props';
import { ErrorField } from './error-field';

View File

@ -1,6 +1,6 @@
import clsx from 'clsx';
import { Label } from './label1';
import { Label } from './label';
import { type Editor, type ErrorProcessing, type Titled } from '../props';
import { ErrorField } from './error-field';

View File

@ -9,8 +9,8 @@ import { useEscapeKey } from '@/hooks/use-escape-key';
import { useDialogsStore } from '@/stores/dialogs';
import { prepareTooltip } from '@/utils/utils';
import { Button, MiniButton, SubmitButton } from '../control1';
import { IconClose } from '../icons1';
import { Button, MiniButton, SubmitButton } from '../control';
import { IconClose } from '../icons';
import { type Styling } from '../props';
import { ModalBackdrop } from './modal-backdrop';

View File

@ -1,4 +1,4 @@
import { Loader } from '@/components/loader1';
import { Loader } from '@/components/loader';
import { ModalBackdrop } from './modal-backdrop';

View File

@ -8,8 +8,8 @@ import { useEscapeKey } from '@/hooks/use-escape-key';
import { useDialogsStore } from '@/stores/dialogs';
import { prepareTooltip } from '@/utils/utils';
import { Button, MiniButton } from '../control1';
import { IconClose } from '../icons1';
import { Button, MiniButton } from '../control';
import { IconClose } from '../icons';
import { ModalBackdrop } from './modal-backdrop';
import { type ModalProps } from './modal-form';

View File

@ -0,0 +1,9 @@
export { EmbedYoutube } from './embed-youtube';
export { Indicator } from './indicator1';
export { NoData } from './no-data';
export { PDFViewer } from './pdf-viewer';
export { PrettyJson } from './pretty-json';
export { TextContent } from './text-content';
export { ValueIcon } from './value-icon';
export { ValueLabeled } from './value-labeled';
export { ValueStats } from './value-stats';

View File

@ -2,7 +2,7 @@ import clsx from 'clsx';
import { globalIDs } from '@/utils/constants';
import { MiniButton } from '../control1';
import { MiniButton } from '../control';
import { type Styling, type Titled } from '../props';
interface ValueIconProps extends Styling, Titled {

View File

@ -1,6 +1,6 @@
import { type Styling, type Titled } from '@/components/props';
import { ValueIcon } from './ValueIcon';
import { ValueIcon } from './value-icon';
// characters - threshold for small labels - small font
const SMALL_THRESHOLD = 3;

View File

@ -1,9 +0,0 @@
export { EmbedYoutube } from './EmbedYoutube';
export { Indicator } from './Indicator';
export { NoData } from './NoData';
export { PDFViewer } from './PDFViewer';
export { PrettyJson } from './PrettyJSON';
export { TextContent } from './TextContent';
export { ValueIcon } from './ValueIcon';
export { ValueLabeled } from './ValueLabeled';
export { ValueStats } from './ValueStats';

View File

@ -1,6 +1,6 @@
import { urls, useConceptNavigation } from '@/app';
import { TextURL } from '@/components/control1';
import { TextURL } from '@/components/control';
import { useAuthSuspense } from '../backend/use-auth';
import { useLogout } from '../backend/use-logout';

View File

@ -1,6 +1,6 @@
'use client';
import { TextURL } from '@/components/control1';
import { TextURL } from '@/components/control';
import { useAuthSuspense } from '../backend/use-auth';

View File

@ -6,9 +6,9 @@ import { zodResolver } from '@hookform/resolvers/zod';
import { urls, useConceptNavigation } from '@/app';
import { isAxiosError } from '@/backend/api-transport';
import { SubmitButton, TextURL } from '@/components/control1';
import { SubmitButton, TextURL } from '@/components/control';
import { type ErrorData } from '@/components/info-error';
import { TextInput } from '@/components/input1';
import { TextInput } from '@/components/input';
import { useQueryStrings } from '@/hooks/use-query-strings';
import { resources } from '@/utils/constants';

View File

@ -5,10 +5,10 @@ import { useEffect, useState } from 'react';
import { urls, useConceptNavigation } from '@/app';
import { isAxiosError } from '@/backend/api-transport';
import { SubmitButton } from '@/components/control1';
import { SubmitButton } from '@/components/control';
import { type ErrorData, InfoError } from '@/components/info-error';
import { TextInput } from '@/components/input1';
import { Loader } from '@/components/loader1';
import { TextInput } from '@/components/input';
import { Loader } from '@/components/loader';
import { useQueryStrings } from '@/hooks/use-query-strings';
import { useResetPassword } from '../backend/use-reset-password';

View File

@ -3,9 +3,9 @@
import { useState } from 'react';
import { isAxiosError } from '@/backend/api-transport';
import { SubmitButton, TextURL } from '@/components/control1';
import { SubmitButton, TextURL } from '@/components/control';
import { type ErrorData } from '@/components/info-error';
import { TextInput } from '@/components/input1';
import { TextInput } from '@/components/input';
import { useRequestPasswordReset } from '../backend/use-request-password-reset';

View File

@ -1,10 +1,10 @@
import React, { Suspense } from 'react';
import clsx from 'clsx';
import { type PlacesType, Tooltip } from '@/components/container1';
import { TextURL } from '@/components/control1';
import { IconHelp } from '@/components/icons1';
import { Loader } from '@/components/loader1';
import { type PlacesType, Tooltip } from '@/components/container';
import { TextURL } from '@/components/control';
import { IconHelp } from '@/components/icons';
import { Loader } from '@/components/loader';
import { type Styling } from '@/components/props';
import { usePreferencesStore } from '@/stores/preferences';
import { PARAMETER } from '@/utils/constants';

View File

@ -1,6 +1,6 @@
import { urls } from '@/app';
import { TextURL } from '@/components/control1';
import { TextURL } from '@/components/control';
import { type HelpTopic } from '../models/help-topic';

View File

@ -6,7 +6,7 @@ import {
IconRSFormImported,
IconRSFormOwned,
IconSynthesis
} from '@/components/icons1';
} from '@/components/icons';
import { LinkTopic } from '../../components/link-topic';
import { HelpTopic } from '../../models/help-topic';

View File

@ -1,4 +1,4 @@
import { IconPredecessor } from '@/components/icons1';
import { IconPredecessor } from '@/components/icons';
import { LinkTopic } from '../../components/link-topic';
import { HelpTopic } from '../../models/help-topic';

View File

@ -1,4 +1,4 @@
import { IconHide, IconImmutable, IconPrivate, IconProtected, IconPublic } from '@/components/icons1';
import { IconHide, IconImmutable, IconPrivate, IconProtected, IconPublic } from '@/components/icons';
export function HelpAccess() {
return (

View File

@ -1,7 +1,7 @@
import { TextURL } from '@/components/control1';
import { TextURL } from '@/components/control';
import { external_urls } from '@/utils/constants';
import { Subtopics } from '../components/subtopics1';
import { Subtopics } from '../components/subtopics';
import { HelpTopic } from '../models/help-topic';
export function HelpConcept() {

View File

@ -1,4 +1,4 @@
import { TextURL } from '@/components/control1';
import { TextURL } from '@/components/control';
import { external_urls, PARAMETER } from '@/utils/constants';
export function HelpExteor() {

View File

@ -1,4 +1,4 @@
import { Subtopics } from '../components/subtopics1';
import { Subtopics } from '../components/subtopics';
import { HelpTopic } from '../models/help-topic';
export function HelpInfo() {

View File

@ -7,9 +7,9 @@ import {
IconLogout,
IconPin,
IconUser2
} from '@/components/icons1';
} from '@/components/icons';
import { Subtopics } from '../components/subtopics1';
import { Subtopics } from '../components/subtopics';
import { HelpTopic } from '../models/help-topic';
export function HelpInterface() {

View File

@ -1,4 +1,4 @@
import { TextURL } from '@/components/control1';
import { TextURL } from '@/components/control';
import { external_urls, prefixes } from '@/utils/constants';
import { LinkTopic } from '../components/link-topic';

View File

@ -1,8 +1,8 @@
import { EmbedYoutube } from '@/components/view1';
import { EmbedYoutube } from '@/components/view';
import { useWindowSize } from '@/hooks/use-window-size';
import { external_urls, youtube } from '@/utils/constants';
import { Subtopics } from '../components/subtopics1';
import { Subtopics } from '../components/subtopics';
import { HelpTopic } from '../models/help-topic';
export function HelpRSLang() {

View File

@ -25,7 +25,7 @@ import {
IconStatusProperty,
IconStatusUnknown,
IconSynthesis
} from '@/components/icons1';
} from '@/components/icons';
import { LinkTopic } from '../components/link-topic';
import { HelpTopic } from '../models/help-topic';

View File

@ -1,4 +1,4 @@
import { IconEditor, IconNewVersion, IconShare, IconUpload, IconVersions } from '@/components/icons1';
import { IconEditor, IconNewVersion, IconShare, IconUpload, IconVersions } from '@/components/icons';
export function HelpVersions() {
return (

View File

@ -1,4 +1,4 @@
import { TextURL } from '@/components/control1';
import { TextURL } from '@/components/control';
import { external_urls } from '@/utils/constants';
export function HelpAPI() {

View File

@ -1,4 +1,4 @@
import { TextURL } from '@/components/control1';
import { TextURL } from '@/components/control';
import { external_urls } from '@/utils/constants';
import { LinkTopic } from '../../components/link-topic';

View File

@ -1,4 +1,4 @@
import { PDFViewer } from '@/components/view1';
import { PDFViewer } from '@/components/view';
import { resources } from '@/utils/constants';
interface HelpPrivacyProps {

View File

@ -1,6 +1,6 @@
import { urls } from '@/app';
import { TextURL } from '@/components/control1';
import { TextURL } from '@/components/control';
import { external_urls } from '@/utils/constants';
export function HelpRules() {

View File

@ -5,7 +5,7 @@ import {
IconReplace,
IconSortList,
IconTemplates
} from '@/components/icons1';
} from '@/components/icons';
import { LinkTopic } from '../../components/link-topic';
import { HelpTopic } from '../../models/help-topic';

View File

@ -15,7 +15,7 @@ import {
IconSortDesc,
IconSubfolders,
IconUserSearch
} from '@/components/icons1';
} from '@/components/icons';
import { APP_COLORS } from '@/styling/colors';
import { LinkTopic } from '../../components/link-topic';

View File

@ -1,4 +1,4 @@
import { Divider } from '@/components/container1';
import { Divider } from '@/components/container';
import {
IconAnimation,
IconAnimationOff,
@ -17,7 +17,7 @@ import {
IconReset,
IconRSForm,
IconSave
} from '@/components/icons1';
} from '@/components/icons';
import { LinkTopic } from '../../components/link-topic';
import { HelpTopic } from '../../models/help-topic';

View File

@ -1,4 +1,4 @@
import { IconMoveDown, IconMoveUp, IconOSS, IconPredecessor } from '@/components/icons1';
import { IconMoveDown, IconMoveUp, IconOSS, IconPredecessor } from '@/components/icons';
import { LinkTopic } from '../../components/link-topic';
import { HelpTopic } from '../../models/help-topic';

View File

@ -8,7 +8,7 @@ import {
IconOwner,
IconPublic,
IconSave
} from '@/components/icons1';
} from '@/components/icons';
import { LinkTopic } from '../../components/link-topic';
import { HelpTopic } from '../../models/help-topic';

View File

@ -17,7 +17,7 @@ import {
IconStatusOK,
IconTree,
IconTypeGraph
} from '@/components/icons1';
} from '@/components/icons';
import { APP_COLORS } from '@/styling/colors';
import { LinkTopic } from '../../components/link-topic';

Some files were not shown because too many files have changed in this diff Show More