@shopbite-de/storefront 1.23.2 → 1.24.0

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.
Files changed (159) hide show
  1. package/.env.example +19 -0
  2. package/.github/workflows/build.yaml +1 -1
  3. package/.github/workflows/ci.yaml +6 -3
  4. package/.nuxtrc +1 -1
  5. package/CLAUDE.md +41 -3
  6. package/README.md +139 -40
  7. package/api-gen.config.json +9 -0
  8. package/api-types/storeApiSchema.shopbite.overrides.json +35 -0
  9. package/api-types/storeApiTypes.d.ts +95 -81
  10. package/app/app.vue +37 -53
  11. package/app/assets/css/main.css +20 -4
  12. package/app/components/Address/Fields.vue +2 -21
  13. package/app/components/AnimatedSection.vue +9 -4
  14. package/app/components/BottomNavi.vue +9 -2
  15. package/app/components/Cart/Item.vue +21 -10
  16. package/app/components/Category/Breadcrumb.vue +11 -12
  17. package/app/components/Category/Header.vue +9 -3
  18. package/app/components/Category/Listing.vue +51 -42
  19. package/app/components/Checkout/PaymentAndDelivery.vue +19 -3
  20. package/app/components/Checkout/Summary.vue +65 -1
  21. package/app/components/Cta.vue +4 -2
  22. package/app/components/Food/MarqueeItem.vue +20 -8
  23. package/app/components/Footer/Contact.vue +78 -0
  24. package/app/components/Footer/StoreStatus.vue +30 -0
  25. package/app/components/Footer.vue +2 -1
  26. package/app/components/Header/Body.vue +1 -1
  27. package/app/components/Header/Right.vue +27 -13
  28. package/app/components/Header/Title.vue +1 -0
  29. package/app/components/Header.vue +5 -15
  30. package/app/components/Hero.vue +45 -2
  31. package/app/components/ImageGallery.vue +11 -5
  32. package/app/components/Product/Card.vue +9 -3
  33. package/app/components/Product/CardFooter.vue +22 -12
  34. package/app/components/User/RegistrationForm.vue +0 -1
  35. package/app/components/Wishlist.vue +2 -15
  36. package/app/composables/useAddToCart.ts +13 -13
  37. package/app/composables/useAddressAutocomplete.ts +12 -19
  38. package/app/composables/useAddressSuggestionArea.ts +16 -0
  39. package/app/composables/useAddressValidation.ts +3 -19
  40. package/app/composables/useCartMutations.ts +168 -0
  41. package/app/composables/{useCategory.ts → useCategoryById.ts} +1 -1
  42. package/app/composables/useCategorySeo.ts +22 -25
  43. package/app/composables/useCheckoutMethodGuard.ts +201 -0
  44. package/app/composables/useMatomo.ts +25 -0
  45. package/app/composables/useMatomoConfig.ts +12 -0
  46. package/app/composables/useMenuSectionSchema.ts +55 -0
  47. package/app/composables/useNavigation.ts +12 -9
  48. package/app/composables/usePageSeo.ts +50 -0
  49. package/app/composables/useRestaurantSchema.ts +64 -0
  50. package/app/composables/useScrollAnimation.ts +39 -8
  51. package/app/composables/useSearchTracking.ts +33 -0
  52. package/app/composables/useSeoUrlRoute.ts +58 -0
  53. package/app/composables/useSortingSelection.ts +28 -0
  54. package/app/composables/useStoreStatus.ts +48 -0
  55. package/app/composables/useTrackEvent.ts +29 -23
  56. package/app/pages/[...all].vue +4 -4
  57. package/app/pages/account/recover/password/index.vue +1 -0
  58. package/app/pages/anmelden.vue +4 -0
  59. package/app/pages/bestellung/[id]/erfolg.vue +1 -5
  60. package/app/pages/bestellung/[id]/fehler.vue +2 -2
  61. package/app/pages/bestellung/[id]/index.vue +10 -4
  62. package/app/pages/bestellung/bestaetigen.vue +1 -5
  63. package/app/pages/bestellung/warenkorb.vue +1 -5
  64. package/app/pages/bestellung/zahlung-versand.vue +1 -5
  65. package/app/pages/c/[...all].vue +2 -35
  66. package/app/pages/index.vue +25 -13
  67. package/app/pages/kontakt.vue +4 -0
  68. package/app/pages/konto/adressen.vue +4 -0
  69. package/app/pages/konto/bestellung/[id].vue +4 -0
  70. package/app/pages/konto/bestellungen.vue +4 -0
  71. package/app/pages/konto/index.vue +4 -0
  72. package/app/pages/konto/profil.vue +4 -0
  73. package/app/pages/maintenance.vue +6 -0
  74. package/app/pages/merkliste.vue +1 -7
  75. package/app/pages/passwort-vergessen.vue +1 -0
  76. package/app/pages/registrierung/bestaetigen.vue +4 -0
  77. package/app/pages/registrierung/index.vue +4 -0
  78. package/app/pages/speisekarte/[...all].vue +2 -36
  79. package/app/pages/suche.vue +24 -21
  80. package/app/plugins/matomo.ts +35 -0
  81. package/app/utils/hydrateWhenVisible.ts +20 -0
  82. package/app/utils/media.ts +33 -0
  83. package/app/utils/openingHours.ts +67 -0
  84. package/app/utils/schema.ts +235 -0
  85. package/app/utils/seo.ts +56 -0
  86. package/app/utils/seoPath.ts +57 -0
  87. package/content/index.yml +10 -9
  88. package/content.config.ts +3 -0
  89. package/docs/notes/2026-07-05-issue-259-matomo-broken.md +14 -0
  90. package/docs/notes/2026-09-07-dependency-update.md +113 -0
  91. package/docs/notes/2026-09-08-issue-240-shipping-method-blocked.md +83 -0
  92. package/docs/notes/2026-09-08-issue-241-cart-lock-conflicts.md +63 -0
  93. package/docs/notes/2026-09-08-issue-244-category-url-trailing-slash.md +65 -0
  94. package/docs/notes/2026-09-08-issue-276-payment-method-blocked.md +39 -0
  95. package/docs/notes/2026-09-08-issue-277-typecheck.md +99 -0
  96. package/docs/notes/2026-09-10-issue-250-animated-section.md +23 -0
  97. package/docs/notes/2026-09-10-issue-251-shop-data-in-base-layer.md +30 -0
  98. package/docs/notes/2026-09-10-issue-272-restaurant-schema.md +27 -0
  99. package/docs/notes/2026-09-10-issue-273-performance-media.md +64 -0
  100. package/docs/notes/2026-09-10-issue-274-seo-basics.md +49 -0
  101. package/docs/notes/2026-09-10-issue-275-accessibility.md +46 -0
  102. package/docs/notes/2026-09-10-issue-290-footer-nap.md +28 -0
  103. package/docs/notes/2026-09-10-issue-291-seo-url-trailing-slash.md +24 -0
  104. package/docs/notes/2026-09-10-issue-294-matomo-without-config.md +33 -0
  105. package/docs/notes/2026-09-10-issue-295-search-hydration-mismatch.md +25 -0
  106. package/docs/notes/2026-09-10-issue-296-track-direct-search.md +19 -0
  107. package/docs/notes/2026-09-10-issue-312-store-api-criteria-post.md +64 -0
  108. package/docs/notes/2026-09-10-issue-313-wishlist-scoped-tailwind.md +29 -0
  109. package/docs/notes/2026-09-10-issue-314-mobile-js-cost.md +119 -0
  110. package/node.dockerfile +5 -2
  111. package/nuxt.config.ts +74 -15
  112. package/package.json +45 -42
  113. package/patches/@shopware__nuxt-module@1.5.1.patch +32 -0
  114. package/pnpm-workspace.yaml +2 -0
  115. package/public/hero-poster.webp +0 -0
  116. package/server/api/__sitemap__/urls.get.ts +49 -0
  117. package/server/api/category/[categoryId].get.ts +20 -9
  118. package/server/api/content/home.get.ts +14 -0
  119. package/server/api/content/page.get.ts +22 -0
  120. package/server/api/listing/[categoryId].get.ts +12 -18
  121. package/server/api/product/[productId]/cross-selling.get.ts +3 -9
  122. package/server/api/product/[productId].get.ts +4 -8
  123. package/server/plugins/site-url.ts +13 -0
  124. package/server/plugins/sitemap-trailing-slash.ts +26 -0
  125. package/server/utils/sitemap.ts +60 -0
  126. package/server/utils/storeApi.ts +34 -0
  127. package/shopware.d.ts +35 -11
  128. package/test/nuxt/AddressFields.test.ts +2 -73
  129. package/test/nuxt/AnimatedSection.test.ts +67 -0
  130. package/test/nuxt/CartItem.test.ts +95 -0
  131. package/test/nuxt/FooterContact.test.ts +102 -0
  132. package/test/nuxt/FooterStoreStatus.test.ts +48 -0
  133. package/test/nuxt/HeaderRight.test.ts +14 -10
  134. package/test/nuxt/Hero.test.ts +68 -0
  135. package/test/nuxt/PaymentAndDelivery.test.ts +67 -8
  136. package/test/nuxt/RegistrationForm.test.ts +20 -6
  137. package/test/nuxt/useAddToCart.test.ts +34 -1
  138. package/test/nuxt/useAddressAutocomplete.test.ts +2 -38
  139. package/test/nuxt/useAddressSuggestionArea.test.ts +27 -0
  140. package/test/nuxt/useBusinessHours.test.ts +1 -1
  141. package/test/nuxt/useCartMutations.test.ts +225 -0
  142. package/test/nuxt/useCategoryListing.test.ts +5 -3
  143. package/test/nuxt/useCheckoutMethodGuard.test.ts +386 -0
  144. package/test/nuxt/useProductConfigurator.test.ts +4 -1
  145. package/test/nuxt/useScrollAnimation.test.ts +55 -49
  146. package/test/nuxt/useSearchTracking.test.ts +71 -0
  147. package/test/nuxt/useSeoUrlRoute.test.ts +93 -0
  148. package/test/nuxt/useStoreStatus.test.ts +77 -0
  149. package/test/nuxt/useTrackEvent.test.ts +112 -0
  150. package/test/unit/media.spec.ts +49 -0
  151. package/test/unit/openingHours.spec.ts +59 -0
  152. package/test/unit/schema.spec.ts +243 -0
  153. package/test/unit/seo.spec.ts +107 -0
  154. package/test/unit/seoPath.spec.ts +116 -0
  155. package/test/unit/sitemap.spec.ts +88 -0
  156. package/test/unit/useCategorySeo.spec.ts +40 -30
  157. package/test/unit/useSortingSelection.spec.ts +39 -0
  158. package/tsconfig.json +1 -1
  159. package/app/composables/useValidCitiesForDelivery.ts +0 -12
