mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(editor): Apply Prettier (no-changelog) (#4920)
* ⚡ Adjust `format` script * 🔥 Remove exemption for `editor-ui` * 🎨 Prettify * 👕 Fix lint
This commit is contained in:
@@ -1,19 +1,17 @@
|
||||
// @ts-nocheck
|
||||
|
||||
import Vue from "vue";
|
||||
import Vue from 'vue';
|
||||
import Fragment from 'vue-fragment';
|
||||
|
||||
import "regenerator-runtime/runtime";
|
||||
import 'regenerator-runtime/runtime';
|
||||
|
||||
import VueAgile from 'vue-agile';
|
||||
|
||||
import ElementUI from 'element-ui';
|
||||
import { Loading, MessageBox, Message, Notification } from 'element-ui';
|
||||
import {
|
||||
designSystemComponents,
|
||||
} from 'n8n-design-system';
|
||||
import { ElMessageBoxOptions } from "element-ui/types/message-box";
|
||||
import EnterpriseEdition from "@/components/EnterpriseEdition.ee.vue";
|
||||
import { designSystemComponents } from 'n8n-design-system';
|
||||
import { ElMessageBoxOptions } from 'element-ui/types/message-box';
|
||||
import EnterpriseEdition from '@/components/EnterpriseEdition.ee.vue';
|
||||
|
||||
Vue.use(Fragment.Plugin);
|
||||
|
||||
@@ -28,7 +26,11 @@ Vue.use(Loading.directive);
|
||||
Vue.prototype.$loading = Loading.service;
|
||||
Vue.prototype.$msgbox = MessageBox;
|
||||
|
||||
Vue.prototype.$alert = async (message: string, configOrTitle: string | ElMessageBoxOptions | undefined, config: ElMessageBoxOptions | undefined) => {
|
||||
Vue.prototype.$alert = async (
|
||||
message: string,
|
||||
configOrTitle: string | ElMessageBoxOptions | undefined,
|
||||
config: ElMessageBoxOptions | undefined,
|
||||
) => {
|
||||
let temp = config || (typeof configOrTitle === 'object' ? configOrTitle : {});
|
||||
temp = {
|
||||
...temp,
|
||||
@@ -42,7 +44,11 @@ Vue.prototype.$alert = async (message: string, configOrTitle: string | ElMessage
|
||||
return await MessageBox.alert(message, temp);
|
||||
};
|
||||
|
||||
Vue.prototype.$confirm = async (message: string, configOrTitle: string | ElMessageBoxOptions | undefined, config: ElMessageBoxOptions | undefined) => {
|
||||
Vue.prototype.$confirm = async (
|
||||
message: string,
|
||||
configOrTitle: string | ElMessageBoxOptions | undefined,
|
||||
config: ElMessageBoxOptions | undefined,
|
||||
) => {
|
||||
let temp = config || (typeof configOrTitle === 'object' ? configOrTitle : {});
|
||||
temp = {
|
||||
...temp,
|
||||
@@ -59,7 +65,11 @@ Vue.prototype.$confirm = async (message: string, configOrTitle: string | ElMessa
|
||||
return await MessageBox.confirm(message, temp);
|
||||
};
|
||||
|
||||
Vue.prototype.$prompt = async (message: string, configOrTitle: string | ElMessageBoxOptions | undefined, config: ElMessageBoxOptions | undefined) => {
|
||||
Vue.prototype.$prompt = async (
|
||||
message: string,
|
||||
configOrTitle: string | ElMessageBoxOptions | undefined,
|
||||
config: ElMessageBoxOptions | undefined,
|
||||
) => {
|
||||
let temp = config || (typeof configOrTitle === 'object' ? configOrTitle : {});
|
||||
temp = {
|
||||
...temp,
|
||||
|
||||
Reference in New Issue
Block a user