This commit is contained in:
2020-07-14 22:33:48 +02:00
parent 7cd3802bf7
commit 5944307874
11 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export default {
}),
beforeCreate () {
// ?_format=json
REST.get(`${apipath}/bibliography/works`, {})
REST.get(`${window.apipath}/bibliography/works`, {})
.then(({ data }) => {
console.log('Biblio REST: data', data)
// if(data.length){
+3 -3
View File
@@ -126,7 +126,7 @@ export default {
console.log('texts this.$route', this.$route)
// http://localhost:8984/texts/gdpSauval1724/toc
// get the edition's toc
REST.get(`${apipath}/texts/` + this.$route.params.id + `/toc`, {})
REST.get(`${window.apipath}/texts/` + this.$route.params.id + `/toc`, {})
.then(({ data }) => {
console.log('texts/toc REST: data', data)
this.meta = data.meta
@@ -194,7 +194,7 @@ export default {
}),
getTextContent (textid, $state = null, direction = 'next') {
console.log('getTextContent', textid)
REST.get(`${apipath}/items/${textid}`, {})
REST.get(`${window.apipath}/items/${textid}`, {})
.then(({ data }) => {
console.log('text REST: data', data)
if (direction === 'next') {
@@ -248,7 +248,7 @@ export default {
},
getIndexItem (item) {
this.indexitem = 'loading'
REST.get(`${apipath}/index${item.index.charAt(0).toUpperCase()}${item.index.slice(1)}/${item.uuid}`, {})
REST.get(`${window.apipath}/index${item.index.charAt(0).toUpperCase()}${item.index.slice(1)}/${item.uuid}`, {})
.then(({ data }) => {
console.log('index tooltip REST: data', data)
if (this.indexitem === 'loading') {
+1 -1
View File
@@ -34,7 +34,7 @@ export default {
items: []
}),
beforeCreate () {
REST.get(`${apipath}/indexLocorum`, {})
REST.get(`${window.apipath}/indexLocorum`, {})
.then(({ data }) => {
console.log('index locorum REST: data', data)
if (data.content.length) {
+1 -1
View File
@@ -37,7 +37,7 @@ export default {
beforeCreate () {
// items/gdpLeMaire1685T01BodyFr01.003.016
// texts/gdpSauval1724
REST.get(`${apipath}/indexNominum`, {})
REST.get(`${window.apipath}/indexNominum`, {})
.then(({ data }) => {
console.log('index nominum REST: data', data)
if (data.content.length) {
+1 -1
View File
@@ -34,7 +34,7 @@ export default {
items: []
}),
beforeCreate () {
REST.get(`${apipath}/indexOperum`, {})
REST.get(`${window.apipath}/indexOperum`, {})
.then(({ data }) => {
console.log('index operum REST: data', data)
if (data.content.length) {
+1 -1
View File
@@ -49,7 +49,7 @@ export default {
methods: {
loadItem () {
this.loaded = false
REST.get(`${apipath}/items/` + this.uuid, {})
REST.get(`${window.apipath}/items/` + this.uuid, {})
.then(({ data }) => {
console.log('item REST: data', data)
this.item = data.content
+1 -1
View File
@@ -41,7 +41,7 @@ export default {
},
beforeCreate () {
console.log('locorum this.$route', this.$route)
REST.get(`${apipath}/indexLocorum/` + this.$route.params.id, {})
REST.get(`${window.apipath}/indexLocorum/` + this.$route.params.id, {})
.then(({ data }) => {
console.log('locorum REST: data', data)
if (data.content) {
+1 -1
View File
@@ -40,7 +40,7 @@ export default {
},
beforeCreate () {
console.log('nominum this.$route', this.$route)
REST.get(`${apipath}/indexNominum/` + this.$route.params.id, {})
REST.get(`${window.apipath}/indexNominum/` + this.$route.params.id, {})
.then(({ data }) => {
console.log('nominum REST: data', data)
if (data.content) {
+1 -1
View File
@@ -36,7 +36,7 @@ export default {
},
beforeCreate () {
console.log('operum this.$route', this.$route)
REST.get(`${apipath}/indexOperum/` + this.$route.params.id, {})
REST.get(`${window.apipath}/indexOperum/` + this.$route.params.id, {})
.then(({ data }) => {
console.log('operum REST: data', data)
if (data.content) {
+2 -2
View File
@@ -57,7 +57,7 @@ export default {
},
// get authors
getAuthors ({ dispatch, commit, state }) {
return REST.get(`${apipath}/corpus`, {})
return REST.get(`${window.apipath}/corpus`, {})
// .then(({ data }) => {
// console.log('corpus getAuthors REST: data', data)
// commit('setAuthors', data.content)
@@ -70,7 +70,7 @@ export default {
// get editionslist
getEditionsList ({ dispatch, commit, state }, authors) {
return Promise.all(authors.map(function (author) {
return REST.get(`${apipath}/corpus/` + author.uuid, {})
return REST.get(`${window.apipath}/corpus/` + author.uuid, {})
.then(({ data }) => {
console.log('corpus getEditionsList REST: author, data', author, data)
// work arround
+1 -1
View File
@@ -41,7 +41,7 @@ export default {
}
// console.log('Search getResults params', params);
let q = qs.stringify(params)
return REST.get(`${apipath}/search?` + q)
return REST.get(`${window.apipath}/search?` + q)
.then(({ data }) => {
console.log('search REST: data', data)
commit('setIsloading', false)