refactor(editor): Apply Prettier (no-changelog) (#4920)

*  Adjust `format` script

* 🔥 Remove exemption for `editor-ui`

* 🎨 Prettify

* 👕 Fix lint
This commit is contained in:
Iván Ovejero
2022-12-14 10:04:10 +01:00
committed by GitHub
parent bcde07e032
commit 5ca2148c7e
284 changed files with 19247 additions and 15540 deletions

View File

@@ -30,7 +30,7 @@
:errorHighlight="showRequiredErrors"
:isForCredential="true"
:eventSource="eventSource"
:hint="!showRequiredErrors? hint: ''"
:hint="!showRequiredErrors ? hint : ''"
@focus="onFocus"
@blur="onBlur"
@textInput="valueChanged"
@@ -39,7 +39,13 @@
<div :class="$style.errors" v-if="showRequiredErrors">
<n8n-text color="danger" size="small">
{{ $locale.baseText('parameterInputExpanded.thisFieldIsRequired') }}
<n8n-link v-if="documentationUrl" :to="documentationUrl" size="small" :underline="true" @click="onDocumentationUrlClick">
<n8n-link
v-if="documentationUrl"
:to="documentationUrl"
size="small"
:underline="true"
@click="onDocumentationUrlClick"
>
{{ $locale.baseText('parameterInputExpanded.openDocs') }}
</n8n-link>
</n8n-text>
@@ -68,8 +74,7 @@ export default Vue.extend({
parameter: {
type: Object as PropType<INodeProperties>,
},
value: {
},
value: {},
showValidationWarnings: {
type: Boolean,
},
@@ -88,9 +93,7 @@ export default Vue.extend({
};
},
computed: {
...mapStores(
useWorkflowsStore,
),
...mapStores(useWorkflowsStore),
showRequiredErrors(): boolean {
if (!this.$props.parameter.required) {
return false;
@@ -115,8 +118,11 @@ export default Vue.extend({
return this.$locale.credText().hint(this.parameter);
},
isValueExpression (): boolean {
return isValueExpression(this.parameter, this.value as string | INodeParameterResourceLocator);
isValueExpression(): boolean {
return isValueExpression(
this.parameter,
this.value as string | INodeParameterResourceLocator,
);
},
},
methods: {
@@ -130,7 +136,7 @@ export default Vue.extend({
onMenuExpanded(expanded: boolean) {
this.menuExpanded = expanded;
},
optionSelected (command: string) {
optionSelected(command: string) {
if (this.$refs.param) {
(this.$refs.param as Vue).$emit('optionSelected', command);
}
@@ -138,7 +144,7 @@ export default Vue.extend({
valueChanged(parameterData: IUpdateInformation) {
this.$emit('change', parameterData);
},
onDocumentationUrlClick (): void {
onDocumentationUrlClick(): void {
this.$telemetry.track('User clicked credential modal docs link', {
docs_link: this.documentationUrl,
source: 'field',
@@ -150,10 +156,10 @@ export default Vue.extend({
</script>
<style lang="scss" module>
.errors {
margin-top: var(--spacing-2xs);
}
.hint {
margin-top: var(--spacing-4xs);
}
.errors {
margin-top: var(--spacing-2xs);
}
.hint {
margin-top: var(--spacing-4xs);
}
</style>