Files
Automata/packages/editor-ui/src/plugins/components.ts
Alex Grozav 67a88914f2 feat(editor): Add routing middleware, permission checks, RBAC store, RBAC component (#7702)
Github issue / Community forum post (link here to close automatically):

---------

Co-authored-by: Csaba Tuncsik <csaba@n8n.io>
2023-11-23 13:22:47 +02:00

32 lines
1.0 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';
export const GlobalComponentsPlugin: Plugin<{}> = {
install(app) {
const messageService = useMessage();
app.component('enterprise-edition', EnterpriseEdition);
app.component('RBAC', RBAC);
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;
},
};