@shopbite-de/storefront 1.7.3 → 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
@@ -21,4 +21,5 @@ NUXT_GEOAPIFY_API_KEY=
21
21
  NUXT_PUBLIC_SCRIPTS_MATOMO_ANALYTICS_MATOMO_URL=
22
22
  NUXT_PUBLIC_SCRIPTS_MATOMO_ANALYTICS_SITE_ID=
23
23
 
24
- NUXT_STORE_NAME="ShopBite"
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
- {{ product.translated.name ?? product.name }}
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>{{ product.description }}</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,6 +1,9 @@
1
1
  // https://v3.nuxtjs.org/api/configuration/nuxt.config
2
2
  const sw = process.env.SW === "true";
3
3
  const storeName = process.env.STORE_NAME || "ShopBite";
4
+ const storeDescription =
5
+ process.env.STORE_DESCRIPTION ||
6
+ "Reduziere deine Kosten und steigere deinen Umsatz";
4
7
 
5
8
  export default defineNuxtConfig({
6
9
  app: {
@@ -57,8 +60,8 @@ export default defineNuxtConfig({
57
60
  },
58
61
  },
59
62
  site: {
60
- name: "ShopBite",
61
- description: "Reduziere deine Kosten und steigere deinen Umsatz",
63
+ name: storeName,
64
+ description: storeDescription,
62
65
  countryId: "",
63
66
  },
64
67
  storeUrl: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopbite-de/storefront",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "main": "nuxt.config.ts",
5
5
  "description": "Shopware storefront for food delivery shops",
6
6
  "keywords": [