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

@@ -13,7 +13,9 @@
</div>
</div>
<div :class="$style.notFound" v-else>
<n8n-text color="text-base">{{ $locale.baseText('templates.collectionsNotFound') }}</n8n-text>
<n8n-text color="text-base">{{
$locale.baseText('templates.collectionsNotFound')
}}</n8n-text>
</div>
</template>
<template v-if="!notFoundError" #content>
@@ -74,9 +76,7 @@ export default mixins(workflowHelpers).extend({
TemplatesView,
},
computed: {
...mapStores(
useTemplatesStore,
),
...mapStores(useTemplatesStore),
collection(): null | ITemplatesCollectionFull {
return this.templatesStore.getCollectionById(this.collectionId);
},
@@ -110,10 +110,10 @@ export default mixins(workflowHelpers).extend({
}
}, 50);
},
onOpenTemplate({event, id}: {event: MouseEvent, id: string}) {
onOpenTemplate({ event, id }: { event: MouseEvent; id: string }) {
this.navigateTo(event, VIEWS.TEMPLATE, id);
},
onUseWorkflow({event, id}: {event: MouseEvent, id: string}) {
onUseWorkflow({ event, id }: { event: MouseEvent; id: string }) {
const telemetryPayload = {
template_id: id,
wf_template_repo_session_id: this.workflowsStore.currentSessionId,
@@ -138,8 +138,7 @@ export default mixins(workflowHelpers).extend({
collection(collection: ITemplatesCollection) {
if (collection) {
setPageTitle(`n8n - Template collection: ${collection.name}`);
}
else {
} else {
setPageTitle(`n8n - Templates`);
}
},