refactor(editor): Improve linting for component and prop names (no-changelog) (#8169)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-12-28 09:49:58 +01:00
committed by GitHub
parent 639afcd7a5
commit 68cff4c59e
304 changed files with 3428 additions and 3516 deletions

View File

@@ -2,7 +2,7 @@
<Modal
width="700px"
:title="$locale.baseText('importCurlModal.title')"
:eventBus="modalBus"
:event-bus="modalBus"
:name="IMPORT_CURL_MODAL_KEY"
:center="true"
>
@@ -10,13 +10,13 @@
<div :class="$style.container">
<n8n-input-label :label="$locale.baseText('importCurlModal.input.label')" color="text-dark">
<n8n-input
:modelValue="curlCommand"
ref="input"
:model-value="curlCommand"
type="textarea"
:rows="5"
:placeholder="$locale.baseText('importCurlModal.input.placeholder')"
@update:modelValue="onInput"
@focus="$event.target.select()"
ref="input"
/>
</n8n-input-label>
</div>
@@ -29,9 +29,9 @@
/>
<div>
<n8n-button
@click="importCurlCommand"
float="right"
:label="$locale.baseText('importCurlModal.button.label')"
@click="importCurlCommand"
/>
</div>
</div>
@@ -77,6 +77,12 @@ export default defineComponent({
return this.ndvStore.activeNode;
},
},
mounted() {
this.curlCommand = this.uiStore.getCurlCommand || '';
setTimeout(() => {
(this.$refs.input as HTMLTextAreaElement).focus();
});
},
methods: {
closeDialog(): void {
this.modalBus.emit('close');
@@ -176,12 +182,6 @@ export default defineComponent({
});
},
},
mounted() {
this.curlCommand = this.uiStore.getCurlCommand || '';
setTimeout(() => {
(this.$refs.input as HTMLTextAreaElement).focus();
});
},
});
</script>