This commit is contained in:
parent
689d00d3de
commit
5c41bfc04a
@ -13,6 +13,7 @@ fragment ConcernementFields on Concernement {
|
|||||||
}
|
}
|
||||||
description
|
description
|
||||||
}
|
}
|
||||||
|
recit_colophon
|
||||||
author {
|
author {
|
||||||
username
|
username
|
||||||
structure {
|
structure {
|
||||||
|
@ -87,8 +87,7 @@ body{
|
|||||||
}
|
}
|
||||||
|
|
||||||
#content{
|
#content{
|
||||||
|
@mixin main-cartouche{
|
||||||
section.concernement{
|
|
||||||
background-color: rgba(255, 255, 255, 0.9);
|
background-color: rgba(255, 255, 255, 0.9);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width:450px;
|
width:450px;
|
||||||
@ -99,6 +98,12 @@ body{
|
|||||||
//
|
//
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
section.static{
|
||||||
|
@include main-cartouche();
|
||||||
|
}
|
||||||
|
section.concernement{
|
||||||
|
@include main-cartouche();
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
// layout
|
// layout
|
||||||
>header{
|
>header{
|
||||||
@ -193,14 +198,19 @@ body{
|
|||||||
}
|
}
|
||||||
>footer{
|
>footer{
|
||||||
section.infos{
|
section.infos{
|
||||||
>p{
|
>div{
|
||||||
font-size: 0.882em;
|
font-size: 0.882em;
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
|
white-space:nowrap;
|
||||||
>span{
|
>span.label{
|
||||||
>span{
|
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
}
|
}
|
||||||
|
>div{
|
||||||
|
&, p{
|
||||||
|
display: inline-block;
|
||||||
|
font-size: inherit;
|
||||||
|
font-weight: inherit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -87,13 +87,12 @@ export default {
|
|||||||
|
|
||||||
<template v-slot:footer>
|
<template v-slot:footer>
|
||||||
<section class="infos">
|
<section class="infos">
|
||||||
<p>
|
<div class="author"><span>une enquête de</span> {{ opened_concernement.author.username }}<br/></div>
|
||||||
<span class="author"><span>une enquête de</span> {{ opened_concernement.author.username }}<br/></span>
|
<div class="structure" v-if="opened_concernement.author.structure.length"><span>avec</span> {{ opened_concernement.author.structure[0].name }}<br/></div>
|
||||||
<span class="structure" v-if="opened_concernement.author.structure.length"><span>avec</span> {{ opened_concernement.author.structure[0].name }}<br/></span>
|
<div class="lieu" v-if="opened_concernement.lieu.length"><span>à</span> {{ opened_concernement.lieu[0].name }}<br/></div>
|
||||||
<span class="lieu" v-if="opened_concernement.lieu.length"><span>à</span> {{ opened_concernement.lieu[0].name }}<br/></span>
|
<div class="created"><span>démarrée le</span> {{ created }}<br/></div>
|
||||||
<span class="created"><span>démarrée le</span> {{ created }}<br/></span>
|
<div class="changed"><span>mise à jour le</span> {{ changed }}</div>
|
||||||
<span class="changed"><span>mise à jour le</span> {{ changed }}</span>
|
<div class="recit-colophon"><span>récit:</span> <div v-html="opened_concernement.recit_colophon" /></div>
|
||||||
</p>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- <section class="historique">
|
<!-- <section class="historique">
|
||||||
|
@ -20,7 +20,7 @@ export const CommonStore = defineStore({
|
|||||||
this.hover_elmt = elmt;
|
this.hover_elmt = elmt;
|
||||||
},
|
},
|
||||||
addPaperSymbolDefinition(name, path) {
|
addPaperSymbolDefinition(name, path) {
|
||||||
console.log(`addPaperSymbolDefinition ${name}`, path);
|
// console.log(`addPaperSymbolDefinition ${name}`, path);
|
||||||
// mode can be : terraindevie, proximite, superposition, puissancedagir, action, doleancer
|
// mode can be : terraindevie, proximite, superposition, puissancedagir, action, doleancer
|
||||||
this.paper_symbol_definitions[name] = new paper.SymbolDefinition(path);
|
this.paper_symbol_definitions[name] = new paper.SymbolDefinition(path);
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ export const StaticsStore = defineStore({
|
|||||||
console.log('statics store loadStatics');
|
console.log('statics store loadStatics');
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const ast = gql`{
|
const ast = gql`{
|
||||||
allstatics {
|
promotedstatics {
|
||||||
...StaticsFields
|
...StaticsFields
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -31,11 +31,11 @@ export const StaticsStore = defineStore({
|
|||||||
`
|
`
|
||||||
console.log('ast', ast);
|
console.log('ast', ast);
|
||||||
GQL.post('', { query: print(ast) })
|
GQL.post('', { query: print(ast) })
|
||||||
.then(({ data : { data : { allstatics } } }) => {
|
.then(({ data : { data : { promotedstatics } } }) => {
|
||||||
console.log('loadstatics loaded', allstatics)
|
console.log('loadstatics loaded', promotedstatics)
|
||||||
this.statics = allstatics
|
this.statics = promotedstatics
|
||||||
|
|
||||||
allstatics.forEach((s) => {
|
promotedstatics.forEach((s) => {
|
||||||
// console.log("s", s);
|
// console.log("s", s);
|
||||||
this.statics_byid[s.id] = s
|
this.statics_byid[s.id] = s
|
||||||
});
|
});
|
||||||
|
@ -29,10 +29,13 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<section class="static">
|
||||||
<span v-if="!loaded">loading ...</span>
|
<span v-if="!loaded">loading ...</span>
|
||||||
<!-- <h2 v-if="loaded">{{ this.id }}</h2> -->
|
<!-- <h2 v-if="loaded">{{ this.id }}</h2> -->
|
||||||
<h2 v-if="loaded">{{ statics_byid[id].title }}</h2>
|
<h2 v-if="loaded">{{ statics_byid[id].title }}</h2>
|
||||||
<div v-if="loaded" v-html="statics_byid[id].texte"/>
|
<div v-if="loaded" v-html="statics_byid[id].texte"/>
|
||||||
|
|
||||||
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user