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:
@@ -1,3 +0,0 @@
|
||||
import Vue from 'vue';
|
||||
|
||||
export const codeNodeEditorEventBus = new Vue();
|
||||
3
packages/editor-ui/src/event-bus/code-node-editor.ts
Normal file
3
packages/editor-ui/src/event-bus/code-node-editor.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { createEventBus } from '@/event-bus';
|
||||
|
||||
export const codeNodeEditorEventBus = createEventBus();
|
||||
@@ -1,3 +0,0 @@
|
||||
import Vue from 'vue';
|
||||
|
||||
export const dataPinningEventBus = new Vue();
|
||||
3
packages/editor-ui/src/event-bus/data-pinning.ts
Normal file
3
packages/editor-ui/src/event-bus/data-pinning.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { createEventBus } from '@/event-bus';
|
||||
|
||||
export const dataPinningEventBus = createEventBus();
|
||||
@@ -1,3 +0,0 @@
|
||||
import Vue from 'vue';
|
||||
|
||||
export const htmlEditorEventBus = new Vue();
|
||||
3
packages/editor-ui/src/event-bus/html-editor.ts
Normal file
3
packages/editor-ui/src/event-bus/html-editor.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { createEventBus } from '@/event-bus';
|
||||
|
||||
export const htmlEditorEventBus = createEventBus();
|
||||
5
packages/editor-ui/src/event-bus/index.ts
Normal file
5
packages/editor-ui/src/event-bus/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export * from 'n8n-design-system/utils/event-bus';
|
||||
export * from './code-node-editor';
|
||||
export * from './data-pinning';
|
||||
export * from './html-editor';
|
||||
export * from './node-view';
|
||||
@@ -1,3 +0,0 @@
|
||||
import Vue from 'vue';
|
||||
|
||||
export const nodeViewEventBus = new Vue();
|
||||
3
packages/editor-ui/src/event-bus/node-view.ts
Normal file
3
packages/editor-ui/src/event-bus/node-view.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { createEventBus } from '@/event-bus';
|
||||
|
||||
export const nodeViewEventBus = createEventBus();
|
||||
Reference in New Issue
Block a user