diff --git a/assets/css/app.scss b/assets/css/app.scss index 5a280f2..d84c77c 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -51,7 +51,7 @@ section[role="main-content"]{ >.wrapper{ position: relative; - margin:5% 10%; + margin:5% 20%; padding:1em; overflow-y: hidden; background-color: #fff; diff --git a/src/api/vimeo-axios.js b/src/api/vimeo-axios.js new file mode 100644 index 0000000..08bb115 --- /dev/null +++ b/src/api/vimeo-axios.js @@ -0,0 +1,32 @@ +import axios from 'axios' + +// TODO: make this one as settings (or find an other solution) +// https://dev.to/sanfra1407/how-to-use-env-file-in-javascript-applications-with-webpack-18df +// switch (app_env) { +// case 'dev': +// let path = `http://${window.location.hostname}:8984` +// break; +// case 'prod': +// let path = `http://${window.location.hostname}/api` +// break; +// } +// let path = 'http://dev.api.gdp.fr' +// let path = 'http://localhost:8984' +// const +// let path = 'http://' + window.location.hostname + (window.env === 'prod' ? '/api' : ':8984') + +// contact@anarchive.net +// anarchive_9 +// b2dbd10a42860e5540fa9f211f39e160 + +export const VIMEO = axios.create({ + // withCredentials: true, + baseURL: 'https://vimeo.com/api/oembed.json', + crossorigin: true, + headers: { + 'Accept': 'application/json' + // 'Authorization': `bearer b2dbd10a42860e5540fa9f211f39e160`, + // 'Access-Control-Allow-Origin': '*' + // 'Access-Control-Allow-Credentials': + } +}) diff --git a/src/components/Content.vue b/src/components/Content.vue index 9ab515c..a54bd35 100644 --- a/src/components/Content.vue +++ b/src/components/Content.vue @@ -16,6 +16,7 @@
{{ data.Text }}
+