@shopbite-de/storefront 1.2.0 → 1.2.2
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.
- package/app/components/Category/Listing.vue +58 -63
- package/content/index.yml +2 -24
- package/package.json +1 -1
|
@@ -7,63 +7,6 @@ const props = defineProps<{
|
|
|
7
7
|
|
|
8
8
|
const { id: categoryId } = toRefs(props);
|
|
9
9
|
|
|
10
|
-
const {
|
|
11
|
-
resetFilters,
|
|
12
|
-
loading,
|
|
13
|
-
search,
|
|
14
|
-
getElements,
|
|
15
|
-
getCurrentSortingOrder,
|
|
16
|
-
getSortingOrders,
|
|
17
|
-
changeCurrentSortingOrder,
|
|
18
|
-
getAvailableFilters,
|
|
19
|
-
getCurrentFilters,
|
|
20
|
-
setCurrentFilters,
|
|
21
|
-
} = useListing({
|
|
22
|
-
listingType: "categoryListing",
|
|
23
|
-
categoryId: props.id,
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
const { search: categorySearch } = useCategorySearch();
|
|
27
|
-
|
|
28
|
-
const { data: category } = await useAsyncData(
|
|
29
|
-
`category${categoryId.value}`,
|
|
30
|
-
async () => {
|
|
31
|
-
return await categorySearch(categoryId.value);
|
|
32
|
-
},
|
|
33
|
-
);
|
|
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
|
-
|
|
45
|
-
const currentSorting = ref(getCurrentSortingOrder.value ?? "Sortieren");
|
|
46
|
-
|
|
47
|
-
const propertyFilters = computed<Schemas["PropertyGroup"][]>(() =>
|
|
48
|
-
getAvailableFilters.value?.filter(
|
|
49
|
-
(availableFilter) => availableFilter.code === "properties",
|
|
50
|
-
),
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
const selectedPropertyFilters = ref(getCurrentFilters.value?.properties ?? []);
|
|
54
|
-
const selectedPropertyFiltersString = computed(() =>
|
|
55
|
-
selectedPropertyFilters.value?.join("|"),
|
|
56
|
-
);
|
|
57
|
-
|
|
58
|
-
const selectedListingFilters = computed<ShortcutFilterParam[]>(() => {
|
|
59
|
-
return [
|
|
60
|
-
{
|
|
61
|
-
code: "properties",
|
|
62
|
-
value: selectedPropertyFiltersString.value,
|
|
63
|
-
},
|
|
64
|
-
];
|
|
65
|
-
});
|
|
66
|
-
|
|
67
10
|
const query = {
|
|
68
11
|
includes: {
|
|
69
12
|
product: [
|
|
@@ -90,12 +33,6 @@ const query = {
|
|
|
90
33
|
product_configurator_setting: ["id", "optionId", "option", "productId"],
|
|
91
34
|
product_option: ["id", "groupId", "name", "translated", "group"],
|
|
92
35
|
},
|
|
93
|
-
sort: [
|
|
94
|
-
{
|
|
95
|
-
field: "productNumber",
|
|
96
|
-
order: "ASC",
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
36
|
associations: {
|
|
100
37
|
cover: {
|
|
101
38
|
associations: {
|
|
@@ -139,6 +76,64 @@ const query = {
|
|
|
139
76
|
},
|
|
140
77
|
} as operations["searchPage post /search"]["body"];
|
|
141
78
|
|
|
79
|
+
const {
|
|
80
|
+
resetFilters,
|
|
81
|
+
loading,
|
|
82
|
+
search,
|
|
83
|
+
getElements,
|
|
84
|
+
getCurrentSortingOrder,
|
|
85
|
+
getSortingOrders,
|
|
86
|
+
changeCurrentSortingOrder,
|
|
87
|
+
getAvailableFilters,
|
|
88
|
+
getCurrentFilters,
|
|
89
|
+
setCurrentFilters,
|
|
90
|
+
} = useListing({
|
|
91
|
+
listingType: "categoryListing",
|
|
92
|
+
categoryId: props.id,
|
|
93
|
+
defaultSearchCriteria: query,
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
const { search: categorySearch } = useCategorySearch();
|
|
97
|
+
|
|
98
|
+
const { data: category } = await useAsyncData(
|
|
99
|
+
`category${categoryId.value}`,
|
|
100
|
+
async () => {
|
|
101
|
+
return await categorySearch(categoryId.value);
|
|
102
|
+
},
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
const pageTitle = computed(
|
|
106
|
+
() =>
|
|
107
|
+
`${category.value?.translated.name ?? category.value?.name} | Speisekarte`,
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
useSeoMeta({
|
|
111
|
+
title: pageTitle,
|
|
112
|
+
robots: "index,follow",
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
const currentSorting = ref(getCurrentSortingOrder.value ?? "Sortieren");
|
|
116
|
+
|
|
117
|
+
const propertyFilters = computed<Schemas["PropertyGroup"][]>(() =>
|
|
118
|
+
getAvailableFilters.value?.filter(
|
|
119
|
+
(availableFilter) => availableFilter.code === "properties",
|
|
120
|
+
),
|
|
121
|
+
);
|
|
122
|
+
|
|
123
|
+
const selectedPropertyFilters = ref(getCurrentFilters.value?.properties ?? []);
|
|
124
|
+
const selectedPropertyFiltersString = computed(() =>
|
|
125
|
+
selectedPropertyFilters.value?.join("|"),
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
const selectedListingFilters = computed<ShortcutFilterParam[]>(() => {
|
|
129
|
+
return [
|
|
130
|
+
{
|
|
131
|
+
code: "properties",
|
|
132
|
+
value: selectedPropertyFiltersString.value,
|
|
133
|
+
},
|
|
134
|
+
];
|
|
135
|
+
});
|
|
136
|
+
|
|
142
137
|
await useAsyncData(`listing${categoryId.value}`, async () => {
|
|
143
138
|
await search(query);
|
|
144
139
|
});
|
package/content/index.yml
CHANGED
|
@@ -55,15 +55,7 @@ marquee:
|
|
|
55
55
|
title: Das lieben unsere Kunden
|
|
56
56
|
description: Kundenbilder
|
|
57
57
|
headline: SHOPBITE
|
|
58
|
-
|
|
59
|
-
- productId: 019a4f2e717b7df7a349761a56c43ac3
|
|
60
|
-
image: https://shopware.shopbite.de/media/e4/82/55/1762465420/72.webp
|
|
61
|
-
- productId: 019a4f4552ff7251a1fa20a2e1a3a707
|
|
62
|
-
image: https://shopware.shopbite.de/media/5f/43/cc/1762465330/131.webp
|
|
63
|
-
- productId: 019a4ea153e671c6ba20810b541e1455
|
|
64
|
-
image: https://shopware.shopbite.de/media/f1/53/f9/1762465329/35.webp
|
|
65
|
-
- productId: 019a4ea153e671c6ba20810b541e1455
|
|
66
|
-
image: https://shopware.shopbite.de/media/5f/c7/ec/1762465330/122.webp
|
|
58
|
+
|
|
67
59
|
gallery:
|
|
68
60
|
title: Restaurant
|
|
69
61
|
description: Genießen Sie leckeres Essen in einem rustikalen und gemütlichen Ambiente.
|
|
@@ -74,21 +66,7 @@ gallery:
|
|
|
74
66
|
color: primary
|
|
75
67
|
variant: subtle
|
|
76
68
|
trailingIcon: i-lucide-phone
|
|
77
|
-
|
|
78
|
-
- image: https://shopware.shopbite.de/media/71/2a/1a/1762465670/restaurant1.webp
|
|
79
|
-
alt: La Fattoria Restaurant Innenbereich 1
|
|
80
|
-
- image: https://shopware.shopbite.de/media/61/ea/77/1762465670/restaurant2.webp
|
|
81
|
-
alt: La Fattoria Restaurant Innenbereich 2
|
|
82
|
-
- image: https://shopware.shopbite.de/media/6d/ac/ca/1762465670/restaurant3.webp
|
|
83
|
-
alt: La Fattoria Restaurant Innenbereich 3
|
|
84
|
-
- image: https://shopware.shopbite.de/media/af/d6/da/1762465670/restaurant4.webp
|
|
85
|
-
alt: La Fattoria Restaurant Innenbereich 4
|
|
86
|
-
- image: https://shopware.shopbite.de/media/6a/ff/e2/1762465670/restaurant5.webp
|
|
87
|
-
alt: La Fattoria Restaurant Innenbereich 5
|
|
88
|
-
- image: https://shopware.shopbite.de/media/80/76/d0/1762465670/restaurant6.webp
|
|
89
|
-
alt: La Fattoria Restaurant Innenbereich 6
|
|
90
|
-
- image: https://nbg1.your-objectstorage.com/lafattoria-public/media/30/f7/76/1763383122/restaurant10.webp
|
|
91
|
-
alt: La Fattoria Restaurant Innenbereich 10
|
|
69
|
+
|
|
92
70
|
cta:
|
|
93
71
|
title: Jetzt bestellen!
|
|
94
72
|
description: Genieße die italienische Küche, frisch zubereitet und direkt zu dir geliefert oder vor Ort genießen.
|