@shopbite-de/storefront 1.22.0 → 1.22.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.
|
@@ -138,11 +138,22 @@ const moreThanOneFilterAndOption = computed<boolean>(
|
|
|
138
138
|
<ClientOnly v-if="moreThanOneFilterAndOption">
|
|
139
139
|
<UDrawer class="lg:hidden" title="Filter" direction="right">
|
|
140
140
|
<UButton
|
|
141
|
-
label="Filter"
|
|
142
141
|
icon="i-lucide-sliders-horizontal"
|
|
143
|
-
color="
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
:color="
|
|
143
|
+
selectedPropertyFilters.length ? 'primary' : 'neutral'
|
|
144
|
+
"
|
|
145
|
+
:variant="selectedPropertyFilters.length ? 'solid' : 'subtle'"
|
|
146
|
+
>
|
|
147
|
+
Filter
|
|
148
|
+
<UBadge
|
|
149
|
+
v-if="selectedPropertyFilters.length"
|
|
150
|
+
:label="String(selectedPropertyFilters.length)"
|
|
151
|
+
size="sm"
|
|
152
|
+
color="neutral"
|
|
153
|
+
variant="solid"
|
|
154
|
+
class="ml-1"
|
|
155
|
+
/>
|
|
156
|
+
</UButton>
|
|
146
157
|
|
|
147
158
|
<template #body>
|
|
148
159
|
<div class="flex flex-col gap-4">
|
|
@@ -8,7 +8,7 @@ export function useTrackEvent() {
|
|
|
8
8
|
"setEcommerceView",
|
|
9
9
|
product.productNumber,
|
|
10
10
|
product.translated.name ?? product.name,
|
|
11
|
-
product.seoCategory
|
|
11
|
+
product.seoCategory?.name ?? false,
|
|
12
12
|
product.calculatedPrice.unitPrice,
|
|
13
13
|
]);
|
|
14
14
|
proxy._paq.push(["trackPageView", product.productNumber]);
|
|
@@ -21,7 +21,7 @@ export function useTrackEvent() {
|
|
|
21
21
|
"addEcommerceItem",
|
|
22
22
|
item.product?.productNumber ?? item.id,
|
|
23
23
|
item.label,
|
|
24
|
-
item.product?.seoCategory
|
|
24
|
+
item.product?.seoCategory?.name ?? false,
|
|
25
25
|
item.unitPrice,
|
|
26
26
|
item.quantity,
|
|
27
27
|
]);
|
|
@@ -54,13 +54,7 @@ export function useTrackEvent() {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
function trackSearch(term: string, productNumbers: string[]) {
|
|
57
|
-
proxy._paq.push([
|
|
58
|
-
"trackEvent",
|
|
59
|
-
"Search",
|
|
60
|
-
term,
|
|
61
|
-
productNumbers.join(","),
|
|
62
|
-
productNumbers.length,
|
|
63
|
-
]);
|
|
57
|
+
proxy._paq.push(["trackSiteSearch", term, false, productNumbers.length]);
|
|
64
58
|
}
|
|
65
59
|
|
|
66
60
|
return {
|
package/content.config.ts
CHANGED
|
@@ -47,27 +47,6 @@ const createFeatureSchema = () =>
|
|
|
47
47
|
.editor({ hidden: true }),
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
const createNavigationItemSchema = () =>
|
|
51
|
-
z.object({
|
|
52
|
-
label: z.string().nonempty(),
|
|
53
|
-
icon: z.string().optional().editor({ input: "icon" }),
|
|
54
|
-
to: z.string().nonempty(),
|
|
55
|
-
target: createEnum(["_blank", "_self"]),
|
|
56
|
-
type: createEnum(["label", "item"]).optional(),
|
|
57
|
-
action: z.string().optional(),
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
const createFooterColumnSchema = () =>
|
|
61
|
-
z.object({
|
|
62
|
-
label: z.string().nonempty(),
|
|
63
|
-
children: z.array(
|
|
64
|
-
z.object({
|
|
65
|
-
label: z.string().nonempty(),
|
|
66
|
-
to: z.string().optional(),
|
|
67
|
-
}),
|
|
68
|
-
),
|
|
69
|
-
});
|
|
70
|
-
|
|
71
50
|
export default defineContentConfig({
|
|
72
51
|
collections: {
|
|
73
52
|
home: defineCollection({
|
|
@@ -121,23 +100,6 @@ export default defineContentConfig({
|
|
|
121
100
|
}),
|
|
122
101
|
}),
|
|
123
102
|
}),
|
|
124
|
-
navigation: defineCollection({
|
|
125
|
-
source: "navigation.yml",
|
|
126
|
-
type: "page",
|
|
127
|
-
schema: z.object({
|
|
128
|
-
main: z.array(createNavigationItemSchema()),
|
|
129
|
-
account: z.object({
|
|
130
|
-
loggedIn: z.array(z.array(createNavigationItemSchema())),
|
|
131
|
-
loggedOut: z.array(z.array(createNavigationItemSchema())),
|
|
132
|
-
}),
|
|
133
|
-
footer: z.object({
|
|
134
|
-
withGithubLink: z.boolean(),
|
|
135
|
-
withColorModeSwitch: z.boolean(),
|
|
136
|
-
text: z.string().optional(),
|
|
137
|
-
columns: z.array(createFooterColumnSchema()),
|
|
138
|
-
}),
|
|
139
|
-
}),
|
|
140
|
-
}),
|
|
141
103
|
landingpages: defineCollection({
|
|
142
104
|
source: "**/*.md",
|
|
143
105
|
type: "page",
|
package/nuxt.config.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
|
2
|
-
const
|
|
3
|
-
const storeName = process.env.STORE_NAME || "ShopBite";
|
|
2
|
+
const storeName = process.env.NUXT_STORE_NAME || "ShopBite";
|
|
4
3
|
const storeDescription =
|
|
5
|
-
process.env.
|
|
4
|
+
process.env.NUXT_STORE_DESCRIPTION ||
|
|
6
5
|
"Reduziere deine Kosten und steigere deinen Umsatz";
|
|
7
6
|
|
|
8
7
|
export default defineNuxtConfig({
|
|
@@ -17,18 +16,15 @@ export default defineNuxtConfig({
|
|
|
17
16
|
{ name: "viewport", content: "width=device-width, initial-scale=1" },
|
|
18
17
|
{
|
|
19
18
|
name: "description",
|
|
20
|
-
content:
|
|
21
|
-
"Dein eigenes Bestellsystem ohne Provisionen, ohne monatliche Kosten – 100% Open Source und individuell anpassbar. Perfekt für Pizzerien, Imbisse und Lieferdienste.",
|
|
19
|
+
content: storeDescription,
|
|
22
20
|
},
|
|
23
21
|
{
|
|
24
22
|
property: "og:title",
|
|
25
|
-
content:
|
|
26
|
-
"Dein eigenes Bestellsystem ohne Provisionen, ohne monatliche Kosten – 100% Open Source und individuell anpassbar. Perfekt für Pizzerien, Imbisse und Lieferdienste.",
|
|
23
|
+
content: storeDescription,
|
|
27
24
|
},
|
|
28
25
|
{
|
|
29
26
|
property: "og:description",
|
|
30
|
-
content:
|
|
31
|
-
"Dein eigenes Bestellsystem ohne Provisionen, ohne monatliche Kosten – 100% Open Source und individuell anpassbar. Perfekt für Pizzerien, Imbisse und Lieferdienste.",
|
|
27
|
+
content: storeDescription,
|
|
32
28
|
},
|
|
33
29
|
],
|
|
34
30
|
link: [{ rel: "icon", href: "/favicon.ico", type: "image/png" }],
|
|
@@ -119,10 +115,6 @@ export default defineNuxtConfig({
|
|
|
119
115
|
},
|
|
120
116
|
|
|
121
117
|
pwa: {
|
|
122
|
-
strategies: sw ? "injectManifest" : "generateSW",
|
|
123
|
-
srcDir: sw ? "service-worker" : undefined,
|
|
124
|
-
filename: sw ? "sw.ts" : undefined,
|
|
125
|
-
registerType: "autoUpdate",
|
|
126
118
|
manifest: {
|
|
127
119
|
name: storeName,
|
|
128
120
|
short_name: storeName,
|
|
@@ -156,9 +148,6 @@ export default defineNuxtConfig({
|
|
|
156
148
|
globPatterns: ["**/*.{js,css,html,png,svg,ico}"],
|
|
157
149
|
globIgnores: ["**/_payload.json"],
|
|
158
150
|
},
|
|
159
|
-
client: {
|
|
160
|
-
installPrompt: true,
|
|
161
|
-
},
|
|
162
151
|
},
|
|
163
152
|
|
|
164
153
|
nitro: {
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ const criteria = encodeForQuery({
|
|
|
16
16
|
"propertyIds",
|
|
17
17
|
"options",
|
|
18
18
|
"optionIds",
|
|
19
|
-
"
|
|
19
|
+
"categories",
|
|
20
20
|
"configuratorSettings",
|
|
21
21
|
"children",
|
|
22
22
|
"parentId",
|
|
@@ -31,6 +31,7 @@ const criteria = encodeForQuery({
|
|
|
31
31
|
},
|
|
32
32
|
associations: {
|
|
33
33
|
cover: { associations: { media: {} } },
|
|
34
|
+
categories: {},
|
|
34
35
|
properties: { associations: { group: {} } },
|
|
35
36
|
options: { associations: { group: {} } },
|
|
36
37
|
configuratorSettings: {
|