DX vuejs code style

This commit is contained in:
nobohan 2024-07-01 15:39:52 +02:00
parent 499640e48b
commit 843698a1d8

View File

@ -241,9 +241,8 @@ const dateOptions: Intl.DateTimeFormatOptions = {
const lastWeeks = computed((): Weeks[] =>
Array.from(Array(15).keys()).map((w) => {
const lastMonday = getMonday(-w);
//copyFromWeek.value = getMonday(0); //TODO fix it
return {
value: dateToISO(lastMonday), //TODO cast as maybe smthg else
value: dateToISO(lastMonday),
text: `Semaine du ${lastMonday.toLocaleDateString("fr-FR", dateOptions)}`,
};
})
@ -253,7 +252,7 @@ const nextWeeks = computed((): Weeks[] =>
Array.from(Array(52).keys()).map((w) => {
const nextMonday = getMonday(w + 1);
return {
value: dateToISO(nextMonday), //TODO cast as maybe smthg else
value: dateToISO(nextMonday),
text: `Semaine du ${nextMonday.toLocaleDateString("fr-FR", dateOptions)}`,
};
})