mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-06 10:27:28 -08:00
62c096710f
- Fix autofixable violations - Remove unused directives - Allow for PascalCased variables - needed for dynamically imported or assigned classes, decorators, routers, etc.
30 lines
963 B
TypeScript
30 lines
963 B
TypeScript
import type { Plugin } from 'vue';
|
|
|
|
import 'regenerator-runtime/runtime';
|
|
|
|
import ElementPlus, { ElLoading, ElMessageBox } from 'element-plus';
|
|
import { N8nPlugin } from 'n8n-design-system';
|
|
import { useMessage } from '@/composables/useMessage';
|
|
import EnterpriseEdition from '@/components/EnterpriseEdition.ee.vue';
|
|
|
|
export const GlobalComponentsPlugin: Plugin<{}> = {
|
|
install(app) {
|
|
const messageService = useMessage();
|
|
|
|
app.component('enterprise-edition', EnterpriseEdition);
|
|
|
|
app.use(ElementPlus);
|
|
app.use(N8nPlugin);
|
|
|
|
// app.use(ElLoading);
|
|
// app.use(ElNotification);
|
|
|
|
app.config.globalProperties.$loading = ElLoading.service;
|
|
app.config.globalProperties.$msgbox = ElMessageBox;
|
|
app.config.globalProperties.$alert = messageService.alert;
|
|
app.config.globalProperties.$confirm = messageService.confirm;
|
|
app.config.globalProperties.$prompt = messageService.prompt;
|
|
app.config.globalProperties.$message = messageService.message;
|
|
},
|
|
};
|