Move "SelectableCollection" to "base" folder
This commit is contained in:
@@ -10,7 +10,7 @@ import Checkbox from '@mui/material/Checkbox';
|
|||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import ClearIcon from '@mui/icons-material/Clear';
|
import ClearIcon from '@mui/icons-material/Clear';
|
||||||
import { CustomTooltip } from '@/base/components/CustomTooltip.tsx';
|
import { CustomTooltip } from '@/base/components/CustomTooltip.tsx';
|
||||||
import { SelectableCollectionSelectAll } from '@/features/collection/components/SelectableCollectionSelectAll.tsx';
|
import { SelectableCollectionSelectAll } from '@/base/collection/components/SelectableCollectionSelectAll.tsx';
|
||||||
|
|
||||||
export const SelectableCollectionSelectMode = ({
|
export const SelectableCollectionSelectMode = ({
|
||||||
isActive,
|
isActive,
|
||||||
@@ -17,7 +17,7 @@ import Stack from '@mui/material/Stack';
|
|||||||
import { useCallback, useMemo } from 'react';
|
import { useCallback, useMemo } from 'react';
|
||||||
import { CheckboxProps } from '@mui/material/Checkbox';
|
import { CheckboxProps } from '@mui/material/Checkbox';
|
||||||
import { CheckboxInput } from '@/base/components/inputs/CheckboxInput.tsx';
|
import { CheckboxInput } from '@/base/components/inputs/CheckboxInput.tsx';
|
||||||
import { useSelectableCollection } from '@/features/collection/hooks/useSelectableCollection.ts';
|
import { useSelectableCollection } from '@/base/collection/hooks/useSelectableCollection.ts';
|
||||||
|
|
||||||
export function CheckboxListSetting<Item>({
|
export function CheckboxListSetting<Item>({
|
||||||
title,
|
title,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import { Link } from 'react-router-dom';
|
|||||||
import Stack from '@mui/material/Stack';
|
import Stack from '@mui/material/Stack';
|
||||||
import { requestManager } from '@/lib/requests/RequestManager.ts';
|
import { requestManager } from '@/lib/requests/RequestManager.ts';
|
||||||
import { Mangas } from '@/features/manga/services/Mangas.ts';
|
import { Mangas } from '@/features/manga/services/Mangas.ts';
|
||||||
import { useSelectableCollection } from '@/features/collection/hooks/useSelectableCollection.ts';
|
import { useSelectableCollection } from '@/base/collection/hooks/useSelectableCollection.ts';
|
||||||
import { ThreeStateCheckboxInput } from '@/base/components/inputs/ThreeStateCheckboxInput.tsx';
|
import { ThreeStateCheckboxInput } from '@/base/components/inputs/ThreeStateCheckboxInput.tsx';
|
||||||
import { Categories } from '@/features/category/services/Categories.ts';
|
import { Categories } from '@/features/category/services/Categories.ts';
|
||||||
import { CheckboxInput } from '@/base/components/inputs/CheckboxInput.tsx';
|
import { CheckboxInput } from '@/base/components/inputs/CheckboxInput.tsx';
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import {
|
|||||||
} from '@/features/chapter/utils/ChapterList.util.tsx';
|
} from '@/features/chapter/utils/ChapterList.util.tsx';
|
||||||
import { EmptyViewAbsoluteCentered } from '@/base/components/feedback/EmptyViewAbsoluteCentered.tsx';
|
import { EmptyViewAbsoluteCentered } from '@/base/components/feedback/EmptyViewAbsoluteCentered.tsx';
|
||||||
import { ChaptersToolbarMenu } from '@/features/chapter/components/ChaptersToolbarMenu.tsx';
|
import { ChaptersToolbarMenu } from '@/features/chapter/components/ChaptersToolbarMenu.tsx';
|
||||||
import { SelectionFAB } from '@/features/collection/components/SelectionFAB.tsx';
|
import { SelectionFAB } from '@/base/collection/components/SelectionFAB.tsx';
|
||||||
import { DEFAULT_FULL_FAB_HEIGHT } from '@/base/components/buttons/StyledFab.tsx';
|
import { DEFAULT_FULL_FAB_HEIGHT } from '@/base/components/buttons/StyledFab.tsx';
|
||||||
import {
|
import {
|
||||||
ChapterListFieldsFragment,
|
ChapterListFieldsFragment,
|
||||||
@@ -29,8 +29,8 @@ import {
|
|||||||
GetChaptersMangaQueryVariables,
|
GetChaptersMangaQueryVariables,
|
||||||
MangaScreenFieldsFragment,
|
MangaScreenFieldsFragment,
|
||||||
} from '@/lib/graphql/generated/graphql.ts';
|
} from '@/lib/graphql/generated/graphql.ts';
|
||||||
import { useSelectableCollection } from '@/features/collection/hooks/useSelectableCollection.ts';
|
import { useSelectableCollection } from '@/base/collection/hooks/useSelectableCollection.ts';
|
||||||
import { SelectableCollectionSelectAll } from '@/features/collection/components/SelectableCollectionSelectAll.tsx';
|
import { SelectableCollectionSelectAll } from '@/base/collection/components/SelectableCollectionSelectAll.tsx';
|
||||||
import { Chapters } from '@/features/chapter/services/Chapters.ts';
|
import { Chapters } from '@/features/chapter/services/Chapters.ts';
|
||||||
import { ChapterActionMenuItems } from '@/features/chapter/components/actions/ChapterActionMenuItems.tsx';
|
import { ChapterActionMenuItems } from '@/features/chapter/components/actions/ChapterActionMenuItems.tsx';
|
||||||
import { defaultPromiseErrorHandler } from '@/lib/DefaultPromiseErrorHandler.ts';
|
import { defaultPromiseErrorHandler } from '@/lib/DefaultPromiseErrorHandler.ts';
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import BookmarkRemove from '@mui/icons-material/BookmarkRemove';
|
|||||||
import BookmarkAdd from '@mui/icons-material/BookmarkAdd';
|
import BookmarkAdd from '@mui/icons-material/BookmarkAdd';
|
||||||
import DoneAll from '@mui/icons-material/DoneAll';
|
import DoneAll from '@mui/icons-material/DoneAll';
|
||||||
import { ComponentProps, useMemo } from 'react';
|
import { ComponentProps, useMemo } from 'react';
|
||||||
import { SelectableCollectionReturnType } from '@/features/collection/hooks/useSelectableCollection.ts';
|
import { SelectableCollectionReturnType } from '@/base/collection/hooks/useSelectableCollection.ts';
|
||||||
import { Chapters } from '@/features/chapter/services/Chapters.ts';
|
import { Chapters } from '@/features/chapter/services/Chapters.ts';
|
||||||
import { MenuItem } from '@/base/components/menu/MenuItem.tsx';
|
import { MenuItem } from '@/base/components/menu/MenuItem.tsx';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -23,10 +23,10 @@ import { LibraryToolbarMenu } from '@/features/library/components/LibraryToolbar
|
|||||||
import { LibraryMangaGrid } from '@/features/library/components/LibraryMangaGrid.tsx';
|
import { LibraryMangaGrid } from '@/features/library/components/LibraryMangaGrid.tsx';
|
||||||
import { AppbarSearch } from '@/base/components/AppbarSearch.tsx';
|
import { AppbarSearch } from '@/base/components/AppbarSearch.tsx';
|
||||||
import { UpdateChecker } from '@/features/updates/components/UpdateChecker.tsx';
|
import { UpdateChecker } from '@/features/updates/components/UpdateChecker.tsx';
|
||||||
import { useSelectableCollection } from '@/features/collection/hooks/useSelectableCollection.ts';
|
import { useSelectableCollection } from '@/base/collection/hooks/useSelectableCollection.ts';
|
||||||
import { SelectableCollectionSelectMode } from '@/features/collection/components/SelectableCollectionSelectMode.tsx';
|
import { SelectableCollectionSelectMode } from '@/base/collection/components/SelectableCollectionSelectMode.tsx';
|
||||||
import { useGetVisibleLibraryMangas } from '@/features/library/hooks/useGetVisibleLibraryMangas.ts';
|
import { useGetVisibleLibraryMangas } from '@/features/library/hooks/useGetVisibleLibraryMangas.ts';
|
||||||
import { SelectionFAB } from '@/features/collection/components/SelectionFAB.tsx';
|
import { SelectionFAB } from '@/base/collection/components/SelectionFAB.tsx';
|
||||||
import { MangaActionMenuItems } from '@/features/manga/components/MangaActionMenuItems.tsx';
|
import { MangaActionMenuItems } from '@/features/manga/components/MangaActionMenuItems.tsx';
|
||||||
import { TabsMenu } from '@/base/components/tabs/TabsMenu.tsx';
|
import { TabsMenu } from '@/base/components/tabs/TabsMenu.tsx';
|
||||||
import { TabsWrapper } from '@/base/components/tabs/TabsWrapper.tsx';
|
import { TabsWrapper } from '@/base/components/tabs/TabsWrapper.tsx';
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
import { LongPressPointerHandlers, LongPressResult } from 'use-long-press/lib/use-long-press.types';
|
import { LongPressPointerHandlers, LongPressResult } from 'use-long-press/lib/use-long-press.types';
|
||||||
import { PopupState } from 'material-ui-popup-state/hooks';
|
import { PopupState } from 'material-ui-popup-state/hooks';
|
||||||
import type { JSX } from 'react';
|
import type { JSX } from 'react';
|
||||||
import { SelectableCollectionReturnType } from '@/features/collection/hooks/useSelectableCollection.ts';
|
import { SelectableCollectionReturnType } from '@/base/collection/hooks/useSelectableCollection.ts';
|
||||||
import { useManageMangaLibraryState } from '@/features/manga/hooks/useManageMangaLibraryState.tsx';
|
import { useManageMangaLibraryState } from '@/features/manga/hooks/useManageMangaLibraryState.tsx';
|
||||||
import {
|
import {
|
||||||
ChapterType,
|
ChapterType,
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import { Link } from 'react-router-dom';
|
|||||||
import SyncIcon from '@mui/icons-material/Sync';
|
import SyncIcon from '@mui/icons-material/Sync';
|
||||||
import Dialog from '@mui/material/Dialog';
|
import Dialog from '@mui/material/Dialog';
|
||||||
import { Mangas } from '@/features/manga/services/Mangas.ts';
|
import { Mangas } from '@/features/manga/services/Mangas.ts';
|
||||||
import { SelectableCollectionReturnType } from '@/features/collection/hooks/useSelectableCollection.ts';
|
import { SelectableCollectionReturnType } from '@/base/collection/hooks/useSelectableCollection.ts';
|
||||||
import { MenuItem } from '@/base/components/menu/MenuItem.tsx';
|
import { MenuItem } from '@/base/components/menu/MenuItem.tsx';
|
||||||
import {
|
import {
|
||||||
createGetMenuItemTitle,
|
createGetMenuItemTitle,
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import { useTranslation } from 'react-i18next';
|
|||||||
import { EmptyViewAbsoluteCentered } from '@/base/components/feedback/EmptyViewAbsoluteCentered.tsx';
|
import { EmptyViewAbsoluteCentered } from '@/base/components/feedback/EmptyViewAbsoluteCentered.tsx';
|
||||||
import { LoadingPlaceholder } from '@/base/components/feedback/LoadingPlaceholder.tsx';
|
import { LoadingPlaceholder } from '@/base/components/feedback/LoadingPlaceholder.tsx';
|
||||||
import { MangaCard } from '@/features/manga/components/cards/MangaCard.tsx';
|
import { MangaCard } from '@/features/manga/components/cards/MangaCard.tsx';
|
||||||
import { SelectableCollectionReturnType } from '@/features/collection/hooks/useSelectableCollection.ts';
|
import { SelectableCollectionReturnType } from '@/base/collection/hooks/useSelectableCollection.ts';
|
||||||
import { DEFAULT_FULL_FAB_HEIGHT } from '@/base/components/buttons/StyledFab.tsx';
|
import { DEFAULT_FULL_FAB_HEIGHT } from '@/base/components/buttons/StyledFab.tsx';
|
||||||
import { MangaCardProps } from '@/features/manga/Manga.types.ts';
|
import { MangaCardProps } from '@/features/manga/Manga.types.ts';
|
||||||
import { MangaType } from '@/lib/graphql/generated/graphql.ts';
|
import { MangaType } from '@/lib/graphql/generated/graphql.ts';
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import MoreVertIcon from '@mui/icons-material/MoreVert';
|
|||||||
import { PopupState } from 'material-ui-popup-state/hooks';
|
import { PopupState } from 'material-ui-popup-state/hooks';
|
||||||
import { bindTrigger } from 'material-ui-popup-state';
|
import { bindTrigger } from 'material-ui-popup-state';
|
||||||
import { CustomTooltip } from '@/base/components/CustomTooltip.tsx';
|
import { CustomTooltip } from '@/base/components/CustomTooltip.tsx';
|
||||||
import { SelectableCollectionReturnType } from '@/features/collection/hooks/useSelectableCollection.ts';
|
import { SelectableCollectionReturnType } from '@/base/collection/hooks/useSelectableCollection.ts';
|
||||||
import { MangaType } from '@/lib/graphql/generated/graphql.ts';
|
import { MangaType } from '@/lib/graphql/generated/graphql.ts';
|
||||||
import { MUIUtil } from '@/lib/mui/MUI.util.ts';
|
import { MUIUtil } from '@/lib/mui/MUI.util.ts';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user