refactor: Reorganize frontend by moving UI components, hooks, and utilities to new components, logic, features, and lib directories
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React, { useCallback, useMemo } from 'react';
|
||||
import { PlusIcon, SettingsIcon } from '../../ui/icons';
|
||||
import { PlusIcon, SettingsIcon } from '../../components/icons';
|
||||
import type { Identifier } from '../../types/identifiers';
|
||||
import { useDocumentsFilter } from '../../documents/context/DocumentsFilterContext';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { useCallback } from 'react';
|
||||
import type { ReactNode } from 'react';
|
||||
import type { Identifier } from '../../types/identifiers';
|
||||
import { FolderPlusIcon } from '../../ui/icons';
|
||||
import { FolderPlusIcon } from '../../components/icons';
|
||||
import FolderNode, { FolderIdentifier, FolderTreeNode } from './SidebarFolderNode';
|
||||
|
||||
interface SidebarFolderListProps {
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
EditIcon,
|
||||
FolderIcon,
|
||||
FolderPlusIcon,
|
||||
} from '../../ui/icons';
|
||||
} from '../../components/icons';
|
||||
import type { Identifier } from '../../types/identifiers';
|
||||
|
||||
export type FolderIdentifier = Identifier | 'root';
|
||||
|
||||
@@ -5,9 +5,9 @@ import {
|
||||
ChevronDownIcon,
|
||||
UploadIcon,
|
||||
LogoIcon,
|
||||
} from '../../ui/icons';
|
||||
import PanelHeader from '../../ui/PanelHeader';
|
||||
import useFloatingMenu from '../../ui/useFloatingMenu';
|
||||
} from '../../components/icons';
|
||||
import PanelHeader from '../../components/PanelHeader';
|
||||
import useFloatingMenu from '../../components/useFloatingMenu';
|
||||
import type { Identifier } from '../../types/identifiers';
|
||||
import SidebarMenu, { TenantOption } from './SidebarMenu';
|
||||
import { usePanelManager } from '../../app/PanelManagerContext';
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
SunIcon,
|
||||
MoonIcon,
|
||||
DesktopIcon,
|
||||
} from '../../ui/icons';
|
||||
} from '../../components/icons';
|
||||
import { useSidebarContext } from '../SidebarContext';
|
||||
import { THEME_MODE_LABELS, THEME_MODES } from '../../constants/sidebar';
|
||||
import type { Identifier } from '../../types/identifiers';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { useCallback, useMemo } from 'react';
|
||||
import { PlusIcon, SettingsIcon } from '../../ui/icons';
|
||||
import { PlusIcon, SettingsIcon } from '../../components/icons';
|
||||
import { getTagColorStyle } from '../../utils/colors';
|
||||
import type { Identifier } from '../../types/identifiers';
|
||||
import { useDocumentsFilter } from '../../documents/context/DocumentsFilterContext';
|
||||
|
||||
Reference in New Issue
Block a user