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

@@ -1,5 +1,5 @@
<template>
<TemplatesView :goBackEnabled="true">
<TemplatesView :go-back-enabled="true">
<template #header>
<div v-if="!notFoundError" :class="$style.wrapper">
<div :class="$style.title">
@@ -22,7 +22,7 @@
<n8n-loading :loading="!template" :rows="1" variant="button" />
</div>
</div>
<div :class="$style.notFound" v-else>
<div v-else :class="$style.notFound">
<n8n-text color="text-base">{{ $locale.baseText('templates.workflowsNotFound') }}</n8n-text>
</div>
</template>
@@ -74,12 +74,12 @@ import { TEMPLATE_CREDENTIAL_SETUP_EXPERIMENT } from '@/constants';
export default defineComponent({
name: 'TemplatesWorkflowView',
mixins: [workflowHelpers],
components: {
TemplateDetails,
TemplatesView,
WorkflowPreview,
},
mixins: [workflowHelpers],
setup() {
const externalHooks = useExternalHooks();
@@ -105,6 +105,31 @@ export default defineComponent({
notFoundError: false,
};
},
watch: {
template(template: ITemplatesWorkflowFull) {
if (template) {
setPageTitle(`n8n - Template template: ${template.name}`);
} else {
setPageTitle('n8n - Templates');
}
},
},
async mounted() {
this.scrollToTop();
if (this.template && this.template.full) {
this.loading = false;
return;
}
try {
await this.templatesStore.fetchTemplateById(this.templateId);
} catch (e) {
this.notFoundError = true;
}
this.loading = false;
},
methods: {
async openTemplateSetup(id: string, e: PointerEvent) {
if (!this.posthogStore.isFeatureEnabled(TEMPLATE_CREDENTIAL_SETUP_EXPERIMENT)) {
@@ -140,31 +165,6 @@ export default defineComponent({
}
},
},
watch: {
template(template: ITemplatesWorkflowFull) {
if (template) {
setPageTitle(`n8n - Template template: ${template.name}`);
} else {
setPageTitle('n8n - Templates');
}
},
},
async mounted() {
this.scrollToTop();
if (this.template && this.template.full) {
this.loading = false;
return;
}
try {
await this.templatesStore.fetchTemplateById(this.templateId);
} catch (e) {
this.notFoundError = true;
}
this.loading = false;
},
});
</script>