-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update react-scripts and Typescript to version 4 (#85)
* Update react-scripts and typescript to new major versions * Update to react-scripts 4 and Typescript 4 * Fix lint error where useState was being called conditionally * Fix lint error where no type was provided for useParams * Remove ref hack that's no longer needed * Hack to fix proxy weirdness * Set resetMocks to false in Jest CRA 4 defaults this to true, which broke jest-mock-axios and therefore every test we have. * Squash warnings * Use Cookies library to set cookies in auth tests This fixes a type error we were getting on deleting window.document.cookie, which is invalid, since that field is not optional. * Go back to export default The client manifest generation script relies on export default being there, so we just ignore the eslint rule. * Switch to storing config data in a JSON file This avoids the eslint error we were getting in config.ts before, and makes the manifest generation code less fragile * Fix formatting
- Loading branch information
Showing
19 changed files
with
9,886 additions
and
8,356 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"baseurl": "http://mathnews.uwaterloo.ca", | ||
"title": "mathNEWS", | ||
"description": "UWaterloo's Bastion of Erudite Thought", | ||
"themeColor": "#000000", | ||
"locale": "en_CA", | ||
"alternateLocales": [], | ||
"icons": { | ||
"favicon": { | ||
"src": "favicon.ico", | ||
"type": "image/x-icon", | ||
"sizes": "64x64 32x32 16x16" | ||
}, | ||
"touchIcon": { | ||
"src": "logo192.png", | ||
"type": "image/png", | ||
"sizes": "192x192" | ||
}, | ||
"largeIcon": { | ||
"src": "logo512.png", | ||
"type": "image/png", | ||
"sizes": "512x512" | ||
} | ||
}, | ||
"seo": { | ||
"image": "", | ||
"twitter": { | ||
"card": "summary_large_image", | ||
"site": "@UWmathNEWS" | ||
} | ||
}, | ||
"manifest": { | ||
"fullName": "", | ||
"start_url": ".", | ||
"display": "standalone", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"googleSiteVerification": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import config from "./config.json"; | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters