mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 22:19:41 -08:00
766501723b
* WIP: Nodeview * Replace types * Finish N8nPlus endpoint type * Working on connector * Apply prettier * Fixed prettier issues * Debugging rendering * Fixed connectorrs position recalc * Fix snapping and output labels, WIP dragging * Fix N8nPlus endpoint rendering issues * Cleanup * Fix undo/redo and canvas add button position, cleanup * Cleanup * Revert accidental CLI changes * Fix pnpm-lock * Address bugs that came up during review * Reset CLI package from master * Various fixes * Fix run items label toggling * Linter fixes * Fix stalk size for larger run items label * Remove comment * Correctly reset workspace after renaming the node * Fix canvas e2e tests * Fix undo/redo tests * Fix stalk positioning and triggering of endpoint overlays * Repaint connections on pin removal * Limit repaintings * Unbind jsPlumb events on deactivation * Fix jsPlumb managment of Sticky and minor memort managment improvments * Address rest of PR points * Lint fix * Copy patches folder to docker * Fix e2e tests * set allowNonAppliedPatches to allow build * fix(editor): Handling router errors when navigation is canceled by user (#5271) * 🔨 Handling router errors in main sidebar, removing unused code * 🔨 Handling router errors in modals * ci(core): Fix docker nightly/custom image build (no-changelog) (#5284) * ci(core): Copy patches dir to Docker (no-changelog) * Update patch * Update package-lock * reapply the patch * skip patchedDependencies after the frontend is built --------- Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in> * Fix connector hover state on success * Remove allowNonAppliedPatches from package.json --------- Co-authored-by: Milorad FIlipović <milorad@n8n.io> Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
62 lines
1.8 KiB
TypeScript
62 lines
1.8 KiB
TypeScript
// The Vue build version to load with the `import` command
|
|
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
|
|
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 '@jsplumb/browser-ui/css/jsplumbtoolkit.css';
|
|
import 'n8n-design-system/css/index.scss';
|
|
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 '@/mixins/externalHooks';
|
|
import { TelemetryPlugin } from './plugins/telemetry';
|
|
import { I18nPlugin, i18nInstance } from './plugins/i18n';
|
|
|
|
import { createPinia, PiniaVuePlugin } from 'pinia';
|
|
|
|
import { useWebhooksStore } from './stores/webhooks';
|
|
|
|
Vue.config.productionTip = false;
|
|
|
|
Vue.use(TelemetryPlugin);
|
|
Vue.use((vue) => I18nPlugin(vue));
|
|
Vue.use(PiniaVuePlugin);
|
|
|
|
const pinia = createPinia();
|
|
|
|
new Vue({
|
|
i18n: i18nInstance,
|
|
router,
|
|
pinia,
|
|
render: (h) => h(App),
|
|
}).$mount('#app');
|
|
|
|
router.afterEach((to, from) => {
|
|
runExternalHook('main.routeChange', useWebhooksStore(), { from, to });
|
|
});
|
|
|
|
if (!import.meta.env.PROD) {
|
|
// Make sure that we get all error messages properly displayed
|
|
// as long as we are not in production mode
|
|
window.onerror = (message, source, lineno, colno, error) => {
|
|
if (message.toString().includes('ResizeObserver')) {
|
|
// That error can apparently be ignored and can probably
|
|
// not do anything about it anyway
|
|
return;
|
|
}
|
|
console.error('error caught in main.ts'); // eslint-disable-line no-console
|
|
console.error(message); // eslint-disable-line no-console
|
|
console.error(error); // eslint-disable-line no-console
|
|
};
|
|
}
|