This repository has been archived by the owner on Aug 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update package scripts, logging; Fix tests
- Loading branch information
Showing
7 changed files
with
31 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
web: npm run start-only | ||
web: npm run start |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
import debugLog from './debug-log'; | ||
|
||
class GameError { | ||
constructor(message, clientMessage) { | ||
constructor(message, clientMessage, debugOnly = false) { | ||
this.name = GameError.name; | ||
this.message = message; | ||
this.clientMessage = clientMessage || message; | ||
console.log('GameError triggered: ' + this.toString()); | ||
|
||
if (debugOnly) { | ||
debugLog('GameError triggered: ' + this.toString()); | ||
} else { | ||
console.log('GameError triggered: ' + this.toString()); | ||
} | ||
} | ||
|
||
static get name() { | ||
return 'GameError'; | ||
} | ||
|
||
toString() { | ||
return this.message; | ||
} | ||
} | ||
export default GameError; | ||
export default GameError; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
rejoin game after leaving | ||
quick-join via url | ||
redis store | ||
see room code in game | ||
quick-join via url | ||
|
||
rules option in-game, make sure resuming works after updates to game state | ||
validate against incompatible browsers or devices | ||
redis store | ||
|
||
more setup options | ||
l10n support | ||
more tests | ||
more setup options | ||
rules option in-game, make sure resuming works after updates to game state | ||
vue-router | ||
voting system | ||
colorblind aids |