2023-12-28 00:49:58 -08:00
|
|
|
import type { Component, Plugin } from 'vue';
|
2024-09-18 00:19:33 -07:00
|
|
|
|
2023-12-28 00:49:58 -08:00
|
|
|
import * as components from './components';
|
2024-09-17 05:00:22 -07:00
|
|
|
import * as directives from './directives';
|
2023-04-21 06:59:04 -07:00
|
|
|
|
2023-11-23 03:22:47 -08:00
|
|
|
export interface N8nPluginOptions {}
|
|
|
|
|
|
|
|
export const N8nPlugin: Plugin<N8nPluginOptions> = {
|
2023-04-21 06:59:04 -07:00
|
|
|
install: (app) => {
|
2023-12-28 00:49:58 -08:00
|
|
|
for (const [name, component] of Object.entries(components)) {
|
|
|
|
app.component(name, component as unknown as Component);
|
|
|
|
}
|
2024-09-17 05:00:22 -07:00
|
|
|
|
|
|
|
for (const [name, directive] of Object.entries(directives)) {
|
|
|
|
app.directive(name, directive);
|
|
|
|
}
|
2023-04-21 06:59:04 -07:00
|
|
|
},
|
|
|
|
};
|