Skip to content

Commit 89f5a00

Browse files
committed
docker files.
1 parent 79d48c7 commit 89f5a00

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ RUN npm install --silent
88
RUN npm install [email protected] -g --silent
99
RUN npm run build
1010

11-
FROM nginx:1.18-alpine
11+
FROM nginx:1.16-alpine
1212

1313
COPY --from=build /app/build /usr/share/nginx/html
1414
RUN rm /etc/nginx/conf.d/default.conf
15-
COPY nginx/nginx.conf /etc/nginx/nginx.conf
15+
COPY nginx/nginx.conf /etc/nginx/conf.d
1616

1717
EXPOSE 80
1818
CMD [ "nginx", "-g", "daemon off;" ]

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
work correctly both with client-side routing and a non-root public URL.
2525
Learn how to configure a non-root public URL by running `npm run build`.
2626
-->
27-
<title>JSON Formatter</title>
27+
<title>Binary JSON Formatter</title>
2828

2929
<!-- FontAwesome 5 Imports -->
3030
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function App() {
1414
target="_blank"
1515
rel="noopener noreferrer"
1616
>
17-
JSON Formatter
17+
Binary JSON Formatter
1818
</a>
1919
</header>
2020
<div className="App-container">

src/components/JSONFormatter/JSONFormatter.jsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ class FormattedJSON extends Component {
5252
}
5353

5454
export class JSONFormatter extends Component {
55-
clearInputText = () => {
56-
this.setState({ 'inputText': '' });
57-
};
58-
5955
onInputTextChange = (event, data, value) => {
6056
try {
6157
this.setState({ 'inputText': event.target.value });
@@ -108,7 +104,7 @@ export class JSONFormatter extends Component {
108104
}
109105

110106
componentWillUnmount() {
111-
window.confirm('You are leaving the JSON Formatter.')
107+
window.confirm('You are leaving the Binary JSON Formatter.')
112108
}
113109

114110
render() {
@@ -128,11 +124,6 @@ export class JSONFormatter extends Component {
128124
}}>
129125
<CodeMirror ref="display" value={this.state.inputText} onChange={this.onInputTextChange} options={inputOptions} preserveScrollPosition={true} autoCursor={false} />
130126
<br />
131-
<Button onClick={this.clearInputText} size="small" variant="contained" color="primary" style={{ fontSize: 11 }}>
132-
<i className="far fa-trash-alt"></i>
133-
<span style={{ marginLeft: 6 }}>Clear Input</span>
134-
</Button>
135-
<br /><br />
136127
<hr />
137128
<br />
138129
<span style={{ fontFamily: "Roboto", fontSize: 22, fontWeight: 300, marginBottom: 20 }}>Formatted JSON:</span>

0 commit comments

Comments
 (0)