Commit graph

60 commits

Author SHA1 Message Date
Oliver-Akins
bfd8173b06 Add better styling for the alert bar and add more types of alert. 2020-10-02 17:53:50 -06:00
Oliver-Akins
1a6e661f01 Add an alert event for the game code page. 2020-10-02 10:18:37 -06:00
Oliver-Akins
4e746e7b78 Make game joining actually function for players 2020-10-02 10:18:19 -06:00
Oliver-Akins
5262cbbd00 Listen for new players while in the lobby 2020-10-02 10:18:02 -06:00
Oliver-Akins
2c1098ca49 Display players properly 2020-10-02 10:17:25 -06:00
Oliver-Akins
607575bad5 Just use the GetPlayerList event for all players instead of only the host 2020-10-02 10:16:49 -06:00
Oliver-Akins
a81e0ffb33 Set the host key when we are not hosting the game 2020-10-02 10:16:12 -06:00
Oliver-Akins
f068a172f6 Add special favicon 2020-09-28 23:04:32 -06:00
Oliver-Akins
b936c4f791 Change from plaintext insert to HTML allowed. 2020-09-28 23:04:18 -06:00
Oliver-Akins
19618cb218 Add code to handle getting a player list from the server 2020-09-28 23:03:56 -06:00
Oliver-Akins
6f36a47d77 Listen for the alert event 2020-09-28 22:34:05 -06:00
Oliver-Akins
7de6a457ee Short circuit boolean if the ws_uri is null. 2020-09-28 22:33:51 -06:00
Oliver-Akins
1bd4f55335 Listen for the response from the server for the player list 2020-09-28 22:33:14 -06:00
Oliver-Akins
08c59ef30c Request player list on component mount if the player is the host 2020-09-28 22:32:53 -06:00
Oliver-Akins
24c5220843 Add method for requesting the player list. 2020-09-28 22:32:26 -06:00
Oliver-Akins
82140af56d Add documentation for local/session storage keys 2020-09-28 22:31:46 -06:00
Oliver-Akins
b1ce9ebea9 update sessionStorage key 2020-09-28 22:30:51 -06:00
Oliver-Akins
3646797a05 Update event name 2020-09-28 22:30:31 -06:00
Oliver-Akins
5fbb3640b3 Remove game code indicator in the state, we get it from sessionStorage 2020-09-27 22:35:42 -06:00
Oliver-Akins
79c04fe626 Conform error state data object and move error state to App object 2020-09-27 22:15:55 -06:00
Oliver-Akins
74a784f497 Remove the is-host event for the data and put it into sessionStorage 2020-09-27 22:11:01 -06:00
Oliver-Akins
e9416b5dce Adjust some mechanics 2020-09-27 22:08:04 -06:00
Oliver-Akins
16d95cd740 Add styling for the Lobby container 2020-09-27 22:07:44 -06:00
Oliver-Akins
60d101609b Add PlayerJoin event listener 2020-09-27 22:03:32 -06:00
Oliver-Akins
8d321acda2 Add player list header 2020-09-27 22:03:01 -06:00
Oliver-Akins
76385d1f69 Move where the sockets listener is. 2020-09-27 22:02:23 -06:00
Oliver-Akins
3683ee09a2 Add alert for no game code 2020-09-27 22:01:40 -06:00
Oliver-Akins
3c45236131 Remove disable attribute 2020-09-27 21:56:49 -06:00
Oliver-Akins
cd14c0e681 Add alert bar 2020-09-27 21:53:43 -06:00
Oliver-Akins
04a5e58e78 Add css animation 2020-09-27 21:52:08 -06:00
Oliver-Akins
a3ddddb131 Add lobby state to the component switcher. 2020-09-27 20:36:28 -06:00
Oliver-Akins
c5f58c1833 Update ID and remove global styling 2020-09-27 16:26:41 -06:00
Oliver-Akins
b34d1df374 Remove unneeded view 2020-09-27 16:16:14 -06:00
Oliver-Akins
6b8c918310 Create view to choose whether to host or join a game. 2020-09-27 16:16:00 -06:00
Oliver-Akins
a4bb47fa35 Add vue-socket.io to the site. 2020-09-27 16:15:13 -06:00
Oliver-Akins
2a50ed078b Disable eslint rules that I hate 2020-09-27 16:14:27 -06:00
Oliver-Akins
3f9c07f48b Prompt for Websocket URI on page load until we get one. 2020-09-27 16:14:12 -06:00
Oliver-Akins
0c16448d43 Add base functionality to the view switching 2020-09-27 16:13:35 -06:00
Oliver-Akins
3168adb3a5 Move the view components into a views folder rather than mixing them in with the other components. 2020-09-27 16:12:35 -06:00
Oliver-Akins
703d03da3b Add error styling, and rename url to uri 2020-09-19 17:14:06 -06:00
Oliver-Akins
13b27056db Add base lobby component 2020-09-19 17:13:46 -06:00
Oliver-Akins
04958febfa Add component to either host or join a game. 2020-09-19 17:13:23 -06:00
Oliver-Akins
810ea4f677 Add methods for joining a game. 2020-09-19 17:13:09 -06:00
Oliver-Akins
daa83b2da6 Add another step to game beginning 2020-09-19 17:06:57 -06:00
Oliver-Akins
0934c2b3e8 Add accessibility styles to inputs. 2020-09-19 17:06:33 -06:00
Oliver-Akins
132e7a7c2d Add more colour variables. 2020-09-19 17:06:06 -06:00
Oliver-Akins
36c3804ada Adjust width for Desktop 2020-09-19 00:52:19 -06:00
Oliver-Akins
10d7e74db7 Update formatting of game login selection 2020-09-19 00:52:05 -06:00
Oliver-Akins
950797c984 Make component compile properly 2020-09-19 00:41:25 -06:00
Oliver-Akins
682ede62b1 Add title to first stage of login 2020-09-19 00:40:39 -06:00