fix: logins now refresh on plugins load
feat: Added tar archive support fix: Downloaded games and emulator execute permission now updated fix: Fixed rclone for linux fix: on screen keyaboard only now shows up when using a gamepad or touch
This commit is contained in:
parent
6aacec2c0d
commit
7bd0ebdcca
39 changed files with 523 additions and 275 deletions
|
|
@ -17,7 +17,8 @@ export interface GameListParams extends FocusParams
|
|||
onGameSelect?: (id: FrontEndId, source: string | null, sourceId: string | null) => void;
|
||||
focus?: string;
|
||||
className?: string;
|
||||
finalElement?: JSX.Element;
|
||||
finalElement?: JSX.Element | JSX.Element[];
|
||||
emptyElement?: JSX.Element | JSX.Element[];
|
||||
saveChildFocus?: "session" | "local";
|
||||
}
|
||||
|
||||
|
|
@ -52,6 +53,25 @@ export function GameList (data: GameListParams)
|
|||
navigator({ to: '/game/$source/$id', params: { id: String(g.source_id ?? g.id.id), source: g.source ?? g.id.source } });
|
||||
};
|
||||
|
||||
const finalElement: JSX.Element[] = [];
|
||||
if (!games.isFetching && !!games.data && games.data.games.length <= 0)
|
||||
{
|
||||
if (Array.isArray(data.emptyElement))
|
||||
{
|
||||
finalElement.push(...data.emptyElement);
|
||||
} else if (data.emptyElement)
|
||||
{
|
||||
finalElement.push(data.emptyElement);
|
||||
}
|
||||
}
|
||||
if (Array.isArray(data.finalElement))
|
||||
{
|
||||
finalElement.push(...data.finalElement);
|
||||
} else if (data.finalElement)
|
||||
{
|
||||
finalElement.push(data.finalElement);
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<CardList
|
||||
|
|
@ -60,7 +80,7 @@ export function GameList (data: GameListParams)
|
|||
grid={data.grid}
|
||||
className={data.className}
|
||||
onFocus={data.onFocus}
|
||||
finalElement={data.finalElement}
|
||||
finalElement={finalElement}
|
||||
saveChildFocus={data.saveChildFocus}
|
||||
focus={data.focus}
|
||||
games={games.data?.games
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue