-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frontend library bumps #95
Changes from all commits
00c48ce
88cd467
5c06e11
ed81978
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
16 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:12-alpine AS builder | ||
FROM node:16-alpine AS builder | ||
|
||
WORKDIR /home/foodbank/frontend | ||
|
||
|
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,28 +3,23 @@ | |
"version": "0.1.0", | ||
"private": true, | ||
"dependencies": { | ||
"@fortawesome/fontawesome-svg-core": "^1.2.28", | ||
"@fortawesome/free-regular-svg-icons": "^5.13.0", | ||
"@fortawesome/free-solid-svg-icons": "^5.13.0", | ||
"@fortawesome/react-fontawesome": "^0.1.9", | ||
"@testing-library/jest-dom": "^4.2.4", | ||
"@testing-library/react": "^9.5.0", | ||
"@testing-library/user-event": "^7.2.1", | ||
"babel-polyfill": "^6.26.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm I need to revisit this one, I thought Create React App would include the polyfills based on the We might not need polyfills at all, I wonder what the minimum Safari version is in use in the warehouse There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm so a quick look at https://caniuse.com/es6 and Safari has not needed a polyfill since v10, release in Sep 20 2016. So I think we're probably fine? If not Create React App has their own polyfill we can use which doesn't tie us to Babel (I can dream that one day CRA will drop it haha) |
||
"cross-fetch": "^3.0.4", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm pretty sure |
||
"date-fns": "^2.13.0", | ||
"node-sass": "^4.14.1", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is deprecated in favour of |
||
"prop-types": "^15.7.2", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We only had PropTypes in one component and tbh I'd rather incrementally adopt Typescript than add more of them |
||
"react": "^16.13.1", | ||
"react-datepicker": "^2.14.1", | ||
"react-dom": "^16.13.1", | ||
"react-redux": "^7.2.0", | ||
"react-router-dom": "^5.2.0", | ||
"react-scripts": "3.4.1", | ||
"react-select": "^3.1.0", | ||
"redux": "^4.0.5", | ||
"redux-thunk": "^2.3.0", | ||
"typescript": "^3.8.3" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No Typescript yet but we can add it back when we need it :) |
||
"@fortawesome/fontawesome-svg-core": "1.2.36", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've pinned each version exactly. We've got a minimal set of direct dependencies but still better safe than investigating random errors because we pulled in a new version :) |
||
"@fortawesome/free-regular-svg-icons": "5.15.4", | ||
"@fortawesome/free-solid-svg-icons": "5.15.4", | ||
"@fortawesome/react-fontawesome": "0.1.15", | ||
"date-fns": "2.23.0", | ||
"react": "17.0.2", | ||
"react-datepicker": "4.2.1", | ||
"react-dom": "17.0.2", | ||
"react-redux": "7.2.5", | ||
"react-router-dom": "5.3.0", | ||
"react-select": "4.3.1", | ||
"redux": "4.1.1", | ||
"redux-thunk": "2.3.0" | ||
}, | ||
"devDependencies": { | ||
"react-scripts": "4.0.3", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With our build deps as |
||
"sass": "1.42.1" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
@import 'include'; | ||
@use 'sass:math'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This fixes a deprecation warning, the division syntax is going away in future versions of sass |
||
|
||
@import 'include'; | ||
|
||
.paginator { | ||
|
||
|
@@ -8,7 +9,7 @@ | |
align-items: flex-end; | ||
|
||
.page { | ||
margin: 0 $pad-half / 2; | ||
margin: 0 math.div($pad-half, 2); | ||
padding: $pad-half; | ||
display: inline-block; | ||
min-width: $pad-double; | ||
|
@@ -44,7 +45,7 @@ | |
.page-spacer { | ||
display: inline-block; | ||
min-width: $pad-double; | ||
margin: 0 $pad-half / 2; | ||
margin: 0 math.div($pad-half, 2); | ||
text-align: center; | ||
padding: $pad-half 0; | ||
} | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've not got any tests :) we can put these back when we add some