mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-07 02:47:32 -08:00
19 lines
486 B
TypeScript
19 lines
486 B
TypeScript
import type { Component, Plugin } from 'vue';
|
|
|
|
import * as components from './components';
|
|
import * as directives from './directives';
|
|
|
|
export interface N8nPluginOptions {}
|
|
|
|
export const N8nPlugin: Plugin<N8nPluginOptions> = {
|
|
install: (app) => {
|
|
for (const [name, component] of Object.entries(components)) {
|
|
app.component(name, component as unknown as Component);
|
|
}
|
|
|
|
for (const [name, directive] of Object.entries(directives)) {
|
|
app.directive(name, directive);
|
|
}
|
|
},
|
|
};
|