mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
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';
|
|
import RBAC from '@/components/RBAC.vue';
|
|
import ParameterInputList from '@/components/ParameterInputList.vue';
|
|
|
|
export const GlobalComponentsPlugin: Plugin<{}> = {
|
|
install(app) {
|
|
const messageService = useMessage();
|
|
|
|
app.component('EnterpriseEdition', EnterpriseEdition);
|
|
app.component('RBAC', RBAC);
|
|
app.component('ParameterInputList', ParameterInputList);
|
|
|
|
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;
|
|
},
|
|
};
|