mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
feat: ✨ (WIP) base-shoppinglist infra (#911)
* feat: ✨ base-shoppinglist infra (WIP) * add type checker * implement controllers * apply router fixes * add checked section hide/animation * add label support * formatting * fix overflow images * add experimental banner * fix #912 word break issue * remove any type errors * bump dependencies * remove templates * fix build errors * bump node version * fix template literal
This commit is contained in:
parent
86c99b10a2
commit
6db1357064
66 changed files with 3455 additions and 1311 deletions
|
@ -229,8 +229,8 @@ export default defineComponent({
|
|||
|
||||
const weekRange = computed(() => {
|
||||
return {
|
||||
start: subDays(state.today, 1),
|
||||
end: addDays(state.today, 6),
|
||||
start: subDays(state.today as Date, 1),
|
||||
end: addDays(state.today as Date, 6),
|
||||
};
|
||||
});
|
||||
|
||||
|
@ -248,12 +248,12 @@ export default defineComponent({
|
|||
|
||||
function forwardOneWeek() {
|
||||
if (!state.today) return;
|
||||
state.today = addDays(state.today, +5);
|
||||
state.today = addDays(state.today as Date, +5);
|
||||
}
|
||||
|
||||
function backOneWeek() {
|
||||
if (!state.today) return;
|
||||
state.today = addDays(state.today, -5);
|
||||
state.today = addDays(state.today as Date, -5);
|
||||
}
|
||||
|
||||
function onMoveCallback(evt: SortableEvent) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue