mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix missing semicolons in ts files
This commit is contained in:
parent
8041167473
commit
45623fe586
25 changed files with 29 additions and 29 deletions
2
src/apiclient.d.ts
vendored
2
src/apiclient.d.ts
vendored
|
@ -268,7 +268,7 @@ declare module 'jellyfin-apiclient' {
|
||||||
sendWebSocketMessage(name: string, data: any): void;
|
sendWebSocketMessage(name: string, data: any): void;
|
||||||
serverAddress(val?: string): string;
|
serverAddress(val?: string): string;
|
||||||
serverId(): string;
|
serverId(): string;
|
||||||
serverVersion(): string
|
serverVersion(): string;
|
||||||
setAuthenticationInfo(accessKey?: string, userId?: string): void;
|
setAuthenticationInfo(accessKey?: string, userId?: string): void;
|
||||||
setRequestHeaders(headers: any): void;
|
setRequestHeaders(headers: any): void;
|
||||||
setSystemInfo(info: SystemInfo): void;
|
setSystemInfo(info: SystemInfo): void;
|
||||||
|
|
|
@ -12,7 +12,7 @@ type IProps = {
|
||||||
listTitle?: string;
|
listTitle?: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
children?: React.ReactNode
|
children?: React.ReactNode
|
||||||
}
|
};
|
||||||
|
|
||||||
const AccessContainer: FunctionComponent<IProps> = ({ containerClassName, headerTitle, checkBoxClassName, checkBoxTitle, listContainerClassName, accessClassName, listTitle, description, children }: IProps) => {
|
const AccessContainer: FunctionComponent<IProps> = ({ containerClassName, headerTitle, checkBoxClassName, checkBoxTitle, listContainerClassName, accessClassName, listTitle, description, children }: IProps) => {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -9,7 +9,7 @@ type AccessScheduleListProps = {
|
||||||
DayOfWeek?: string;
|
DayOfWeek?: string;
|
||||||
StartHour?: number ;
|
StartHour?: number ;
|
||||||
EndHour?: number;
|
EndHour?: number;
|
||||||
}
|
};
|
||||||
|
|
||||||
function getDisplayTime(hours = 0) {
|
function getDisplayTime(hours = 0) {
|
||||||
let minutes = 0;
|
let minutes = 0;
|
||||||
|
|
|
@ -3,7 +3,7 @@ import IconButtonElement from '../../../elements/IconButtonElement';
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
tag?: string;
|
tag?: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
const BlockedTagList: FunctionComponent<IProps> = ({ tag }: IProps) => {
|
const BlockedTagList: FunctionComponent<IProps> = ({ tag }: IProps) => {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -4,7 +4,7 @@ import globalize from '../../../scripts/globalize';
|
||||||
type IProps = {
|
type IProps = {
|
||||||
title?: string;
|
title?: string;
|
||||||
className?: string;
|
className?: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
const createLinkElement = ({ className, title }: IProps) => ({
|
const createLinkElement = ({ className, title }: IProps) => ({
|
||||||
__html: `<a
|
__html: `<a
|
||||||
|
|
|
@ -3,7 +3,7 @@ import globalize from '../../../scripts/globalize';
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
activeTab: string;
|
activeTab: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
const createLinkElement = (activeTab: string) => ({
|
const createLinkElement = (activeTab: string) => ({
|
||||||
__html: `<a href="#"
|
__html: `<a href="#"
|
||||||
|
|
|
@ -19,7 +19,7 @@ const createLinkElement = ({ user, renderImgUrl }: { user: UserDto, renderImgUrl
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
user?: UserDto;
|
user?: UserDto;
|
||||||
}
|
};
|
||||||
|
|
||||||
const getLastSeenText = (lastActivityDate?: string | null) => {
|
const getLastSeenText = (lastActivityDate?: string | null) => {
|
||||||
if (lastActivityDate) {
|
if (lastActivityDate) {
|
||||||
|
|
|
@ -11,7 +11,7 @@ import InputElement from '../../../elements/InputElement';
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
userId: string;
|
userId: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
const UserPasswordForm: FunctionComponent<IProps> = ({ userId }: IProps) => {
|
const UserPasswordForm: FunctionComponent<IProps> = ({ userId }: IProps) => {
|
||||||
const element = useRef<HTMLDivElement>(null);
|
const element = useRef<HTMLDivElement>(null);
|
||||||
|
|
|
@ -24,7 +24,7 @@ type LiveTVSearchResultsProps = {
|
||||||
parentId?: string | null;
|
parentId?: string | null;
|
||||||
collectionType?: string | null;
|
collectionType?: string | null;
|
||||||
query?: string;
|
query?: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* React component to display search result rows for live tv library search
|
* React component to display search result rows for live tv library search
|
||||||
|
|
|
@ -12,7 +12,7 @@ type SearchResultsProps = {
|
||||||
parentId?: string | null;
|
parentId?: string | null;
|
||||||
collectionType?: string | null;
|
collectionType?: string | null;
|
||||||
query?: string;
|
query?: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
const ensureNonNullItems = (result: BaseItemDtoQueryResult) => ({
|
const ensureNonNullItems = (result: BaseItemDtoQueryResult) => ({
|
||||||
...result,
|
...result,
|
||||||
|
|
|
@ -35,13 +35,13 @@ type CardOptions = {
|
||||||
showChannelName?: boolean,
|
showChannelName?: boolean,
|
||||||
showTitle?: boolean,
|
showTitle?: boolean,
|
||||||
showYear?: boolean
|
showYear?: boolean
|
||||||
}
|
};
|
||||||
|
|
||||||
type SearchResultsRowProps = {
|
type SearchResultsRowProps = {
|
||||||
title?: string;
|
title?: string;
|
||||||
items?: BaseItemDto[];
|
items?: BaseItemDto[];
|
||||||
cardOptions?: CardOptions;
|
cardOptions?: CardOptions;
|
||||||
}
|
};
|
||||||
|
|
||||||
const SearchResultsRow: FunctionComponent<SearchResultsRowProps> = ({ title, items = [], cardOptions = {} }: SearchResultsRowProps) => {
|
const SearchResultsRow: FunctionComponent<SearchResultsRowProps> = ({ title, items = [], cardOptions = {} }: SearchResultsRowProps) => {
|
||||||
const element = useRef<HTMLDivElement>(null);
|
const element = useRef<HTMLDivElement>(null);
|
||||||
|
|
|
@ -25,7 +25,7 @@ const createSuggestionLink = ({ name, href }: { name: string, href: string }) =>
|
||||||
|
|
||||||
type SearchSuggestionsProps = {
|
type SearchSuggestionsProps = {
|
||||||
parentId?: string | null;
|
parentId?: string | null;
|
||||||
}
|
};
|
||||||
|
|
||||||
const SearchSuggestions: FunctionComponent<SearchSuggestionsProps> = ({ parentId }: SearchSuggestionsProps) => {
|
const SearchSuggestions: FunctionComponent<SearchSuggestionsProps> = ({ parentId }: SearchSuggestionsProps) => {
|
||||||
const [ suggestions, setSuggestions ] = useState<BaseItemDto[]>([]);
|
const [ suggestions, setSuggestions ] = useState<BaseItemDto[]>([]);
|
||||||
|
|
|
@ -21,7 +21,7 @@ type IProps = {
|
||||||
title?: string;
|
title?: string;
|
||||||
leftIcon?: string;
|
leftIcon?: string;
|
||||||
rightIcon?: string;
|
rightIcon?: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
const ButtonElement: FunctionComponent<IProps> = ({ type, id, className, title, leftIcon, rightIcon }: IProps) => {
|
const ButtonElement: FunctionComponent<IProps> = ({ type, id, className, title, leftIcon, rightIcon }: IProps) => {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -29,7 +29,7 @@ type IProps = {
|
||||||
itemCheckedAttribute?: string;
|
itemCheckedAttribute?: string;
|
||||||
itemName?: string
|
itemName?: string
|
||||||
title?: string
|
title?: string
|
||||||
}
|
};
|
||||||
|
|
||||||
const CheckBoxElement: FunctionComponent<IProps> = ({ labelClassName, className, elementId, dataFilter, itemType, itemId, itemAppName, itemCheckedAttribute, itemName, title }: IProps) => {
|
const CheckBoxElement: FunctionComponent<IProps> = ({ labelClassName, className, elementId, dataFilter, itemType, itemId, itemAppName, itemCheckedAttribute, itemName, title }: IProps) => {
|
||||||
const appName = itemAppName ? `- ${itemAppName}` : '';
|
const appName = itemAppName ? `- ${itemAppName}` : '';
|
||||||
|
|
|
@ -10,7 +10,7 @@ type IProps = {
|
||||||
dataIndex?: string | number;
|
dataIndex?: string | number;
|
||||||
dataTag?: string | number;
|
dataTag?: string | number;
|
||||||
dataProfileid?: string | number;
|
dataProfileid?: string | number;
|
||||||
}
|
};
|
||||||
|
|
||||||
const createIconButtonElement = ({ is, id, className, title, icon, dataIndex, dataTag, dataProfileid }: IProps) => ({
|
const createIconButtonElement = ({ is, id, className, title, icon, dataIndex, dataTag, dataProfileid }: IProps) => ({
|
||||||
__html: `<button
|
__html: `<button
|
||||||
|
|
|
@ -16,7 +16,7 @@ type IProps = {
|
||||||
id?: string;
|
id?: string;
|
||||||
label?: string;
|
label?: string;
|
||||||
options?: string
|
options?: string
|
||||||
}
|
};
|
||||||
|
|
||||||
const InputElement: FunctionComponent<IProps> = ({ type, id, label, options }: IProps) => {
|
const InputElement: FunctionComponent<IProps> = ({ type, id, label, options }: IProps) => {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -12,7 +12,7 @@ type IProps = {
|
||||||
btnIcon?: string;
|
btnIcon?: string;
|
||||||
isLinkVisible?: boolean;
|
isLinkVisible?: boolean;
|
||||||
url?: string;
|
url?: string;
|
||||||
}
|
};
|
||||||
const SectionTitleContainer: FunctionComponent<IProps> = ({ SectionClassName, title, isBtnVisible = false, btnId, btnClassName, btnTitle, btnIcon, isLinkVisible = true, url }: IProps) => {
|
const SectionTitleContainer: FunctionComponent<IProps> = ({ SectionClassName, title, isBtnVisible = false, btnId, btnClassName, btnTitle, btnIcon, isLinkVisible = true, url }: IProps) => {
|
||||||
return (
|
return (
|
||||||
<div className={`${SectionClassName} sectionTitleContainer flex align-items-center`}>
|
<div className={`${SectionClassName} sectionTitleContainer flex align-items-center`}>
|
||||||
|
|
|
@ -17,7 +17,7 @@ type IProps = {
|
||||||
title?: string;
|
title?: string;
|
||||||
className?: string;
|
className?: string;
|
||||||
url?: string
|
url?: string
|
||||||
}
|
};
|
||||||
|
|
||||||
const SectionTitleLinkElement: FunctionComponent<IProps> = ({ className, title, url }: IProps) => {
|
const SectionTitleLinkElement: FunctionComponent<IProps> = ({ className, title, url }: IProps) => {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -19,7 +19,7 @@ type IProps = {
|
||||||
required?: string;
|
required?: string;
|
||||||
label?: string;
|
label?: string;
|
||||||
children?: React.ReactNode
|
children?: React.ReactNode
|
||||||
}
|
};
|
||||||
|
|
||||||
const SelectElement: FunctionComponent<IProps> = ({ name, id, required, label, children }: IProps) => {
|
const SelectElement: FunctionComponent<IProps> = ({ name, id, required, label, children }: IProps) => {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -14,7 +14,7 @@ import Page from '../components/Page';
|
||||||
type OnResumeOptions = {
|
type OnResumeOptions = {
|
||||||
autoFocus?: boolean;
|
autoFocus?: boolean;
|
||||||
refresh?: boolean
|
refresh?: boolean
|
||||||
}
|
};
|
||||||
|
|
||||||
type ControllerProps = {
|
type ControllerProps = {
|
||||||
onResume: (
|
onResume: (
|
||||||
|
@ -23,7 +23,7 @@ type ControllerProps = {
|
||||||
refreshed: boolean;
|
refreshed: boolean;
|
||||||
onPause: () => void;
|
onPause: () => void;
|
||||||
destroy: () => void;
|
destroy: () => void;
|
||||||
}
|
};
|
||||||
|
|
||||||
const Home: FunctionComponent = () => {
|
const Home: FunctionComponent = () => {
|
||||||
const [ searchParams ] = useSearchParams();
|
const [ searchParams ] = useSearchParams();
|
||||||
|
|
|
@ -18,12 +18,12 @@ import Page from '../../components/Page';
|
||||||
|
|
||||||
type ResetProvider = AuthProvider & {
|
type ResetProvider = AuthProvider & {
|
||||||
checkedAttribute: string
|
checkedAttribute: string
|
||||||
}
|
};
|
||||||
|
|
||||||
type AuthProvider = {
|
type AuthProvider = {
|
||||||
Name?: string;
|
Name?: string;
|
||||||
Id?: string;
|
Id?: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
const getCheckedElementDataIds = (elements: NodeListOf<Element>) => (
|
const getCheckedElementDataIds = (elements: NodeListOf<Element>) => (
|
||||||
Array.prototype.filter.call(elements, e => e.checked)
|
Array.prototype.filter.call(elements, e => e.checked)
|
||||||
|
|
|
@ -18,7 +18,7 @@ type ItemsArr = {
|
||||||
Id?: string;
|
Id?: string;
|
||||||
AppName?: string;
|
AppName?: string;
|
||||||
checkedAttribute?: string
|
checkedAttribute?: string
|
||||||
}
|
};
|
||||||
|
|
||||||
const UserLibraryAccess: FunctionComponent = () => {
|
const UserLibraryAccess: FunctionComponent = () => {
|
||||||
const [ userName, setUserName ] = useState('');
|
const [ userName, setUserName ] = useState('');
|
||||||
|
|
|
@ -14,12 +14,12 @@ import Page from '../../components/Page';
|
||||||
type userInput = {
|
type userInput = {
|
||||||
Name?: string;
|
Name?: string;
|
||||||
Password?: string;
|
Password?: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
type ItemsArr = {
|
type ItemsArr = {
|
||||||
Name?: string;
|
Name?: string;
|
||||||
Id?: string;
|
Id?: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
const UserNew: FunctionComponent = () => {
|
const UserNew: FunctionComponent = () => {
|
||||||
const [ channelsItems, setChannelsItems ] = useState<ItemsArr[]>([]);
|
const [ channelsItems, setChannelsItems ] = useState<ItemsArr[]>([]);
|
||||||
|
|
|
@ -20,7 +20,7 @@ type UnratedItem = {
|
||||||
name: string;
|
name: string;
|
||||||
value: string;
|
value: string;
|
||||||
checkedAttribute: string
|
checkedAttribute: string
|
||||||
}
|
};
|
||||||
|
|
||||||
const UserParentalControl: FunctionComponent = () => {
|
const UserParentalControl: FunctionComponent = () => {
|
||||||
const [ userName, setUserName ] = useState('');
|
const [ userName, setUserName ] = useState('');
|
||||||
|
|
|
@ -18,7 +18,7 @@ type MenuEntry = {
|
||||||
name?: string;
|
name?: string;
|
||||||
id?: string;
|
id?: string;
|
||||||
icon?: string;
|
icon?: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
const UserProfiles: FunctionComponent = () => {
|
const UserProfiles: FunctionComponent = () => {
|
||||||
const [ users, setUsers ] = useState<UserDto[]>([]);
|
const [ users, setUsers ] = useState<UserDto[]>([]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue