mirror of
				https://github.com/em-squared/5e-drs.git
				synced 2025-10-31 13:34:21 +00:00 
			
		
		
		
	you shall pass
This commit is contained in:
		
							parent
							
								
									13ae03f435
								
							
						
					
					
						commit
						001a5b8770
					
				
					 2 changed files with 1 additions and 26 deletions
				
			
		|  | @ -124,6 +124,7 @@ module.exports = { | |||
|     //   }
 | ||||
|     // ]
 | ||||
|   ], | ||||
|   dest: process.env.VUEPRESS_DEST, | ||||
|   extendPageData ($page) { | ||||
|     $page.rawContent = ($page._strippedContent) | ||||
|   }, | ||||
|  |  | |||
|  | @ -16,20 +16,6 @@ | |||
|       </v-container> | ||||
|     </v-content> | ||||
| 
 | ||||
|     <v-dialog v-model="shallNotPass" persistent max-width="600"> | ||||
|       <v-card> | ||||
|         <v-card-title class="headline">Meneur de jeu</v-card-title> | ||||
|         <v-card-text> | ||||
|           <p>Tu te trouves seul dans l'obscurité du repaire du dragon noir. Tu serres ton bâton de magicien entre tes mains et t'apprêtes à réagir à la moindre menace.</p> | ||||
|           <p>Que fais-tu ?</p> | ||||
|           <v-text-field label="Je veux..." v-model="iWantTo"></v-text-field> | ||||
|         </v-card-text> | ||||
|         <v-card-actions> | ||||
|           <v-btn color="primary" text @click="setShallPass">Valider</v-btn> | ||||
|         </v-card-actions> | ||||
|       </v-card> | ||||
|     </v-dialog> | ||||
| 
 | ||||
|     <v-bottom-sheet v-model="cookieConsentDialog" persistent> | ||||
|       <v-sheet class="text-center" tile> | ||||
|         <div class="py-3">Ce site utilise des cookies pour son bon fonctionnement et pour l'analyse de la fréquentation. Sans ces cookies, vous ne pourriez pas écrire vos sorts dans votre grimoire ou recruter tous ces monstres pour garnir votre repaire maléfique.</div> | ||||
|  | @ -61,8 +47,6 @@ export default { | |||
| 
 | ||||
|   data () { | ||||
|     return { | ||||
|       shallNotPass: true, | ||||
|       iWantTo: null, | ||||
|       cookieConsentDialog: true, | ||||
|     } | ||||
|   }, | ||||
|  | @ -85,10 +69,6 @@ export default { | |||
| 
 | ||||
|   mounted () { | ||||
|     this.$store.commit('setDrawer', this.$vuetify.breakpoint.lgAndUp) | ||||
|     const AUTHORIZED = Cookies.get('shallpass') | ||||
|     if (AUTHORIZED) { | ||||
|       this.shallNotPass = false | ||||
|     } | ||||
| 
 | ||||
|     // Cookie consent | ||||
|     const COOKIECONSENT = Cookies.get('heros-et-dragons-cookies') | ||||
|  | @ -126,12 +106,6 @@ export default { | |||
|   }, | ||||
| 
 | ||||
|   methods: { | ||||
|     setShallPass () { | ||||
|       if (this.iWantTo == 'Je veux lancer un projectile magique !') { | ||||
|         Cookies.set('shallpass', true) | ||||
|         this.shallNotPass = false | ||||
|       } | ||||
|     }, | ||||
|     setCookieConsent () { | ||||
|       Cookies.set('heros-et-dragons-cookies', 'compris') | ||||
|       this.cookieConsentDialog = false | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Maxime Moraine
						Maxime Moraine