mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
Merge branch 'feature/cloud-sync' into feature/game-achievements
This commit is contained in:
commit
44131fe831
@ -35,7 +35,7 @@ export const backupGame = ({
|
|||||||
preview?: boolean;
|
preview?: boolean;
|
||||||
winePrefix?: string;
|
winePrefix?: string;
|
||||||
}) => {
|
}) => {
|
||||||
const args = ["backup", title, "--api", "--force"];
|
const args = ["backup", `"${title}"`, "--api", "--force"];
|
||||||
|
|
||||||
if (preview) args.push("--preview");
|
if (preview) args.push("--preview");
|
||||||
if (backupPath) args.push("--path", backupPath);
|
if (backupPath) args.push("--path", backupPath);
|
||||||
|
@ -40,6 +40,7 @@ export function CloudSyncModal({ visible, onClose }: CloudSyncModalProps) {
|
|||||||
downloadGameArtifact,
|
downloadGameArtifact,
|
||||||
deleteGameArtifact,
|
deleteGameArtifact,
|
||||||
setShowCloudSyncFilesModal,
|
setShowCloudSyncFilesModal,
|
||||||
|
getGameBackupPreview,
|
||||||
} = useContext(cloudSyncContext);
|
} = useContext(cloudSyncContext);
|
||||||
|
|
||||||
const { objectId, shop, gameTitle, lastDownloadedOption } =
|
const { objectId, shop, gameTitle, lastDownloadedOption } =
|
||||||
@ -81,6 +82,10 @@ export function CloudSyncModal({ visible, onClose }: CloudSyncModalProps) {
|
|||||||
downloadGameArtifact(artifactId);
|
downloadGameArtifact(artifactId);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
getGameBackupPreview();
|
||||||
|
}, [getGameBackupPreview]);
|
||||||
|
|
||||||
const backupStateLabel = useMemo(() => {
|
const backupStateLabel = useMemo(() => {
|
||||||
if (uploadingBackup) {
|
if (uploadingBackup) {
|
||||||
return (
|
return (
|
||||||
|
@ -37,7 +37,7 @@ export function GameDetailsContent() {
|
|||||||
|
|
||||||
const { userDetails, hasActiveSubscription } = useUserDetails();
|
const { userDetails, hasActiveSubscription } = useUserDetails();
|
||||||
|
|
||||||
const { setShowCloudSyncModal, getGameBackupPreview, getGameArtifacts } =
|
const { setShowCloudSyncModal, getGameArtifacts } =
|
||||||
useContext(cloudSyncContext);
|
useContext(cloudSyncContext);
|
||||||
|
|
||||||
const aboutTheGame = useMemo(() => {
|
const aboutTheGame = useMemo(() => {
|
||||||
@ -113,9 +113,8 @@ export function GameDetailsContent() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getGameBackupPreview();
|
|
||||||
getGameArtifacts();
|
getGameArtifacts();
|
||||||
}, [getGameBackupPreview, getGameArtifacts]);
|
}, [getGameArtifacts]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.wrapper({ blurredContent: hasNSFWContentBlocked })}>
|
<div className={styles.wrapper({ blurredContent: hasNSFWContentBlocked })}>
|
||||||
|
@ -20,7 +20,7 @@ import { HowLongToBeatSection } from "./how-long-to-beat-section";
|
|||||||
import { howLongToBeatEntriesTable } from "@renderer/dexie";
|
import { howLongToBeatEntriesTable } from "@renderer/dexie";
|
||||||
import { SidebarSection } from "../sidebar-section/sidebar-section";
|
import { SidebarSection } from "../sidebar-section/sidebar-section";
|
||||||
import { buildGameAchievementPath } from "@renderer/helpers";
|
import { buildGameAchievementPath } from "@renderer/helpers";
|
||||||
import { SPACING_UNIT, vars } from "@renderer/theme.css";
|
import { SPACING_UNIT } from "@renderer/theme.css";
|
||||||
|
|
||||||
const fakeAchievements: UserAchievement[] = [
|
const fakeAchievements: UserAchievement[] = [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user