mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 15:49:42 +02:00
perf(backend): ⚡ remove validation on recipe summary response (#718)
* count responses * perf(backend): ⚡ remove validation on recipe summary response use the construct() method from pydantic to reduce get time as well as optimize the SQL query for recipes * update UI to support new categories/tags * fix(backend): 🐛 restrict recipes by group Co-authored-by: Hayden <hay-kot@pm.me>
This commit is contained in:
parent
f9829141c0
commit
568215cf70
10 changed files with 82 additions and 37 deletions
|
@ -3,15 +3,15 @@
|
|||
<h2 v-if="title" class="mt-4">{{ title }}</h2>
|
||||
<v-chip
|
||||
v-for="category in items.slice(0, limit)"
|
||||
:key="category"
|
||||
:key="category.name"
|
||||
label
|
||||
class="ma-1"
|
||||
color="accent"
|
||||
:small="small"
|
||||
dark
|
||||
:to="`/recipes/${urlParam}/${getSlug(category)}`"
|
||||
:to="`/recipes/${urlParam}/${category.slug}`"
|
||||
>
|
||||
{{ truncateText(category) }}
|
||||
{{ truncateText(category.name) }}
|
||||
</v-chip>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -56,7 +56,7 @@ export default {
|
|||
return this.$store.getters.getAllTags || [];
|
||||
},
|
||||
urlParam() {
|
||||
return this.isCategory ? "category" : "tag";
|
||||
return this.isCategory ? "categories" : "tags";
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue