Skip to content

Commit

Permalink
uibuild
Browse files Browse the repository at this point in the history
  • Loading branch information
rajuruoho committed Sep 4, 2022
1 parent 6a6d218 commit 2fa13e2
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 19 deletions.
6 changes: 3 additions & 3 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"files": {
"main.js": "/static/js/main.86bdcc25.js",
"main.js": "/static/js/main.44a517e9.js",
"index.html": "/index.html",
"main.86bdcc25.js.map": "/static/js/main.86bdcc25.js.map"
"main.44a517e9.js.map": "/static/js/main.44a517e9.js.map"
},
"entrypoints": [
"static/js/main.86bdcc25.js"
"static/js/main.44a517e9.js"
]
}
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.86bdcc25.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.44a517e9.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/static/js/main.44a517e9.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion build/static/js/main.86bdcc25.js.map

This file was deleted.

1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const morgan = require('morgan')
const cors = require('cors')
require('dotenv').config()
const Person = require('./models/person')
//const note = require('../../parts/node/models/note')

app.use(express.static('build'))
app.use(express.json())
Expand Down
6 changes: 3 additions & 3 deletions part3-phonebook/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"files": {
"main.js": "/static/js/main.86bdcc25.js",
"main.js": "/static/js/main.44a517e9.js",
"index.html": "/index.html",
"main.86bdcc25.js.map": "/static/js/main.86bdcc25.js.map"
"main.44a517e9.js.map": "/static/js/main.44a517e9.js.map"
},
"entrypoints": [
"static/js/main.86bdcc25.js"
"static/js/main.44a517e9.js"
]
}
2 changes: 1 addition & 1 deletion part3-phonebook/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.86bdcc25.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/static/js/main.44a517e9.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions part3-phonebook/build/static/js/main.44a517e9.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion part3-phonebook/build/static/js/main.86bdcc25.js.map

This file was deleted.

9 changes: 7 additions & 2 deletions part3-phonebook/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,18 @@ const App = () => {
.then(response => {
setPersons(response)
})
setNewName('')
setNewNumber('')
notificationMessageHandle(`Changed ${newName}'s number to ${newNumber}`, 0)
})
.catch(error => {
notificationMessageHandle(error.response.data.error, 1)
return
/*
//This section should define if the person is deleted or if the number validator is right. Afaik both with current example code can't be done
notificationMessageHandle(`Failed to change ${newName}'s number to ${newNumber}. Information has already been removed from server`, 1)
*/
})
setNewName('')
setNewNumber('')
return
}
return
Expand Down

0 comments on commit 2fa13e2

Please sign in to comment.