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:
@@ -39,9 +39,7 @@ export default Vue.extend({
|
||||
window.removeEventListener('mouseup', this.onMouseUp);
|
||||
},
|
||||
computed: {
|
||||
...mapStores(
|
||||
useNDVStore,
|
||||
),
|
||||
...mapStores(useNDVStore),
|
||||
isDragging(): boolean {
|
||||
return this.ndvStore.isDraggableDragging;
|
||||
},
|
||||
@@ -62,10 +60,17 @@ export default Vue.extend({
|
||||
if (target && this.isDragging) {
|
||||
const dim = target.getBoundingClientRect();
|
||||
|
||||
this.hovering = e.clientX >= dim.left && e.clientX <= dim.right && e.clientY >= dim.top && e.clientY <= dim.bottom;
|
||||
this.hovering =
|
||||
e.clientX >= dim.left &&
|
||||
e.clientX <= dim.right &&
|
||||
e.clientY >= dim.top &&
|
||||
e.clientY <= dim.bottom;
|
||||
|
||||
if (!this.disabled && this.sticky && this.hovering) {
|
||||
this.ndvStore.setDraggableStickyPos([dim.left + this.stickyOffset, dim.top + this.stickyOffset]);
|
||||
this.ndvStore.setDraggableStickyPos([
|
||||
dim.left + this.stickyOffset,
|
||||
dim.top + this.stickyOffset,
|
||||
]);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user