| 
									
										
										
										
											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-04-22 11:17:05 +02:00
										 |  |  | import VueMasonry from 'vue-masonry-css' | 
					
						
							| 
									
										
										
										
											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.use(VueMasonry) | 
					
						
							|  |  |  |   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: { | 
					
						
							|  |  |  |           primary: '#9b1c47', // Dragons
 | 
					
						
							|  |  |  |           navbar: '#563f5a', // Héros
 | 
					
						
							|  |  |  |           accent: '#563f5a', // Héros
 | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         dark: { | 
					
						
							|  |  |  |           primary: '#c38dcc', // Héros
 | 
					
						
							|  |  |  |           navbar: '#563f5a', // Héros
 | 
					
						
							|  |  |  |           accent: '#e02867', // Dragons
 | 
					
						
							|  |  |  |         } | 
					
						
							| 
									
										
										
										
											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
										 |  |  |   }) | 
					
						
							|  |  |  | } |