mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +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,24 +1,24 @@
|
||||
<script lang="ts" setup>
|
||||
import { computed, ref } from 'vue';
|
||||
import { INodeUi, Schema } from "@/Interface";
|
||||
import RunDataSchemaItem from "@/components/RunDataSchemaItem.vue";
|
||||
import { INodeUi, Schema } from '@/Interface';
|
||||
import RunDataSchemaItem from '@/components/RunDataSchemaItem.vue';
|
||||
import Draggable from '@/components/Draggable.vue';
|
||||
import { useNDVStore } from "@/stores/ndv";
|
||||
import { useWebhooksStore } from "@/stores/webhooks";
|
||||
import { runExternalHook } from "@/mixins/externalHooks";
|
||||
import { telemetry } from "@/plugins/telemetry";
|
||||
import { IDataObject } from "n8n-workflow";
|
||||
import { getSchema, isEmpty, mergeDeep } from "@/utils";
|
||||
import { useNDVStore } from '@/stores/ndv';
|
||||
import { useWebhooksStore } from '@/stores/webhooks';
|
||||
import { runExternalHook } from '@/mixins/externalHooks';
|
||||
import { telemetry } from '@/plugins/telemetry';
|
||||
import { IDataObject } from 'n8n-workflow';
|
||||
import { getSchema, isEmpty, mergeDeep } from '@/utils';
|
||||
import { i18n } from '@/plugins/i18n';
|
||||
|
||||
type Props = {
|
||||
data: IDataObject[]
|
||||
mappingEnabled: boolean
|
||||
distanceFromActive: number
|
||||
runIndex: number
|
||||
totalRuns: number
|
||||
node: INodeUi | null
|
||||
}
|
||||
data: IDataObject[];
|
||||
mappingEnabled: boolean;
|
||||
distanceFromActive: number;
|
||||
runIndex: number;
|
||||
totalRuns: number;
|
||||
node: INodeUi | null;
|
||||
};
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
distanceFromActive: 0,
|
||||
@@ -67,12 +67,13 @@ const onDragEnd = (el: HTMLElement) => {
|
||||
telemetry.track('User dragged data for mapping', telemetryPayload);
|
||||
}, 1000); // ensure dest data gets set if drop
|
||||
};
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div :class="$style.schemaWrapper">
|
||||
<n8n-info-tip v-if="isDataEmpty">{{ i18n.baseText('dataMapping.schemaView.emptyData') }}</n8n-info-tip>
|
||||
<n8n-info-tip v-if="isDataEmpty">{{
|
||||
i18n.baseText('dataMapping.schemaView.emptyData')
|
||||
}}</n8n-info-tip>
|
||||
<draggable
|
||||
v-else
|
||||
type="mapping"
|
||||
@@ -82,7 +83,11 @@ const onDragEnd = (el: HTMLElement) => {
|
||||
@dragend="onDragEnd"
|
||||
>
|
||||
<template #preview="{ canDrop, el }">
|
||||
<div v-if="el" :class="[$style.dragPill, canDrop ? $style.droppablePill : $style.defaultPill]" v-html="el.outerHTML" />
|
||||
<div
|
||||
v-if="el"
|
||||
:class="[$style.dragPill, canDrop ? $style.droppablePill : $style.defaultPill]"
|
||||
v-html="el.outerHTML"
|
||||
/>
|
||||
</template>
|
||||
<template>
|
||||
<div :class="$style.schema">
|
||||
@@ -116,7 +121,7 @@ const onDragEnd = (el: HTMLElement) => {
|
||||
width: 100%;
|
||||
background-color: var(--color-background-base);
|
||||
|
||||
> div[class*="info"] {
|
||||
> div[class*='info'] {
|
||||
padding: 0 var(--spacing-s);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user