From 72a29eaaf091bfbffcd6d0b7804a4775a7712a1a Mon Sep 17 00:00:00 2001 From: Maxime Moraine Date: Fri, 15 May 2020 15:48:51 +0200 Subject: [PATCH] * Ajout de raccourcis sur la page d'accueil * Ajout de feedback au changement de page --- docs/.vuepress/config.js | 3 + docs/.vuepress/store/index.js | 10 ++- docs/.vuepress/theme/components/NavDrawer.vue | 59 +++++++++++++- docs/.vuepress/theme/components/Navbar.vue | 6 ++ .../global-components/MyMagicItemsButton.vue | 12 +++ .../global-components/MyMonstersButton.vue | 12 +++ .../global-components/MySpellsButton.vue | 12 +++ docs/.vuepress/theme/layouts/GlobalLayout.vue | 30 +++---- .../theme/layouts/MagicItemLayout.vue | 4 +- .../theme/layouts/MagicItemsLayout.vue | 39 +++++++++- .../.vuepress/theme/layouts/MonsterLayout.vue | 4 +- .../theme/layouts/MonstersLayout.vue | 65 +++++++++++++++- docs/.vuepress/theme/layouts/SpellLayout.vue | 4 +- docs/.vuepress/theme/layouts/SpellsLayout.vue | 78 ++++++++++++++++++- docs/README.md | 25 +++--- docs/creation-du-personnage/README.md | 4 +- 16 files changed, 325 insertions(+), 42 deletions(-) create mode 100644 docs/.vuepress/theme/global-components/MyMagicItemsButton.vue create mode 100644 docs/.vuepress/theme/global-components/MyMonstersButton.vue create mode 100644 docs/.vuepress/theme/global-components/MySpellsButton.vue diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 1723f59..94239b5 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -191,6 +191,9 @@ module.exports = { domain: 'https://staging.heros-et-dragons.fr', repository: 'https://github.com/em-squared/heros-et-dragons-drs', kofi: 'https://ko-fi.com/S6S410PB8', + patreon: 'https://www.patreon.com/em_squared', + forum: 'https://www.black-book-editions.fr/forums.php?board_id=115', + discord: 'https://discord.gg/mp6ECCs', primaryColor: '#563f5a', // Hero accentColor: '#9b1c47', // Dragon searchPlaceholder: 'Recherche', diff --git a/docs/.vuepress/store/index.js b/docs/.vuepress/store/index.js index 902069a..8407af8 100644 --- a/docs/.vuepress/store/index.js +++ b/docs/.vuepress/store/index.js @@ -24,13 +24,14 @@ export default new Vuex.Store({ }, state: { - loading: false, + loading: true, drawer: false, rightDrawer: false, hasRightDrawer: false, inRightDrawer: null, isThemeDark: false, isOpenAboutDialog: false, + isOpenSupportDialog: false, }, getters: { @@ -41,6 +42,7 @@ export default new Vuex.Store({ inRightDrawer: state => state.inRightDrawer, isThemeDark: state => state.isThemeDark, isOpenAboutDialog: state => state.isOpenAboutDialog, + isOpenSupportDialog: state => state.isOpenSupportDialog, }, actions: { @@ -65,6 +67,9 @@ export default new Vuex.Store({ isOpenAboutDialog: ({ commit }, payload) => { commit('setIsOpenAboutDialog', payload) }, + isOpenSupportDialog: ({ commit }, payload) => { + commit('setIsOpenSupportDialog', payload) + }, }, mutations: { @@ -91,5 +96,8 @@ export default new Vuex.Store({ setIsOpenAboutDialog: (state, payload) => { state.isOpenAboutDialog = payload }, + setIsOpenSupportDialog: (state, payload) => { + state.isOpenSupportDialog = payload + }, }, }) diff --git a/docs/.vuepress/theme/components/NavDrawer.vue b/docs/.vuepress/theme/components/NavDrawer.vue index 7383a2a..66cc950 100644 --- a/docs/.vuepress/theme/components/NavDrawer.vue +++ b/docs/.vuepress/theme/components/NavDrawer.vue @@ -77,6 +77,26 @@ + + + mdi-forum + + + + Forum + + + + + + mdi-discord + + + + Discord + + + mdi-github @@ -87,7 +107,7 @@ - + mdi-glass-mug-variant @@ -132,6 +152,14 @@

