MCPcopy Create free account
hub / github.com/dfinity/orbit / initializeApp

Function initializeApp

apps/wallet/src/App.ts:13–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11import App from './App.vue';
12
13const initializeApp = async (): Promise<void> => {
14 const app = createApp(App);
15
16 app.config.errorHandler = (err, instance, info) => {
17 logger.error(`Global VueError`, {
18 err,
19 instance,
20 info,
21 });
22 };
23
24 await icAgent.init();
25
26 app.use(pinia);
27 app.use(serviceManager.withAgent(icAgent.get()));
28 app.use(vuetify(serviceManager.services.theme.resolveTheme()));
29 app.use(i18n);
30 app.use(router);
31 app.use(navigation.withRoutes(router.getRoutes()));
32
33 app.mount('#app');
34};
35
36initializeApp().catch(err => {
37 logger.error(`Failed to initialize app`, { err });

Callers 1

App.tsFile · 0.85

Calls 6

vuetifyFunction · 0.90
initMethod · 0.80
withAgentMethod · 0.80
resolveThemeMethod · 0.80
withRoutesMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected