Skip to content

Commit

Permalink
prepare for upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
g j h committed Jul 8, 2021
1 parent 2e07b09 commit 5f5d34c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Roxie is a bibliography and citation formatter for the wretched, misconceived, b

Status: Hey, I just started. This is under heavy development and doesn't do anything useful yet. Also, it's a quick hack. I need it in ten days' time 😬 so code quality? Not my main priority here, mmkay.

## To run



## Internal data structures

### Book
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/Listing/Listing.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const Citation = styled.button`
}
`

const AuthorWrapper = styled.div`
/*const AuthorWrapper = styled.div`
margin-bottom: 2rem;
.Author {
border-bottom: 4px solid white;
Expand All @@ -192,7 +192,7 @@ const SectionHeader = styled.header`
.New {
flex: 0 0 2rem;
}
`
`*/

const Items = ({data,handleUpdate,...props}) => {
return (
Expand Down
10 changes: 6 additions & 4 deletions client/src/services/items.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
import axios from 'axios';

const IP = "192.168.1.84"

const API = {
getAll: async () => {
let res = await axios.get(`http://192.168.1.66:9000/items`);
let res = await axios.get(`http://${IP}:9000/items`);
return res.data || [];
},
add: async (itemData) => {
let res = await axios.post(`http://192.168.1.66:9000/items/new`, itemData)
let res = await axios.post(`http://${IP}:9000/items/new`, itemData)
return res.data || {};
},
delete: async (id) => {
let res = await axios.delete(`http://192.168.1.66:9000/items/${id}`);
let res = await axios.delete(`http://${IP}:9000/items/${id}`);
return res.data || [];
},
edit: async (itemData) => {
let res = await axios.put(`http://192.168.1.66:9000/items/update`, itemData)
let res = await axios.put(`http://${IP}:9000/items/update`, itemData)
return res.data || {};
}
}
Expand Down

0 comments on commit 5f5d34c

Please sign in to comment.