added corpus link, added nominum & locorum api request (not working yet)
This commit is contained in:
+2
-1
@@ -24,6 +24,7 @@ module.exports = {
|
|||||||
'generator-star-spacing': 'off',
|
'generator-star-spacing': 'off',
|
||||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||||
'vue/singleline-html-element-content-newline': 'off',
|
'vue/singleline-html-element-content-newline': 'off',
|
||||||
'vue/multiline-html-element-content-newline': 'off'
|
'vue/multiline-html-element-content-newline': 'off',
|
||||||
|
'vue/max-attributes-per-line': 'off'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export const REST = axios.create({
|
|||||||
// withCredentials: true,
|
// withCredentials: true,
|
||||||
crossorigin: true,
|
crossorigin: true,
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Accept': 'application/json'
|
||||||
// 'Access-Control-Allow-Credentials': true
|
// 'Access-Control-Allow-Credentials': true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<nav id="header-menu">
|
<nav id="header-menu">
|
||||||
<ul>
|
<ul>
|
||||||
|
<li><router-link to="/corpus">Corpus</router-link></li>
|
||||||
<li>
|
<li>
|
||||||
<span>Index</span>
|
<span>Index</span>
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
@@ -0,0 +1,44 @@
|
|||||||
|
<template>
|
||||||
|
<div
|
||||||
|
id="corpus"
|
||||||
|
class="full-width"
|
||||||
|
>
|
||||||
|
<h1>Corpus</h1>
|
||||||
|
<span v-if="!items.length">Loading ...</span>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
import { REST } from 'api/rest-axios'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'Corpus',
|
||||||
|
data: () => ({
|
||||||
|
items: []
|
||||||
|
}),
|
||||||
|
beforeCreate () {
|
||||||
|
// items/gdpLeMaire1685T01BodyFr01.003.016
|
||||||
|
// texts/gdpSauval1724
|
||||||
|
REST.get(`/corpus`, {})
|
||||||
|
.then(({ data }) => {
|
||||||
|
console.log('corpus REST: data', data)
|
||||||
|
// if(data.length){
|
||||||
|
// commit('setItems',data)
|
||||||
|
// // console.log('items.length', this.items.length);
|
||||||
|
// if(state.infiniteLoadingState)
|
||||||
|
// state.infiniteLoadingState.loaded()
|
||||||
|
// }else{
|
||||||
|
// if(state.infiniteLoadingState)
|
||||||
|
// state.infiniteLoadingState.complete()
|
||||||
|
// }
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.warn('Issue with corpus', error)
|
||||||
|
Promise.reject(error)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
||||||
+29
-1
@@ -4,15 +4,43 @@
|
|||||||
class="full-width"
|
class="full-width"
|
||||||
>
|
>
|
||||||
<h1>Locorum</h1>
|
<h1>Locorum</h1>
|
||||||
|
<span v-if="!items.length">Loading ...</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
import { REST } from 'api/rest-axios'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Locorum',
|
name: 'Locorum',
|
||||||
data: () => ({
|
data: () => ({
|
||||||
|
items: []
|
||||||
|
|
||||||
})
|
}),
|
||||||
|
beforeCreate () {
|
||||||
|
// items/gdpLeMaire1685T01BodyFr01.003.016
|
||||||
|
// texts/gdpSauval1724
|
||||||
|
REST.get(`/indexLocorum`, {})
|
||||||
|
.then(({ data }) => {
|
||||||
|
console.log('locorum REST: data', data)
|
||||||
|
// if(data.length){
|
||||||
|
// commit('setItems',data)
|
||||||
|
// // console.log('items.length', this.items.length);
|
||||||
|
// if(state.infiniteLoadingState)
|
||||||
|
// state.infiniteLoadingState.loaded()
|
||||||
|
// }else{
|
||||||
|
// if(state.infiniteLoadingState)
|
||||||
|
// state.infiniteLoadingState.complete()
|
||||||
|
// }
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.warn('Issue with locorum', error)
|
||||||
|
Promise.reject(error)
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
+27
-1
@@ -4,15 +4,41 @@
|
|||||||
class="full-width"
|
class="full-width"
|
||||||
>
|
>
|
||||||
<h1>Nominum</h1>
|
<h1>Nominum</h1>
|
||||||
|
<span v-if="!items.length">Loading ...</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
import { REST } from 'api/rest-axios'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Nominum',
|
name: 'Nominum',
|
||||||
data: () => ({
|
data: () => ({
|
||||||
})
|
items: []
|
||||||
|
|
||||||
|
}),
|
||||||
|
beforeCreate () {
|
||||||
|
// items/gdpLeMaire1685T01BodyFr01.003.016
|
||||||
|
// texts/gdpSauval1724
|
||||||
|
REST.get(`/indexNominum`, {})
|
||||||
|
.then(({ data }) => {
|
||||||
|
console.log('nominum REST: data', data)
|
||||||
|
// if(data.length){
|
||||||
|
// commit('setItems',data)
|
||||||
|
// // console.log('items.length', this.items.length);
|
||||||
|
// if(state.infiniteLoadingState)
|
||||||
|
// state.infiniteLoadingState.loaded()
|
||||||
|
// }else{
|
||||||
|
// if(state.infiniteLoadingState)
|
||||||
|
// state.infiniteLoadingState.complete()
|
||||||
|
// }
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.warn('Issue with nominum', error)
|
||||||
|
Promise.reject(error)
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ export default {
|
|||||||
|
|
||||||
}),
|
}),
|
||||||
beforeCreate () {
|
beforeCreate () {
|
||||||
// ?_format=json
|
// items/gdpLeMaire1685T01BodyFr01.003.016
|
||||||
|
// texts/gdpSauval1724
|
||||||
REST.get(`/indexOperum`, {})
|
REST.get(`/indexOperum`, {})
|
||||||
.then(({ data }) => {
|
.then(({ data }) => {
|
||||||
console.log('operum REST: data', data)
|
console.log('operum REST: data', data)
|
||||||
@@ -40,5 +41,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import Vue from 'vue'
|
|||||||
import Router from 'vue-router'
|
import Router from 'vue-router'
|
||||||
|
|
||||||
import Home from 'pages/Home'
|
import Home from 'pages/Home'
|
||||||
|
import Corpus from 'pages/Corpus'
|
||||||
import Nominum from 'pages/Nominum'
|
import Nominum from 'pages/Nominum'
|
||||||
import Locorum from 'pages/Locorum'
|
import Locorum from 'pages/Locorum'
|
||||||
import Operum from 'pages/Operum'
|
import Operum from 'pages/Operum'
|
||||||
@@ -15,6 +16,11 @@ const routes = [
|
|||||||
path: '/',
|
path: '/',
|
||||||
component: Home
|
component: Home
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'corpus',
|
||||||
|
path: '/corpus',
|
||||||
|
component: Corpus
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'nominum',
|
name: 'nominum',
|
||||||
path: '/nominum',
|
path: '/nominum',
|
||||||
|
|||||||
Reference in New Issue
Block a user