mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
chore(editor): Clean up warnings on the browser's console (#17307)
This commit is contained in:
@@ -20,7 +20,15 @@ const props = withDefaults(defineProps<InputNumberProps>(), {
|
|||||||
max: Infinity,
|
max: Infinity,
|
||||||
});
|
});
|
||||||
|
|
||||||
const resolvedSize = computed(() => props.size as ElementPlusSizePropType);
|
const sizeMap: Record<InputSize, ElementPlusSizePropType> = {
|
||||||
|
mini: 'small',
|
||||||
|
small: 'small',
|
||||||
|
medium: 'default',
|
||||||
|
large: 'large',
|
||||||
|
xlarge: 'large',
|
||||||
|
};
|
||||||
|
|
||||||
|
const resolvedSize = computed(() => (props.size ? sizeMap[props.size] : undefined));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
<link rel="icon" href="/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
<link rel="stylesheet" href="/static/prefers-color-scheme.css">
|
<link rel="stylesheet" href="/static/prefers-color-scheme.css">
|
||||||
%CONFIG_SCRIPT%
|
%CONFIG_SCRIPT%
|
||||||
<script src="/{{REST_ENDPOINT}}/sentry.js" type="text/javascript"></script>
|
|
||||||
<script src="/static/posthog.init.js" type="text/javascript"></script>
|
<script src="/static/posthog.init.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<title>n8n.io - Workflow Automation</title>
|
<title>n8n.io - Workflow Automation</title>
|
||||||
|
|||||||
@@ -532,8 +532,23 @@ function handleChangeCollapsingColumn(columnName: string | null) {
|
|||||||
</I18nT>
|
</I18nT>
|
||||||
</N8nText>
|
</N8nText>
|
||||||
</template>
|
</template>
|
||||||
<N8nTooltip v-if="!readOnly" :visible="showDraggableHint && showDraggableHintWithDelay">
|
<NodeExecuteButton
|
||||||
<template #content>
|
v-if="!readOnly"
|
||||||
|
type="secondary"
|
||||||
|
hide-icon
|
||||||
|
:transparent="true"
|
||||||
|
:node-name="(isActiveNodeConfig ? rootNode : activeNode?.name) ?? ''"
|
||||||
|
:label="i18n.baseText('ndv.input.noOutputData.executePrevious')"
|
||||||
|
class="mt-m"
|
||||||
|
telemetry-source="inputs"
|
||||||
|
data-test-id="execute-previous-node"
|
||||||
|
tooltip-placement="bottom"
|
||||||
|
@execute="onNodeExecute"
|
||||||
|
>
|
||||||
|
<template
|
||||||
|
v-if="showDraggableHint && showDraggableHintWithDelay"
|
||||||
|
#persistentTooltipContent
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
v-n8n-html="
|
v-n8n-html="
|
||||||
i18n.baseText('dataMapping.dragFromPreviousHint', {
|
i18n.baseText('dataMapping.dragFromPreviousHint', {
|
||||||
@@ -542,18 +557,7 @@ function handleChangeCollapsingColumn(columnName: string | null) {
|
|||||||
"
|
"
|
||||||
></div>
|
></div>
|
||||||
</template>
|
</template>
|
||||||
<NodeExecuteButton
|
</NodeExecuteButton>
|
||||||
type="secondary"
|
|
||||||
hide-icon
|
|
||||||
:transparent="true"
|
|
||||||
:node-name="(isActiveNodeConfig ? rootNode : activeNode?.name) ?? ''"
|
|
||||||
:label="i18n.baseText('ndv.input.noOutputData.executePrevious')"
|
|
||||||
class="mt-m"
|
|
||||||
telemetry-source="inputs"
|
|
||||||
data-test-id="execute-previous-node"
|
|
||||||
@execute="onNodeExecute"
|
|
||||||
/>
|
|
||||||
</N8nTooltip>
|
|
||||||
<N8nText v-if="!readOnly" tag="div" size="small">
|
<N8nText v-if="!readOnly" tag="div" size="small">
|
||||||
<I18nT keypath="ndv.input.noOutputData.hint" scope="global">
|
<I18nT keypath="ndv.input.noOutputData.hint" scope="global">
|
||||||
<template #info>
|
<template #info>
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ const emit = defineEmits<{
|
|||||||
valueChanged: [value: IUpdateInformation];
|
valueChanged: [value: IUpdateInformation];
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
const slots = defineSlots<{ persistentTooltipContent?: {} }>();
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
inheritAttrs: false,
|
inheritAttrs: false,
|
||||||
});
|
});
|
||||||
@@ -390,9 +392,14 @@ async function onClick() {
|
|||||||
<template>
|
<template>
|
||||||
<N8nTooltip
|
<N8nTooltip
|
||||||
:placement="tooltipPlacement ?? 'right'"
|
:placement="tooltipPlacement ?? 'right'"
|
||||||
:disabled="!tooltipText"
|
:disabled="!tooltipText && !slots.persistentTooltipContent"
|
||||||
:content="tooltipText"
|
:visible="slots.persistentTooltipContent ? true : undefined"
|
||||||
>
|
>
|
||||||
|
<template #content>
|
||||||
|
<slot name="persistentTooltipContent">
|
||||||
|
{{ tooltipText }}
|
||||||
|
</slot>
|
||||||
|
</template>
|
||||||
<N8nButton
|
<N8nButton
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
:loading="isLoading"
|
:loading="isLoading"
|
||||||
|
|||||||
@@ -234,12 +234,12 @@ const modelValueResourceLocator = computed<INodeParameterResourceLocator>(() =>
|
|||||||
return props.modelValue as INodeParameterResourceLocator;
|
return props.modelValue as INodeParameterResourceLocator;
|
||||||
});
|
});
|
||||||
|
|
||||||
const modelValueExpressionEdit = computed<string>(() => {
|
const modelValueExpressionEdit = computed<NodeParameterValueType>(() => {
|
||||||
return isResourceLocatorParameter.value && typeof props.modelValue !== 'string'
|
return isResourceLocatorParameter.value && typeof props.modelValue !== 'string'
|
||||||
? props.modelValue
|
? props.modelValue
|
||||||
? ((props.modelValue as INodeParameterResourceLocator).value as string)
|
? (props.modelValue as INodeParameterResourceLocator).value
|
||||||
: ''
|
: ''
|
||||||
: (props.modelValue as string);
|
: props.modelValue;
|
||||||
});
|
});
|
||||||
|
|
||||||
const editorRows = computed(() => getTypeOption<number>('rows'));
|
const editorRows = computed(() => getTypeOption<number>('rows'));
|
||||||
@@ -1175,6 +1175,7 @@ onUpdated(async () => {
|
|||||||
@keydown.stop
|
@keydown.stop
|
||||||
>
|
>
|
||||||
<ExpressionEditModal
|
<ExpressionEditModal
|
||||||
|
v-if="typeof modelValueExpressionEdit === 'string'"
|
||||||
:dialog-visible="expressionEditDialogVisible"
|
:dialog-visible="expressionEditDialogVisible"
|
||||||
:model-value="modelValueExpressionEdit"
|
:model-value="modelValueExpressionEdit"
|
||||||
:parameter="parameter"
|
:parameter="parameter"
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import { useI18n } from '@n8n/i18n';
|
|||||||
import { nonExistingJsonPath, PiPWindowSymbol } from '@/constants';
|
import { nonExistingJsonPath, PiPWindowSymbol } from '@/constants';
|
||||||
import { useClipboard } from '@/composables/useClipboard';
|
import { useClipboard } from '@/composables/useClipboard';
|
||||||
import { usePinnedData } from '@/composables/usePinnedData';
|
import { usePinnedData } from '@/composables/usePinnedData';
|
||||||
import { inject, computed } from 'vue';
|
import { inject, computed, ref } from 'vue';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import { useTelemetry } from '@/composables/useTelemetry';
|
import { useTelemetry } from '@/composables/useTelemetry';
|
||||||
import { N8nIconButton } from '@n8n/design-system';
|
import { N8nIconButton } from '@n8n/design-system';
|
||||||
@@ -39,7 +39,7 @@ const props = withDefaults(
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
const pipWindow = inject(PiPWindowSymbol);
|
const pipWindow = inject(PiPWindowSymbol, ref<Window | undefined>());
|
||||||
const isInPiPWindow = computed(() => pipWindow?.value !== undefined);
|
const isInPiPWindow = computed(() => pipWindow?.value !== undefined);
|
||||||
|
|
||||||
const ndvStore = useNDVStore();
|
const ndvStore = useNDVStore();
|
||||||
|
|||||||
@@ -72,12 +72,14 @@ const containerClasses = computed(() => {
|
|||||||
return { 'tags-container': true, focused: focused.value };
|
return { 'tags-container': true, focused: focused.value };
|
||||||
});
|
});
|
||||||
|
|
||||||
const dropdownClasses = computed(() => ({
|
const dropdownClasses = computed(() =>
|
||||||
'tags-dropdown': true,
|
[
|
||||||
[`tags-dropdown-${dropdownId}`]: true,
|
'tags-dropdown',
|
||||||
'tags-dropdown-create-enabled': props.createEnabled,
|
`tags-dropdown-${dropdownId}`,
|
||||||
'tags-dropdown-manage-enabled': props.manageEnabled,
|
props.createEnabled ? 'tags-dropdown-create-enabled' : '',
|
||||||
}));
|
props.manageEnabled ? 'tags-dropdown-manage-enabled' : '',
|
||||||
|
].join(' '),
|
||||||
|
);
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => props.allTags,
|
() => props.allTags,
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ const props = withDefaults(
|
|||||||
|
|
||||||
const { isMobileDevice, controlKeyCode } = useDeviceSupport();
|
const { isMobileDevice, controlKeyCode } = useDeviceSupport();
|
||||||
|
|
||||||
const vueFlow = useVueFlow({ id: props.id, deleteKeyCode: null });
|
const vueFlow = useVueFlow(props.id);
|
||||||
const {
|
const {
|
||||||
getSelectedNodes: selectedNodes,
|
getSelectedNodes: selectedNodes,
|
||||||
addSelectedNodes,
|
addSelectedNodes,
|
||||||
@@ -896,6 +896,7 @@ provide(CanvasKey, {
|
|||||||
:zoom-activation-key-code="panningKeyCode"
|
:zoom-activation-key-code="panningKeyCode"
|
||||||
:pan-activation-key-code="panningKeyCode"
|
:pan-activation-key-code="panningKeyCode"
|
||||||
:disable-keyboard-a11y="true"
|
:disable-keyboard-a11y="true"
|
||||||
|
:delete-key-code="null"
|
||||||
data-test-id="canvas"
|
data-test-id="canvas"
|
||||||
@connect-start="onConnectStart"
|
@connect-start="onConnectStart"
|
||||||
@connect="onConnect"
|
@connect="onConnect"
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ const props = withDefaults(
|
|||||||
const $style = useCssModule();
|
const $style = useCssModule();
|
||||||
const settingsStore = useSettingsStore();
|
const settingsStore = useSettingsStore();
|
||||||
|
|
||||||
const { onNodesInitialized, getSelectedNodes } = useVueFlow({ id: props.id });
|
const { onNodesInitialized, getSelectedNodes } = useVueFlow(props.id);
|
||||||
|
|
||||||
const workflow = toRef(props, 'workflow');
|
const workflow = toRef(props, 'workflow');
|
||||||
const workflowObject = toRef(props, 'workflowObject');
|
const workflowObject = toRef(props, 'workflowObject');
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import { useExecutionsStore } from '@/stores/executions.store';
|
|||||||
type RetryDropdownRef = InstanceType<typeof ElDropdown>;
|
type RetryDropdownRef = InstanceType<typeof ElDropdown>;
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
execution: ExecutionSummary;
|
execution?: ExecutionSummary;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
@@ -109,7 +109,9 @@ async function onDeleteExecution(): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleRetryClick(command: string) {
|
function handleRetryClick(command: string) {
|
||||||
emit('retryExecution', { execution: props.execution, command });
|
if (props.execution) {
|
||||||
|
emit('retryExecution', { execution: props.execution, command });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleStopClick() {
|
function handleStopClick() {
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export function useCanvasLayout({ id: canvasId }: CanvasLayoutOptions = {}) {
|
|||||||
getSelectedNodes,
|
getSelectedNodes,
|
||||||
edges: allEdges,
|
edges: allEdges,
|
||||||
nodes: allNodes,
|
nodes: allNodes,
|
||||||
} = useVueFlow({ id: canvasId });
|
} = useVueFlow(canvasId);
|
||||||
|
|
||||||
function getTargetData(target: CanvasLayoutTarget): CanvasLayoutTargetData {
|
function getTargetData(target: CanvasLayoutTarget): CanvasLayoutTargetData {
|
||||||
if (target === 'selection') {
|
if (target === 'selection') {
|
||||||
|
|||||||
@@ -1,22 +1,8 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { PropType } from 'vue';
|
|
||||||
import { useAttrs } from 'vue';
|
import { useAttrs } from 'vue';
|
||||||
import { type IconName } from '@n8n/design-system/src/components/N8nIcon/icons';
|
import { type IconName } from '@n8n/design-system/src/components/N8nIcon/icons';
|
||||||
|
|
||||||
defineProps({
|
defineProps<{ label: string; icon: IconName; placement: 'left' | 'right' | 'top' | 'bottom' }>();
|
||||||
label: {
|
|
||||||
type: String,
|
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
icon: {
|
|
||||||
type: Object as PropType<IconName>,
|
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
placement: {
|
|
||||||
type: String as PropType<'left' | 'right' | 'top' | 'bottom'>,
|
|
||||||
default: 'top',
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
const attrs = useAttrs();
|
const attrs = useAttrs();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user