1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-24 15:49:42 +02:00

ui: rework meal-planner (#2203)

* remove unused TS Ignores

* refactor planner into multiple pages

also includes some minor UI adjustments and some feature work to improve the date selector

* use mobile cards for meal-planner

* remove component
This commit is contained in:
Hayden 2023-03-02 09:45:06 -09:00 committed by GitHub
parent 5b487464ea
commit 11cd277975
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 583 additions and 466 deletions

View file

@ -34,7 +34,6 @@ export const useMealplans = function (range: Ref<DateRange>) {
start_date: format(range.value.start, "yyyy-MM-dd"),
end_date: format(range.value.end, "yyyy-MM-dd"),
};
// @ts-ignore TODO Modify typing to allow for string start+limit for mealplans
const { data } = await api.mealplans.getAll(1, -1, { start_date: query.start_date, end_date: query.end_date });
if (data) {
@ -53,7 +52,6 @@ export const useMealplans = function (range: Ref<DateRange>) {
start_date: format(range.value.start, "yyyy-MM-dd"),
end_date: format(range.value.end, "yyyy-MM-dd"),
};
// @ts-ignore TODO Modify typing to allow for string start+limit for mealplans
const { data } = await api.mealplans.getAll(1, -1, { start_date: query.start_date, end_date: query.end_date });
if (data && data.items) {