mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
DX vuejs code style
This commit is contained in:
parent
499640e48b
commit
843698a1d8
@ -241,9 +241,8 @@ const dateOptions: Intl.DateTimeFormatOptions = {
|
|||||||
const lastWeeks = computed((): Weeks[] =>
|
const lastWeeks = computed((): Weeks[] =>
|
||||||
Array.from(Array(15).keys()).map((w) => {
|
Array.from(Array(15).keys()).map((w) => {
|
||||||
const lastMonday = getMonday(-w);
|
const lastMonday = getMonday(-w);
|
||||||
//copyFromWeek.value = getMonday(0); //TODO fix it
|
|
||||||
return {
|
return {
|
||||||
value: dateToISO(lastMonday), //TODO cast as maybe smthg else
|
value: dateToISO(lastMonday),
|
||||||
text: `Semaine du ${lastMonday.toLocaleDateString("fr-FR", dateOptions)}`,
|
text: `Semaine du ${lastMonday.toLocaleDateString("fr-FR", dateOptions)}`,
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
@ -253,7 +252,7 @@ const nextWeeks = computed((): Weeks[] =>
|
|||||||
Array.from(Array(52).keys()).map((w) => {
|
Array.from(Array(52).keys()).map((w) => {
|
||||||
const nextMonday = getMonday(w + 1);
|
const nextMonday = getMonday(w + 1);
|
||||||
return {
|
return {
|
||||||
value: dateToISO(nextMonday), //TODO cast as maybe smthg else
|
value: dateToISO(nextMonday),
|
||||||
text: `Semaine du ${nextMonday.toLocaleDateString("fr-FR", dateOptions)}`,
|
text: `Semaine du ${nextMonday.toLocaleDateString("fr-FR", dateOptions)}`,
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user