Commit Graph

40 Commits

Author SHA1 Message Date
Joonas 508892ad3b input validation 2023-02-11 22:14:59 +02:00
Joonas 2d2b227a2b sort with database functions instead, so much easier 2023-02-11 22:05:59 +02:00
Joonas 0b4d96402a nvm 2023-01-22 14:23:30 +02:00
Joonas 62b61630c9 memo the sorted players 2023-01-22 13:40:55 +02:00
Joonas e7e8198ffb be more clear with what we are updating 2023-01-22 13:21:52 +02:00
Joonas c3088c9041 add transition states to the three different action forms in the page, so we get cool pending ui 2023-01-22 13:16:28 +02:00
Joonas 01ede463c7 dynamic oauth link 2023-01-21 21:48:33 +02:00
Joonas d2e07083b3 if oauth flow err, redirect back 2023-01-21 18:04:28 +02:00
Joonas 2e0cb4874f this doesn't even do anything 2023-01-21 15:19:51 +02:00
Joonas e2bee89d22 yea 2023-01-21 14:09:35 +02:00
Joonas f84da2f69a add csrf protection to the oauth login flow with the state url param 2023-01-21 13:59:20 +02:00
Joonas 7b861454ff more csrf protection (i'm paranoid) 2023-01-21 02:37:32 +02:00
Joonas 60f1beff17 some styling changes and cookie secret env var thingys, pretty much done rn 2023-01-21 01:29:31 +02:00
Joonas 7049d0727b dont update if user not in database yet 2023-01-20 23:38:03 +02:00
Joonas 5ac00cfd3a formatting for very large numbers (score), i tried to make the table responsive, but it's so ass so i just put overflow-auto 2023-01-20 22:09:44 +02:00
Joonas 913386fa01 added score ranking, removed player sorting because it doesn't even work, also some other minor stuff 2023-01-20 19:07:20 +02:00
Joonas 1f5d4fc710 don't show update button if user hasn't submitted county yet 2023-01-20 15:43:45 +02:00
Joonas b0f47d19e2 switch from searching and updating database with playerName, because playername can change, but the playerid usually won't 2023-01-20 15:37:16 +02:00
Joonas d46a516b79 pending ui, removed unneccessary code, cookie secret fuckery 2023-01-19 17:05:48 +02:00
Joonas 3a38a7c4ef added grade ranks, added an update route for updating data, added sorting for grade ranks, added a button to update data, styling improvements. 2023-01-19 01:44:15 +02:00
Joonas 0185d5dc4e improved styling a bit and fixed referrerpolicy 2023-01-19 00:27:57 +02:00
Joonas 6dbb76be76 added more sorting 2023-01-19 00:27:29 +02:00
Joonas 124f8ad282 extracted countys to own component to implement sorting, added sorting by rank descending and ascending, did some accesibilty and styling changes too 2023-01-18 23:12:33 +02:00
Joonas b63fb7e6fc added a 'Don't overflow' button, which turns on and off flex wrap in leaderboards parent 2023-01-18 22:37:21 +02:00
Joonas bb2ab1014e render players conditionally 2023-01-18 22:00:16 +02:00
Joonas 4fc8a4036d fix elements almost overflowing on smaller screens 2023-01-18 21:56:36 +02:00
Joonas 7df3c61f08 fix and cleanup 2023-01-18 20:38:08 +02:00
Joonas 74fe12ce1f idk why but it only works this way 2023-01-18 20:05:55 +02:00
Joonas 3d4b384b95 switch default css variables to dark 2023-01-18 20:03:43 +02:00
Joonas 8b533fd99e tailwind catppuccin plugin, theme switcher 2023-01-18 19:58:32 +02:00
Joonas 50e2ec9cb3 return json properly 2023-01-18 19:09:26 +02:00
Joonas 51efe04caa styling improvement 2023-01-18 18:54:41 +02:00
Joonas 2b7fe2015c switch getting cookie secret from env var 2023-01-18 18:54:26 +02:00
Joonas d6fbdabdd6 order ranking by rank as default 2023-01-18 18:49:34 +02:00
Joonas 06359f4490 if running production, throw error if user has less than 50 hours played in standard 2023-01-18 18:48:39 +02:00
Joonas 5ba77989b1 removed debug print 2023-01-18 17:18:44 +02:00
Joonas a9443835d4 ok i did not know how to use upsert lol but it works now 2023-01-18 17:17:42 +02:00
Joonas df2b02d839 logout button 2023-01-18 17:07:45 +02:00
Joonas 1bf9a0a35a switched from create to upsert 2023-01-18 17:07:21 +02:00
Joonas b7c73dc766 Initial commit 2023-01-18 16:22:09 +02:00