Commit Graph

123 Commits

Author SHA1 Message Date
Nathaniel Tampus
e03052b00e fix join game from url 2023-03-22 14:58:42 +08:00
Nathaniel Tampus
30977baa5b fix join game from url 2023-03-22 14:57:40 +08:00
Nathaniel Tampus
5e2d676450 update auth tab styles for better contrast 2023-03-20 19:18:30 +08:00
Nathaniel Tampus
86f4f9d42f Merge branch 'main' into auth 2023-03-20 18:53:35 +08:00
Nathaniel Tampus
4c18beeb3b accessibility & seo improvements 2023-03-20 18:41:24 +08:00
Nathaniel Tampus
dc2f218115 disallow underscores for names 2023-03-19 21:24:41 +08:00
Nathaniel Tampus
802a03fa11 use .after FEN for move navigation 2023-03-19 21:18:16 +08:00
Nathaniel Tampus
f564298c93 login and register tabs, initial user dashboard 2023-03-19 20:53:59 +08:00
Nathaniel Tampus
20b26448ae add auth api routes 2023-03-19 20:53:43 +08:00
Nathaniel Tampus
e055c1f807 update "copied to clipboard" badge layout 2023-03-15 20:26:54 +08:00
Nathaniel Tampus
faaa43ea5b check session before enabling join/create buttons 2023-03-15 20:05:36 +08:00
Nathaniel Tampus
3821c4b43a update game url to use game code directly 2023-03-15 19:54:15 +08:00
Nathaniel Tampus
b368d7bdf5 fix mobile overflow for real this time 2023-03-15 19:39:40 +08:00
Nathaniel Tampus
fd073821f6 fix mobile overflow 2023-03-15 19:25:28 +08:00
Nathaniel Tampus
3c46b485c3 only scroll moves container instead of whole page 2023-03-13 20:21:08 +08:00
Nathaniel Tampus
055cc5781d scroll to active move button only when needed 2023-03-12 21:24:24 +08:00
Nathaniel Tampus
f7aba38d82 add initial message and fix server message style 2023-03-12 20:27:26 +08:00
Nathaniel Tampus
034ba1a206 move history navigation (closes #9) 2023-03-12 19:54:22 +08:00
Nathaniel Tampus
e2a0f361cf small structure changes for less redundancy 2023-03-12 13:29:06 +08:00
Nathaniel Tampus
a9480ffd3a experimental premove support (closes #7) 2023-03-11 13:09:33 +08:00
Nathaniel Tampus
feafffe53e remove theme event listener on cleanup 2023-03-06 22:01:39 +08:00
Nathaniel Tampus
7d704a94a6 show dropdown when link copied 2023-03-06 19:24:31 +08:00
Nathaniel Tampus
6d19501ad4 add required pattern for guest name 2023-03-06 18:53:21 +08:00
Nathaniel Tampus
19880c0818 chat messages styling 2023-03-06 18:42:47 +08:00
Nathaniel Tampus
99b73fb1c1 scrollbar styling 2023-03-06 18:19:47 +08:00
Nathaniel Tampus
b98e4a23a9 redirect on client for 404 2023-03-06 17:25:15 +08:00
Nathaniel Tampus
f08623993f add swap animation to theme toggle 2023-03-06 15:50:41 +08:00
Nathaniel Tampus
da1a556eea add theme toggle functionality 2023-03-06 15:43:22 +08:00
Nathaniel Tampus
60716861ac remove extra comment 2023-03-06 15:12:56 +08:00
Nathaniel Tampus
d858853bf4 move validation fixes, update page title on turn 2023-03-06 15:11:35 +08:00
Nathaniel Tampus
158aef552a improve moveFrom safety 2023-03-06 13:47:39 +08:00
Nathaniel Tampus
ef9e23338b restore link in navbar and separate badge dropdown 2023-03-06 13:21:29 +08:00
Nathaniel Tampus
fe0e045fd8 show player disconnected state 2023-03-06 12:42:49 +08:00
Nathaniel Tampus
4e17eadb7a wrap auth util functions in try blocks 2023-03-06 11:43:34 +08:00
Nathaniel Tampus
dd1166dc42 open badge dropdown on hover 2023-03-06 11:29:03 +08:00
Nathaniel Tampus
045470b398 navbar site name changes
- removed link for site name
- added tooltip dropdown for alpha badge
2023-03-06 11:23:36 +08:00
Nathaniel Tampus
167e1cbd9d add temporary 404 page 2023-03-06 10:56:24 +08:00
Nathaniel Tampus
72a80fe8bf remove home route background 2023-03-06 10:42:29 +08:00
Nathaniel Tampus
a9accad679 add metadata and opengraph tags 2023-03-06 10:30:22 +08:00
Nathaniel Tampus
82ca2791c3 improve player names format 2023-03-05 22:27:36 +08:00
Nathaniel Tampus
802e5bb801 btn-disabled instead of loading to preserve size 2023-03-05 22:08:28 +08:00
Nathaniel Tampus
a30331ccb1 public games list functionality 2023-03-05 22:06:59 +08:00
Nathaniel Tampus
fa94df1d06 show error tooltip when game not found 2023-03-05 21:30:30 +08:00
Nathaniel Tampus
247a6c1c76 initial playable functionality
TODO: restructure
- this is mostly a copy-paste from the old game and socket handlers
2023-03-05 19:07:23 +08:00
Nathaniel Tampus
69fb7a7c9d add wrapper component to check auth 2023-03-05 10:00:55 +08:00
Nathaniel Tampus
01ebc4a138 rename game wrapper, add initial socket events 2023-03-05 09:41:34 +08:00
Nathaniel Tampus
9ca2d7b5ad wrap game page in server component
for initial data fetch
2023-03-05 00:36:49 +08:00
Nathaniel Tampus
b7ee6f4371 rename to getGame & improve error handling 2023-03-05 00:33:44 +08:00
Nathaniel Tampus
dd0a097a48 initial find & create game functionality
and restructure homepage components
2023-03-04 18:43:32 +08:00
Nathaniel Tampus
6de9943dca game util functions 2023-03-04 18:41:09 +08:00