Skip to content

Commit

Permalink
Merge branch 'react-17'
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueWill committed Oct 25, 2020
2 parents c6bdce1 + a0dd7e2 commit c8e92e8
Show file tree
Hide file tree
Showing 24 changed files with 3,435 additions and 2,743 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Currently deployment is manual, so the site may not reflect the latest changes.

### Standards

* [Prettier](https://prettier.io/) v1 with single quotes
* [Prettier](https://prettier.io/) v1 with single quotes (`yarn prettify`)
* [EditorConfig](http://editorconfig.org/)
* [Yarn](https://yarnpkg.com/en/)
* [prop-types](https://github.com/facebook/prop-types)
Expand Down
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"lodash.chunk": "^4.2.0",
"lodash.startswith": "^4.2.1",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-app-polyfill": "^1.0.6",
"react-dom": "^16.13.1",
"react": "^17.0.1",
"react-app-polyfill": "^2.0.0",
"react-dom": "^17.0.1",
"react-redux": "^7.2.1",
"react-scripts": "3.4.3",
"react-scripts": "4.0.0",
"react-select": "^3.1.0",
"redux": "^4.0.5",
"redux-devtools-extension": "^2.13.8",
Expand All @@ -25,13 +25,15 @@
"test": "react-scripts test",
"lint": "eslint \"src/**/*.js\"",
"eject": "react-scripts eject",
"deploy": "yarn build && s3cmd sync build/* s3://truewill-embracer"
"deploy": "yarn build && s3cmd sync build/* s3://truewill-embracer",
"prettify": "prettier --write src/**/*.js"
},
"devDependencies": {
"@wojtekmaj/enzyme-adapter-react-17": "^0.1.1",
"deep-freeze": "^0.0.1",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.5",
"lodash.clonedeep": "^4.5.0"
"lodash.clonedeep": "^4.5.0",
"prettier": "1"
},
"browserslist": [
">0.2%",
Expand Down
5 changes: 4 additions & 1 deletion src/components/StartingDots.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ it('should display only clear when no current value and none available', () => {
it('should display only clear and other values when no current value', () => {
const wrapper = shallow(
<StartingDots
available={[{ dots: 4, count: 1 }, { dots: 3, count: 2 }]}
available={[
{ dots: 4, count: 1 },
{ dots: 3, count: 2 }
]}
onChange={noop}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion src/constants/application.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// General application constants.
export const version = '0.14.2';
export const version = '0.14.3';
export const docUrl = 'https://github.com/TrueWill/embracer';
5 changes: 1 addition & 4 deletions src/containers/RitualsContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@ const mapDispatchToProps = {
updateRituals
};

export default connect(
mapStateToProps,
mapDispatchToProps
)(Rituals);
export default connect(mapStateToProps, mapDispatchToProps)(Rituals);
5 changes: 1 addition & 4 deletions src/containers/TraitCategoryContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,4 @@ const mapDispatchToProps = {
purchaseOrUnpurchaseDot
};

export default connect(
mapStateToProps,
mapDispatchToProps
)(TraitCategory);
export default connect(mapStateToProps, mapDispatchToProps)(TraitCategory);
7 changes: 6 additions & 1 deletion src/reducers/attributesReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ import {

const isAttributes = category => category === 'attributes';

export default (state = initialState.character.attributes, action) => {
const attributesReducer = (
state = initialState.character.attributes,
action
) => {
let category, trait, dotsFromRank;

switch (action.type) {
Expand Down Expand Up @@ -54,3 +57,5 @@ export default (state = initialState.character.attributes, action) => {
return state;
}
};

export default attributesReducer;
7 changes: 6 additions & 1 deletion src/reducers/backgroundsReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ import {

const isBackgrounds = category => category === 'backgrounds';

export default (state = initialState.character.backgrounds, action) => {
const backgroundsReducer = (
state = initialState.character.backgrounds,
action
) => {
let category, trait, startingDots;

switch (action.type) {
Expand Down Expand Up @@ -55,3 +58,5 @@ export default (state = initialState.character.backgrounds, action) => {
return state;
}
};

export default backgroundsReducer;
4 changes: 3 additions & 1 deletion src/reducers/basicInfoReducer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import initialState from './initialState';
import * as types from '../constants/actionTypes';

export default (state = initialState.character.basicInfo, action) => {
const basicInfoReducer = (state = initialState.character.basicInfo, action) => {
switch (action.type) {
case types.UPDATE_ARCHETYPE:
return { ...state, archetype: action.payload };
Expand All @@ -11,3 +11,5 @@ export default (state = initialState.character.basicInfo, action) => {
return state;
}
};

export default basicInfoReducer;
7 changes: 6 additions & 1 deletion src/reducers/disciplinesReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ const clearRitualTypeIfMagic = (trait, state) => {
return state;
};

export default (state = initialState.character.disciplines, action) => {
const disciplinesReducer = (
state = initialState.character.disciplines,
action
) => {
let category, trait, startingDots, affinity, maxDots, newState;

switch (action.type) {
Expand Down Expand Up @@ -109,3 +112,5 @@ export default (state = initialState.character.disciplines, action) => {
return state;
}
};

export default disciplinesReducer;
Loading

0 comments on commit c8e92e8

Please sign in to comment.