-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Stadium replays (#270)
* add sopo icon * add check for icon existing * "under construction" pages for BTT/HRC * progress * add HRC distance to header * rebase with main * add target test stage image * move sopo and sandbag icons to new location * add HRC distance to stats page * cleanup * address suggestions * change to switch * add suggstions Co-authored-by: Vince Au <vince@canva.com> Update src/renderer/containers/ReplayBrowser/ReplayFile.tsx add suggestion Co-authored-by: Vince Au <vince@canva.com> Update src/renderer/containers/ReplayBrowser/ReplayFile.tsx add suggestion Co-authored-by: Vince Au <vince@canva.com> Update src/renderer/containers/ReplayFileStats/GameProfileHeader.tsx add suggestion Co-authored-by: Vince Au <vince@canva.com> Update src/renderer/containers/ReplayFileStats/GameProfileHeader.tsx add suggestion Co-authored-by: Vince Au <vince@canva.com> Update src/renderer/containers/ReplayFileStats/HomeRunProfile.tsx add suggestion Co-authored-by: Vince Au <vince@canva.com> Update src/renderer/containers/ReplayFileStats/TargetTestProfile.tsx add suggestion Co-authored-by: Vince Au <vince@canva.com> * update stock icon * update icon * better test for game type before calculating stats --------- Co-authored-by: Vince Au <vince@canva.com>
- Loading branch information
Showing
14 changed files
with
201 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/renderer/containers/ReplayFileStats/HomeRunProfile.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import Construction from "@mui/icons-material/Construction"; | ||
import type { FileResult } from "@replays/types"; | ||
import type { StadiumStatsType } from "@slippi/slippi-js"; | ||
import React from "react"; | ||
|
||
import { IconMessage } from "@/components/Message"; | ||
|
||
export interface GameProfileProps { | ||
file: FileResult; | ||
stats: StadiumStatsType | null; | ||
} | ||
|
||
const StatSection: React.FC<{ | ||
title: string; | ||
}> = () => { | ||
return <IconMessage Icon={Construction} label="This page is under construction" />; | ||
}; | ||
|
||
export const HomeRunProfile: React.FC<GameProfileProps> = () => { | ||
return ( | ||
<div style={{ flex: "1", margin: 20 }}> | ||
<StatSection title="Home Run"></StatSection> | ||
</div> | ||
); | ||
}; |
25 changes: 25 additions & 0 deletions
25
src/renderer/containers/ReplayFileStats/TargetTestProfile.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import Construction from "@mui/icons-material/Construction"; | ||
import type { FileResult } from "@replays/types"; | ||
import type { StadiumStatsType } from "@slippi/slippi-js"; | ||
import React from "react"; | ||
|
||
import { IconMessage } from "@/components/Message"; | ||
|
||
export interface GameProfileProps { | ||
file: FileResult; | ||
stats: StadiumStatsType | null; | ||
} | ||
|
||
const StatSection: React.FC<{ | ||
title: string; | ||
}> = () => { | ||
return <IconMessage Icon={Construction} label="This page is under construction" />; | ||
}; | ||
|
||
export const TargetTestProfile: React.FC<GameProfileProps> = () => { | ||
return ( | ||
<div style={{ flex: "1", margin: 20 }}> | ||
<StatSection title="Targets"></StatSection> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.