@@ -0,0 +1,235 @@
1
+ // Builders for the schema.org JSON-LD of the shop (#272). Pure functions, so
2
+ // they stay platform-neutral and unit-testable; the composables gather the
3
+ // data and hand it in.
4
+
5
+ const DAY_NAMES = [
6
+ "Monday",
7
+ "Tuesday",
8
+ "Wednesday",
9
+ "Thursday",
10
+ "Friday",
11
+ "Saturday",
12
+ "Sunday",
13
+ ] as const;
14
+
15
+ type BusinessHourLike = {
16
+ /** 1 = Monday … 7 = Sunday */
17
+ dayOfWeek?: number;
18
+ openingTime?: string;
19
+ closingTime?: string;
20
+ };
21
+
22
+ type HolidayLike = {
23
+ start?: string;
24
+ end?: string;
25
+ };
26
+
27
+ export type SiteInfo = {
28
+ name: string;
29
+ url: string;
30
+ description?: string;
31
+ image?: string;
32
+ telephone?: string;
33
+ cuisine?: string;
34
+ priceRange?: string;
35
+ googleBusinessProfileUrl?: string;
36
+ address?: {
37
+ street?: string;
38
+ postalCode?: string;
39
+ city?: string;
40
+ country?: string;
41
+ };
42
+ };
43
+
44
+ export type MenuSectionInfo = {
45
+ name: string;
46
+ url?: string;
47
+ sections?: MenuSectionInfo[];
48
+ };
49
+
50
+ export type MenuItemInfo = {
51
+ name: string;
52
+ description?: string;
53
+ image?: string;
54
+ price?: number;
55
+ };
56
+
57
+ const formatTime = (time: string) => time.slice(0, 5);
58
+
59
+ /**
60
+ * Weekly opening hours. Days with identical intervals share one entry, so
61
+ * `Mo–Fr 11:30–14:30` becomes a single specification with five days.
62
+ */
63
+ export function buildOpeningHoursSpecification(
64
+ businessHours: BusinessHourLike[],
65
+ ) {
66
+ const days = new Map<string, string[]>();
67
+
68
+ for (const bh of businessHours) {
69
+ const day = DAY_NAMES[(bh.dayOfWeek ?? 0) - 1];
70
+ if (!day || !bh.openingTime || !bh.closingTime) continue;
71
+ const key = `${formatTime(bh.openingTime)}-${formatTime(bh.closingTime)}`;
72
+ days.set(key, [...(days.get(key) ?? []), day]);
73
+ }
74
+
75
+ return [...days.entries()].map(([key, dayOfWeek]) => {
76
+ const [opens, closes] = key.split("-");
77
+ return {
78
+ "@type": "OpeningHoursSpecification",
79
+ dayOfWeek: dayOfWeek.sort(
80
+ (a, b) =>
81
+ DAY_NAMES.indexOf(a as (typeof DAY_NAMES)[number]) -
82
+ DAY_NAMES.indexOf(b as (typeof DAY_NAMES)[number]),
83
+ ),
84
+ opens,
85
+ closes,
86
+ };
87
+ });
88
+ }
89
+
90
+ /**
91
+ * Closing days (holidays, vacation) as special opening hours. Google's
92
+ * convention for a closed day is `opens` and `closes` at `00:00`.
93
+ */
94
+ export function buildSpecialOpeningHoursSpecification(holidays: HolidayLike[]) {
95
+ return holidays
96
+ .filter((holiday) => holiday.start && holiday.end)
97
+ .map((holiday) => ({
98
+ "@type": "OpeningHoursSpecification",
99
+ validFrom: holiday.start!.slice(0, 10),
100
+ validThrough: holiday.end!.slice(0, 10),
101
+ opens: "00:00",
102
+ closes: "00:00",
103
+ }));
104
+ }
105
+
106
+ function buildAddress(address: SiteInfo["address"]) {
107
+ if (!address?.street && !address?.city) return undefined;
108
+ return compact({
109
+ "@type": "PostalAddress",
110
+ streetAddress: address.street,
111
+ // Nuxt parses a numeric env value into a number; schema.org wants text.
112
+ postalCode: address.postalCode ? String(address.postalCode) : undefined,
113
+ addressLocality: address.city,
114
+ addressCountry: address.country,
115
+ });
116
+ }
117
+
118
+ /**
119
+ * The shop as a `Restaurant` (a `LocalBusiness`) with its menu sections.
120
+ * Empty values are left out, so a shop without address or phone still gets a
121
+ * valid node.
122
+ */
123
+ export function buildRestaurantSchema(input: {
124
+ site: SiteInfo;
125
+ businessHours?: BusinessHourLike[];
126
+ holidays?: HolidayLike[];
127
+ menuUrl?: string;
128
+ menuSections?: MenuSectionInfo[];
129
+ }) {
130
+ const { site } = input;
131
+ const openingHours = buildOpeningHoursSpecification(
132
+ input.businessHours ?? [],
133
+ );
134
+ const specialHours = buildSpecialOpeningHoursSpecification(
135
+ input.holidays ?? [],
136
+ );
137
+ const sections = buildMenuSections(input.menuSections ?? []);
138
+
139
+ return compact({
140
+ "@context": "https://schema.org",
141
+ "@type": "Restaurant",
142
+ "@id": `${site.url}#restaurant`,
143
+ name: site.name,
144
+ description: site.description,
145
+ url: site.url,
146
+ image: site.image,
147
+ telephone: site.telephone,
148
+ servesCuisine: site.cuisine,
149
+ priceRange: site.priceRange,
150
+ address: buildAddress(site.address),
151
+ sameAs: site.googleBusinessProfileUrl
152
+ ? [site.googleBusinessProfileUrl]
153
+ : undefined,
154
+ openingHoursSpecification: openingHours.length ? openingHours : undefined,
155
+ specialOpeningHoursSpecification: specialHours.length
156
+ ? specialHours
157
+ : undefined,
158
+ hasMenu:
159
+ input.menuUrl || sections.length
160
+ ? compact({
161
+ "@type": "Menu",
162
+ "@id": `${site.url}#menu`,
163
+ name: "Speisekarte",
164
+ url: input.menuUrl,
165
+ hasMenuSection: sections.length ? sections : undefined,
166
+ })
167
+ : undefined,
168
+ });
169
+ }
170
+
171
+ /** Menu sections with their subsections (category tree of the menu). */
172
+ function buildMenuSections(
173
+ sections: MenuSectionInfo[],
174
+ ): Record<string, unknown>[] {
175
+ return sections.map((section) => {
176
+ const subsections = buildMenuSections(section.sections ?? []);
177
+ return compact({
178
+ "@type": "MenuSection",
179
+ name: section.name,
180
+ url: section.url,
181
+ hasMenuSection: subsections.length ? subsections : undefined,
182
+ });
183
+ });
184
+ }
185
+
186
+ /** A category page as a `MenuSection` with its products as `MenuItem`s. */
187
+ export function buildMenuSectionSchema(input: {
188
+ name: string;
189
+ description?: string;
190
+ url?: string;
191
+ image?: string;
192
+ currency: string;
193
+ items: MenuItemInfo[];
194
+ restaurantUrl?: string;
195
+ }) {
196
+ return compact({
197
+ "@context": "https://schema.org",
198
+ "@type": "MenuSection",
199
+ name: input.name,
200
+ description: input.description,
201
+ url: input.url,
202
+ image: input.image,
203
+ hasMenuItem: input.items.map((item) =>
204
+ compact({
205
+ "@type": "MenuItem",
206
+ name: item.name,
207
+ description: item.description,
208
+ image: item.image,
209
+ offers:
210
+ item.price !== undefined
211
+ ? {
212
+ "@type": "Offer",
213
+ price: item.price.toFixed(2),
214
+ priceCurrency: input.currency,
215
+ }
216
+ : undefined,
217
+ }),
218
+ ),
219
+ isPartOf: input.restaurantUrl
220
+ ? { "@type": "Menu", "@id": `${input.restaurantUrl}#menu` }
221
+ : undefined,
222
+ });
223
+ }
224
+
225
+ /** Drops `undefined`, empty strings and empty arrays. */
226
+ function compact<T extends Record<string, unknown>>(object: T): T {
227
+ return Object.fromEntries(
228
+ Object.entries(object).filter(
229
+ ([, value]) =>
230
+ value !== undefined &&
231
+ value !== "" &&
232
+ !(Array.isArray(value) && value.length === 0),
233
+ ),
234
+ ) as T;
235
+ }
@@ -0,0 +1,56 @@
1
+ import { hasProtocol, joinURL, withTrailingSlash } from "ufo";
2
+
3
+ type SiteInfo = {
4
+ name: string;
5
+ city?: string;
6
+ cuisine?: string;
7
+ };
8
+
9
+ /**
10
+ * Applies the site title template (`%s` = page title, `%siteName` = shop
11
+ * name). A missing title or the bare shop name renders as the shop name.
12
+ */
13
+ export function formatPageTitle(
14
+ title: string | null | undefined,
15
+ siteName: string,
16
+ template: string,
17
+ ): string {
18
+ if (!title || title === siteName) return siteName;
19
+ if (!template) return title;
20
+ return template.replaceAll("%siteName", siteName).replaceAll("%s", title);
21
+ }
22
+
23
+ /**
24
+ * Resolves a site-relative path against the site URL. Absolute URLs are kept,
25
+ * and so is the trailing slash of the path: Shopware SEO URLs such as
26
+ * `/c/Pizza/` only resolve with it.
27
+ */
28
+ export function toAbsoluteUrl(siteUrl: string, pathOrUrl: string): string {
29
+ if (hasProtocol(pathOrUrl, { acceptRelative: true })) return pathOrUrl;
30
+ const url = joinURL(siteUrl, pathOrUrl);
31
+ return pathOrUrl.endsWith("/") ? withTrailingSlash(url) : url;
32
+ }
33
+
34
+ /** Default home page title: `<Shopname> <Ort> | Online bestellen & liefern lassen`. */
35
+ export function buildHomeTitle({ name, city }: SiteInfo): string {
36
+ const place = city && !name.includes(city) ? `${name} ${city}` : name;
37
+ return `${place} | Online bestellen & liefern lassen`;
38
+ }
39
+
40
+ /** Default home page description from city and cuisine, if any is configured. */
41
+ export function buildHomeDescription({
42
+ name,
43
+ city,
44
+ cuisine,
45
+ }: SiteInfo): string | undefined {
46
+ if (cuisine && city) {
47
+ return `${cuisine} in ${city}: Bei ${name} online bestellen und liefern lassen oder abholen.`;
48
+ }
49
+ if (city) {
50
+ return `${name} in ${city}: Online bestellen und liefern lassen oder abholen.`;
51
+ }
52
+ if (cuisine) {
53
+ return `${cuisine}: Bei ${name} online bestellen und liefern lassen oder abholen.`;
54
+ }
55
+ return undefined;
56
+ }
@@ -0,0 +1,57 @@
1
+ import { withLeadingSlash, withTrailingSlash, withoutTrailingSlash } from "ufo";
2
+
3
+ type SeoPathMatch = {
4
+ seoPathInfo?: string;
5
+ };
6
+
7
+ type SeoPathResolution<T> = { match: T | null; redirectPath?: string };
8
+
9
+ /**
10
+ * Looks a path up against the backend SEO URLs and tells the caller where to
11
+ * redirect if the visited path is only an alias of the SEO URL:
12
+ *
13
+ * - The lookup is exact on the trailing slash: `/c/Pizza/` exists, `/c/Pizza`
14
+ * does not (#291). A miss is retried once with the slash toggled.
15
+ * - The lookup is case-insensitive, so `/c/pizza/` resolves too (#244).
16
+ *
17
+ * Whenever the match carries a SEO path that differs from the visited path,
18
+ * `redirectPath` names it, so the visited URL always ends up canonical.
19
+ */
20
+ export async function resolveSeoPath<T extends SeoPathMatch>(
21
+ path: string,
22
+ resolve: (path: string) => Promise<T | null>,
23
+ ): Promise<SeoPathResolution<T>> {
24
+ if (path === "/") return { match: await resolve(path) };
25
+
26
+ const match = await resolve(path);
27
+ if (match) return withRedirect(path, match);
28
+
29
+ const toggledPath = path.endsWith("/")
30
+ ? withoutTrailingSlash(path)
31
+ : withTrailingSlash(path);
32
+ const toggledMatch = await resolve(toggledPath);
33
+ if (!toggledMatch?.seoPathInfo) return { match: null };
34
+
35
+ return withRedirect(path, toggledMatch);
36
+ }
37
+
38
+ function withRedirect<T extends SeoPathMatch>(
39
+ path: string,
40
+ match: T,
41
+ ): SeoPathResolution<T> {
42
+ if (!match.seoPathInfo) return { match };
43
+
44
+ const seoPath = withLeadingSlash(match.seoPathInfo);
45
+ if (decodePath(seoPath) === decodePath(path)) return { match };
46
+
47
+ return { match, redirectPath: seoPath };
48
+ }
49
+
50
+ /** Compares paths on their decoded form; the router encodes `route.path`. */
51
+ function decodePath(path: string): string {
52
+ try {
53
+ return decodeURI(path);
54
+ } catch {
55
+ return path;
56
+ }
57
+ }
package/content/index.yml CHANGED
@@ -5,7 +5,8 @@ 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://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/f8/66/7e/1789150226/background.mp4?ts=1789150226
9
+ poster: /hero-poster.webp
9
10
  headline: SHOPBITE
