mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
refactor(editor): Standardize components sections order (no-changelog) (#10540)
This commit is contained in:
@@ -1,44 +1,3 @@
|
||||
<template>
|
||||
<div
|
||||
:class="$style.wrapper"
|
||||
:style="iconStyleData"
|
||||
@click="() => $emit('click')"
|
||||
@mouseover="showTooltip = true"
|
||||
@mouseleave="showTooltip = false"
|
||||
>
|
||||
<div :class="$style.tooltip">
|
||||
<n8n-tooltip placement="top" :visible="showTooltip">
|
||||
<template #content>
|
||||
<div v-text="nodeType.displayName"></div>
|
||||
</template>
|
||||
<span />
|
||||
</n8n-tooltip>
|
||||
</div>
|
||||
<div v-if="nodeIconData !== null" :class="$style.icon" title="">
|
||||
<div :class="$style.iconWrapper" :style="iconStyleData">
|
||||
<div v-if="nodeIconData !== null" :class="$style.icon">
|
||||
<img
|
||||
v-if="nodeIconData.type === 'file'"
|
||||
:src="nodeIconData.fileBuffer || nodeIconData.path"
|
||||
:style="imageStyleData"
|
||||
/>
|
||||
<font-awesome-icon
|
||||
v-else
|
||||
:icon="nodeIconData.icon || nodeIconData.path"
|
||||
:style="fontStyleData"
|
||||
/>
|
||||
</div>
|
||||
<div v-else class="node-icon-placeholder">
|
||||
{{ nodeType !== null ? nodeType.displayName.charAt(0) : '?' }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else :class="$style.placeholder">
|
||||
{{ nodeType !== null ? nodeType.displayName.charAt(0) : '?' }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { type StyleValue, defineComponent, type PropType } from 'vue';
|
||||
|
||||
@@ -151,6 +110,47 @@ export default defineComponent({
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
:class="$style.wrapper"
|
||||
:style="iconStyleData"
|
||||
@click="() => $emit('click')"
|
||||
@mouseover="showTooltip = true"
|
||||
@mouseleave="showTooltip = false"
|
||||
>
|
||||
<div :class="$style.tooltip">
|
||||
<n8n-tooltip placement="top" :visible="showTooltip">
|
||||
<template #content>
|
||||
<div v-text="nodeType.displayName"></div>
|
||||
</template>
|
||||
<span />
|
||||
</n8n-tooltip>
|
||||
</div>
|
||||
<div v-if="nodeIconData !== null" :class="$style.icon" title="">
|
||||
<div :class="$style.iconWrapper" :style="iconStyleData">
|
||||
<div v-if="nodeIconData !== null" :class="$style.icon">
|
||||
<img
|
||||
v-if="nodeIconData.type === 'file'"
|
||||
:src="nodeIconData.fileBuffer || nodeIconData.path"
|
||||
:style="imageStyleData"
|
||||
/>
|
||||
<font-awesome-icon
|
||||
v-else
|
||||
:icon="nodeIconData.icon || nodeIconData.path"
|
||||
:style="fontStyleData"
|
||||
/>
|
||||
</div>
|
||||
<div v-else class="node-icon-placeholder">
|
||||
{{ nodeType !== null ? nodeType.displayName.charAt(0) : '?' }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else :class="$style.placeholder">
|
||||
{{ nodeType !== null ? nodeType.displayName.charAt(0) : '?' }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss" module>
|
||||
.wrapper {
|
||||
cursor: pointer;
|
||||
|
||||
Reference in New Issue
Block a user