mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Replace jellyfin sdk generated-client models wiyh full path
Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
parent
8cbddba8fd
commit
511f8340ef
14 changed files with 28 additions and 26 deletions
|
@ -1,11 +1,11 @@
|
||||||
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
import type { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
||||||
|
import type { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
|
||||||
import React, { FC } from 'react';
|
import React, { FC } from 'react';
|
||||||
import { useGetGenres } from 'hooks/useFetchItems';
|
import { useGetGenres } from 'hooks/useFetchItems';
|
||||||
import globalize from 'scripts/globalize';
|
import globalize from 'scripts/globalize';
|
||||||
import Loading from 'components/loading/LoadingComponent';
|
import Loading from 'components/loading/LoadingComponent';
|
||||||
import GenresSectionContainer from './GenresSectionContainer';
|
import GenresSectionContainer from './GenresSectionContainer';
|
||||||
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
|
import type { ParentId } from 'types/library';
|
||||||
import { ParentId } from 'types/library';
|
|
||||||
|
|
||||||
interface GenresItemsContainerProps {
|
interface GenresItemsContainerProps {
|
||||||
parentId: ParentId;
|
parentId: ParentId;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
import type { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
||||||
|
import type { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
|
||||||
import React, { FC } from 'react';
|
import React, { FC } from 'react';
|
||||||
import GenresItemsContainer from './GenresItemsContainer';
|
import GenresItemsContainer from './GenresItemsContainer';
|
||||||
import { ParentId } from 'types/library';
|
import type { ParentId } from 'types/library';
|
||||||
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
|
|
||||||
|
|
||||||
interface GenresViewProps {
|
interface GenresViewProps {
|
||||||
parentId: ParentId;
|
parentId: ParentId;
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import React, { FC } from 'react';
|
import React, { type FC } from 'react';
|
||||||
import SuggestionsSectionView from './SuggestionsSectionView';
|
import SuggestionsSectionView from './SuggestionsSectionView';
|
||||||
import UpcomingView from './UpcomingView';
|
import UpcomingView from './UpcomingView';
|
||||||
import GenresView from './GenresView';
|
import GenresView from './GenresView';
|
||||||
import ItemsView from './ItemsView';
|
import ItemsView from './ItemsView';
|
||||||
import { LibraryTab } from 'types/libraryTab';
|
|
||||||
import { ParentId } from 'types/library';
|
|
||||||
import { LibraryTabContent } from 'types/libraryTabContent';
|
|
||||||
import GuideView from './GuideView';
|
import GuideView from './GuideView';
|
||||||
import ProgramsSectionView from './ProgramsSectionView';
|
import ProgramsSectionView from './ProgramsSectionView';
|
||||||
|
import { LibraryTab } from 'types/libraryTab';
|
||||||
|
import type { ParentId } from 'types/library';
|
||||||
|
import type { LibraryTabContent } from 'types/libraryTabContent';
|
||||||
|
|
||||||
interface PageTabContentProps {
|
interface PageTabContentProps {
|
||||||
parentId: ParentId;
|
parentId: ParentId;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client';
|
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
||||||
import React, { type FC } from 'react';
|
import React, { type FC } from 'react';
|
||||||
import Icon from '@mui/material/Icon';
|
import Icon from '@mui/material/Icon';
|
||||||
import imageHelper from 'utils/image';
|
import imageHelper from 'utils/image';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
||||||
import { LocationType } from '@jellyfin/sdk/lib/generated-client';
|
import { LocationType } from '@jellyfin/sdk/lib/generated-client/models/location-type';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Box from '@mui/material/Box';
|
import Box from '@mui/material/Box';
|
||||||
import LinearProgress, {
|
import LinearProgress, {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client';
|
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
||||||
import React, { type FC } from 'react';
|
import React, { type FC } from 'react';
|
||||||
import DragHandleIcon from '@mui/icons-material/DragHandle';
|
import DragHandleIcon from '@mui/icons-material/DragHandle';
|
||||||
import Box from '@mui/material/Box';
|
import Box from '@mui/material/Box';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client';
|
|
||||||
import itemHelper from '../../itemHelper';
|
import itemHelper from '../../itemHelper';
|
||||||
import datetime from 'scripts/datetime';
|
import datetime from 'scripts/datetime';
|
||||||
import ListTextWrapper from './ListTextWrapper';
|
import ListTextWrapper from './ListTextWrapper';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client';
|
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
||||||
import * as userSettings from 'scripts/settings/userSettings';
|
import * as userSettings from 'scripts/settings/userSettings';
|
||||||
import datetime from 'scripts/datetime';
|
import datetime from 'scripts/datetime';
|
||||||
import globalize from 'scripts/globalize';
|
import globalize from 'scripts/globalize';
|
||||||
|
|
|
@ -174,7 +174,7 @@ const ItemsContainer: FC<ItemsContainerProps> = ({
|
||||||
|
|
||||||
const invalidateQueries = useCallback(async () => {
|
const invalidateQueries = useCallback(async () => {
|
||||||
await queryClient.invalidateQueries({
|
await queryClient.invalidateQueries({
|
||||||
queryKey: queryKey,
|
queryKey,
|
||||||
type: 'all',
|
type: 'all',
|
||||||
refetchType: 'active'
|
refetchType: 'active'
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client';
|
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
||||||
import { useQueryClient } from '@tanstack/react-query';
|
import { useQueryClient } from '@tanstack/react-query';
|
||||||
import React, { type FC, useCallback } from 'react';
|
import React, { type FC, useCallback } from 'react';
|
||||||
import CheckIcon from '@mui/icons-material/Check';
|
import CheckIcon from '@mui/icons-material/Check';
|
||||||
|
@ -48,7 +48,7 @@ const PlayedButton: FC<PlayedButtonProps> = ({
|
||||||
},
|
},
|
||||||
{ onSuccess: async() => {
|
{ onSuccess: async() => {
|
||||||
await queryClient.invalidateQueries({
|
await queryClient.invalidateQueries({
|
||||||
queryKey: queryKey,
|
queryKey,
|
||||||
type: 'all',
|
type: 'all',
|
||||||
refetchType: 'active'
|
refetchType: 'active'
|
||||||
});
|
});
|
||||||
|
|
|
@ -34,7 +34,7 @@ const FavoriteButton: FC<FavoriteButtonProps> = ({
|
||||||
},
|
},
|
||||||
{ onSuccess: async() => {
|
{ onSuccess: async() => {
|
||||||
await queryClient.invalidateQueries({
|
await queryClient.invalidateQueries({
|
||||||
queryKey: queryKey,
|
queryKey,
|
||||||
type: 'all',
|
type: 'all',
|
||||||
refetchType: 'active'
|
refetchType: 'active'
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client';
|
import type { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
||||||
import { LibraryTab } from './libraryTab';
|
import type { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
|
||||||
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
|
import type { LibraryTab } from './libraryTab';
|
||||||
import { SectionType } from './sections';
|
import type { SectionType } from './sections';
|
||||||
|
|
||||||
export interface SectionsView {
|
export interface SectionsView {
|
||||||
suggestionSections?: SectionType[];
|
suggestionSections?: SectionType[];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client';
|
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
||||||
import type { DeviceInfo } from '@jellyfin/sdk/lib/generated-client/models/device-info';
|
import type { DeviceInfo } from '@jellyfin/sdk/lib/generated-client/models/device-info';
|
||||||
import type { SessionInfo } from '@jellyfin/sdk/lib/generated-client/models/session-info';
|
import type { SessionInfo } from '@jellyfin/sdk/lib/generated-client/models/session-info';
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
import { ImageType, ItemFields, ItemFilter } from '@jellyfin/sdk/lib/generated-client';
|
|
||||||
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
||||||
|
import { ItemFields } from '@jellyfin/sdk/lib/generated-client/models/item-fields';
|
||||||
|
import { ItemFilter } from '@jellyfin/sdk/lib/generated-client/models/item-filter';
|
||||||
|
import { ImageType } from '@jellyfin/sdk/lib/generated-client/models/image-type';
|
||||||
import { ItemSortBy } from '@jellyfin/sdk/lib/models/api/item-sort-by';
|
import { ItemSortBy } from '@jellyfin/sdk/lib/models/api/item-sort-by';
|
||||||
import { SortOrder } from '@jellyfin/sdk/lib/generated-client/models/sort-order';
|
import { SortOrder } from '@jellyfin/sdk/lib/generated-client/models/sort-order';
|
||||||
import * as userSettings from 'scripts/settings/userSettings';
|
import * as userSettings from 'scripts/settings/userSettings';
|
||||||
import { CardShape } from 'utils/card';
|
import { CardShape } from 'utils/card';
|
||||||
import { Section, SectionType, SectionApiMethod } from 'types/sections';
|
import { type Section, SectionType, SectionApiMethod } from 'types/sections';
|
||||||
|
|
||||||
export const getSuggestionSections = (): Section[] => {
|
export const getSuggestionSections = (): Section[] => {
|
||||||
const parametersOptions = {
|
const parametersOptions = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue