mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
Merge branch 'feature/user-profile' into feature/refator-process-watcher-and-game-running
# Conflicts: # src/main/services/hydra-api.ts # src/main/services/process-watcher.ts # src/renderer/src/declaration.d.ts
This commit is contained in:
commit
800e99fda0
19 changed files with 283 additions and 18 deletions
|
@ -127,6 +127,9 @@ export function App() {
|
|||
if (response) updateUserDetails(response);
|
||||
});
|
||||
}),
|
||||
window.electron.onLibraryBatchComplete(() => {
|
||||
updateLibrary();
|
||||
}),
|
||||
window.electron.onSignOut(() => {
|
||||
clearUserDetails();
|
||||
}),
|
||||
|
|
|
@ -9,8 +9,8 @@ import {
|
|||
} from "@renderer/helpers";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
const FEATURED_GAME_TITLE = "Horizon Forbidden West™ Complete Edition";
|
||||
const FEATURED_GAME_ID = "2420110";
|
||||
const FEATURED_GAME_TITLE = "Ghost of Tsushima DIRECTOR'S CUT";
|
||||
const FEATURED_GAME_ID = "2215430";
|
||||
|
||||
export function Hero() {
|
||||
const [featuredGameDetails, setFeaturedGameDetails] =
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Downloader } from "@shared";
|
||||
|
||||
export const VERSION_CODENAME = "Exodus";
|
||||
export const VERSION_CODENAME = "Leviticus";
|
||||
|
||||
export const DOWNLOADER_NAME = {
|
||||
[Downloader.RealDebrid]: "Real-Debrid",
|
||||
|
|
3
src/renderer/src/declaration.d.ts
vendored
3
src/renderer/src/declaration.d.ts
vendored
|
@ -74,6 +74,7 @@ declare global {
|
|||
onGamesRunning: (
|
||||
cb: (gamesId: number[]) => void
|
||||
) => () => Electron.IpcRenderer;
|
||||
onLibraryBatchComplete: (cb: () => void) => () => Electron.IpcRenderer;
|
||||
|
||||
/* User preferences */
|
||||
getUserPreferences: () => Promise<UserPreferences | null>;
|
||||
|
@ -113,7 +114,7 @@ declare global {
|
|||
checkForUpdates: () => Promise<boolean>;
|
||||
restartAndInstallUpdate: () => Promise<void>;
|
||||
|
||||
/* Authg */
|
||||
/* Auth */
|
||||
signOut: () => Promise<void>;
|
||||
onSignIn: (cb: () => void) => () => Electron.IpcRenderer;
|
||||
onSignOut: (cb: () => void) => () => Electron.IpcRenderer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue