Merge branch 'main' into feat/library

This commit is contained in:
Chubby Granny Chaser
2025-11-02 20:23:44 +00:00
committed by GitHub
108 changed files with 3445 additions and 2861 deletions

View File

@@ -1,4 +1,4 @@
export type GameShop = "steam" | "epic" | "custom";
export type GameShop = "steam" | "custom";
export type ShortcutLocation = "desktop" | "start_menu";

View File

@@ -16,29 +16,24 @@ export interface DiskUsage {
}
export interface GameRepack {
id: number;
id: string;
title: string;
uris: string[];
repacker: string;
fileSize: string | null;
objectIds: string[];
uploadDate: Date | string | null;
createdAt: Date;
updatedAt: Date;
uris: string[];
uploadDate: string | null;
downloadSourceId: string;
downloadSourceName: string;
}
export interface DownloadSource {
id: number;
id: string;
name: string;
url: string;
repackCount: number;
status: DownloadSourceStatus;
objectIds: string[];
downloadCount: number;
fingerprint?: string;
etag: string | null;
createdAt: Date;
updatedAt: Date;
isRemote?: true;
createdAt: string;
}
export interface ShopAssets {
@@ -51,6 +46,7 @@ export interface ShopAssets {
logoImageUrl: string;
logoPosition: string | null;
coverImageUrl: string | null;
downloadSources: string[];
}
export type ShopDetails = SteamAppDetails & {
@@ -113,7 +109,6 @@ export type AppUpdaterEvent =
/* Events */
export interface StartGameDownloadPayload {
repackId: number;
objectId: string;
title: string;
shop: GameShop;
@@ -231,12 +226,6 @@ export interface DownloadSourceDownload {
fileSize: string;
}
export interface DownloadSourceValidationResult {
name: string;
etag: string;
downloadCount: number;
}
export interface GameStats {
downloadCount: number;
playerCount: number;
@@ -255,6 +244,7 @@ export interface GameReview {
isBlocked: boolean;
hasUpvoted: boolean;
hasDownvoted: boolean;
playTimeInSeconds?: number;
user: {
id: string;
displayName: string;
@@ -263,7 +253,7 @@ export interface GameReview {
translations: {
[key: string]: string;
};
detectedLanguage: string;
detectedLanguage: string | null;
}
export interface TrendingGame extends ShopAssets {
@@ -366,7 +356,7 @@ export type CatalogueSearchResult = {
title: string;
shop: GameShop;
genres: string[];
} & Pick<ShopAssets, "libraryImageUrl">;
} & Pick<ShopAssets, "libraryImageUrl" | "downloadSources">;
export type LibraryGame = Game &
Partial<ShopAssets> & {

View File

@@ -118,6 +118,8 @@ export interface UserPreferences {
showDownloadSpeedInMegabytes?: boolean;
extractFilesByDefault?: boolean;
enableSteamAchievements?: boolean;
autoplayGameTrailers?: boolean;
hideToTrayOnGameStart?: boolean;
}
export interface ScreenState {