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
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
86656e1bff
Move to use useDidMountEffect
2022-11-16 05:15:39 -08:00
bb8f28a05d
Update user profile to use SSR
...
Filters and scrolling work, as well as navigating directly to filtered results
2022-11-16 02:34:49 -08:00
364481e3ac
Fix various type errors from npm build
2022-04-10 13:31:13 -07: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
9e3ab298e8
Profile wasn't properly localizing
2022-03-05 13:54:14 -08:00
9715b165e5
Escape characters properly
2022-03-04 08:05:18 -08:00
d6695d195c
Added og tags
2022-03-04 07:55:36 -08:00
a8f9610ec8
Actually fixing that bug this time
2022-03-04 06:52:10 -08:00
54d34fed12
Unauth users were unable to view collections
2022-03-04 06:44:41 -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
7e5b90a6c7
Use the user's stored profile picture in content
...
Also adds styles!
2022-03-04 05:17:23 -08:00
538e61bc12
Remove ProfileHeader component
2022-03-01 13:03:14 -08:00
ffd95779b9
Implement filters on profiles
2022-03-01 02:19:18 -08:00
44c2c46da8
Add scroll handler
2022-03-01 01:14:25 -08:00
1c34803578
Added a smooth loading transition + FilterBar on parties
2022-03-01 01:11:32 -08:00
26fa33c4a7
Don't query until we have a username
2022-02-28 13:15:14 -08:00
ec7b080ad9
Remove logs
2022-02-28 12:59:37 -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
0139b66e2e
Change sort to base on created_at
2022-02-27 00:37:16 -08:00
3b4b8ecc1a
Add User and Party types
2022-02-27 00:35:05 -08:00
ddcf7dc58f
Add redesigned components and info to Profile page
2022-02-26 17:46:52 -08:00
47c51b97f7
Update [username].tsx
2022-01-31 23:56:54 -08:00
e45aa5cb24
Fix routing for profiles
2022-01-31 23:39:32 -08:00