diff --git a/webapp/components/Upload.vue b/webapp/components/Upload.vue index 0b15dc2ad..f6740e7ca 100644 --- a/webapp/components/Upload.vue +++ b/webapp/components/Upload.vue @@ -6,16 +6,16 @@ :options="dropzoneOptions" :include-styling="false" :style="{ backgroundImage: backgroundImage(`${user.avatar}`)}" + @vdropzone-error="verror" @vdropzone-thumbnail="thumbnail" + @vdropzone-drop="vddrop" @vdropzone-success="vsuccess" - > - - + /> @@ -97,7 +119,7 @@ export default { font-family: 'Arial', sans-serif; letter-spacing: 0.2px; color: #777; - transition: background-color .2s linear; + transition: background-color 0.2s linear; padding: 40px; } @@ -121,12 +143,14 @@ export default { width: 100%; } - #customdropzone .dz-preview .dz-details { +#customdropzone .dz-preview .dz-details { color: white; - transition: opacity .2s linear; + transition: opacity 0.2s linear; text-align: center; } -#customdropzone .dz-success-mark, .dz-error-mark, .dz-remove { +#customdropzone .dz-success-mark, +.dz-error-mark, +.dz-remove { display: none; } diff --git a/webapp/plugins/apollo-config.js b/webapp/plugins/apollo-config.js index a005063e1..bbbcfee19 100644 --- a/webapp/plugins/apollo-config.js +++ b/webapp/plugins/apollo-config.js @@ -1,19 +1,7 @@ -import { createUploadLink } from 'apollo-upload-client' -import { ApolloClient } from 'apollo-client' -import { InMemoryCache } from 'apollo-cache-inmemory' - export default ({ app }) => { const backendUrl = process.env.GRAPHQL_URI || 'http://localhost:4000' - const link = createUploadLink({ uri: 'http://localhost:4000' }) - - const client = new ApolloClient({ - link, - cache: new InMemoryCache(), - }) - console.log(client) return { - client, httpEndpoint: process.server ? backendUrl : '/api', httpLinkOptions: { credentials: 'same-origin'