mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
ci: Enforce code formatting on editor-ui (no-changelog) (#5022)
* ci: Enforce code formatting on editor-ui (no-changelog) * pnpm format on all frontend code
This commit is contained in:
committed by
GitHub
parent
ff810794ef
commit
a12606828e
@@ -45,7 +45,6 @@ const props = withDefaults(defineProps<AlertProps>(), {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const icon = computed(() => {
|
const icon = computed(() => {
|
||||||
/* eslint-disable prettier/prettier */
|
|
||||||
switch (props.type) {
|
switch (props.type) {
|
||||||
case 'success':
|
case 'success':
|
||||||
return 'check-circle';
|
return 'check-circle';
|
||||||
@@ -56,7 +55,6 @@ const icon = computed(() => {
|
|||||||
default:
|
default:
|
||||||
return 'info-circle';
|
return 'info-circle';
|
||||||
}
|
}
|
||||||
/* eslint-enable */
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const style = useCssModule();
|
const style = useCssModule();
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ module.exports = {
|
|||||||
'import/order': 'off',
|
'import/order': 'off',
|
||||||
'import/no-cycle': 'warn',
|
'import/no-cycle': 'warn',
|
||||||
indent: 'off',
|
indent: 'off',
|
||||||
'prettier/prettier': 'off',
|
|
||||||
'@typescript-eslint/ban-types': 'off',
|
'@typescript-eslint/ban-types': 'off',
|
||||||
'@typescript-eslint/dot-notation': 'off',
|
'@typescript-eslint/dot-notation': 'off',
|
||||||
'@typescript-eslint/lines-between-class-members': 'off',
|
'@typescript-eslint/lines-between-class-members': 'off',
|
||||||
|
|||||||
@@ -273,7 +273,12 @@ import WorkflowActivator from '@/components/WorkflowActivator.vue';
|
|||||||
import Modal from '@/components/Modal.vue';
|
import Modal from '@/components/Modal.vue';
|
||||||
|
|
||||||
import { externalHooks } from '@/mixins/externalHooks';
|
import { externalHooks } from '@/mixins/externalHooks';
|
||||||
import { WAIT_TIME_UNLIMITED, EXECUTIONS_MODAL_KEY, VIEWS, PLACEHOLDER_EMPTY_WORKFLOW_ID } from '@/constants';
|
import {
|
||||||
|
WAIT_TIME_UNLIMITED,
|
||||||
|
EXECUTIONS_MODAL_KEY,
|
||||||
|
VIEWS,
|
||||||
|
PLACEHOLDER_EMPTY_WORKFLOW_ID,
|
||||||
|
} from '@/constants';
|
||||||
|
|
||||||
import { restApi } from '@/mixins/restApi';
|
import { restApi } from '@/mixins/restApi';
|
||||||
import { genericHelpers } from '@/mixins/genericHelpers';
|
import { genericHelpers } from '@/mixins/genericHelpers';
|
||||||
@@ -435,8 +440,14 @@ export default mixins(externalHooks, genericHelpers, restApi, showMessage).exten
|
|||||||
},
|
},
|
||||||
convertToDisplayDate,
|
convertToDisplayDate,
|
||||||
displayExecution(execution: IExecutionsSummary, e: PointerEvent) {
|
displayExecution(execution: IExecutionsSummary, e: PointerEvent) {
|
||||||
if (!this.workflowsStore.workflowId || this.workflowsStore.workflowId === PLACEHOLDER_EMPTY_WORKFLOW_ID || execution.workflowId !== this.workflowsStore.workflowId) {
|
if (
|
||||||
const workflowExecutions: IExecutionsSummary[] = this.combinedExecutions.filter(ex => ex.workflowId === execution.workflowId);
|
!this.workflowsStore.workflowId ||
|
||||||
|
this.workflowsStore.workflowId === PLACEHOLDER_EMPTY_WORKFLOW_ID ||
|
||||||
|
execution.workflowId !== this.workflowsStore.workflowId
|
||||||
|
) {
|
||||||
|
const workflowExecutions: IExecutionsSummary[] = this.combinedExecutions.filter(
|
||||||
|
(ex) => ex.workflowId === execution.workflowId,
|
||||||
|
);
|
||||||
this.workflowsStore.currentWorkflowExecutions = workflowExecutions;
|
this.workflowsStore.currentWorkflowExecutions = workflowExecutions;
|
||||||
this.workflowsStore.activeWorkflowExecution = execution;
|
this.workflowsStore.activeWorkflowExecution = execution;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -211,7 +211,9 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
scrollToActiveCard(): void {
|
scrollToActiveCard(): void {
|
||||||
const executionsList = this.$refs.executionList as HTMLElement;
|
const executionsList = this.$refs.executionList as HTMLElement;
|
||||||
const currentExecutionCard = this.$refs[`execution-${this.workflowsStore.activeWorkflowExecution?.id}`] as Vue[];
|
const currentExecutionCard = this.$refs[
|
||||||
|
`execution-${this.workflowsStore.activeWorkflowExecution?.id}`
|
||||||
|
] as Vue[];
|
||||||
|
|
||||||
if (executionsList && currentExecutionCard && this.workflowsStore.activeWorkflowExecution) {
|
if (executionsList && currentExecutionCard && this.workflowsStore.activeWorkflowExecution) {
|
||||||
const cardElement = currentExecutionCard[0].$el as HTMLElement;
|
const cardElement = currentExecutionCard[0].$el as HTMLElement;
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ type Props = {
|
|||||||
withDefaults(defineProps<Props>(), {
|
withDefaults(defineProps<Props>(), {
|
||||||
canDrop: false,
|
canDrop: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -251,7 +251,6 @@ export default mixins(externalHooks).extend({
|
|||||||
background-color: var(--color-primary-tint-2);
|
background-color: var(--color-primary-tint-2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|||||||
@@ -127,5 +127,4 @@ const onDragEnd = (el: HTMLElement) => {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 0 var(--spacing-s) var(--spacing-s);
|
padding: 0 var(--spacing-s) var(--spacing-s);
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -97,7 +97,10 @@
|
|||||||
ref="draggable"
|
ref="draggable"
|
||||||
>
|
>
|
||||||
<template #preview="{ canDrop, el }">
|
<template #preview="{ canDrop, el }">
|
||||||
<MappingPill :html="shorten(getPathNameFromTarget(el) || '', 16, 2)" :can-drop="canDrop" />
|
<MappingPill
|
||||||
|
:html="shorten(getPathNameFromTarget(el) || '', 16, 2)"
|
||||||
|
:can-drop="canDrop"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template>
|
<template>
|
||||||
<tr
|
<tr
|
||||||
|
|||||||
@@ -450,7 +450,10 @@ const router = new Router({
|
|||||||
deny: {
|
deny: {
|
||||||
shouldDeny: () => {
|
shouldDeny: () => {
|
||||||
const settingsStore = useSettingsStore();
|
const settingsStore = useSettingsStore();
|
||||||
return settingsStore.settings.hideUsagePage === true || settingsStore.settings.deployment?.type === 'cloud';
|
return (
|
||||||
|
settingsStore.settings.hideUsagePage === true ||
|
||||||
|
settingsStore.settings.deployment?.type === 'cloud'
|
||||||
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -945,8 +945,8 @@ export const useWorkflowsStore = defineStore(STORES.WORKFLOWS, {
|
|||||||
this.currentWorkflowExecutions.splice(this.currentWorkflowExecutions.indexOf(execution), 1);
|
this.currentWorkflowExecutions.splice(this.currentWorkflowExecutions.indexOf(execution), 1);
|
||||||
},
|
},
|
||||||
addToCurrentExecutions(executions: IExecutionsSummary[]): void {
|
addToCurrentExecutions(executions: IExecutionsSummary[]): void {
|
||||||
executions.forEach(execution => {
|
executions.forEach((execution) => {
|
||||||
const exists = this.currentWorkflowExecutions.find(ex => ex.id === execution.id);
|
const exists = this.currentWorkflowExecutions.find((ex) => ex.id === execution.id);
|
||||||
if (!exists && execution.workflowId === this.workflowId) {
|
if (!exists && execution.workflowId === this.workflowId) {
|
||||||
this.currentWorkflowExecutions.push(execution);
|
this.currentWorkflowExecutions.push(execution);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,8 +18,19 @@
|
|||||||
@mouseup="mouseUp"
|
@mouseup="mouseUp"
|
||||||
@wheel="canvasStore.wheelScroll"
|
@wheel="canvasStore.wheelScroll"
|
||||||
>
|
>
|
||||||
<div id="node-view-background" class="node-view-background" :style="backgroundStyle" data-test-id="node-view-background" />
|
<div
|
||||||
<div id="node-view" class="node-view" :style="workflowStyle" ref="nodeView" data-test-id="node-view">
|
id="node-view-background"
|
||||||
|
class="node-view-background"
|
||||||
|
:style="backgroundStyle"
|
||||||
|
data-test-id="node-view-background"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
id="node-view"
|
||||||
|
class="node-view"
|
||||||
|
:style="workflowStyle"
|
||||||
|
ref="nodeView"
|
||||||
|
data-test-id="node-view"
|
||||||
|
>
|
||||||
<canvas-add-button
|
<canvas-add-button
|
||||||
:style="canvasAddButtonStyle"
|
:style="canvasAddButtonStyle"
|
||||||
@click="showTriggerCreator('trigger_placeholder_button')"
|
@click="showTriggerCreator('trigger_placeholder_button')"
|
||||||
|
|||||||
@@ -148,9 +148,7 @@ const onDialogOpened = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<n8n-info-tip>{{
|
<n8n-info-tip>{{ locale.baseText('settings.usageAndPlan.activeWorkflows.hint') }}</n8n-info-tip>
|
||||||
locale.baseText('settings.usageAndPlan.activeWorkflows.hint')
|
|
||||||
}}</n8n-info-tip>
|
|
||||||
|
|
||||||
<div :class="$style.buttons">
|
<div :class="$style.buttons">
|
||||||
<n8n-button
|
<n8n-button
|
||||||
|
|||||||
Reference in New Issue
Block a user