diff --git a/assets/css/app.scss b/assets/css/app.scss
index e09ba63..aaa063b 100644
--- a/assets/css/app.scss
+++ b/assets/css/app.scss
@@ -14,6 +14,12 @@ body{
#root{
}
+.red{
+ background-color: red;
+ color:white;
+
+}
+
header[role="banner"]{
div.wrapper{
display: grid;
@@ -116,7 +122,7 @@ section[role="main-content"]{
}
}
- #corpus, .index{
+ #list-corpus, .index{
>header>h1{
font-family: "noto_sans";
color: $rouge;
@@ -140,6 +146,20 @@ section[role="main-content"]{
.index{
}
+ #texts{
+ .text-title{
+ font-size: 1.323em;
+ color: $bleuroi;
+ font-weight: 400;
+ margin:0;
+ }
+ span.placeName,
+ span.objectName,
+ span.persName{
+ font-weight: 600;
+ }
+ }
+
#text{
.content{
color: $bleuroi;
diff --git a/src/components/Content/CorpusItem.vue b/src/components/Content/CorpusItem.vue
index 70f7ba0..21c4916 100644
--- a/src/components/Content/CorpusItem.vue
+++ b/src/components/Content/CorpusItem.vue
@@ -10,7 +10,13 @@
/>
-
+
+ {{ item.author }}
+ {{ item.date }}
+ {{ item.editionsQuantity }}
+ {{ item.textsQuantity }}
+
+
@@ -29,12 +35,10 @@ export default {
methods: {
onclick () {
console.log('clicked on corpus item', this.item)
- // this.$router.push({
- // name:`article`,
- // params: { alias:this.alias },
- // query: { uuid: this.item.uuid }
- // // meta: { uuid:this.item.uuid },
- // })
+ this.$router.push({
+ name: `corpus`,
+ params: { id: this.item.uuid }
+ })
}
}
}
diff --git a/src/components/Content/LocorumItem.vue b/src/components/Content/LocorumItem.vue
index db31831..a46bc1b 100644
--- a/src/components/Content/LocorumItem.vue
+++ b/src/components/Content/LocorumItem.vue
@@ -9,6 +9,7 @@
v-html="item.title"
/>
+ {{ item.type }}
@@ -28,10 +29,11 @@ export default {
methods: {
onclick () {
console.log('clicked on locorum item', this.item)
- // this.$router.push({
- // name: `locorumItem`,
- // query: { id: this.item.uuid }
- // })
+ this.$router.push({
+ name: `locorum`,
+ params: { id: this.item.uuid }
+ // query: { id: this.item.uuid }
+ })
}
}
}
diff --git a/src/components/Content/NominumItem.vue b/src/components/Content/NominumItem.vue
index 1f2e226..17f3c98 100644
--- a/src/components/Content/NominumItem.vue
+++ b/src/components/Content/NominumItem.vue
@@ -32,8 +32,8 @@ export default {
onclick () {
console.log('clicked on nominum item', this.item)
this.$router.push({
- name: `nominumItem`,
- query: { id: this.item.uuid }
+ name: `nominum`,
+ params: { id: this.item.uuid }
})
}
}
diff --git a/src/components/Content/OperumItem.vue b/src/components/Content/OperumItem.vue
index 7197dc8..f3b5ef8 100644
--- a/src/components/Content/OperumItem.vue
+++ b/src/components/Content/OperumItem.vue
@@ -2,12 +2,18 @@
+
+ >
+ {{ item.title }}
+
+
+ {{ item.title }}
+
@@ -28,10 +34,14 @@ export default {
methods: {
onclick () {
console.log('clicked on Operum item', this.item)
- this.$router.push({
- name: `operuumItem`,
- query: { id: this.item.uuid }
- })
+ if (this.item.uuid) {
+ this.$router.push({
+ name: `operum`,
+ params: { id: this.item.uuid }
+ })
+ } else {
+ console.warn('no uuid', this.item)
+ }
}
}
}
diff --git a/src/pages/Corpus.vue b/src/pages/Corpus.vue
index c9d0044..c1b169d 100644
--- a/src/pages/Corpus.vue
+++ b/src/pages/Corpus.vue
@@ -1,52 +1,80 @@
-
- Corpus
- Loading ...
+
+ Loading ...
-
-
-
-
+
+ {{ meta.author }}
+ {{ meta.quantity }}
+
+
+ {{ item.date }}
+ format: {{ item.format }}
+ itemsNb: {{ item.itemsNb }}
+ Other Editions: {{ item.otherEditions }}
+ {{ item.biblio }}
+
+
+
diff --git a/src/pages/IndexLocorum.vue b/src/pages/IndexLocorum.vue
new file mode 100644
index 0000000..8b2dd81
--- /dev/null
+++ b/src/pages/IndexLocorum.vue
@@ -0,0 +1,50 @@
+
+
+
+ Lieux
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/IndexNominum.vue b/src/pages/IndexNominum.vue
new file mode 100644
index 0000000..e2d35c6
--- /dev/null
+++ b/src/pages/IndexNominum.vue
@@ -0,0 +1,53 @@
+
+
+
+ Personnes
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/IndexOperum.vue b/src/pages/IndexOperum.vue
new file mode 100644
index 0000000..e9fa7f0
--- /dev/null
+++ b/src/pages/IndexOperum.vue
@@ -0,0 +1,50 @@
+
+
+
+ Œuvres
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/Item.vue b/src/pages/Item.vue
index d344ec8..044baed 100644
--- a/src/pages/Item.vue
+++ b/src/pages/Item.vue
@@ -7,10 +7,9 @@
Loading...
-
+
-
-
+
diff --git a/src/pages/ListCorpus.vue b/src/pages/ListCorpus.vue
new file mode 100644
index 0000000..1a12906
--- /dev/null
+++ b/src/pages/ListCorpus.vue
@@ -0,0 +1,51 @@
+
+
+
+ Corpus
+ Loading ...
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/Locorum.vue b/src/pages/Locorum.vue
index b45aa2a..f64b870 100644
--- a/src/pages/Locorum.vue
+++ b/src/pages/Locorum.vue
@@ -1,18 +1,12 @@
-
+
- Lieux
- Loading ...
+ {{ content.title }}
+ {{ content.type }}
+ Loading ...
-
-
-
-
+
@@ -20,23 +14,22 @@
import { REST } from 'api/rest-axios'
import MainContentLayout from '../components/Layouts/MainContentLayout'
-import LocorumItem from '../components/Content/LocorumItem'
export default {
name: 'Locorum',
components: {
- LocorumItem,
MainContentLayout
},
data: () => ({
- items: []
+ content: null
}),
beforeCreate () {
- REST.get(`/indexLocorum`, {})
+ console.log('locorum this.$route', this.$route)
+ REST.get(`/indexLocorum/` + this.$route.params.id, {})
.then(({ data }) => {
console.log('locorum REST: data', data)
- if (data.content.length) {
- this.items = data.content
+ if (data.content) {
+ this.content = data.content
}
})
.catch((error) => {
diff --git a/src/pages/Nominum.vue b/src/pages/Nominum.vue
index 5bc25ff..06d1708 100644
--- a/src/pages/Nominum.vue
+++ b/src/pages/Nominum.vue
@@ -1,18 +1,11 @@
-
+
- Personnes
- Loading ...
+ {{ content.title }}
+ Loading ...
-
-
-
-
+
@@ -20,26 +13,22 @@
import { REST } from 'api/rest-axios'
import MainContentLayout from '../components/Layouts/MainContentLayout'
-import NominumItem from '../components/Content/NominumItem'
export default {
name: 'Nominum',
components: {
- NominumItem,
MainContentLayout
},
data: () => ({
- items: []
-
+ content: null
}),
beforeCreate () {
- // items/gdpLeMaire1685T01BodyFr01.003.016
- // texts/gdpSauval1724
- REST.get(`/indexNominum`, {})
+ console.log('nominum this.$route', this.$route)
+ REST.get(`/indexNominum/` + this.$route.params.id, {})
.then(({ data }) => {
console.log('nominum REST: data', data)
- if (data.content.length) {
- this.items = data.content
+ if (data.content) {
+ this.content = data.content
}
})
.catch((error) => {
diff --git a/src/pages/Operum.vue b/src/pages/Operum.vue
index 3f0775c..0bb9e4c 100644
--- a/src/pages/Operum.vue
+++ b/src/pages/Operum.vue
@@ -1,18 +1,11 @@
-
+
- Œuvres
- Loading ...
+ {{ content.title }}
+ Loading ...
-
-
-
-
+
@@ -20,23 +13,22 @@
import { REST } from 'api/rest-axios'
import MainContentLayout from '../components/Layouts/MainContentLayout'
-import OperumItem from '../components/Content/OperumItem'
export default {
name: 'Operum',
components: {
- OperumItem,
MainContentLayout
},
data: () => ({
- items: []
+ content: null
}),
beforeCreate () {
- REST.get(`/indexOperum`, {})
+ console.log('operum this.$route', this.$route)
+ REST.get(`/indexOperum/` + this.$route.params.id, {})
.then(({ data }) => {
console.log('operum REST: data', data)
- if (data.content.length) {
- this.items = data.content
+ if (data.content) {
+ this.content = data.content
}
})
.catch((error) => {
diff --git a/src/pages/Texts.vue b/src/pages/Texts.vue
new file mode 100644
index 0000000..95b5a6e
--- /dev/null
+++ b/src/pages/Texts.vue
@@ -0,0 +1,57 @@
+
+
+
+ Loading ...
+
+
+ {{ meta.title }}
+
+
+
+
+
+
+
+
+
diff --git a/src/router/index.js b/src/router/index.js
index 08a2beb..72a1f79 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -3,12 +3,15 @@ import Router from 'vue-router'
import Home from 'pages/Home'
import Item from 'pages/Item'
+import ListCorpus from 'pages/ListCorpus'
import Corpus from 'pages/Corpus'
+import Texts from 'pages/Texts'
+import IndexNominum from 'pages/IndexNominum'
+import IndexLocorum from 'pages/IndexLocorum'
+import IndexOperum from 'pages/IndexOperum'
import Nominum from 'pages/Nominum'
-// import NominumItem from 'pages/NominumItem'
import Locorum from 'pages/Locorum'
import Operum from 'pages/Operum'
-// import OperumItem from 'pages/OperumItem'
import Bibliographie from 'pages/Bibliographie'
Vue.use(Router)
@@ -26,35 +29,50 @@ const routes = [
props: true
},
{
- name: 'corpus',
+ name: 'listcorpus',
path: '/corpus',
+ component: ListCorpus
+ },
+ {
+ name: 'corpus',
+ path: '/corpus/:id',
component: Corpus
},
{
- name: 'nominum',
+ name: 'texts',
+ path: '/texts/:id',
+ component: Texts
+ },
+ {
+ name: 'indexNominum',
path: '/nominum',
+ component: IndexNominum
+ },
+ {
+ name: 'nominum',
+ path: '/nominum/:id',
component: Nominum
},
- // {
- // name: 'nominumItem',
- // path: '/nominum/:id',
- // component: NominumItem
- // },
+ {
+ name: 'indexLocorum',
+ path: '/locorum',
+ component: IndexLocorum
+ },
{
name: 'locorum',
- path: '/locorum',
+ path: '/locorum/:id',
component: Locorum
},
{
- name: 'operum',
+ name: 'indexOperum',
path: '/operum',
+ component: IndexOperum
+ },
+ {
+ name: 'operum',
+ path: '/operum/:id',
component: Operum
},
- // {
- // name: 'operumItem',
- // path: '/operum/:id',
- // component: OperumItem
- // },
{
name: 'bibliographie',
path: '/bibliographie',