mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-28 07:17:04 +02:00
fix(editor): Frontend housekeeping (#20292)
This commit is contained in:
parent
0e10ea564b
commit
0bf3151f08
|
|
@ -3,6 +3,7 @@ import { render, type RenderOptions as TestingLibraryRenderOptions } from '@test
|
|||
import { i18nInstance } from '@n8n/i18n';
|
||||
import { GlobalDirectivesPlugin } from '@/plugins/directives';
|
||||
import { FontAwesomePlugin } from '@/plugins/icons';
|
||||
import { N8nPlugin } from '@n8n/design-system';
|
||||
import type { Pinia } from 'pinia';
|
||||
import { PiniaVuePlugin } from 'pinia';
|
||||
import type { Telemetry } from '@/plugins/telemetry';
|
||||
|
|
@ -36,6 +37,7 @@ const defaultOptions = {
|
|||
i18nInstance,
|
||||
PiniaVuePlugin,
|
||||
FontAwesomePlugin,
|
||||
N8nPlugin,
|
||||
GlobalDirectivesPlugin,
|
||||
TelemetryPlugin,
|
||||
],
|
||||
|
|
|
|||
|
|
@ -5,20 +5,14 @@ import 'regenerator-runtime/runtime';
|
|||
import { ElLoading, ElMessageBox } from 'element-plus';
|
||||
import { N8nPlugin } from '@n8n/design-system';
|
||||
import { useMessage } from '@/composables/useMessage';
|
||||
import EnterpriseEdition from '@/components/EnterpriseEdition.ee.vue';
|
||||
import ParameterInputList from '@/components/ParameterInputList.vue';
|
||||
|
||||
export const GlobalComponentsPlugin: Plugin = {
|
||||
install(app) {
|
||||
const messageService = useMessage();
|
||||
|
||||
app.component('EnterpriseEdition', EnterpriseEdition);
|
||||
app.component('ParameterInputList', ParameterInputList);
|
||||
|
||||
app.use(N8nPlugin, {});
|
||||
|
||||
// app.use(ElLoading);
|
||||
// app.use(ElNotification);
|
||||
app.use(ElLoading);
|
||||
|
||||
app.config.globalProperties.$loading = ElLoading.service;
|
||||
app.config.globalProperties.$msgbox = ElMessageBox;
|
||||
|
|
|
|||
|
|
@ -1,11 +1,8 @@
|
|||
import type { Plugin } from 'vue';
|
||||
import VueTouchEvents from 'vue3-touch-events';
|
||||
import { n8nTruncate, n8nHtml } from '@n8n/design-system/directives';
|
||||
|
||||
export const GlobalDirectivesPlugin: Plugin = {
|
||||
install(app) {
|
||||
app.use(VueTouchEvents);
|
||||
app.directive('n8nTruncate', n8nTruncate);
|
||||
app.directive('n8nHtml', n8nHtml);
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user