Feat(front): [WIP] start migration to pinia and uno-css
Co-Authored-By: ArneBo <arne@ecobasa.org> Co-Authored-By: Flupsi <upsiflu@gmail.com> Co-Authored-By: jon r <jon@allmende.io>
This commit is contained in:
		
							parent
							
								
									f7c427fd7f
								
							
						
					
					
						commit
						e1af41e212
					
				| 
						 | 
				
			
			@ -1,9 +1,12 @@
 | 
			
		|||
import type { InitModule, InitModuleContext } from '~/types'
 | 
			
		||||
 | 
			
		||||
import VueDOMPurifyHTML from 'vue-dompurify-html'
 | 
			
		||||
 | 
			
		||||
import store, { key } from '~/store'
 | 
			
		||||
import router from '~/router'
 | 
			
		||||
 | 
			
		||||
import { createApp, defineAsyncComponent, h } from 'vue'
 | 
			
		||||
import { createPinia } from 'pinia'
 | 
			
		||||
 | 
			
		||||
import useLogger from '~/composables/useLogger'
 | 
			
		||||
import useTheme from '~/composables/useTheme'
 | 
			
		||||
| 
						 | 
				
			
			@ -12,6 +15,8 @@ import '~/style/_main.scss'
 | 
			
		|||
 | 
			
		||||
import '~/api'
 | 
			
		||||
 | 
			
		||||
import 'virtual:uno.css'
 | 
			
		||||
 | 
			
		||||
// NOTE: Set the theme as fast as possible
 | 
			
		||||
useTheme()
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -35,8 +40,12 @@ const app = createApp({
 | 
			
		|||
  }
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
const pinia = createPinia()
 | 
			
		||||
 | 
			
		||||
app.use(router)
 | 
			
		||||
app.use(pinia)
 | 
			
		||||
app.use(store, key)
 | 
			
		||||
app.use(VueDOMPurifyHTML)
 | 
			
		||||
 | 
			
		||||
const modules: Record<string | 'axios', { install?: InitModule }> = import.meta.glob('./init/*.ts', { eager: true })
 | 
			
		||||
const moduleContext: InitModuleContext = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue