diff --git a/src/App.vue b/src/App.vue index 03bb442..aaf6ac5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -7,7 +7,9 @@ - +
+ +
@@ -53,4 +55,9 @@ body,html { font-family: v-sans; font-weight: 400; } + +.body_wrapper { + max-width: 900px; + margin: auto; +} diff --git a/src/api/index.js b/src/api/index.js index 6b7a0f3..d4cefef 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -3,7 +3,7 @@ import axios from 'axios' const apiClient = axios.create({ baseURL: 'https://server.riezel.com/api/v1', withCredentials: false, - timeout: 10000, + timeout: 120000, headers: { Accept: 'application/json', 'Content-Type': 'application/json' @@ -80,4 +80,8 @@ export function addNewPhoto(original_image, cropped_image=null, group_id=null, o } return apiClient.post('/addphoto/', data, config) +} + +export function updatePhoto(photo) { + return apiClient.put('/updatephoto/'+photo.id+'/', photo) } \ No newline at end of file diff --git a/src/components/PhotoItem.vue b/src/components/PhotoItem.vue new file mode 100644 index 0000000..71d4ffa --- /dev/null +++ b/src/components/PhotoItem.vue @@ -0,0 +1,266 @@ + + + + + \ No newline at end of file diff --git a/src/components/PhotoSelectModal.vue b/src/components/PhotoSelectModal.vue index c8134ac..03aac03 100644 --- a/src/components/PhotoSelectModal.vue +++ b/src/components/PhotoSelectModal.vue @@ -57,9 +57,14 @@ + + \ No newline at end of file