fixed all eslint errors and warning, compiled as PROD

This commit is contained in:
2021-03-31 18:42:05 +02:00
parent ae3c8f1234
commit 3042f97b29
46 changed files with 388 additions and 42514 deletions

View File

@ -2,16 +2,16 @@ import axios from 'axios'
// https://github.com/alvar0hurtad0/drupal-vuejs-todo/blob/master/frontend/src/api/axiosInterceptor.js
// console.log('drupalSettings', drupalSettings);
console.log(window.location);
// console.log('drupalSettings', drupalSettings)
console.log(window.location)
export const MGQ = axios.create({
baseURL: window.location.origin+`/mgq`,
baseURL: window.location.origin + '/mgq',
withCredentials: true,
headers: {
'Accept': 'application/json',
Accept: 'application/json',
// Accept: 'application/vnd.api+json'
// Authorization: 'Basic {token}',
"Content-Type": "application/json"
'Content-Type': 'application/json'
}
})

View File

@ -2,8 +2,8 @@ import axios from 'axios'
// https://github.com/alvar0hurtad0/drupal-vuejs-todo/blob/master/frontend/src/api/axiosInterceptor.js
// console.log('drupalSettings', drupalSettings);
console.log(window.location);
// console.log('drupalSettings', drupalSettings)
console.log(window.location)
export const JSONAPI = axios.create({
baseURL: window.location.origin+`/jsonapi`,
@ -11,6 +11,6 @@ export const JSONAPI = axios.create({
headers: {
Accept: 'application/vnd.api+json'
// Authorization: 'Basic {token}',
// "Content-Type": "application/json"
// 'Content-Type': 'application/json'
}
})

View File

@ -2,13 +2,13 @@ import axios from 'axios'
// https://github.com/alvar0hurtad0/drupal-vuejs-todo/blob/master/frontend/src/api/axiosInterceptor.js
// console.log('drupalSettings', drupalSettings);
// console.log('drupalSettings', drupalSettings)
export const MA = axios.create({
baseURL: window.location.origin + '/' + drupalSettings.path.pathPrefix,
withCredentials: true,
headers: {
"Content-Type": "application/json"
'Content-Type': 'application/json'
// "X-CSRF-Token": "csrf_token"
}
})

View File

@ -2,13 +2,13 @@ import axios from 'axios'
// https://github.com/alvar0hurtad0/drupal-vuejs-todo/blob/master/frontend/src/api/axiosInterceptor.js
// console.log('drupalSettings', drupalSettings);
// console.log('drupalSettings', drupalSettings)
export const REST = axios.create({
baseURL: window.location.origin,
withCredentials: true,
headers: {
// Authorization: 'Bearer {token}',
"Content-Type": "application/json"
'Content-Type': 'application/json'
}
})