import Vue from 'vue' ; import './plugins' ; import 'prismjs' ; import 'prismjs/themes/prism.css' ; import 'vue-prism-editor/dist/VuePrismEditor.css' ; import 'vue-json-pretty/lib/styles.css' ; import './n8n-theme.scss' ; import "@fontsource/open-sans/latin-400.css" ; import "@fontsource/open-sans/latin-600.css" ; import "@fontsource/open-sans/latin-700.css" ; import App from '@/App.vue' ; import router from './router' ; import { runExternalHook } from './components/mixins/externalHooks' ; import { TelemetryPlugin } from './plugins/telemetry' ; import { I18nPlugin } from './plugins/i18n' ; import { store } from './store' ; Vue . config . productionTip = false ; router . afterEach ( ( to , from ) => { runExternalHook ( 'main.routeChange' , store , { from , to } ) ; } ) ; Vue . use ( TelemetryPlugin ) ; Vue . use ( ( vue ) => I18nPlugin ( vue , store ) ) ; new Vue ( { router , store , render : h => h ( App ) , } ) . $mount ( '#app' ) ; if ( process . env . NODE_ENV !== 'production' ) { window . onerror = ( message , source , lineno , colno , error ) => { if ( message . toString ( ) . includes ( 'ResizeObserver' ) ) { return ; } console . error ( 'error caught in main.ts' ) ; console . error ( message ) ; console . error ( error ) ; } ; }