Héros & Dragons est un jeu de rôle basé sur les mécaniques de l’OGL5 et développé par les talents de la rédaction de Casus Belli, le magazine de référence des jeux de rôle.

Les textes de cette documentation appartiennent à Black Book Éditions.

Casus Belli et Black Book Éditions sont des marques déposées par Black Book Éditions. Tous droits réservés.

+ + + mdi-patreonPatreon + + + mdi-coffeeKo-fi + + @@ -139,6 +167,29 @@ + + + + Encouragez le développement + + +

Vous souhaitez participer aux frais d'hébergement ? Ou vous voulez encourager le développement de la plateforme ?

+

Votre participation sera appréciée !

+ + + mdi-patreonPatreon + + + mdi-coffeeKo-fi + + +
+ + + Fermer + +
+
@@ -163,6 +214,9 @@ export default { }, isOpenAboutDialog () { return this.$store.state.isOpenAboutDialog + }, + isOpenSupportDialog () { + return this.$store.state.isOpenSupportDialog } }, @@ -207,6 +261,9 @@ export default { toggleAboutDialog () { this.$store.commit('setIsOpenAboutDialog', !this.$store.state.isOpenAboutDialog) }, + toggleSupportDialog () { + this.$store.commit('setIsOpenSupportDialog', !this.$store.state.isOpenSupportDialog) + }, setIsThemeDark () { this.$vuetify.theme.dark = !this.$vuetify.theme.dark this.$store.commit('setIsThemeDark', this.$vuetify.theme.dark) diff --git a/docs/.vuepress/theme/components/Navbar.vue b/docs/.vuepress/theme/components/Navbar.vue index 3c8793e..d2cda48 100644 --- a/docs/.vuepress/theme/components/Navbar.vue +++ b/docs/.vuepress/theme/components/Navbar.vue @@ -12,6 +12,9 @@ mdi-information + + mdi-glass-mug-variant + {{ rightDrawerIcon }} @@ -71,6 +74,9 @@ export default { toggleAboutDialog () { this.$store.commit('setIsOpenAboutDialog', !this.$store.state.isOpenAboutDialog) }, + toggleSupportDialog () { + this.$store.commit('setIsOpenSupportDialog', !this.$store.state.isOpenSupportDialog) + }, setIsThemeDark () { this.$vuetify.theme.dark = !this.$vuetify.theme.dark this.$store.commit('setIsThemeDark', this.$vuetify.theme.dark) diff --git a/docs/.vuepress/theme/global-components/MyMagicItemsButton.vue b/docs/.vuepress/theme/global-components/MyMagicItemsButton.vue new file mode 100644 index 0000000..ea15ba9 --- /dev/null +++ b/docs/.vuepress/theme/global-components/MyMagicItemsButton.vue @@ -0,0 +1,12 @@ + + + + + diff --git a/docs/.vuepress/theme/global-components/MyMonstersButton.vue b/docs/.vuepress/theme/global-components/MyMonstersButton.vue new file mode 100644 index 0000000..ca5999a --- /dev/null +++ b/docs/.vuepress/theme/global-components/MyMonstersButton.vue @@ -0,0 +1,12 @@ + + + + + diff --git a/docs/.vuepress/theme/global-components/MySpellsButton.vue b/docs/.vuepress/theme/global-components/MySpellsButton.vue new file mode 100644 index 0000000..e6419b4 --- /dev/null +++ b/docs/.vuepress/theme/global-components/MySpellsButton.vue @@ -0,0 +1,12 @@ + + + + + diff --git a/docs/.vuepress/theme/layouts/GlobalLayout.vue b/docs/.vuepress/theme/layouts/GlobalLayout.vue index 31eaf29..5439fa7 100644 --- a/docs/.vuepress/theme/layouts/GlobalLayout.vue +++ b/docs/.vuepress/theme/layouts/GlobalLayout.vue @@ -1,6 +1,10 @@