fixed mdi icons, added recit icon on map-popup
This commit is contained in:
parent
0ccbc9257e
commit
fb14d83f6d
984
package-lock.json
generated
984
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -9,8 +9,10 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@csstools/normalize.css": "^12.0.0",
|
"@csstools/normalize.css": "^12.0.0",
|
||||||
|
"@jamescoyle/vue-icon": "^0.1.2",
|
||||||
"@material-design-icons/svg": "^0.14.2",
|
"@material-design-icons/svg": "^0.14.2",
|
||||||
"@mdi/font": "^7.1.96",
|
"@mdi/font": "^7.1.96",
|
||||||
|
"@mdi/js": "^7.2.96",
|
||||||
"@tweenjs/tween.js": "^19.0.0",
|
"@tweenjs/tween.js": "^19.0.0",
|
||||||
"fabric": "^6.0.0-beta7",
|
"fabric": "^6.0.0-beta7",
|
||||||
"granim": "^2.0.0",
|
"granim": "^2.0.0",
|
||||||
|
@ -234,11 +234,14 @@ body{
|
|||||||
// left: 0;
|
// left: 0;
|
||||||
|
|
||||||
.popup-content-wrapper{
|
.popup-content-wrapper{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items:center;
|
||||||
|
.concernement-map-popup{
|
||||||
background-color: white;
|
background-color: white;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
max-width: 30em;
|
max-width: 30em;
|
||||||
.concernement-map-popup{
|
|
||||||
ul.icons{
|
ul.icons{
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
@ -251,7 +254,25 @@ body{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.concernement-map-popup-recit{
|
||||||
|
padding-left: 0.8em;
|
||||||
|
>svg{
|
||||||
|
display: inline-block;
|
||||||
|
$d: 55px;
|
||||||
|
width:$d; height:$d;
|
||||||
|
border-radius: $d * 0.5;
|
||||||
|
background-color: #fff;
|
||||||
|
padding: 10px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
color: #333;
|
||||||
|
// font-size: 2em;
|
||||||
|
}
|
||||||
|
}
|
||||||
.reponse-map-popup{
|
.reponse-map-popup{
|
||||||
|
background-color: white;
|
||||||
|
padding: 1em;
|
||||||
|
border-radius: 3px;
|
||||||
|
max-width: 30em;
|
||||||
>div{
|
>div{
|
||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
label{
|
label{
|
||||||
@ -265,6 +286,9 @@ body{
|
|||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
h1{
|
||||||
|
padding-bottom: 0.5em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:before{
|
&:before{
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
<script>
|
<script>
|
||||||
// import { RouterLink, RouterView } from 'vue-router'
|
// import { RouterLink, RouterView } from 'vue-router'
|
||||||
|
|
||||||
|
import SvgIcon from '@jamescoyle/vue-icon';
|
||||||
|
import { mdiHeadphones } from '@mdi/js';
|
||||||
|
|
||||||
import { mapState, mapActions } from 'pinia'
|
import { mapState, mapActions } from 'pinia'
|
||||||
// import { UserStore } from '@/stores/user'
|
// import { UserStore } from '@/stores/user'
|
||||||
import { ConcernementsStore } from '@/stores/concernements'
|
import { ConcernementsStore } from '@/stores/concernements'
|
||||||
@ -15,7 +18,8 @@ export default {
|
|||||||
concernement: null,
|
concernement: null,
|
||||||
entite: null,
|
entite: null,
|
||||||
besoin: null,
|
besoin: null,
|
||||||
reponse: null
|
reponse: null,
|
||||||
|
headphones_path: mdiHeadphones
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
@ -104,6 +108,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
SvgIcon
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -123,6 +128,10 @@ export default {
|
|||||||
<li v-if="concernement.has_doleance" ><span class="icon doleancer"></span></li>
|
<li v-if="concernement.has_doleance" ><span class="icon doleancer"></span></li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
<section v-if="infos.type === 'concernement' && concernement.has_recit" class="concernement-map-popup-recit">
|
||||||
|
<svg-icon type="mdi" :path="headphones_path"></svg-icon>
|
||||||
|
</section>
|
||||||
|
|
||||||
<section v-if="infos.type === 'entite'" class="entite-map-popup">
|
<section v-if="infos.type === 'entite'" class="entite-map-popup">
|
||||||
<h1>{{ entite.entite.title }}</h1>
|
<h1>{{ entite.entite.title }}</h1>
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,4 +1,11 @@
|
|||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
import SvgIcon from '@jamescoyle/vue-icon';
|
||||||
|
import { mdiAccount } from '@mdi/js';
|
||||||
|
import { mdiLogout } from '@mdi/js';
|
||||||
|
import { mdiCogOutline } from '@mdi/js';
|
||||||
|
|
||||||
|
|
||||||
import { mapState } from 'pinia'
|
import { mapState } from 'pinia'
|
||||||
import { UserStore } from '@/stores/user'
|
import { UserStore } from '@/stores/user'
|
||||||
|
|
||||||
@ -8,6 +15,13 @@ export default {
|
|||||||
|
|
||||||
return { userStore }
|
return { userStore }
|
||||||
},
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
account_path: mdiAccount,
|
||||||
|
cogoutline_path: mdiCogOutline,
|
||||||
|
logout_path: mdiLogout
|
||||||
|
}
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(UserStore,['isloggedin', 'isAdmin', 'mail', 'name'])
|
...mapState(UserStore,['isloggedin', 'isAdmin', 'mail', 'name'])
|
||||||
},
|
},
|
||||||
@ -23,7 +37,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
// Loggout
|
SvgIcon
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@ -31,6 +45,7 @@ export default {
|
|||||||
<template>
|
<template>
|
||||||
<div id="user-tools">
|
<div id="user-tools">
|
||||||
<a class="mdi mdi-account" href="/api/user">
|
<a class="mdi mdi-account" href="/api/user">
|
||||||
|
<svg-icon type="mdi" :path="account_path"></svg-icon>
|
||||||
<span>{{ name }}</span>
|
<span>{{ name }}</span>
|
||||||
<!-- <span v-else>{{ mail }}</span> -->
|
<!-- <span v-else>{{ mail }}</span> -->
|
||||||
</a><br/>
|
</a><br/>
|
||||||
@ -38,13 +53,16 @@ export default {
|
|||||||
v-if="isAdmin"
|
v-if="isAdmin"
|
||||||
class="api"
|
class="api"
|
||||||
href="/api/admin/content/concernements">
|
href="/api/admin/content/concernements">
|
||||||
|
<svg-icon type="mdi" :path="cogoutline_path"></svg-icon>
|
||||||
<span>API</span>
|
<span>API</span>
|
||||||
</a><br/>
|
</a><br/>
|
||||||
<a href="/user/logout"
|
<a href="/user/logout"
|
||||||
@click.prevent="onLogout()"
|
@click.prevent="onLogout()"
|
||||||
class="mdi mdi-logout"
|
class="mdi mdi-logout"
|
||||||
title="logout"
|
title="logout"
|
||||||
/>
|
>
|
||||||
|
<svg-icon type="mdi" :path="logout_path"></svg-icon>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -56,6 +74,9 @@ export default {
|
|||||||
gap: 0em;
|
gap: 0em;
|
||||||
a{
|
a{
|
||||||
padding: $pad_btn;
|
padding: $pad_btn;
|
||||||
|
svg{
|
||||||
|
height:0.8em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -88,9 +88,13 @@ export const ConcernementsStore = defineStore({
|
|||||||
// doleance
|
// doleance
|
||||||
concernement.has_doleance = concernement.doleances.length ? true : false;
|
concernement.has_doleance = concernement.doleances.length ? true : false;
|
||||||
|
|
||||||
|
// recit
|
||||||
|
concernement.has_recit = concernement.recit !== null;
|
||||||
|
|
||||||
// common
|
// common
|
||||||
this.concernements.push(concernement);
|
this.concernements.push(concernement);
|
||||||
this.concernementsByID[concernement.id] = concernement;
|
this.concernementsByID[concernement.id] = concernement;
|
||||||
|
|
||||||
});
|
});
|
||||||
this.concernements_loaded = true;
|
this.concernements_loaded = true;
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user