@shopbite-de/storefront 1.7.0 → 1.7.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.
|
@@ -77,9 +77,20 @@ const loggedOutDropDown = computed<DropdownMenuItem[][]>(() => {
|
|
|
77
77
|
:items="isLoggedIn || isGuestSession ? loggedInDropDown : loggedOutDropDown"
|
|
78
78
|
>
|
|
79
79
|
<UChip v-if="isLoggedIn || isGuestSession" size="3xl" text="✓">
|
|
80
|
-
<UButton
|
|
80
|
+
<UButton
|
|
81
|
+
aria-label="Konto Dropdown öffnen"
|
|
82
|
+
icon="i-lucide-user"
|
|
83
|
+
color="neutral"
|
|
84
|
+
variant="outline"
|
|
85
|
+
/>
|
|
81
86
|
</UChip>
|
|
82
|
-
<UButton
|
|
87
|
+
<UButton
|
|
88
|
+
v-else
|
|
89
|
+
aria-label="Konto Dropdown öffnen"
|
|
90
|
+
icon="i-lucide-user"
|
|
91
|
+
color="neutral"
|
|
92
|
+
variant="outline"
|
|
93
|
+
/>
|
|
83
94
|
</UDropdownMenu>
|
|
84
95
|
<UDrawer
|
|
85
96
|
v-if="isCheckoutEnabled"
|
|
@@ -89,6 +100,7 @@ const loggedOutDropDown = computed<DropdownMenuItem[][]>(() => {
|
|
|
89
100
|
>
|
|
90
101
|
<UChip :text="count" size="3xl">
|
|
91
102
|
<UButton
|
|
103
|
+
aria-label="Zum Warenkorb"
|
|
92
104
|
color="neutral"
|
|
93
105
|
variant="outline"
|
|
94
106
|
icon="i-lucide-shopping-cart"
|
package/app/components/Hero.vue
CHANGED
|
@@ -22,18 +22,30 @@ withDefaults(
|
|
|
22
22
|
usps: () => [],
|
|
23
23
|
},
|
|
24
24
|
);
|
|
25
|
+
|
|
26
|
+
const videoRef = ref<HTMLVideoElement>();
|
|
27
|
+
|
|
28
|
+
onMounted(() => {
|
|
29
|
+
// Handle video playback on bfcache restore
|
|
30
|
+
window.addEventListener("pageshow", (event) => {
|
|
31
|
+
if (event.persisted && videoRef.value) {
|
|
32
|
+
videoRef.value.play();
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
});
|
|
25
36
|
</script>
|
|
26
37
|
|
|
27
38
|
<template>
|
|
28
39
|
<div class="relative">
|
|
29
40
|
<video
|
|
41
|
+
ref="videoRef"
|
|
30
42
|
autoplay
|
|
31
43
|
loop
|
|
32
44
|
muted
|
|
33
45
|
playsinline
|
|
34
46
|
class="absolute inset-0 w-full h-full object-cover -z-10"
|
|
35
47
|
>
|
|
36
|
-
<source :src="backgroundVideo" type="video/mp4" >
|
|
48
|
+
<source fetchpriority="high" :src="backgroundVideo" type="video/mp4" >
|
|
37
49
|
</video>
|
|
38
50
|
<div class="bg-black/50 backdrop-blur-sm">
|
|
39
51
|
<UPageHero
|
|
@@ -27,7 +27,7 @@ defineProps<{
|
|
|
27
27
|
>
|
|
28
28
|
<template #body>
|
|
29
29
|
<UCarousel
|
|
30
|
-
v-slot="{ item }"
|
|
30
|
+
v-slot="{ item, index }"
|
|
31
31
|
:items="images"
|
|
32
32
|
class="mx-auto w-full"
|
|
33
33
|
auto-height
|
|
@@ -35,6 +35,9 @@ defineProps<{
|
|
|
35
35
|
loop
|
|
36
36
|
>
|
|
37
37
|
<img
|
|
38
|
+
v-if="item"
|
|
39
|
+
:loading="index === 0 ? 'eager' : 'lazy'"
|
|
40
|
+
:fetchpriority="index === 0 ? 'high' : 'low'"
|
|
38
41
|
:src="item.image"
|
|
39
42
|
:alt="item.alt"
|
|
40
43
|
class="rounded-lg w-full max-h-screen object-contain"
|
package/content/index.yml
CHANGED
|
@@ -5,7 +5,7 @@ seo:
|
|
|
5
5
|
title: ShopBite
|
|
6
6
|
description: Reduziere Kosten und steigere deinen Umsatz
|
|
7
7
|
hero:
|
|
8
|
-
backgroundVideo: https://shopware.shopbite.de/media/10/59/96/1762465181/background.mp4
|
|
8
|
+
backgroundVideo: https://shopware.shopbite.de/media/10/59/96/1762465181/background.mp4?ts=1762465194
|
|
9
9
|
headline: SHOPBITE
|
|
10
10
|
usps:
|
|
11
11
|
- title: 4.5 ⭐
|
|
@@ -68,20 +68,19 @@ gallery:
|
|
|
68
68
|
variant: subtle
|
|
69
69
|
trailingIcon: i-lucide-phone
|
|
70
70
|
images:
|
|
71
|
-
- image: https://shopware.shopbite.de/media/71/2a/1a/1762465670/restaurant1.webp
|
|
71
|
+
- image: https://shopware.shopbite.de/media/71/2a/1a/1762465670/restaurant1.webp?ts=1762465670
|
|
72
72
|
alt: La Fattoria Restaurant Innenbereich 1
|
|
73
|
-
- image: https://shopware.shopbite.de/media/61/ea/77/1762465670/restaurant2.webp
|
|
73
|
+
- image: https://shopware.shopbite.de/media/61/ea/77/1762465670/restaurant2.webp?ts=1762465670
|
|
74
74
|
alt: La Fattoria Restaurant Innenbereich 2
|
|
75
|
-
- image: https://shopware.shopbite.de/media/6d/ac/ca/1762465670/restaurant3.webp
|
|
75
|
+
- image: https://shopware.shopbite.de/media/6d/ac/ca/1762465670/restaurant3.webp?ts=1762465670
|
|
76
76
|
alt: La Fattoria Restaurant Innenbereich 3
|
|
77
|
-
- image: https://shopware.shopbite.de/media/af/d6/da/1762465670/restaurant4.webp
|
|
77
|
+
- image: https://shopware.shopbite.de/media/af/d6/da/1762465670/restaurant4.webp?ts=1762465670
|
|
78
78
|
alt: La Fattoria Restaurant Innenbereich 4
|
|
79
|
-
- image: https://shopware.shopbite.de/media/6a/ff/e2/1762465670/restaurant5.webp
|
|
79
|
+
- image: https://shopware.shopbite.de/media/6a/ff/e2/1762465670/restaurant5.webp?ts=1762465670
|
|
80
80
|
alt: La Fattoria Restaurant Innenbereich 5
|
|
81
|
-
- image: https://shopware.shopbite.de/media/80/76/d0/1762465670/restaurant6.webp
|
|
81
|
+
- image: https://shopware.shopbite.de/media/80/76/d0/1762465670/restaurant6.webp?ts=1762465670
|
|
82
82
|
alt: La Fattoria Restaurant Innenbereich 6
|
|
83
|
-
|
|
84
|
-
alt: La Fattoria Restaurant Innenbereich 10
|
|
83
|
+
|
|
85
84
|
cta:
|
|
86
85
|
title: Jetzt bestellen!
|
|
87
86
|
description: Genieße die italienische Küche, frisch zubereitet und direkt zu dir geliefert oder vor Ort genießen.
|
package/nuxt.config.ts
CHANGED
|
@@ -91,6 +91,7 @@ export default defineNuxtConfig({
|
|
|
91
91
|
"@nuxt/ui",
|
|
92
92
|
"@nuxt/scripts",
|
|
93
93
|
"@nuxtjs/plausible",
|
|
94
|
+
"nuxt-vitalizer",
|
|
94
95
|
],
|
|
95
96
|
|
|
96
97
|
plausible: {
|
|
@@ -101,6 +102,10 @@ export default defineNuxtConfig({
|
|
|
101
102
|
experimental: { sqliteConnector: "native" },
|
|
102
103
|
},
|
|
103
104
|
|
|
105
|
+
vitalizer: {
|
|
106
|
+
disablePrefetchLinks: true,
|
|
107
|
+
},
|
|
108
|
+
|
|
104
109
|
pwa: {
|
|
105
110
|
manifest: {
|
|
106
111
|
name: "ShopBite",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopbite-de/storefront",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"main": "nuxt.config.ts",
|
|
5
5
|
"description": "Shopware storefront for food delivery shops",
|
|
6
6
|
"keywords": [
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"@vueuse/core": "^14.0.0",
|
|
36
36
|
"dotenv": "^17.2.3",
|
|
37
37
|
"nuxt": "^4.2.1",
|
|
38
|
+
"nuxt-vitalizer": "2.0.0",
|
|
38
39
|
"uuid": "^13.0.0"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|