10
11
  usps:
11
12
  - title: 4.5 ⭐
@@ -68,17 +69,17 @@ gallery:
68
69
  variant: subtle
69
70
  trailingIcon: i-lucide-phone
70
71
  images:
71
- - image: https://shopware.shopbite.de/media/71/2a/1a/1762465670/restaurant1.webp
72
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/be/7b/ba/1789148625/restaurant1.webp?ts=1789148625
72
73
  alt: La Fattoria Restaurant Innenbereich 1
73
- - image: https://shopware.shopbite.de/media/61/ea/77/1762465670/restaurant2.webp
74
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/7c/a7/1c/1789148639/restaurant2.webp?ts=1789148639
74
75
  alt: La Fattoria Restaurant Innenbereich 2
75
- - image: https://shopware.shopbite.de/media/6d/ac/ca/1762465670/restaurant3.webp
76
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/94/27/0b/1789148651/restaurant3.webp?ts=1789148651
76
77
  alt: La Fattoria Restaurant Innenbereich 3
77
- - image: https://shopware.shopbite.de/media/af/d6/da/1762465670/restaurant4.webp
78
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/50/31/b1/1789148669/restaurant4.webp?ts=1789148669
78
79
  alt: La Fattoria Restaurant Innenbereich 4
79
- - image: https://shopware.shopbite.de/media/6a/ff/e2/1762465670/restaurant5.webp
80
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/41/1b/09/1789148680/restaurant5.webp?ts=1789148680
80
81
  alt: La Fattoria Restaurant Innenbereich 5
