@shopbite-de/storefront 1.7.2 → 1.7.4
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/.env.example
CHANGED
|
@@ -19,4 +19,7 @@ OPENAPI_JSON_URL="https://shopware.shopbite.net"
|
|
|
19
19
|
NUXT_GEOAPIFY_API_KEY=
|
|
20
20
|
|
|
21
21
|
NUXT_PUBLIC_SCRIPTS_MATOMO_ANALYTICS_MATOMO_URL=
|
|
22
|
-
NUXT_PUBLIC_SCRIPTS_MATOMO_ANALYTICS_SITE_ID=
|
|
22
|
+
NUXT_PUBLIC_SCRIPTS_MATOMO_ANALYTICS_SITE_ID=
|
|
23
|
+
|
|
24
|
+
NUXT_STORE_NAME="ShopBite"
|
|
25
|
+
STORE_DESCRIPTION="Reduziere deine Kosten und steigere deinen Umsatz"
|
|
@@ -17,6 +17,9 @@ const { getFormattedPrice } = usePrice({
|
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
const price = ref(product.value.calculatedPrice.totalPrice);
|
|
20
|
+
const label = ref(product.value.translated.name ?? product.value.name);
|
|
21
|
+
const description = ref(product.value.description);
|
|
22
|
+
const number = ref(product.value.productNumber);
|
|
20
23
|
|
|
21
24
|
const isVegi = computed<boolean>(() => {
|
|
22
25
|
if (!product.value?.properties) {
|
|
@@ -52,6 +55,9 @@ const mainIngredients = computed<Schemas["PropertyGroupOption"][]>(() => {
|
|
|
52
55
|
|
|
53
56
|
function onVariantSelected(variant: Schemas["Product"]) {
|
|
54
57
|
price.value = variant.calculatedPrice.totalPrice;
|
|
58
|
+
label.value = variant.translated.name ?? variant.name;
|
|
59
|
+
description.value = variant.description;
|
|
60
|
+
number.value = variant.productNumber;
|
|
55
61
|
}
|
|
56
62
|
</script>
|
|
57
63
|
|
|
@@ -89,19 +95,17 @@ function onVariantSelected(variant: Schemas["Product"]) {
|
|
|
89
95
|
|
|
90
96
|
<template #title>
|
|
91
97
|
<div class="flex flex-row items-baseline gap-1">
|
|
92
|
-
<span class="text-sm text-brand-500"
|
|
93
|
-
>#{{ product.productNumber }}</span
|
|
94
|
-
>
|
|
98
|
+
<span class="text-sm text-brand-500">#{{ number }}</span>
|
|
95
99
|
|
|
96
100
|
<p class="text-base text-pretty font-semibold text-highlighted">
|
|
97
|
-
{{
|
|
101
|
+
{{ label }}
|
|
98
102
|
</p>
|
|
99
103
|
</div>
|
|
100
104
|
</template>
|
|
101
105
|
|
|
102
106
|
<template #description>
|
|
103
107
|
<div class="flex flex-col gap-2">
|
|
104
|
-
<div>{{
|
|
108
|
+
<div>{{ description }}</div>
|
|
105
109
|
<div
|
|
106
110
|
v-if="mainIngredients.length > 0"
|
|
107
111
|
class="font-extralight text-sm text-pretty"
|
package/nuxt.config.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
|
2
2
|
const sw = process.env.SW === "true";
|
|
3
|
+
const storeName = process.env.STORE_NAME || "ShopBite";
|
|
4
|
+
const storeDescription =
|
|
5
|
+
process.env.STORE_DESCRIPTION ||
|
|
6
|
+
"Reduziere deine Kosten und steigere deinen Umsatz";
|
|
3
7
|
|
|
4
8
|
export default defineNuxtConfig({
|
|
5
9
|
app: {
|
|
6
10
|
head: {
|
|
7
|
-
title:
|
|
11
|
+
title: storeName,
|
|
8
12
|
htmlAttrs: {
|
|
9
13
|
lang: "de",
|
|
10
14
|
},
|
|
@@ -23,7 +27,8 @@ export default defineNuxtConfig({
|
|
|
23
27
|
},
|
|
24
28
|
{
|
|
25
29
|
property: "og:description",
|
|
26
|
-
content:
|
|
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
32
|
},
|
|
28
33
|
],
|
|
29
34
|
link: [{ rel: "icon", href: "/favicon.ico", type: "image/png" }],
|
|
@@ -55,8 +60,8 @@ export default defineNuxtConfig({
|
|
|
55
60
|
},
|
|
56
61
|
},
|
|
57
62
|
site: {
|
|
58
|
-
name:
|
|
59
|
-
description:
|
|
63
|
+
name: storeName,
|
|
64
|
+
description: storeDescription,
|
|
60
65
|
countryId: "",
|
|
61
66
|
},
|
|
62
67
|
storeUrl: "",
|
|
@@ -114,24 +119,24 @@ export default defineNuxtConfig({
|
|
|
114
119
|
filename: sw ? "sw.ts" : undefined,
|
|
115
120
|
registerType: "autoUpdate",
|
|
116
121
|
manifest: {
|
|
117
|
-
name:
|
|
118
|
-
short_name:
|
|
122
|
+
name: storeName,
|
|
123
|
+
short_name: storeName,
|
|
119
124
|
theme_color: "#ff5b00",
|
|
120
125
|
icons: [
|
|
121
126
|
{
|
|
122
|
-
src: "
|
|
127
|
+
src: "logo-192.png",
|
|
123
128
|
sizes: "192x192",
|
|
124
129
|
type: "image/png",
|
|
125
130
|
},
|
|
126
131
|
{
|
|
127
|
-
src: "
|
|
132
|
+
src: "logo-512.png",
|
|
128
133
|
sizes: "512x512",
|
|
129
134
|
type: "image/png",
|
|
130
135
|
},
|
|
131
136
|
{
|
|
132
|
-
src: "
|
|
137
|
+
src: "logo-512.png",
|
|
133
138
|
sizes: "512x512",
|
|
134
|
-
type: "image/
|
|
139
|
+
type: "image/png",
|
|
135
140
|
purpose: "any maskable",
|
|
136
141
|
},
|
|
137
142
|
],
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|