247d2a466a
Clean up setServerSideProps
...
Here we extracted the common methods used in pages into utils and included them, getting rid of a lot of duplicate code in the process.
2022-12-22 21:43:09 -08:00
a98585a334
Implement setUserToken util function
...
This function sets axios's default headers to be included before all queries.
We need to call `setUserToken` in _app.tsx so that the defaults are set before every client-side call, and we also need to call it in every instance of `setServerSideProps`.
As a result, wherever we use `getCookies` and construct a `headers` object, we can remove it. Right now, we've only removed it on the top-level pages.
2022-12-22 21:41:38 -08:00
9de459b958
Update useQueryState to use history and shallow routing
2022-12-22 21:32:57 -08:00
55a292529f
Update saved teams
2022-12-22 00:57:18 -08:00
45aa8c38ab
Update all teams
2022-12-22 00:55:36 -08:00
adc987201e
Update profile and filter bar
2022-12-22 00:46:13 -08:00
caf2bca38f
List of raids no longer has root keys
2022-12-22 00:09:50 -08:00
e8843699c7
Remove trailing semicolons
2022-12-05 17:54:46 -08:00
efa864fb80
Run prettier on src
2022-12-04 07:19:31 -08:00
21b86e4239
Fix various API and rendering bugs
2022-11-16 07:04:39 -08:00
513dc8d847
Updated saved to use SSR
2022-11-16 05:15:12 -08:00
34c93af273
Add infinite scrolling to collections
2022-03-21 03:53:03 -07:00
fa73a4bd7d
Query params work on Saved and Profile pages
2022-03-07 18:14:05 -08:00
5a184ed8aa
Localized saved teams
2022-03-05 14:01:57 -08:00
cd53394a7f
Fix meta tags
2022-03-04 14:57:21 -08:00
d6695d195c
Added og tags
2022-03-04 07:55:36 -08:00
0ff255d71e
Changed how cookies are stored
...
We now have an account object and user object. Account stores critical information, where User is cosmetic/settings.
2022-03-04 06:31:21 -08:00
102be62a7f
Hacky first pass at titles
...
Hacky because the titles for some pages don't load until the data comes in, which takes a second. There's gotta be a better way.
2022-03-04 05:54:16 -08:00
1c34803578
Added a smooth loading transition + FilterBar on parties
2022-03-01 01:11:32 -08:00
ec7b080ad9
Remove logs
2022-02-28 12:59:37 -08:00
dc78720d66
Fix useEffect looping in saved
2022-02-28 12:49:38 -08:00
ad1472dfbb
Fix (some) warnings and errors
...
I always forget to `npm run build` before pushing a PR
2022-02-28 01:09:43 -08:00
a1f9f41567
Implement saving/unsaving on collection pages
2022-02-28 01:02:47 -08:00
60ec49de1d
Add page to display all saved parties
2022-02-27 22:32:35 -08:00