Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
zfletch committed Oct 16, 2019
1 parent 94abaad commit 94d0ec4
Show file tree
Hide file tree
Showing 6 changed files with 2,034 additions and 1,893 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 11.9.0
nodejs 12.9.1
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- v11.9.0
- v12.9.1
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
"homepage": "https://perseids-project.github.io/polytonic-js/",
"dependencies": {
"bootstrap": "^4.3.1",
"eslint-config-airbnb": "^17.1.1",
"eslint-plugin-jest": "^22.7.2",
"gh-pages": "^2.0.1",
"perseids-react-components": "^0.1.1",
"eslint-config-airbnb": "^18.0.1",
"eslint-plugin-jest": "^22.19.0",
"gh-pages": "^2.1.1",
"perseids-react-components": "^0.2.0",
"prop-types": "^15.7.2",
"react": "^16.8.6",
"react-clipboard.js": "^2.0.13",
"react-dom": "^16.8.6",
"react-router-dom": "^5.0.1",
"react-scripts": "3.0.1",
"react-simple-keyboard": "^1.24.2",
"react": "^16.10.2",
"react-clipboard.js": "^2.0.16",
"react-dom": "^16.10.2",
"react-router-dom": "^5.1.2",
"react-scripts": "3.2.0",
"react-simple-keyboard": "^2.0.15",
"typeface-arimo": "^0.0.72",
"typeface-tinos": "^0.0.72"
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/App/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Input from '../Input';

const App = () => (
<Router basename={process.env.PUBLIC_URL}>
<React.Fragment>
<>
<PerseidsHeader>
Greek Polytonic Keyboard
</PerseidsHeader>
Expand All @@ -21,7 +21,7 @@ const App = () => (
report="https://github.com/perseids-project/polytonic-js"
github="https://github.com/perseids-project/polytonic-js/issues"
/>
</React.Fragment>
</>
</Router>
);

Expand Down
24 changes: 12 additions & 12 deletions src/components/Input/Input.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, Fragment } from 'react';
import React, { Component } from 'react';
import Keyboard from 'react-simple-keyboard';

// see https://github.com/yannickcr/eslint-plugin-react/issues/2209
Expand Down Expand Up @@ -34,15 +34,15 @@ const setCaret = (elem, pos) => {
};

class Input extends Component {
state = {
value: '',
layoutName: 'default',
shifted: false,
};

constructor(props) {
super(props);

this.state = {
value: '',
layoutName: 'default',
shifted: false,
};

this.handleChange = this.handleChange.bind(this);
this.handleKeyboardChange = this.handleKeyboardChange.bind(this);
this.handleKeyPress = this.handleKeyPress.bind(this);
Expand All @@ -51,13 +51,13 @@ class Input extends Component {

handleChange(event) {
const { value } = event.target;
const { setInput } = this.keyboardRef.keyboard;
const { setInput } = this.keyboardRef;

this.setState({ value }, () => setInput(value));
}

handleKeyboardChange(value) {
const { caretPosition } = this.keyboardRef.keyboard;
const { caretPosition } = this.keyboardRef;

this.setState(({ shifted }) => {
if (shifted) {
Expand Down Expand Up @@ -107,7 +107,7 @@ class Input extends Component {
const { value, layoutName } = this.state;

return (
<Fragment>
<>
<div className="row pt-4 mb-3">
<div className="col-12 text-center">
<h1 className="h3 font-weight-normal">
Expand All @@ -133,7 +133,7 @@ class Input extends Component {
</div>
<div>
<Keyboard
ref={(r) => { this.keyboardRef = r; }}
keyboardRef={(r) => { this.keyboardRef = r; }}
onChange={this.handleKeyboardChange}
onKeyPress={this.handleKeyPress}
layout={layout}
Expand All @@ -145,7 +145,7 @@ class Input extends Component {
/>
</div>
</div>
</Fragment>
</>
);
}
}
Expand Down
Loading

0 comments on commit 94d0ec4

Please sign in to comment.