Skip to content

Commit 497b78d

Browse files
committed
update
1 parent d354019 commit 497b78d

6 files changed

Lines changed: 17 additions & 10 deletions

File tree

client/OBScoreClient.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,6 @@ export default class OBScoreClient {
162162
changeMethod()
163163
await OBScoreClient.fadeIn(element)
164164
}
165-
}
165+
}
166+
167+
window.OBScoreClient = OBScoreClient

client/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@
1717
"devDependencies": {
1818
"babel-core": "^6.26.3",
1919
"babel-preset-env": "^1.7.0"
20-
}
20+
},
21+
"browserslist": [
22+
"last 5 Chrome versions"
23+
]
2124
}

client/sample-receive/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ document.addEventListener("DOMContentLoaded", function() {
6161
})
6262

6363
// Connect to the host!
64-
obscoreClient.connect("ws://192.168.0.55:3001")
64+
obscoreClient.connect("ws://localhost:3001")
6565
})

controller/notes.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
BO5 / BO3 / Custom?
21
Animationen sind irgendwie sequenziert, nicht parallel
32
Persistenz im Speicher oder sowas
4-
Tooltips
3+
Tooltips
4+
5+
Wenn man eine Rundenzahl einstellt, aber danach zB auf Quarters wechselt, bleibt die Zahl (Client? Statische Stringify Methode?)
6+
stringifySet methode, die custom berücksichtigt

controller/src/socket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import io from "socket.io-client"
22
import {receivable} from "./socketEvents"
33

4-
const socket = io("192.168.0.55:3001")
4+
const socket = io("http://localhost:3001")
55

66
// socket.close()
77

controller/src/store.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ import SetTypes from "./model/Set"
77

88
const scoreboard = new Scoreboard()
99

10-
const player1 = new Player("blub")
10+
const player1 = new Player("Player 1")
1111
player1.score = 0
1212

13-
const player2 = new Player("bla")
13+
const player2 = new Player("Player 2")
1414
player2.score = 0
1515

1616
scoreboard.players = [
1717
player1,
1818
player2
1919
]
2020

21-
const commentator1 = new Commentator("bruh")
22-
const commentator2 = new Commentator("bromega")
21+
const commentator1 = new Commentator("Commentator 1")
22+
const commentator2 = new Commentator("Commentator 2")
2323

2424
scoreboard.commentators = [
2525
commentator1,

0 commit comments

Comments
 (0)