771d42a7202d77cdc0f783ec4fbc2b59d09cbde7
1 import { createApp
} from
'vue'
2 import type { ConfigurationData
} from
'./types'
3 import router from
'@/router'
4 import { UIClient
} from
'@/composables'
5 import App from
'@/App.vue'
7 const initializeApp
= async (config
: ConfigurationData
) => {
8 const app
= createApp(App
)
9 app
.config
.errorHandler
= (error
, instance
, info
) => {
10 console
.error('Error:', error
)
11 console
.info('Vue instance:', instance
)
12 console
.info('Error info:', info
)
13 // TODO: Add code for UI notifications or other error handling logic
15 app
.config
.globalProperties
.$UIClient
= UIClient
.getInstance(config
)
16 app
.use(router
).mount('#app')
20 .then(response
=> response
.json())
22 console
.error('Error at fetching app configuration:', error
)
29 console
.error('Error at initializing app:', error
)