mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-10-30 13:14:20 +00:00
* Ajout de raccourcis sur la page d'accueil
* Ajout de feedback au changement de page
This commit is contained in:
parent
ff7beafe06
commit
72a29eaaf0
16 changed files with 325 additions and 42 deletions
|
|
@ -1,6 +1,10 @@
|
|||
<template>
|
||||
<v-app class="srd">
|
||||
|
||||
<v-overlay :value="$store.state.loading">
|
||||
<v-progress-circular indeterminate size="64"></v-progress-circular>
|
||||
</v-overlay>
|
||||
|
||||
<NavDrawer class="d-print-none" />
|
||||
<RightDrawer class="d-print-none" v-if="hasRightDrawer" />
|
||||
|
||||
|
|
@ -84,6 +88,7 @@ export default {
|
|||
},
|
||||
|
||||
mounted () {
|
||||
this.$store.commit('setLoading', false) // Page chargée
|
||||
this.$store.commit('setDrawer', this.$vuetify.breakpoint.lgAndUp)
|
||||
|
||||
// Cookie consent
|
||||
|
|
@ -103,22 +108,17 @@ export default {
|
|||
this.$store.commit('myMonsters/initialiseStore')
|
||||
this.$store.commit('myMagicItems/initialiseStore')
|
||||
|
||||
// this.$vuetify.theme.dark = this.$store.state.isThemeDark
|
||||
// Loading feedback
|
||||
this.$router.beforeEach((to, from, next) => {
|
||||
if (to.path !== from.path && !Vue.component(to.name)) {
|
||||
this.$store.commit('setLoading', true)
|
||||
}
|
||||
next()
|
||||
})
|
||||
|
||||
// let conditionLinks = document.links
|
||||
// conditionLinks.forEach((link, idx) => {
|
||||
// if (link.hash == "#a-terre") {
|
||||
// let RTClass = Vue.extend(RuleTooltip)
|
||||
// let rtInstance = new RTClass({
|
||||
// propsData: { l: link.text, t: link.hash.substring(1, link.hash.length) },
|
||||
// parent: this.$root
|
||||
// })
|
||||
// rtInstance.$mount()
|
||||
// console.log(link)
|
||||
// link = rtInstance.$el
|
||||
// console.log(link)
|
||||
// }
|
||||
// })
|
||||
this.$router.afterEach(() => {
|
||||
this.$store.commit('setLoading', false)
|
||||
})
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue