Commit graph

74 commits

Author SHA1 Message Date
Oliver-Akins
778ccaf015 Remove redundant method 2020-10-05 22:54:14 -06:00
Oliver-Akins
267395efe9 Add username display for the player. 2020-10-05 22:53:20 -06:00
Oliver-Akins
fc5efdc118 Change log level of SocketIO 2020-10-05 22:52:38 -06:00
Oliver-Akins
aed8bd128f Add styling (and convert from Stylus to CSS) 2020-10-05 22:51:02 -06:00
Oliver-Akins
4d59ff3a0c Remove stylus theme file 2020-10-05 22:47:10 -06:00
Oliver-Akins
ec98480917 Convert all Stylus into CSS and add CSS var def file 2020-10-05 22:46:54 -06:00
Oliver-Akins
51769bedd1 Add user-name to browser storage documentation 2020-10-03 23:23:22 -06:00
Oliver-Akins
c628a2b671 Store username in sessionStorage 2020-10-03 23:23:01 -06:00
Oliver-Akins
a8d0741436 Add copying to clipboard functionality. 2020-10-02 17:59:56 -06:00
Oliver-Akins
192cae129a Add styling and make it not read from another component 2020-10-02 17:59:31 -06:00
Oliver-Akins
ed163876c5 Add v-clipboard 2020-10-02 17:55:49 -06:00
Oliver-Akins
b7975ed784 Add more colours for the alert styles 2020-10-02 17:55:31 -06:00
Oliver-Akins
6178800ce4 Add an emit to remove the alert once the view changes 2020-10-02 17:54:50 -06:00
Oliver-Akins
6d9d5e0e87 Center all views automatically 2020-10-02 17:54:16 -06:00
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