Commit Graph

237 Commits

Author SHA1 Message Date
Nathaniel Tampus
28152de22e replace ts-node with tsc-watch for server dev 2023-04-21 22:20:59 +08:00
Nathaniel Tampus
68f8384092 fix eslint config 2023-04-21 22:20:43 +08:00
Nathaniel Tampus
d2681541fc update readme 2023-04-21 22:20:29 +08:00
Nathaniel Tampus
5cda61ede8 update deps 2023-04-21 21:45:42 +08:00
Nathaniel Tampus
72be4aa0aa remove unnecessary defer from script 2023-04-10 16:54:49 +08:00
Nathaniel Tampus
c1fb2e50cd show light theme toggle by default 2023-04-10 16:54:09 +08:00
Nathaniel Tampus
b6d379d21b add metadata base url 2023-04-10 16:23:37 +08:00
Nathaniel Tampus
835a90286f add opengraph image 2023-04-10 16:12:51 +08:00
Nathaniel Tampus
545604b165 update robots.txt 2023-04-10 16:02:34 +08:00
Nathaniel Tampus
2b4fb67e1f add border separators for header & footer 2023-04-09 15:50:12 +08:00
Nathaniel Tampus
eef4f0ff1a use data-theme attribute for tailwind dark mode 2023-04-09 15:49:37 +08:00
Nathaniel Tampus
6d2263432a save theme preference to localStorage 2023-04-09 14:03:04 +08:00
Nathaniel Tampus
8940a1bf3b logo & icon adjustments 2023-04-09 11:50:34 +08:00
Nathaniel Tampus
24861fec36 remove game from activeGames immediately on end 2023-04-09 02:41:46 +08:00
Nathaniel Tampus
5cf4f599a6 add logo and icons 2023-04-09 02:41:35 +08:00
Nathaniel Tampus
32e5226829 update deps 2023-04-09 01:23:55 +08:00
Nathaniel Tampus
c91ab13f55 Merge pull request #11 from nizewn/auth
Optional user authentication
2023-04-07 15:03:50 +08:00
Nathaniel Tampus
d6bcb286e2 update auth tabs style 2023-04-07 14:57:30 +08:00
Nathaniel Tampus
fbeefbc3c4 add user profile page 2023-04-07 14:20:13 +08:00
Nathaniel Tampus
2114fbe9e6 don't update turn title if game is over 2023-04-07 12:44:05 +08:00
Nathaniel Tampus
5a00210a4d update anchor tags rel attribute 2023-04-07 12:37:47 +08:00
Nathaniel Tampus
2feec2de02 fix id number checks for archived games api 2023-04-07 12:25:40 +08:00
Nathaniel Tampus
a2bae7201d rename "get" util functions to "fetch" 2023-04-07 12:09:10 +08:00
Nathaniel Tampus
44af7ed0ae move global 404 page to app router 2023-04-07 12:02:17 +08:00
Nathaniel Tampus
86b5dff3df update deps, next.js 13.3 2023-04-07 12:01:05 +08:00
Nathaniel Tampus
8d7ad6161f colored & linked name for registered users 2023-04-05 23:37:07 +08:00
Nathaniel Tampus
d01bb43004 update archive notfound message 2023-04-05 22:34:53 +08:00
Nathaniel Tampus
bdc8dab1ad api for fetching user profile 2023-04-05 22:29:54 +08:00
Nathaniel Tampus
bec764dcee improve id checks for getting finished games 2023-04-05 22:17:25 +08:00
Nathaniel Tampus
b448ded981 update log message 2023-04-05 21:52:22 +08:00
Nathaniel Tampus
3f851602ea add started & ended timestamps to game table 2023-04-05 21:50:34 +08:00
Nathaniel Tampus
baebc04510 add profile & settings buttons to user modal 2023-04-05 21:30:15 +08:00
Nathaniel Tampus
d0f316c59b move update user form to settings page 2023-04-05 21:04:14 +08:00
Nathaniel Tampus
3a6dad56d6 add name param in updateUser util 2023-04-05 21:03:42 +08:00
Nathaniel Tampus
2fadce8ae1 improve checks for update user api 2023-04-05 21:02:49 +08:00
Nathaniel Tampus
d98efb39dc rename Navbar to Header 2023-04-05 20:10:26 +08:00
Nathaniel Tampus
b20dd02854 rename archive page component 2023-04-05 20:06:21 +08:00
Nathaniel Tampus
06b772be79 add todo reminder comment 2023-04-02 18:42:15 +08:00
Nathaniel Tampus
577cba6ff4 count game history stats for users 2023-04-02 18:24:21 +08:00
Nathaniel Tampus
92dfc0c778 validate fetched archived games properly 2023-04-02 17:42:12 +08:00
Nathaniel Tampus
ec05a7405f update game queries 2023-04-02 17:37:02 +08:00
Nathaniel Tampus
1636e1131e viewable archived games 2023-04-02 15:22:01 +08:00
Nathaniel Tampus
651cfb9d2a emit receivedMove first before gameOver 2023-04-02 15:01:52 +08:00
Nathaniel Tampus
fc2f61446d remove code from game db 2023-04-02 15:01:30 +08:00
Nathaniel Tampus
f18d6d1e8c update game queries 2023-04-02 15:01:11 +08:00
Nathaniel Tampus
c7f3abf29c util functions for fetching archived games 2023-04-02 12:36:48 +08:00
Nathaniel Tampus
75eb21c337 save finished games to db 2023-04-02 00:00:09 +08:00
Nathaniel Tampus
5088e25769 route for fetching finished games 2023-04-01 23:42:33 +08:00
Nathaniel Tampus
710955b741 return null if no user found 2023-04-01 23:41:47 +08:00
Nathaniel Tampus
af25b4ff20 update db models 2023-04-01 23:15:54 +08:00