<template>
  <router-view />
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { useStore } from 'src/store'

export default defineComponent({
  name: 'App',
  setup(){
    const $store = useStore()
    void (async () => $store.dispatch('simulationSetup/loadScattnlay'))()
    void $store.dispatch('guiRuntime/activateMaterial', 'main/Ag/McPeak.yml')
    void $store.dispatch('guiRuntime/activateMaterial', 'main/Au/McPeak.yml')
    void $store.dispatch('guiRuntime/activateMaterial', 'main/Al/McPeak.yml')
    void $store.dispatch('guiRuntime/activateMaterial', 'main/Cu/McPeak.yml')
    void $store.dispatch('guiRuntime/activateMaterial', 'main/Si/Green-2008.yml')
    void $store.dispatch('guiRuntime/activateMaterial', 'main/SiO2/Lemarchand.yml')
    void $store.dispatch('guiRuntime/activateMaterial', 'main/TiO2/Siefke.yml')
    void $store.dispatch('guiRuntime/activateMaterial', 'main/Pt/Werner.yml')
  }
})
</script>
