mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Tiny fixup
This commit is contained in:
parent
d9aa7319be
commit
2776e660fa
6 changed files with 21 additions and 23 deletions
|
@ -17,7 +17,7 @@ const fetchLiveTv = (api: Api, userId: string | undefined, searchTerm: string |
|
||||||
api,
|
api,
|
||||||
userId,
|
userId,
|
||||||
{
|
{
|
||||||
includeItemTypes: [BaseItemKind.LiveTvProgram],
|
includeItemTypes: [ BaseItemKind.LiveTvProgram ],
|
||||||
isMovie: true,
|
isMovie: true,
|
||||||
searchTerm: searchTerm
|
searchTerm: searchTerm
|
||||||
},
|
},
|
||||||
|
@ -34,7 +34,7 @@ const fetchLiveTv = (api: Api, userId: string | undefined, searchTerm: string |
|
||||||
api,
|
api,
|
||||||
userId,
|
userId,
|
||||||
{
|
{
|
||||||
includeItemTypes: [BaseItemKind.LiveTvProgram],
|
includeItemTypes: [ BaseItemKind.LiveTvProgram ],
|
||||||
isMovie: false,
|
isMovie: false,
|
||||||
isSeries: true,
|
isSeries: true,
|
||||||
isSports: false,
|
isSports: false,
|
||||||
|
@ -54,7 +54,7 @@ const fetchLiveTv = (api: Api, userId: string | undefined, searchTerm: string |
|
||||||
api,
|
api,
|
||||||
userId,
|
userId,
|
||||||
{
|
{
|
||||||
includeItemTypes: [BaseItemKind.LiveTvProgram],
|
includeItemTypes: [ BaseItemKind.LiveTvProgram ],
|
||||||
isSports: true,
|
isSports: true,
|
||||||
searchTerm: searchTerm
|
searchTerm: searchTerm
|
||||||
},
|
},
|
||||||
|
@ -70,7 +70,7 @@ const fetchLiveTv = (api: Api, userId: string | undefined, searchTerm: string |
|
||||||
api,
|
api,
|
||||||
userId,
|
userId,
|
||||||
{
|
{
|
||||||
includeItemTypes: [BaseItemKind.LiveTvProgram],
|
includeItemTypes: [ BaseItemKind.LiveTvProgram ],
|
||||||
isKids: true,
|
isKids: true,
|
||||||
searchTerm: searchTerm
|
searchTerm: searchTerm
|
||||||
},
|
},
|
||||||
|
@ -86,7 +86,7 @@ const fetchLiveTv = (api: Api, userId: string | undefined, searchTerm: string |
|
||||||
api,
|
api,
|
||||||
userId,
|
userId,
|
||||||
{
|
{
|
||||||
includeItemTypes: [BaseItemKind.LiveTvProgram],
|
includeItemTypes: [ BaseItemKind.LiveTvProgram ],
|
||||||
isNews: true,
|
isNews: true,
|
||||||
searchTerm: searchTerm
|
searchTerm: searchTerm
|
||||||
},
|
},
|
||||||
|
@ -102,7 +102,7 @@ const fetchLiveTv = (api: Api, userId: string | undefined, searchTerm: string |
|
||||||
api,
|
api,
|
||||||
userId,
|
userId,
|
||||||
{
|
{
|
||||||
includeItemTypes: [BaseItemKind.LiveTvProgram],
|
includeItemTypes: [ BaseItemKind.LiveTvProgram ],
|
||||||
isMovie: false,
|
isMovie: false,
|
||||||
isSeries: false,
|
isSeries: false,
|
||||||
isSports: false,
|
isSports: false,
|
||||||
|
@ -122,7 +122,7 @@ const fetchLiveTv = (api: Api, userId: string | undefined, searchTerm: string |
|
||||||
api,
|
api,
|
||||||
userId,
|
userId,
|
||||||
{
|
{
|
||||||
includeItemTypes: [BaseItemKind.TvChannel],
|
includeItemTypes: [ BaseItemKind.TvChannel ],
|
||||||
searchTerm: searchTerm
|
searchTerm: searchTerm
|
||||||
},
|
},
|
||||||
{ signal }
|
{ signal }
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
import type {
|
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
||||||
BaseItemDto,
|
import type { BaseItemDto } from '@jellyfin/sdk/lib/generated-client/models/base-item-dto';
|
||||||
BaseItemKind
|
|
||||||
} from '@jellyfin/sdk/lib/generated-client';
|
|
||||||
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
|
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
|
||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
import { useApi } from '../../../../../hooks/useApi';
|
import { useApi } from '../../../../../hooks/useApi';
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import React, { type ChangeEvent, type FC, useCallback, useRef } from 'react';
|
import React, { type ChangeEvent, type FC, useCallback, useRef } from 'react';
|
||||||
import AlphaPicker from '../../../../../components/alphaPicker/AlphaPickerComponent';
|
import AlphaPicker from 'components/alphaPicker/AlphaPickerComponent';
|
||||||
import Input from 'elements/emby-input/Input';
|
import Input from 'elements/emby-input/Input';
|
||||||
import globalize from '../../../../../lib/globalize';
|
import globalize from 'lib/globalize';
|
||||||
import layoutManager from '../../../../../components/layoutManager';
|
import layoutManager from 'components/layoutManager';
|
||||||
import browser from '../../../../../scripts/browser';
|
import browser from 'scripts/browser';
|
||||||
import 'material-design-icons-iconfont';
|
import 'material-design-icons-iconfont';
|
||||||
import 'styles/flexstyles.scss';
|
import 'styles/flexstyles.scss';
|
||||||
import './searchfields.scss';
|
import './searchfields.scss';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { type FC } from 'react';
|
import React, { type FC } from 'react';
|
||||||
import { useSearchItems } from '../api/useSearchItems';
|
import { useSearchItems } from '../api/useSearchItems';
|
||||||
import globalize from '../../../../../lib/globalize';
|
import globalize from 'lib/globalize';
|
||||||
import Loading from '../../../../../components/loading/LoadingComponent';
|
import Loading from 'components/loading/LoadingComponent';
|
||||||
import SearchResultsRow from './SearchResultsRow';
|
import SearchResultsRow from './SearchResultsRow';
|
||||||
import { CardShape } from 'utils/card';
|
import { CardShape } from 'utils/card';
|
||||||
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
|
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
import React, { FunctionComponent } from 'react';
|
import React, { FunctionComponent } from 'react';
|
||||||
|
|
||||||
import Loading from 'components/loading/LoadingComponent';
|
import Loading from 'components/loading/LoadingComponent';
|
||||||
import { appRouter } from '../../../../../components/router/appRouter';
|
import { appRouter } from 'components/router/appRouter';
|
||||||
import { useSearchSuggestions } from '../api/useSearchSuggestions';
|
import { useSearchSuggestions } from '../api/useSearchSuggestions';
|
||||||
import globalize from 'lib/globalize';
|
import globalize from 'lib/globalize';
|
||||||
import LinkButton from '../../../../../elements/emby-button/LinkButton';
|
import LinkButton from 'elements/emby-button/LinkButton';
|
||||||
|
|
||||||
import '../../../../../elements/emby-button/emby-button';
|
import 'elements/emby-button/emby-button';
|
||||||
|
|
||||||
type SearchSuggestionsProps = {
|
type SearchSuggestionsProps = {
|
||||||
parentId?: string | null;
|
parentId?: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
const SearchSuggestions: FunctionComponent<SearchSuggestionsProps> = ({ parentId }) => {
|
const SearchSuggestions: FunctionComponent<SearchSuggestionsProps> = ({ parentId }) => {
|
||||||
const { isLoading, data: suggestions } = useSearchSuggestions(parentId || undefined);
|
const { data: suggestions, isPending } = useSearchSuggestions(parentId || undefined);
|
||||||
|
|
||||||
if (isLoading) return <Loading />;
|
if (isPending) return <Loading />;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|
|
@ -1451,7 +1451,7 @@
|
||||||
"ReplaceExistingImages": "Replace existing images",
|
"ReplaceExistingImages": "Replace existing images",
|
||||||
"ReplaceTrickplayImages": "Replace existing trickplay images",
|
"ReplaceTrickplayImages": "Replace existing trickplay images",
|
||||||
"Retry": "Retry",
|
"Retry": "Retry",
|
||||||
"RetryWithGlobalSearch": "Retry with global search",
|
"RetryWithGlobalSearch": "Retry with a global search",
|
||||||
"Reset": "Reset",
|
"Reset": "Reset",
|
||||||
"ResetPassword": "Reset Password",
|
"ResetPassword": "Reset Password",
|
||||||
"ResolutionMatchSource": "Match Source",
|
"ResolutionMatchSource": "Match Source",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue