feat: Replace new Vue() with custom event bus (no-changelog) (#5780)

* refactor: replace new Vue() with custom event bus (no-changelog)

* fix: export types from design system main

* fix: update component types

* fix: update form inputs event bus
This commit is contained in:
Alex Grozav
2023-04-06 16:32:45 +03:00
committed by GitHub
parent 89c12fc1a7
commit 5651a52364
67 changed files with 347 additions and 210 deletions

View File

@@ -32,7 +32,7 @@ import {
import { n8nCompletionSources } from '@/plugins/codemirror/completions/addCompletions';
import { expressionInputHandler } from '@/plugins/codemirror/inputHandlers/expression.inputHandler';
import { highlighter } from '@/plugins/codemirror/resolvableHighlighter';
import { htmlEditorEventBus } from '@/event-bus/html-editor-event-bus';
import { htmlEditorEventBus } from '@/event-bus';
import { expressionManager } from '@/mixins/expressionManager';
import { theme } from './theme';
import { nonTakenRanges } from './utils';
@@ -256,7 +256,7 @@ export default mixins(expressionManager).extend({
},
mounted() {
htmlEditorEventBus.$on('format-html', this.format);
htmlEditorEventBus.on('format-html', this.format);
let doc = this.html;
@@ -272,7 +272,7 @@ export default mixins(expressionManager).extend({
},
destroyed() {
htmlEditorEventBus.$off('format-html', this.format);
htmlEditorEventBus.off('format-html', this.format);
},
});
</script>