81
- - image: https://shopware.shopbite.de/media/80/76/d0/1762465670/restaurant6.webp
82
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/5b/d1/f9/1789148692/restaurant6.webp?ts=1789148692
82
83
  alt: La Fattoria Restaurant Innenbereich 6
83
84
 
84
85
  mittagstisch:
@@ -87,7 +88,7 @@ mittagstisch:
87
88
  description: Jetzt auch Samstags!
88
89
  reverse: true
89
90
  orientation: horizontal
90
- image: https://shopware.shopbite.de/media/1f/c3/c8/1771943544/lm2.webp
91
+ image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/50/31/b1/1789148669/restaurant4.webp?ts=1789148669
91
92
  imageAlt: Illustration
92
93
  features:
93
94
  - title: Montag bis Samstag
@@ -108,7 +109,7 @@ mittagstisch:
108
109
  cta:
109
110
  title: Jetzt bestellen!
110
111
  description: Genieße die italienische Küche, frisch zubereitet und direkt zu dir geliefert oder vor Ort genießen.
111
- backgroundImage: https://shopware.shopbite.de/media/f2/22/5f/1770899823/category-pizza-header2.webp
112
+ backgroundImage: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/60/5f/0e/1789148993/footer-cta.webp?ts=1789148993
112
113
  links:
