mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-21 22:29:39 +02:00
feat(frontend): ✨ food filter and add back search dialog (#794)
* return ingredients and foods on summary
* filter on foods
* update search page to TS and comp-api
* add additional search fields
* feat(frontend): ✨ add back search dialog
* update docs
* formatting
* update sidebar - remove dropdown
Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
parent
60275447f0
commit
d4bf81dee6
14 changed files with 592 additions and 241 deletions
|
@ -24,16 +24,14 @@ export function useRouteQuery<T extends string | string[]>(name: string, default
|
|||
|
||||
return computed<any>({
|
||||
get() {
|
||||
console.log("Getter");
|
||||
const data = route.value.query[name];
|
||||
if (data == null) return defaultValue ?? null;
|
||||
return data;
|
||||
},
|
||||
set(v) {
|
||||
nextTick(() => {
|
||||
console.log("Setter");
|
||||
// @ts-ignore
|
||||
router.value.replace({ query: { ...route.value.query, [name]: v } });
|
||||
router.replace({ query: { ...route.value.query, [name]: v } });
|
||||
});
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue