@shopbite-de/storefront 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -32,6 +32,16 @@ const { data: category } = await useAsyncData(
|
|
|
32
32
|
},
|
|
33
33
|
);
|
|
34
34
|
|
|
35
|
+
const pageTitle = computed(
|
|
36
|
+
() =>
|
|
37
|
+
`${category.value?.translated.name ?? category.value?.name} | Speisekarte`,
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
useSeoMeta({
|
|
41
|
+
title: pageTitle,
|
|
42
|
+
robots: "index,follow",
|
|
43
|
+
});
|
|
44
|
+
|
|
35
45
|
const currentSorting = ref(getCurrentSortingOrder.value ?? "Sortieren");
|
|
36
46
|
|
|
37
47
|
const propertyFilters = computed<Schemas["PropertyGroup"][]>(() =>
|
|
@@ -34,12 +34,11 @@ defineProps<{
|
|
|
34
34
|
arrows
|
|
35
35
|
loop
|
|
36
36
|
>
|
|
37
|
-
<
|
|
37
|
+
<img
|
|
38
38
|
:src="item.image"
|
|
39
39
|
:alt="item.alt"
|
|
40
40
|
class="rounded-lg w-full max-h-screen object-contain"
|
|
41
|
-
|
|
42
|
-
/>
|
|
41
|
+
>
|
|
43
42
|
</UCarousel>
|
|
44
43
|
</template>
|
|
45
44
|
</UPageSection>
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { Schemas } from "#shopware";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
});
|
|
4
|
+
const {
|
|
5
|
+
public: { site },
|
|
6
|
+
} = useRuntimeConfig();
|
|
7
|
+
|
|
8
|
+
const pageTitle = computed(() => `Speisekarte | ${site?.name}`);
|
|
9
|
+
|
|
10
|
+
useSeoMeta({ title: pageTitle });
|
|
7
11
|
|
|
8
12
|
definePageMeta({
|
|
9
13
|
layout: "listing",
|
|
@@ -23,19 +27,14 @@ const searchInProgress = ref(false);
|
|
|
23
27
|
|
|
24
28
|
<template>
|
|
25
29
|
<div v-if="navigationElements">
|
|
26
|
-
<div
|
|
27
|
-
class="sticky top-16 left-0 z-20 w-full px-4 md:px-6 lg:px-8 backdrop-blur-md rounded-md"
|
|
28
|
-
>
|
|
30
|
+
<div class="sticky top-16 left-0 z-20 w-full backdrop-blur-md rounded-md">
|
|
29
31
|
<NavigationMobileTop v-if="!searchInProgress" class="" />
|
|
30
32
|
<ProductSearchBar
|
|
31
33
|
ref="searchBarRef"
|
|
32
34
|
v-model:search-in-progress="searchInProgress"
|
|
33
35
|
/>
|
|
34
36
|
</div>
|
|
35
|
-
<div
|
|
36
|
-
v-if="searchBarRef?.showSuggest"
|
|
37
|
-
class="flex flex-col gap-4 mt-4 px-4 md:px-6 lg:px-8"
|
|
38
|
-
>
|
|
37
|
+
<div v-if="searchBarRef?.showSuggest" class="flex flex-col gap-4 mt-4">
|
|
39
38
|
<div v-if="!searchBarRef?.loading" class="flex flex-col gap-4">
|
|
40
39
|
<ProductCard
|
|
41
40
|
v-for="product in searchBarRef?.products"
|
|
@@ -46,7 +45,7 @@ const searchInProgress = ref(false);
|
|
|
46
45
|
/>
|
|
47
46
|
</div>
|
|
48
47
|
</div>
|
|
49
|
-
<div v-else
|
|
48
|
+
<div v-else>
|
|
50
49
|
<ProductCategory
|
|
51
50
|
v-for="category in navigationElements"
|
|
52
51
|
:key="category.id"
|