| 
									
										
										
										
											2020-03-28 10:42:54 +01:00
										 |  |  | import Vuex from 'vuex' | 
					
						
							|  |  |  | import store from '../store' | 
					
						
							| 
									
										
										
										
											2020-04-17 17:04:03 +02:00
										 |  |  | import 'vuetify/dist/vuetify.min.css' | 
					
						
							| 
									
										
										
										
											2020-03-28 10:42:54 +01:00
										 |  |  | import '@mdi/font/css/materialdesignicons.css' | 
					
						
							|  |  |  | import Vuetify from 'vuetify' | 
					
						
							| 
									
										
										
										
											2020-04-08 16:41:31 +02:00
										 |  |  | import fr from 'vuetify/es5/locale/fr' | 
					
						
							| 
									
										
										
										
											2020-03-28 10:42:54 +01:00
										 |  |  | import colors from 'vuetify/es5/util/colors' | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-04-22 11:17:05 +02:00
										 |  |  | // Stockage des donneés utilisateur dans le navigateur
 | 
					
						
							|  |  |  | store.subscribe((mutation, state) => { | 
					
						
							|  |  |  |   if (mutation.type.includes('mySpells')) { | 
					
						
							|  |  |  |     localStorage.setItem('mySpells', JSON.stringify(state.mySpells)) | 
					
						
							|  |  |  |   } else if (mutation.type.includes('myMonsters')) { | 
					
						
							|  |  |  |     localStorage.setItem('myMonsters', JSON.stringify(state.myMonsters)) | 
					
						
							|  |  |  |   } else if (mutation.type.includes('myMagicItems')) { | 
					
						
							|  |  |  |     localStorage.setItem('myMagicItems', JSON.stringify(state.myMagicItems)) | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | }) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-28 10:42:54 +01:00
										 |  |  | export default ({ | 
					
						
							|  |  |  |   Vue, | 
					
						
							|  |  |  |   options, | 
					
						
							|  |  |  |   router, | 
					
						
							|  |  |  |   siteData | 
					
						
							|  |  |  | }) => { | 
					
						
							| 
									
										
										
										
											2020-03-30 14:26:19 +02:00
										 |  |  |   require('./styles/main.scss') | 
					
						
							| 
									
										
										
										
											2020-03-28 10:42:54 +01:00
										 |  |  |   Vue.use(Vuex) | 
					
						
							| 
									
										
										
										
											2020-04-22 11:17:05 +02:00
										 |  |  |   Vue.mixin({ | 
					
						
							|  |  |  |     store: store | 
					
						
							|  |  |  |   }) | 
					
						
							| 
									
										
										
										
											2020-03-28 10:42:54 +01:00
										 |  |  |   Vue.use(Vuetify) | 
					
						
							|  |  |  |   options.vuetify = new Vuetify({ | 
					
						
							|  |  |  |     theme: { | 
					
						
							| 
									
										
										
										
											2020-04-05 14:38:20 +02:00
										 |  |  |       options: { | 
					
						
							|  |  |  |         customProperties: true, | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       themes: { | 
					
						
							|  |  |  |         light: { | 
					
						
							| 
									
										
										
										
											2021-02-09 17:49:44 +01:00
										 |  |  |           primary: '#4c6477', // Dragons (Bleu)
 | 
					
						
							|  |  |  |           navbar: '#435a3f', // Héros (Vert)
 | 
					
						
							| 
									
										
										
										
											2021-02-06 09:23:10 +01:00
										 |  |  |           accent: '#435a3f', // Héros
 | 
					
						
							| 
									
										
										
										
											2021-02-15 12:17:44 +01:00
										 |  |  |           gold: "#bab468", | 
					
						
							| 
									
										
										
										
											2020-04-05 14:38:20 +02:00
										 |  |  |         }, | 
					
						
							|  |  |  |         dark: { | 
					
						
							| 
									
										
										
										
											2021-02-09 17:49:44 +01:00
										 |  |  |           primary: '#6c8599', // Dragons (Bleu)
 | 
					
						
							|  |  |  |           navbar: '#435a3f', // Héros (Vert)
 | 
					
						
							|  |  |  |           accent: '#6c8599', // Dragons
 | 
					
						
							| 
									
										
										
										
											2021-02-15 12:17:44 +01:00
										 |  |  |           gold: "#bab468", | 
					
						
							| 
									
										
										
										
											2020-04-05 14:38:20 +02:00
										 |  |  |         } | 
					
						
							| 
									
										
										
										
											2020-03-30 14:26:19 +02:00
										 |  |  |       } | 
					
						
							| 
									
										
										
										
											2020-04-05 14:38:20 +02:00
										 |  |  |     }, | 
					
						
							|  |  |  |     lang: { | 
					
						
							|  |  |  |       locales: { fr }, | 
					
						
							|  |  |  |       current: 'fr', | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2020-03-28 10:42:54 +01:00
										 |  |  |   }) | 
					
						
							|  |  |  | } |