Skip to content

Commit fecfcd5

Browse files
authored
Error Hang
1 parent ede9ee7 commit fecfcd5

35 files changed

+17603
-0
lines changed

Error-Handling/frontend/todo-app/package-lock.json

Lines changed: 16561 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "todo-app",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"axios": "^0.18.0",
7+
"react": "^16.8.4",
8+
"react-dom": "^16.8.4",
9+
"react-router-dom": "^4.3.1",
10+
"react-scripts": "2.1.8"
11+
},
12+
"scripts": {
13+
"start": "PORT=4200 react-scripts start",
14+
"build": "react-scripts build",
15+
"test": "react-scripts test",
16+
"eject": "react-scripts eject"
17+
},
18+
"eslintConfig": {
19+
"extends": "react-app"
20+
},
21+
"browserslist": [
22+
">0.2%",
23+
"not dead",
24+
"not ie <= 11",
25+
"not op_mini all"
26+
]
27+
}
3.78 KB
Binary file not shown.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
6+
<meta
7+
name="viewport"
8+
content="width=device-width, initial-scale=1, shrink-to-fit=no"
9+
/>
10+
<meta name="theme-color" content="#000000" />
11+
<!--
12+
manifest.json provides metadata used when your web app is installed on a
13+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
14+
-->
15+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
16+
<!--
17+
Notice the use of %PUBLIC_URL% in the tags above.
18+
It will be replaced with the URL of the `public` folder during the build.
19+
Only files inside the `public` folder can be referenced from the HTML.
20+
21+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
22+
work correctly both with client-side routing and a non-root public URL.
23+
Learn how to configure a non-root public URL by running `npm run build`.
24+
-->
25+
<title>My Todo Application</title>
26+
</head>
27+
<body>
28+
<noscript>You need to enable JavaScript to run this app.</noscript>
29+
<div id="root"></div>
30+
<!--
31+
This HTML file is a template.
32+
If you open it directly in the browser, you will see an empty page.
33+
34+
You can add webfonts, meta tags, or analytics to this file.
35+
The build step will place the bundled scripts into the <body> tag.
36+
37+
To begin the development, run `npm start` or `yarn start`.
38+
To create a production bundle, use `npm run build` or `yarn build`.
39+
-->
40+
</body>
41+
</html>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"short_name": "React App",
3+
"name": "Create React App Sample",
4+
"icons": [
5+
{
6+
"src": "favicon.ico",
7+
"sizes": "64x64 32x32 24x24 16x16",
8+
"type": "image/x-icon"
9+
}
10+
],
11+
"start_url": ".",
12+
"display": "standalone",
13+
"theme_color": "#000000",
14+
"background_color": "#ffffff"
15+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
.footer {
2+
position: absolute;
3+
bottom: 0;
4+
width: 100%;
5+
height: 40px;
6+
background-color: #222222;
7+
}
8+
9+
.App {
10+
text-align: center;
11+
}
12+
13+
.App-logo {
14+
animation: App-logo-spin infinite 20s linear;
15+
height: 40vmin;
16+
pointer-events: none;
17+
}
18+
19+
.App-header {
20+
background-color: #282c34;
21+
min-height: 100vh;
22+
display: flex;
23+
flex-direction: column;
24+
align-items: center;
25+
justify-content: center;
26+
font-size: calc(10px + 2vmin);
27+
color: white;
28+
}
29+
30+
.App-link {
31+
color: #61dafb;
32+
}
33+
34+
@keyframes App-logo-spin {
35+
from {
36+
transform: rotate(0deg);
37+
}
38+
to {
39+
transform: rotate(360deg);
40+
}
41+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import React, { Component } from 'react';
2+
//import FirstComponent from './components/learning-examples/FirstComponent'
3+
//import SecondComponent from './components/learning-examples/SecondComponent'
4+
//import ThirdComponent from './components/learning-examples/ThirdComponent'
5+
//import Counter from './components/counter/Counter'
6+
import TodoApp from './components/todo/TodoApp'
7+
import './App.css';
8+
import './bootstrap.css';
9+
10+
class App extends Component {
11+
render() {
12+
return (
13+
<div className="App">
14+
{/*<Counter/>*/}
15+
<TodoApp/>
16+
</div>
17+
);
18+
}
19+
}
20+
21+
// class LearningComponents extends Component {
22+
// render() {
23+
// return (
24+
// <div className="LearningComponents">
25+
// My Hello World
26+
// <FirstComponent></FirstComponent>
27+
// <SecondComponent></SecondComponent>
28+
// <ThirdComponent></ThirdComponent>
29+
// </div>
30+
// );
31+
// }
32+
// }
33+
34+
export default App;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react';
2+
import ReactDOM from 'react-dom';
3+
import App from './App';
4+
5+
it('renders without crashing', () => {
6+
const div = document.createElement('div');
7+
ReactDOM.render(<App />, div);
8+
ReactDOM.unmountComponentAtNode(div);
9+
});
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import axios from 'axios'
2+
3+
class HelloWorldService {
4+
5+
executeHelloWorldService() {
6+
//console.log('executed service')
7+
return axios.get('http://localhost:8080/hello-world');
8+
}
9+
10+
executeHelloWorldBeanService() {
11+
//console.log('executed service')
12+
return axios.get('http://localhost:8080/hello-world-bean');
13+
}
14+
15+
executeHelloWorldPathVariableService(name) {
16+
//console.log('executed service')
17+
return axios.get(`http://localhost:8080/hello-world/path-variable/${name}`);
18+
}
19+
}
20+
21+
export default new HelloWorldService()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import url(https://unpkg.com/bootstrap@4.1.0/dist/css/bootstrap.min.css)

0 commit comments

Comments
 (0)