layout, mdi, static menu & page, font, ...

This commit is contained in:
2023-01-30 16:34:20 +01:00
parent 3e791910cc
commit a8883be9b7
32 changed files with 2242 additions and 47 deletions

View File

@@ -28,6 +28,6 @@ export default {
<MapConcernements v-if="isloggedin"/>
</template>
<style lang="css" scoped>
<style lang="scss" scoped>
</style>

40
src/views/Static.vue Normal file
View File

@@ -0,0 +1,40 @@
<script>
import { mapActions, mapState } from 'pinia'
import { StaticsStore } from '@/stores/statics'
export default {
props: ['id'],
// data(){
// return {
// block: null
// }
// },
computed: {
...mapState(StaticsStore,['loaded', 'statics_byid'])
},
created () {
console.log("static created, id", this.id);
// this.loadStatics()
},
methods: {
...mapActions(StaticsStore,['loadStatics'])
},
components: {
// MapConcernements
}
}
</script>
<template>
<span v-if="!loaded">loading ...</span>
<!-- <h2 v-if="loaded">{{ this.id }}</h2> -->
<h2 v-if="loaded">{{ statics_byid[id].title }}</h2>
<div v-if="loaded" v-html="statics_byid[id].texte"/>
</template>
<style lang="scss" scoped>
</style>