perf: Make frontend linting faster (no-changelog) (#7717)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
Csaba Tuncsik
2023-11-22 15:01:22 +01:00
committed by GitHub
parent e01617ad64
commit 50f568560f
22 changed files with 430 additions and 492 deletions

View File

@@ -421,6 +421,8 @@ import { useI18n } from '@/composables';
import type { N8nInput } from 'n8n-design-system';
import { isCredentialOnlyNodeType } from '@/utils/credentialOnlyNodes';
type Picker = { $emit: (arg0: string, arg1: Date) => void };
export default defineComponent({
name: 'parameter-input',
mixins: [externalHooks, nodeHelpers, workflowHelpers, debounceHelper],
@@ -525,14 +527,14 @@ export default defineComponent({
{
text: 'Today', // TODO
onClick(picker: any) {
onClick(picker: Picker) {
picker.$emit('pick', new Date());
},
},
{
text: 'Yesterday', // TODO
onClick(picker: any) {
onClick(picker: Picker) {
const date = new Date();
date.setTime(date.getTime() - 3600 * 1000 * 24);
picker.$emit('pick', date);
@@ -541,7 +543,7 @@ export default defineComponent({
{
text: 'A week ago', // TODO
onClick(picker: any) {
onClick(picker: Picker) {
const date = new Date();
date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit('pick', date);