113
114
  - label: Zur Speisekarte
114
115
  to: /speisekarte/
package/content.config.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { defineCollection, defineContentConfig, z } from "@nuxt/content";
2
+ import { defineSitemapSchema } from "@nuxtjs/sitemap/content";
2
3
 
3
4
  const createEnum = (options: [string, ...string[]]) => z.enum(options);
4
5
 
@@ -55,6 +56,7 @@ export default defineContentConfig({
55
56
  schema: z.object({
56
57
  hero: z.object({
57
58
  backgroundVideo: z.string().optional(),
59
+ poster: z.string().optional(),
58
60
  headline: z.string().optional(),
59
61
  links: z.array(createLinkSchema()),
60
62
  usps: z.array(
@@ -106,6 +108,7 @@ export default defineContentConfig({
106
108
  schema: z.object({
107
109
  title: z.string().min(1),
108
110
  description: z.string().optional(),
111
+ sitemap: defineSitemapSchema({ z }),
109
112
  }),
110
113
  }),
111
114
  },
@@ -67,3 +67,17 @@ src; the `undefined` cloud URL is gone.
67
67
  - Upstream issue candidate: `defu` in `useRegistryScript` silently
68
68
  prefers inlined build-time options (even empty strings) over
69
69
  `runtimeConfig.public.scripts.*` — arguably a regression vs 0.13.2.
70
+
71
+ ## Addendum 2026-09-07
72
+
73
+ `@nuxt/scripts` 1.x deprecates the `true` shorthand. The registry entry is
74
+ now `matomoAnalytics: { trigger: "onNuxtReady" }` (what `true` normalised to);
75
+ only `scriptOptions` is inlined, so runtime config still wins. Re-verified on
76
+ a production build — see `docs/notes/2026-09-07-dependency-update.md`.
77
+
78
+ ## Addendum 2026-09-10
79
+
80
+ The registry entry is gone. Matomo is now registered by `app/plugins/matomo.ts`
81
+ via `useMatomo()`, and only when `matomoUrl` and `siteId` are set — without
82
+ config the registry requested `cdn.matomo.cloud/undefined/matomo.js` (#294).
83
+ See `docs/notes/2026-09-10-issue-294-matomo-without-config.md`.
@@ -0,0 +1,113 @@
1
+ # Dependency update — 2026-09-07
2
+
3
+ Date: 2026-09-07 · Branch: `chore/updates`
4
+
5
+ All dependencies were bumped to their latest versions with two deliberate
6
+ exceptions (see "Held back"). Everything below is what broke, why, and how it
7
+ was fixed, so the next round of updates does not have to rediscover it.
8
+
9
+ ## Major bumps
10
+
11
+ | Package | From | To |
12
+ | --- | --- | --- |
13
+ | nuxt | 4.4.8 | 4.5.2 |
14
+ | @unhead/vue | 2.1.15 | 3.4.0 (required by Nuxt 4.5) |
15
+ | @nuxt/scripts | 0.13.4 | 1.3.8 |
16
+ | @pinia/nuxt | 0.11.3 | 1.0.2 |
17
+ | nuxt-vitalizer | 2.0.0 | 3.0.0 |
18
+ | @nuxt/content | 3.12.0 | 3.16.0 |
19
+ | vitest / @vitest/ui | 4.1.10 | 5.0.0 |
20
+ | jsdom | 29 | 30 |
21
+ | uuid | 13 | 14 |
22
+ | @types/node | 25 | 26 |
23
+
24
+ Everything else was a minor or patch bump.
25
+
26
+ ## Held back
27
+
28
+ - **typescript stays on 6.x.** `@typescript-eslint/*` 8.70 declares
29
+ `typescript >=4.8.4 <6.1.0`, so TypeScript 7 (the Go compiler) is not usable
30
+ until typescript-eslint supports it.
31
+ - **@nuxt/devtools-kit stays on 3.x.** Its npm `latest` tag currently points
32
+ at `4.0.0-alpha.17`; `pnpm update --latest` would have installed an alpha.
33
+
34
+ ## What broke and how it was fixed
35
+
36
+ ### Nuxt 4.5: `$fetch` is now an auto-import
37
+
38
+ Nuxt 4.5 generates `#build/fetch.mjs` (`export const $fetch = globalThis.$fetch`)
39
+ and auto-imports `$fetch` from it. Composables therefore no longer read the
40
+ global at call time, and `vi.stubGlobal("$fetch", mock)` in tests silently
41
+ stops intercepting (the real fetch hits the h3 test server → 404s).
42
+
43
+ Fix: `mockNuxtImport("$fetch", () => mockFetch)` from
44
+ `@nuxt/test-utils/runtime` (see `test/nuxt/useCategoryListing.test.ts`,
45
+ `test/nuxt/useProductConfigurator.test.ts`).
46
+
47
+ ### Nuxt UI 4.11: clicking the hidden checkbox input no longer toggles v-model
48
+
49
+ `UCheckbox` renders a `button[role="checkbox"]` plus an `aria-hidden` native
50
+ input that only mirrors state. Triggering `click` on that input used to flip
51
+ the model; now it only flips the input's own `checked`. Tests must click the
52
+ button (`acceptDataProtection()` helper in `test/nuxt/RegistrationForm.test.ts`).
53
+
54
+ ### @nuxt/scripts 1.x: registry config
55
+
56
+ - `registry.matomoAnalytics: true` is deprecated. The 1.x equivalent is
57
+ `{ trigger: "onNuxtReady" }` (that is exactly what `true` normalised to).
58
+ Only `scriptOptions` is inlined into the build, so the #259 constraint
59
+ (never inline `matomoUrl`/`siteId`, let runtime config win) still holds.
60
+ Verified on a production build with env vars set: the payload contains
61
+ `matomoUrl:"https://analytics.veliu.net/"` and `siteId:3`, and the preload
62
+ points at `https://analytics.veliu.net/matomo.js`.
63
+ - Build-time warning
64
+ `env var NUXT_PUBLIC_SCRIPTS_MATOMO_ANALYTICS_SITE_ID does not match any option`
65
+ is a false positive: the module's own env-var validator only knows the
66
+ fields in its `envDefaults` (for Matomo just `matomoUrl`). Nuxt's generic
67
+ runtime-config env override still applies because `siteId` is declared in
68
+ `runtimeConfig.public.scripts.matomoAnalytics`. Safe to ignore.
69
+
70
+ ### unhead 3: `children` → `innerHTML`
71
+
72
+ `children` on head script entries is deprecated (still rendered, but the type
73
+ now requires `innerHTML`/`textContent`). `Category/Breadcrumb.vue` switched to
74
+ `innerHTML`, matching `useCategorySeo`.
75
+
76
+ ### eslint-plugin-vue 10.11: comments at the template root
77
+
78
+ `vue/no-multiple-template-root` now flags an HTML comment placed before the
79
+ root element. The comment in `pages/bestellung/[id]/index.vue` moved inside
80
+ the element.
81
+
82
+ ### `pnpm typecheck` was not runnable at all
83
+
84
+ - `vue-tsc` was never a devDependency, so the script bailed out immediately.
85
+ It is now a devDependency (pinned to the `@vue/typescript-plugin` version).
86
+ - `tsconfig.json` had a trailing comma that the newer `@nuxt/cli` (fetched by
87
+ `pnpx`) rejects. Removed.
88
+
89
+ With those fixed, typecheck runs but still reports errors that pre-date this
90
+ update (typecheck is not part of CI): 7 in test files and the Shopware layer
91
+ sources, tracked in #248. New since the update, all inside third-party layer
92
+ sources we cannot fix here:
93
+
94
+ - `@shopware/nuxt-module/plugin.ts`: `declare module "#app" { interface NuxtApp }`
95
+ augmentation now trips "Type 'NuxtApp' recursively references itself" with
96
+ Nuxt 4.5's `interface NuxtApp extends _NuxtApp`. The file is unchanged
97
+ between 1.5.0 and 1.5.1, so this is a Nuxt 4.5 + Shopware module issue.
98
+ - `@shopware/composables` 1.12.1 `useCartItem.ts`: new `as LineItemPayloadWithOptions`
99
+ cast rejected by TS2352.
100
+
101
+ Conversely, 7 `@click` handler type errors (handlers returning non-void) in our
102
+ components disappeared with Nuxt UI 4.11.
103
+
104
+ ## Verification performed
105
+
106
+ - `pnpm test:unit`: 25 files / 132 tests green (same count as before).
107
+ - `pnpm eslint`, `pnpm prettier`: clean.
108
+ - `pnpm build`: green.
109
+ - `pnpm test:e2e` (not in CI, commented out there): passes against the
110
+ production build served with `.env.test` on port 3005. Playwright 1.63 needs
111
+ `pnpm playwright install chromium` (headless shell build 1243).
112
+ - Production server smoke test: `/` and `/speisekarte/pizza/` render, JSON-LD
113
+ scripts (category + breadcrumb) present, Matomo config correct.
@@ -0,0 +1,83 @@
1
+ # Issue #240 — `shipping-method-blocked` invalidates the cart and blocks orders
2
+
3
+ Date: 2026-09-08 · Branch: `fix/issue-240-shipping-method-blocked`
4
+
5
+ ## Symptom
6
+
7
+ OpenObserve RUM reported 39 occurrences in 7 days of
8
+
9
+ > Failed request
10
+ > - [Internal Server Error] The cart is invalid, got 1 error(s): shipping-method-blocked…
11
+
12
+ raised by `POST /store-api/checkout/order`. The customer clicks
13
+ "Jetzt bestellen!", the button briefly spins, and nothing happens.
14
+
15
+ ## Root cause
16
+
17
+ Two things combine:
18
+
19
+ 1. **Shopware only auto-switches a blocked shipping method in its Twig
20
+ storefront.** `Shopware\Storefront\Checkout\Shipping\BlockedShippingMethodSwitcher`
21
+ is wired into `StorefrontCartFacade`, which the Store API never uses.
22
+ Via the Store API the cart simply carries a `shipping-method-blocked`
23
+ error (`ShippingMethodBlockedError`, level *warning*, `blockOrder() = true`)
24
+ and `OrderPersister::persist()` throws `CartException::invalidCart()`
25
+ (HTTP 500, `CHECKOUT__CART_INVALID`). Verified against
26
+ `shopware/core` v6.7.13.1 in `../shopware/vendor`.
27
+
28
+ A shipping method becomes blocked whenever its availability rule no
29
+ longer matches the current context (`DeliveryValidator`) or it is not
30
+ in the "onlyAvailable" list (`CheckoutGatewayRoute`). Typical triggers
31
+ in a food-delivery shop: cart total falls below the minimum order value
32
+ of the delivery rule, the customer switches to an address outside the
33
+ delivery zone, or the rule depends on time/day.
34
+
35
+ 2. **The headless storefront never looked at cart errors and never caught
36
+ the failed order request.** `CheckoutSummary.handleCreateOrder()` had
37
+ only `try … finally`, so the rejection escaped as an unhandled error
38
+ (which is what RUM captured) and the customer saw no feedback. The
39
+ "Jetzt bestellen!" button only checked that *some* shipping method was
40
+ set in the session, not that it was still allowed.
41
+
42
+ ## Fix
43
+
44
+ - New composable `app/composables/useShippingMethodGuard.ts`:
45
+ - `hasBlockedShippingMethod(cart)` / `getCartErrors(cart)` normalise
46
+ `cart.errors` (array or keyed object) and look for
47
+ `messageKey === "shipping-method-blocked"`.
48
+ - `ensureAvailableShippingMethod()` refreshes the cart and, if blocked,
49
+ reloads the available shipping methods (`forceReload`), picks the
50
+ sales-channel default (`sessionContext.salesChannel.shippingMethodId`)
51
+ or otherwise the first available method, sets it, refreshes the cart
52
+ again and shows a warning toast. Returns `false` when no alternative
53
+ exists or the cart is still blocked. This mirrors Shopware's own
54
+ `BlockedShippingMethodSwitcher` behaviour.
55
+ - `Checkout/PaymentAndDelivery.vue` runs the guard after loading the
56
+ methods, keeps the radio in sync with the session's shipping method and
57
+ no longer re-sets a method that is already selected.
58
+ - `Checkout/Summary.vue` runs the guard on mount and again right before
59
+ `createOrder()`. If no shipping method is available the order button is
60
+ disabled with "Aktuell ist keine Versandart verfügbar". `createOrder`
61
+ failures are now caught, logged and surfaced as an error toast, and the
62
+ cart is refreshed.
63
+
64
+ Tests: `test/nuxt/useShippingMethodGuard.test.ts` (new) and
65
+ `test/nuxt/PaymentAndDelivery.test.ts` (extended).
66
+
67
+ ## Not covered / follow-ups
68
+
69
+ - The same gap exists for `payment-method-blocked`
70
+ (`BlockedPaymentMethodSwitcher` is Twig-storefront only as well).
71
+ Filed as #276 and fixed in #280, which generalised the composable into
72
+ `app/composables/useCheckoutMethodGuard.ts`. `useShippingMethodGuard`
73
+ described above no longer exists; see
74
+ `2026-09-08-issue-276-payment-method-blocked.md` for the current API.
75
+ - The *reason* a shipping method gets blocked lives in the Shopware admin
76
+ rule configuration of each shop and cannot be determined from this
77
+ repository. If the RUM count does not drop after this fix, check the
78
+ availability rules of the delivery shipping method for the affected
79
+ sales channel.
80
+ - `pnpm typecheck` reports 37 pre-existing errors on `main` (30 inside
81
+ `@shopware/composables` / `@shopware/nuxt-module`, 7 in our test files).
82
+ Unrelated to this change; filed as #277. #276 covers the
83
+ `payment-method-blocked` gap.