From 8d736c0f883691f925ba2aa613e12bb073e7b13f Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 20 Aug 2025 17:00:11 +0200 Subject: [PATCH] some small tweaks --- .gitignore | 1 + vue3/src/components/display/KeywordsBar.vue | 3 +- .../src/components/display/RecipeActivity.vue | 3 +- vue3/src/components/display/RecipeCard.vue | 13 +- vue3/src/composables/useNavigation.ts | 12 +- vue3/src/openapi/.openapi-generator/FILES | 15 + vue3/src/openapi/apis/ApiApi.ts | 1584 ++++++++++++++++- vue3/src/openapi/models/AlignmentEnum.ts | 52 + vue3/src/openapi/models/BaseUnitEnum.ts | 72 +- vue3/src/openapi/models/EnterpriseKeyword.ts | 85 + .../openapi/models/EnterpriseSocialEmbed.ts | 138 ++ .../models/EnterpriseSocialEmbedTypeEnum.ts | 56 + .../models/EnterpriseSocialRecipeSearch.ts | 91 + vue3/src/openapi/models/OpenDataFood.ts | 7 +- .../PaginatedEnterpriseSocialEmbedList.ts | 101 ++ ...ginatedEnterpriseSocialRecipeSearchList.ts | 101 ++ .../models/PatchedEnterpriseSocialEmbed.ts | 135 ++ .../src/openapi/models/PatchedOpenDataFood.ts | 4 +- vue3/src/openapi/models/index.ts | 15 + vue3/src/pages/DatabasePage.vue | 9 +- vue3/src/types/Plugins.ts | 3 + vue3/vite.config.ts | 2 +- 22 files changed, 2420 insertions(+), 82 deletions(-) create mode 100644 vue3/src/openapi/models/AlignmentEnum.ts create mode 100644 vue3/src/openapi/models/EnterpriseKeyword.ts create mode 100644 vue3/src/openapi/models/EnterpriseSocialEmbed.ts create mode 100644 vue3/src/openapi/models/EnterpriseSocialEmbedTypeEnum.ts create mode 100644 vue3/src/openapi/models/EnterpriseSocialRecipeSearch.ts create mode 100644 vue3/src/openapi/models/PaginatedEnterpriseSocialEmbedList.ts create mode 100644 vue3/src/openapi/models/PaginatedEnterpriseSocialRecipeSearchList.ts create mode 100644 vue3/src/openapi/models/PatchedEnterpriseSocialEmbed.ts diff --git a/.gitignore b/.gitignore index 16ceed730..b477c0675 100644 --- a/.gitignore +++ b/.gitignore @@ -91,3 +91,4 @@ cookbook/static/vue3 vue3/node_modules cookbook/tests/other/docs/reports/tests/tests.html cookbook/tests/other/docs/reports/tests/pytest.xml +vue3/src/plugins diff --git a/vue3/src/components/display/KeywordsBar.vue b/vue3/src/components/display/KeywordsBar.vue index 9f9485066..279d5bf45 100644 --- a/vue3/src/components/display/KeywordsBar.vue +++ b/vue3/src/components/display/KeywordsBar.vue @@ -3,7 +3,7 @@ {{ k.label }} + :to="useUserPreferenceStore().isAuthenticated ? {name: 'SearchPage', query: {keywords: k.id}} : undefined"> {{ k.label }} @@ -15,6 +15,7 @@ import {Keyword, KeywordLabel} from "@/openapi"; import {computed, PropType} from "vue"; +import {useUserPreferenceStore} from "@/stores/UserPreferenceStore.ts"; const props = defineProps({ keywords: Array as PropType | Array | undefined>, diff --git a/vue3/src/components/display/RecipeActivity.vue b/vue3/src/components/display/RecipeActivity.vue index 7c1869f80..050727531 100644 --- a/vue3/src/components/display/RecipeActivity.vue +++ b/vue3/src/components/display/RecipeActivity.vue @@ -29,7 +29,7 @@ - + @@ -62,6 +62,7 @@ import {ApiApi, CookLog, Recipe} from "@/openapi"; import {DateTime} from "luxon"; import {ErrorMessageType, useMessageStore} from "@/stores/MessageStore"; import {VDateInput} from 'vuetify/labs/VDateInput' +import {useUserPreferenceStore} from "@/stores/UserPreferenceStore.ts"; const props = defineProps({ recipe: { diff --git a/vue3/src/components/display/RecipeCard.vue b/vue3/src/components/display/RecipeCard.vue index 6f4f74902..e1c91df95 100644 --- a/vue3/src/components/display/RecipeCard.vue +++ b/vue3/src/components/display/RecipeCard.vue @@ -13,14 +13,14 @@
- +
- +