2020-03-28 10:42:54 +01:00
|
|
|
|
<template>
|
2020-04-11 18:01:59 +02:00
|
|
|
|
<v-app-bar :clipped-left="$vuetify.breakpoint.lgAndUp" :clipped-right="$vuetify.breakpoint.lgAndUp" app color="#563f5a" dark>
|
2020-03-28 10:42:54 +01:00
|
|
|
|
<v-app-bar-nav-icon @click.stop="setDrawer" />
|
|
|
|
|
|
<v-toolbar-title class="ml-0 mr-4 pl-4">
|
2020-04-11 18:01:59 +02:00
|
|
|
|
<v-btn class="hidden-sm-and-down site-title" text link :to="{ path: '/' }"><img src="/dragon_blanc.svg" /> {{ $site.title }}</v-btn>
|
2020-03-28 10:42:54 +01:00
|
|
|
|
</v-toolbar-title>
|
|
|
|
|
|
<SRDSearchBox v-if="$site.themeConfig.search !== false && $page.frontmatter.search !== false" />
|
|
|
|
|
|
<!-- <v-text-field flat solo-inverted hide-details prepend-inner-icon="mdi-magnify" label="Search" class="hidden-sm-and-down" /> -->
|
|
|
|
|
|
<v-spacer />
|
2020-04-15 16:27:16 +02:00
|
|
|
|
<v-btn @click.stop="aboutDialog = true" icon><v-icon>mdi-information</v-icon></v-btn>
|
2020-04-01 19:34:06 +02:00
|
|
|
|
<v-btn @click.stop="setRightDrawer" icon v-if="hasRightDrawer">
|
2020-04-02 14:20:33 +02:00
|
|
|
|
<v-icon>{{ rightDrawerIcon }}</v-icon>
|
2020-04-01 19:34:06 +02:00
|
|
|
|
</v-btn>
|
2020-04-15 16:27:16 +02:00
|
|
|
|
|
|
|
|
|
|
<v-dialog v-model="aboutDialog" max-width="600">
|
|
|
|
|
|
<v-card>
|
|
|
|
|
|
<v-card-title class="headline">À propos de H&D DRS</v-card-title>
|
|
|
|
|
|
|
|
|
|
|
|
<v-card-text>
|
|
|
|
|
|
<p>Ce site a été développé par <strong>Maxime Moraine</strong> alias <strong>Em-squared</strong>.</p>
|
|
|
|
|
|
<p>Les sources de ce site sont disponibles sur <a :href="$site.themeConfig.repository" target="_blank">GitHub</a> sous Licence GPLv3.</p>
|
|
|
|
|
|
<p><strong><em>Héros & Dragons</em></strong> est un jeu de rôle basé sur les mécaniques de l’<a href="/licence-ogl">OGL5</a> et développé par les talents de la rédaction de <em><a href="https://www.black-book-editions.fr/catalogue.php?id=40" target="_blank">Casus Belli</a></em>, le magazine de référence des jeux de rôle.</p>
|
|
|
|
|
|
<p>Les textes de cette documentation appartiennent à <a href="https://www.black-book-editions.fr/catalogue.php?id=365" target="_blank">Black Book Éditions</a>.</p>
|
|
|
|
|
|
<p>Casus Belli et Black Book Éditions sont des marques déposées par <a href="https://www.black-book-editions.fr/" target="_blank">Black Book Éditions</a>. Tous droits réservés.</p>
|
|
|
|
|
|
</v-card-text>
|
|
|
|
|
|
</v-card>
|
|
|
|
|
|
</v-dialog>
|
2020-03-28 10:42:54 +01:00
|
|
|
|
</v-app-bar>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
import SRDSearchBox from '@theme/components/search/SRDSearchBox.vue'
|
|
|
|
|
|
// import NavLinks from '@theme/components/NavLinks.vue'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
|
name: 'Navbar',
|
|
|
|
|
|
|
|
|
|
|
|
components: {
|
|
|
|
|
|
// NavLinks,
|
|
|
|
|
|
SRDSearchBox
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
data () {
|
|
|
|
|
|
return {
|
2020-04-15 16:27:16 +02:00
|
|
|
|
aboutDialog: false
|
2020-03-28 10:42:54 +01:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
|
|
drawer() {
|
|
|
|
|
|
return this.$store.state.drawer
|
2020-04-01 19:34:06 +02:00
|
|
|
|
},
|
|
|
|
|
|
rightDrawer() {
|
|
|
|
|
|
return this.$store.state.rightDrawer
|
|
|
|
|
|
},
|
|
|
|
|
|
hasRightDrawer() {
|
|
|
|
|
|
return this.$store.state.hasRightDrawer
|
2020-04-02 14:20:33 +02:00
|
|
|
|
},
|
|
|
|
|
|
inRightDrawer() {
|
|
|
|
|
|
return this.$store.state.inRightDrawer
|
|
|
|
|
|
},
|
|
|
|
|
|
rightDrawerIcon() {
|
|
|
|
|
|
if (this.inRightDrawer == 'pageToc') {
|
|
|
|
|
|
return 'mdi-format-list-bulleted'
|
2020-04-09 15:35:26 +02:00
|
|
|
|
} else if (this.inRightDrawer == 'spellFilters' || this.inRightDrawer == 'magicItemFilters') {
|
2020-04-02 14:20:33 +02:00
|
|
|
|
return 'mdi-filter-variant'
|
|
|
|
|
|
}
|
|
|
|
|
|
return 'mdi-menu'
|
2020-03-28 10:42:54 +01:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
setDrawer () {
|
|
|
|
|
|
this.$store.commit('setDrawer', !this.$store.state.drawer)
|
2020-04-01 19:34:06 +02:00
|
|
|
|
},
|
|
|
|
|
|
setRightDrawer () {
|
|
|
|
|
|
this.$store.commit('setRightDrawer', !this.$store.state.rightDrawer)
|
2020-03-28 10:42:54 +01:00
|
|
|
|
}
|
2020-04-11 18:01:59 +02:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
mounted () {
|
|
|
|
|
|
this.$store.commit('setDrawer', this.$vuetify.breakpoint.lgAndUp)
|
2020-03-28 10:42:54 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
.site-title.theme--dark.v-btn--active:before {
|
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|