mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
refactor(editor): Improve linting for component and prop names (no-changelog) (#8169)
This commit is contained in:
committed by
GitHub
parent
639afcd7a5
commit
68cff4c59e
@@ -1,14 +1,14 @@
|
||||
<template>
|
||||
<div
|
||||
:id="nodeId"
|
||||
:ref="data.name"
|
||||
:class="nodeWrapperClass"
|
||||
:style="nodeWrapperStyles"
|
||||
:id="nodeId"
|
||||
data-test-id="canvas-node"
|
||||
:ref="data.name"
|
||||
:data-name="data.name"
|
||||
@contextmenu="(e: MouseEvent) => openContextMenu(e, 'node-right-click')"
|
||||
>
|
||||
<div class="select-background" v-show="isSelected"></div>
|
||||
<div v-show="isSelected" class="select-background"></div>
|
||||
<div
|
||||
:class="{
|
||||
'node-default': true,
|
||||
@@ -19,18 +19,18 @@
|
||||
}"
|
||||
>
|
||||
<div
|
||||
v-touch:start="touchStart"
|
||||
v-touch:end="touchEnd"
|
||||
:class="nodeClass"
|
||||
:style="nodeStyle"
|
||||
@click.left="onClick"
|
||||
v-touch:start="touchStart"
|
||||
v-touch:end="touchEnd"
|
||||
>
|
||||
<i class="trigger-icon" v-if="isTriggerNode">
|
||||
<i v-if="isTriggerNode" class="trigger-icon">
|
||||
<n8n-tooltip placement="bottom">
|
||||
<template #content>
|
||||
<span v-html="$locale.baseText('node.thisIsATriggerNode')" />
|
||||
</template>
|
||||
<font-awesome-icon icon="bolt" size="lg" />
|
||||
<FontAwesomeIcon icon="bolt" size="lg" />
|
||||
</n8n-tooltip>
|
||||
</i>
|
||||
<div
|
||||
@@ -40,9 +40,9 @@
|
||||
<div v-if="hasIssues && !hideNodeIssues" class="node-issues" data-test-id="node-issues">
|
||||
<n8n-tooltip :show-after="500" placement="bottom">
|
||||
<template #content>
|
||||
<titled-list :title="`${$locale.baseText('node.issues')}:`" :items="nodeIssues" />
|
||||
<TitledList :title="`${$locale.baseText('node.issues')}:`" :items="nodeIssues" />
|
||||
</template>
|
||||
<font-awesome-icon icon="exclamation-triangle" />
|
||||
<FontAwesomeIcon icon="exclamation-triangle" />
|
||||
</n8n-tooltip>
|
||||
</div>
|
||||
<div v-else-if="waiting || nodeExecutionStatus === 'waiting'" class="waiting">
|
||||
@@ -50,24 +50,24 @@
|
||||
<template #content>
|
||||
<div v-text="waiting"></div>
|
||||
</template>
|
||||
<font-awesome-icon icon="clock" />
|
||||
<FontAwesomeIcon icon="clock" />
|
||||
</n8n-tooltip>
|
||||
</div>
|
||||
<span v-else-if="showPinnedDataInfo" class="node-pin-data-icon">
|
||||
<font-awesome-icon icon="thumbtack" />
|
||||
<FontAwesomeIcon icon="thumbtack" />
|
||||
<span v-if="workflowDataItems > 1" class="items-count"> {{ workflowDataItems }}</span>
|
||||
</span>
|
||||
<span v-else-if="nodeExecutionStatus === 'unknown'">
|
||||
<!-- Do nothing, unknown means the node never executed -->
|
||||
</span>
|
||||
<span v-else-if="workflowDataItems" class="data-count">
|
||||
<font-awesome-icon icon="check" />
|
||||
<FontAwesomeIcon icon="check" />
|
||||
<span v-if="workflowDataItems > 1" class="items-count"> {{ workflowDataItems }}</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="node-executing-info" :title="$locale.baseText('node.nodeIsExecuting')">
|
||||
<font-awesome-icon icon="sync-alt" spin />
|
||||
<FontAwesomeIcon icon="sync-alt" spin />
|
||||
</div>
|
||||
|
||||
<div class="node-trigger-tooltip__wrapper">
|
||||
@@ -97,15 +97,15 @@
|
||||
|
||||
<NodeIcon
|
||||
class="node-icon"
|
||||
:nodeType="nodeType"
|
||||
:node-type="nodeType"
|
||||
:size="40"
|
||||
:shrink="false"
|
||||
:colorDefault="iconColorDefault"
|
||||
:disabled="this.data.disabled"
|
||||
:color-default="iconColorDefault"
|
||||
:disabled="data.disabled"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="node-options no-select-on-click" v-if="!isReadOnly" v-show="!hideActions">
|
||||
<div v-if="!isReadOnly" v-show="!hideActions" class="node-options no-select-on-click">
|
||||
<n8n-icon-button
|
||||
data-test-id="execute-node-button"
|
||||
type="tertiary"
|
||||
@@ -124,11 +124,11 @@
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
v-if="showDisabledLinethrough"
|
||||
:class="{
|
||||
'disabled-linethrough': true,
|
||||
success: !['unknown'].includes(nodeExecutionStatus) && workflowDataItems > 0,
|
||||
}"
|
||||
v-if="showDisabledLinethrough"
|
||||
></div>
|
||||
</div>
|
||||
<div class="node-description">
|
||||
@@ -190,19 +190,12 @@ import { useExternalHooks } from '@/composables/useExternalHooks';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Node',
|
||||
setup() {
|
||||
const contextMenu = useContextMenu();
|
||||
const externalHooks = useExternalHooks();
|
||||
const nodeHelpers = useNodeHelpers();
|
||||
|
||||
return { contextMenu, externalHooks, nodeHelpers };
|
||||
},
|
||||
mixins: [nodeBase, workflowHelpers, pinData, debounceHelper],
|
||||
components: {
|
||||
TitledList,
|
||||
FontAwesomeIcon,
|
||||
NodeIcon,
|
||||
},
|
||||
mixins: [nodeBase, workflowHelpers, pinData, debounceHelper],
|
||||
props: {
|
||||
isProductionExecutionPreview: {
|
||||
type: Boolean,
|
||||
@@ -217,6 +210,13 @@ export default defineComponent({
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
setup() {
|
||||
const contextMenu = useContextMenu();
|
||||
const externalHooks = useExternalHooks();
|
||||
const nodeHelpers = useNodeHelpers();
|
||||
|
||||
return { contextMenu, externalHooks, nodeHelpers };
|
||||
},
|
||||
computed: {
|
||||
...mapStores(useNodeTypesStore, useNDVStore, useUIStore, useWorkflowsStore),
|
||||
showPinnedDataInfo(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user