Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit 7e1e77d

Browse files
committed
Update UI
1 parent 41fce19 commit 7e1e77d

File tree

12 files changed

+4802
-2597
lines changed

12 files changed

+4802
-2597
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6.9.2

App/containers/App.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
23

34
import { connect } from 'react-redux';
45

@@ -13,14 +14,14 @@ import OptionsContainer from './OptionsContainer';
1314
class App extends Component {
1415

1516
static propTypes = {
16-
dispatch: React.PropTypes.func,
17-
code: React.PropTypes.string,
18-
obfuscatedCode: React.PropTypes.string,
19-
sourceMap: React.PropTypes.string,
20-
obfuscating: React.PropTypes.bool,
21-
obfuscated: React.PropTypes.bool,
22-
error: React.PropTypes.bool,
23-
options: React.PropTypes.object,
17+
dispatch: PropTypes.func,
18+
code: PropTypes.string,
19+
obfuscatedCode: PropTypes.string,
20+
sourceMap: PropTypes.string,
21+
obfuscating: PropTypes.bool,
22+
obfuscated: PropTypes.bool,
23+
error: PropTypes.bool,
24+
options: PropTypes.object,
2425
}
2526

2627
obfuscate() {

App/containers/CodeContainer.js

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
23

34
import { connect } from 'react-redux';
45

@@ -17,16 +18,16 @@ const TAB_RESULTS = 2;
1718
class CodeContainer extends Component {
1819

1920
static propTypes = {
20-
code: React.PropTypes.string,
21-
obfuscatedCode: React.PropTypes.string,
22-
pending: React.PropTypes.bool,
23-
hasResults: React.PropTypes.bool,
24-
onCodeChange: React.PropTypes.func,
25-
onObfuscateClick: React.PropTypes.func,
26-
onDownloadCodeClick: React.PropTypes.func,
27-
onDownloadSourceMapClick: React.PropTypes.func,
28-
hasSourceMap: React.PropTypes.bool,
29-
hasObfuscatedCode: React.PropTypes.bool,
21+
code: PropTypes.string,
22+
obfuscatedCode: PropTypes.string,
23+
pending: PropTypes.bool,
24+
hasResults: PropTypes.bool,
25+
onCodeChange: PropTypes.func,
26+
onObfuscateClick: PropTypes.func,
27+
onDownloadCodeClick: PropTypes.func,
28+
onDownloadSourceMapClick: PropTypes.func,
29+
hasSourceMap: PropTypes.bool,
30+
hasObfuscatedCode: PropTypes.bool,
3031
};
3132

3233
constructor(props) {
@@ -151,7 +152,7 @@ class CodeContainer extends Component {
151152
return (
152153
<div>
153154

154-
<div className="ui top attached tabular menu">
155+
<div className="ui top attached stackable three item menu">
155156
<Title active={tabIndex === TAB_CODE} onClick={() => this.onTabClick(TAB_CODE)}>Copy & Paste JavaScript Code</Title>
156157
<Title active={tabIndex === TAB_UPLOAD} onClick={() => this.onTabClick(TAB_UPLOAD)}>Upload JavaScript Files</Title>
157158
<Title active={tabIndex === TAB_RESULTS} onClick={() => this.onTabClick(TAB_RESULTS)}>Output</Title>
@@ -250,8 +251,8 @@ const Pane = (props) => {
250251
}
251252

252253
Pane.propTypes = {
253-
active: React.PropTypes.bool.isRequired,
254-
children: React.PropTypes.node.isRequired,
254+
active: PropTypes.bool.isRequired,
255+
children: PropTypes.node.isRequired,
255256
}
256257

257258

@@ -265,7 +266,7 @@ const Title = (props) => {
265266
}
266267

267268
Title.propTypes = {
268-
active: React.PropTypes.bool.isRequired,
269-
children: React.PropTypes.node.isRequired,
270-
onClick: React.PropTypes.func.isRequired,
269+
active: PropTypes.bool.isRequired,
270+
children: PropTypes.node.isRequired,
271+
onClick: PropTypes.func.isRequired,
271272
}

App/containers/EditorContainer.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
23

34
import Codemirror from 'react-codemirror';
45

@@ -15,8 +16,8 @@ export default class EditorContainer extends Component {
1516
}
1617

1718
static propTypes = {
18-
value: React.PropTypes.string.isRequired,
19-
onBlur: React.PropTypes.func.isRequired,
19+
value: PropTypes.string.isRequired,
20+
onBlur: PropTypes.func.isRequired,
2021
}
2122

2223
componentDidMount () {

App/containers/EntryInputContainer.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
23
import { Form } from 'semantic-ui-react';
34

45
export default class EntryInputContainer extends Component {
56

67
static propTypes = {
7-
label: React.PropTypes.string,
8-
actionAddEntryToState: React.PropTypes.func.isRequired,
9-
actionRemoveEntryFromState: React.PropTypes.func.isRequired,
10-
entries: React.PropTypes.array.isRequired,
11-
placeholder: React.PropTypes.string,
12-
buttonIcon: React.PropTypes.string,
13-
disabled: React.PropTypes.bool,
8+
label: PropTypes.string,
9+
actionAddEntryToState: PropTypes.func.isRequired,
10+
actionRemoveEntryFromState: PropTypes.func.isRequired,
11+
entries: PropTypes.array.isRequired,
12+
placeholder: PropTypes.string,
13+
buttonIcon: PropTypes.string,
14+
disabled: PropTypes.bool,
1415
}
1516

1617
constructor(props) {
@@ -75,6 +76,6 @@ const Labels = ({entries, onCloseClick}) =>
7576
</div>
7677

7778
Labels.propTypes = {
78-
entries: React.PropTypes.array,
79-
onCloseClick: React.PropTypes.func.isRequired,
79+
entries: PropTypes.array,
80+
onCloseClick: PropTypes.func.isRequired,
8081
}

0 commit comments

Comments
 (0)