Commit graph

131 commits

Author SHA1 Message Date
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
9ec157359b Change key name and add string query 2022-03-04 18:42:24 -08:00
d704987cce Fix Tien's name 2022-03-04 07:15:08 -08:00
ea69c352d5 Fix Cassius' file name 2022-03-04 07:08:55 -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
cb7624d7a5 Add new types to User interface and state 2022-03-04 05:15:49 -08:00
c3d2ee3c3a Add flat file of picture data 2022-03-04 05:15:38 -08:00
dff9653181 Add endpoint for getting user info 2022-03-04 05:15:28 -08:00
1d0c242429 Add AxSelect component and API call 2022-03-03 03:10:37 -08:00
01db78c422 Add WeaponKeyDropdown component and API method 2022-03-03 03:09:12 -08:00
5256964dd9 Add AX Data object
This is our reference for what AX skills go together and what the min/max strength values are
2022-03-03 03:07:33 -08:00
a1f9f41567 Implement saving/unsaving on collection pages 2022-02-28 01:02:47 -08:00
4998072475 Implement IconOnly button type 2022-02-28 01:01:33 -08:00
b78994b68c Add saved state and user to Party object 2022-02-27 22:30:43 -08:00
7915ec2385 Add endpoints for favoriting 2022-02-27 22:30:12 -08:00
5f1bee26cf Refactor some endpoints 2022-02-27 22:30:00 -08:00
6bf39b1c54 Update api.tsx 2022-02-27 00:36:35 -08:00
240640dc49 Fix typescript bs in timeAgo method 2022-02-26 17:53:20 -08:00
da18658a5f Add timeAgo util function 2022-02-26 17:45:37 -08:00
499dde433e Save raids in state 2022-02-26 15:53:32 -08:00
fe14c38fd9 Fix name in state and add detailsVisible flag 2022-02-24 18:15:23 -08:00
c4ec4f76cf Add endpoint for raids 2022-02-24 18:13:30 -08:00
094d2e83d6 Add party details to state 2022-02-23 19:23:04 -08:00
54f9d3682b Update API to map destroy endpoint properly 2022-02-23 16:42:56 -08:00
1a39108e38 Add user info in account state 2022-02-23 15:58:26 -08:00
b8d3def32b Broke out state into accountState and appState 2022-02-23 14:52:18 -08:00
214f3cf398 Use GridArray interface 2022-02-23 13:58:25 -08:00
ab952ddec4 State object 2022-02-23 01:50:47 -08:00
88b05c6de8 Add ButtonType to enums 2022-02-04 18:21:05 -08:00
cface6a107 Save extra state to server 2022-02-04 14:47:34 -08:00
8744279979 Added a new Endpoint type for specific objects in a party 2022-02-03 23:50:38 -08:00
6b085dfce9 Moved GridType enum here 2022-02-03 23:50:21 -08:00
db642371b7 Add support for tinting segmented control with party element 2022-02-03 01:58:36 -08:00
e06e2c7f23 Update api.tsx 2022-02-02 20:44:06 -08:00
0dbcc7854b Update api.tsx 2022-02-01 11:42:29 -08:00
86657e133a Add endpoint for updating uncap levels 2022-02-01 05:03:12 -08:00
d2fbc0ab9c Delete history.tsx 2022-01-31 23:54:49 -08:00
ce691ef9c6 Fix environment variable stuff 2022-01-29 23:22:48 -08:00
47c7e7c093 Another test 2022-01-29 23:01:22 -08:00
6b39168be2 Add react-env to try to get it to work 2022-01-29 22:55:44 -08:00
9305a8bd20 debugging 2022-01-29 22:09:32 -08:00
aef0e60b6a debugging 2022-01-29 22:04:46 -08:00
27a774aed7 Update api.tsx 2022-01-29 20:35:23 -08:00
775188ea19 Update api.tsx 2022-01-29 20:31:27 -08:00
4f361ff081 Update api.tsx 2022-01-29 20:17:37 -08:00
25f0d393c2 Refactor Portal 2022-01-29 18:06:44 -08:00
9e0a1219d5 Add exclusion for Characters
Users should not be able to add multiple characters of the same name to multiple positions.
2022-01-25 16:49:14 -08:00
96265c31f0 Update api.tsx 2022-01-25 00:04:37 -08:00
728803d9c5 Migrate to Next.js 2022-01-24 21:54:50 -08:00