Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ehasa-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WIMMA Lab 2019
Overflow
ehasa-frontend
Merge requests
!33
Game replay
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Game replay
game-replay
into
development
Overview
0
Commits
10
Pipelines
0
Changes
4
Merged
Ghost User
requested to merge
game-replay
into
development
5 years ago
Overview
0
Commits
10
Pipelines
0
Changes
4
Expand
0
0
Merge request reports
Viewing commit
0b28283d
Prev
Next
Show latest version
4 files
+
398
−
3
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
0b28283d
replay shows faction colours
· 0b28283d
L4168
authored
5 years ago
src/components/ReplayMap.js
+
2
−
2
Options
@@ -35,14 +35,14 @@ export default class ReplayMap extends React.Component {
@@ -35,14 +35,14 @@ export default class ReplayMap extends React.Component {
componentWillReceiveProps
(
nextProps
)
{}
componentWillReceiveProps
(
nextProps
)
{}
// cloud game a1231e2b-aa29-494d-b687-ea2d48cc23df
// cloud game a1231e2b-aa29-494d-b687-ea2d48cc23df
// local game wimma
15e9563b-e621-4ba1-a440-1b21c7774923
// local game wimma
314338f9-b0bb-4bf7-9554-769c7b409bce
// local game vbox 16977b13-c419-48b4-b7d6-e7620f27bf39
// local game vbox 16977b13-c419-48b4-b7d6-e7620f27bf39
// fetch player locations from the game
// fetch player locations from the game
fetchPlayerData
=
async
()
=>
{
fetchPlayerData
=
async
()
=>
{
await
fetch
(
await
fetch
(
`
${
`
${
process
.
env
.
REACT_APP_API_URL
process
.
env
.
REACT_APP_API_URL
}
/replay/players/
16977b13-c419-48b4-b7d6-e7620f27bf39
`
,
}
/replay/players/
314338f9-b0bb-4bf7-9554-769c7b409bce
`
,
{
{
method
:
"
GET
"
method
:
"
GET
"
}
}
Loading