diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js
index 48fde07..9d08541 100644
--- a/docs/.vuepress/config.js
+++ b/docs/.vuepress/config.js
@@ -129,7 +129,7 @@ module.exports = {
},
{
title: "Partir à l'aventure",
- path: '/partir-a-laventure/'
+ path: '/partir-a-l-aventure/'
},
{
title: "Combattre",
diff --git a/docs/.vuepress/store/index.js b/docs/.vuepress/store/index.js
index bf008a0..9df4201 100644
--- a/docs/.vuepress/store/index.js
+++ b/docs/.vuepress/store/index.js
@@ -14,7 +14,7 @@ export default new Vuex.Store({
drawer: true,
rightDrawer: false,
hasRightDrawer: false,
- inRightSidebar: null,
+ inRightDrawer: null,
},
getters: {
@@ -38,7 +38,7 @@ export default new Vuex.Store({
commit('setInRightDrawer', payload)
},
},
-
+
mutations: {
setDrawer: (state, payload) => {
state.drawer = payload
diff --git a/docs/.vuepress/store/modules/spellFilters.js b/docs/.vuepress/store/modules/spellFilters.js
index 7473e02..155be80 100644
--- a/docs/.vuepress/store/modules/spellFilters.js
+++ b/docs/.vuepress/store/modules/spellFilters.js
@@ -58,6 +58,17 @@ export default {
},
actions: {
+ reset: ({ commit }) => {
+ commit('resetSearch')
+ commit('resetMustBeConcentration')
+ commit('resetMustBeRitual')
+ commit('resetClasses')
+ commit('resetLevels')
+ commit('resetSchools')
+ commit('resetComponentVerbal')
+ commit('resetComponentSomatic')
+ commit('resetComponentMaterial')
+ },
updateSearch: ({ commit }, payload) => {
commit('setSearch', payload)
},
@@ -109,12 +120,21 @@ export default {
setSearch: (state, payload) => {
state.search = payload
},
+ resetSearch: (state) => {
+ state.search = ''
+ },
setMustBeConcentration: (state, payload) => {
state.mustBeConcentration = payload
},
+ resetMustBeConcentration: (state) => {
+ state.mustBeConcentration = undefined
+ },
setMustBeRitual: (state, payload) => {
state.mustBeRitual = payload
},
+ resetMustBeRitual: (state) => {
+ state.mustBeRitual = undefined
+ },
setClasses: (state, payload) => {
state.classes = payload
},
@@ -196,12 +216,21 @@ export default {
setComponentVerbal: (state, payload) => {
state.componentVerbal = payload
},
+ resetComponentVerbal: (state) => {
+ state.componentVerbal = undefined
+ },
setComponentSomatic: (state, payload) => {
state.componentSomatic = payload
},
+ resetComponentSomatic: (state) => {
+ state.componentSomatic = undefined
+ },
setComponentMaterial: (state, payload) => {
state.componentMaterial = payload
},
+ resetComponentMaterial: (state) => {
+ state.componentMaterial = undefined
+ },
}
}
diff --git a/docs/.vuepress/theme/components/Navbar.vue b/docs/.vuepress/theme/components/Navbar.vue
index ac7bec5..a4d4d83 100644
--- a/docs/.vuepress/theme/components/Navbar.vue
+++ b/docs/.vuepress/theme/components/Navbar.vue
@@ -8,7 +8,7 @@
- mdi-format-list-bulleted
+ {{ rightDrawerIcon }}
@@ -39,6 +39,17 @@ export default {
},
hasRightDrawer() {
return this.$store.state.hasRightDrawer
+ },
+ inRightDrawer() {
+ return this.$store.state.inRightDrawer
+ },
+ rightDrawerIcon() {
+ if (this.inRightDrawer == 'pageToc') {
+ return 'mdi-format-list-bulleted'
+ } else if (this.inRightDrawer == 'spellFilters') {
+ return 'mdi-filter-variant'
+ }
+ return 'mdi-menu'
}
},
diff --git a/docs/.vuepress/theme/components/PageToc.vue b/docs/.vuepress/theme/components/PageToc.vue
new file mode 100644
index 0000000..096a83e
--- /dev/null
+++ b/docs/.vuepress/theme/components/PageToc.vue
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
diff --git a/docs/.vuepress/theme/components/RightDrawer.vue b/docs/.vuepress/theme/components/RightDrawer.vue
index 9d8c665..252b9a0 100644
--- a/docs/.vuepress/theme/components/RightDrawer.vue
+++ b/docs/.vuepress/theme/components/RightDrawer.vue
@@ -1,17 +1,20 @@
+
diff --git a/docs/.vuepress/theme/layouts/SpellLayout.vue b/docs/.vuepress/theme/layouts/SpellLayout.vue
index f628dfb..718407d 100644
--- a/docs/.vuepress/theme/layouts/SpellLayout.vue
+++ b/docs/.vuepress/theme/layouts/SpellLayout.vue
@@ -12,6 +12,12 @@ export default {
components: {
Spell
+ },
+
+ mounted () {
+ this.$store.commit('setHasRightDrawer', false)
+ this.$store.commit('setRightDrawer', false)
+ this.$store.commit('setInRightDrawer', null)
}
}
diff --git a/docs/.vuepress/theme/layouts/SpellsLayout.vue b/docs/.vuepress/theme/layouts/SpellsLayout.vue
index 23bce14..e6c55c5 100644
--- a/docs/.vuepress/theme/layouts/SpellsLayout.vue
+++ b/docs/.vuepress/theme/layouts/SpellsLayout.vue
@@ -13,7 +13,7 @@
>
- {{ item.title }}
+ {{ item.title }}
@@ -165,5 +165,18 @@ export default {
}
-
diff --git a/docs/.vuepress/theme/styles/_colors.scss b/docs/.vuepress/theme/styles/_colors.scss
index 4124505..a00552e 100644
--- a/docs/.vuepress/theme/styles/_colors.scss
+++ b/docs/.vuepress/theme/styles/_colors.scss
@@ -1,3 +1,3 @@
$color-hero: #563f5a;
$color-dragon: #9b1c47;
-$color-gray: #555;
+$color-gray: #6f6f6f;
diff --git a/docs/partir-a-laventure/README.md b/docs/partir-a-l-aventure/README.md
similarity index 100%
rename from docs/partir-a-laventure/README.md
rename to docs/partir-a-l-aventure/README.md