Commit graph

98 commits

Author SHA1 Message Date
49ff10ab98 Add helper method to auth Youtube once 2022-12-26 09:47:48 -08:00
57359333e7 Add title/description to new page 2022-12-26 05:55:19 -08:00
ef0aff5685 Fix weapon states filter in search 2022-12-26 01:34:59 -08:00
57a0ce62c2 Fix party details when new 2022-12-26 00:22:30 -08:00
dfc4e5dfd6 Change theme wasnt necessary 2022-12-25 20:12:07 -08:00
61a02649cf Fix themes 2022-12-25 20:11:50 -08:00
6d8786e370 Add changeTheme util 2022-12-25 19:35:17 -08:00
4765349b6b Update changeLanguage
It needs the router
2022-12-25 19:33:10 -08:00
d737310b2c Update LoginModal and SignupModal
And adds a new changeLanguage util
2022-12-25 16:14:35 -08:00
c49e930861 Add theme to state and cookies 2022-12-25 16:04:01 -08:00
a3246efd4a Remove logs 2022-12-25 02:53:13 -08:00
d78545c198 Add utils for weaponSeries and mapping them from IDs 2022-12-24 23:31:13 -08:00
52b314e35e Use updated generic conflict API method 2022-12-24 23:30:48 -08:00
a50804a33b Add groupWeaponKeys and weaponKeyGroups 2022-12-24 01:07:10 -08:00
da07db0a83 Add grouped weapon keys to appState 2022-12-24 01:06:59 -08:00
79ec308366 Add slugs to axData 2022-12-23 22:26:25 -08:00
cf58e64caf Add awakening dictionaries 2022-12-23 18:39:54 -08:00
90a0447787 Fix updating raid in party details 2022-12-23 00:33:28 -08:00
f9c7c8f568 Update api function name 2022-12-22 23:34:57 -08:00
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
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
c6f6a6ca99 Update API calls and display errors 2022-12-03 16:43:18 -08:00
ca4b2e9149 Add JobSkillObject and 0th index 2022-12-01 05:35:27 -08:00
0096a49a07 Added jobSkills to data structures 2022-12-01 01:45:31 -08:00
ee7dc0bc4a Update API 2022-11-30 05:19:51 -08:00
5d6ca05143 Add different groupings of skills
`skillClassification` is for pills shown in results
`skillGroups` is for the dropdown that filters all skills
2022-11-29 00:59:28 -08:00
1d571f1a21 Register jobs and skills in app state 2022-11-27 20:19:18 -08:00
5d4ca78dda Add endpoint for fetching skills 2022-11-27 20:18:38 -08:00
b71bb09723 Fix linting errors 2022-11-19 20:48:05 -08:00
3e0529a46d Add endpoint for resolving character conflicts 2022-11-19 06:36:36 -08:00
4d8a7d4007 Allow characters to be undefined in state 2022-11-19 06:36:26 -08:00
1f54aa6dbc Add Disaster raid group 2022-11-16 05:17:32 -08:00
8ff8212469 Create useDidMountEffect.tsx 2022-11-16 05:15:28 -08:00
8ecc54fb63 Revert "Update raidGroups.tsx"
This reverts commit b77b043b35.
2022-06-29 00:54:25 -07:00
b77b043b35 Update raidGroups.tsx 2022-06-29 00:53:59 -07:00
e369981981 Add MC gender to account state and User type 2022-04-10 13:24:58 -07:00
d356219155 Add Job to appState 2022-04-04 23:42:43 -07:00
2d109b5c46 Add jobs endpoint 2022-04-04 23:42:29 -07:00
d7cb459f99 Add Job type and JobGroups array 2022-04-04 23:42:22 -07:00
ef6ea9b415 Cleanup unused packages, modules and files 2022-03-22 00:29:41 -07:00
19d0b14233 Add timestamps to app state Party object 2022-03-14 16:45:04 -07:00
7c263167cd Add recent dictionary to app state 2022-03-11 01:57:51 -08:00
14d10d4768 Update search method in api 2022-03-11 01:15:20 -08:00
b1170a8e87 Add new types, states and value stores 2022-03-11 01:15:11 -08:00
d19c96fc6d Add locale to search 2022-03-08 17:45:56 -08:00
1365e4c95c Get query states working on teams page
This changes the URL to show query params for our three filters, making it easy for people to link to very specific subsets of raids.
2022-03-07 02:43:21 -08:00
79b5960cea Refactor RaidDropdown
Generally cleaned it up. Moved `raidGroups` out into a utils file and restructured it so we can localized names.
2022-03-07 00:27:35 -08:00
758ea1be32 Remove language from accountState 2022-03-05 01:18:08 -08:00