@shopbite-de/storefront 1.7.1 → 1.7.3

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,6 @@ 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"
package/nuxt.config.ts CHANGED
@@ -1,8 +1,11 @@
1
1
  // https://v3.nuxtjs.org/api/configuration/nuxt.config
2
+ const sw = process.env.SW === "true";
3
+ const storeName = process.env.STORE_NAME || "ShopBite";
4
+
2
5
  export default defineNuxtConfig({
3
6
  app: {
4
7
  head: {
5
- title: "ShopBite – Kostenloses Online-Bestellsystem für Gastronomie",
8
+ title: storeName,
6
9
  htmlAttrs: {
7
10
  lang: "de",
8
11
  },
@@ -21,7 +24,8 @@ export default defineNuxtConfig({
21
24
  },
22
25
  {
23
26
  property: "og:description",
24
- content: "Italienisch-deutsche Küche in Obertshausen",
27
+ content:
28
+ "Dein eigenes Bestellsystem ohne Provisionen, ohne monatliche Kosten – 100% Open Source und individuell anpassbar. Perfekt für Pizzerien, Imbisse und Lieferdienste.",
25
29
  },
26
30
  ],
27
31
  link: [{ rel: "icon", href: "/favicon.ico", type: "image/png" }],
@@ -107,29 +111,44 @@ export default defineNuxtConfig({
107
111
  },
108
112
 
109
113
  pwa: {
114
+ strategies: sw ? "injectManifest" : "generateSW",
115
+ srcDir: sw ? "service-worker" : undefined,
116
+ filename: sw ? "sw.ts" : undefined,
117
+ registerType: "autoUpdate",
110
118
  manifest: {
111
- name: "ShopBite",
112
- short_name: "ShopBite",
119
+ name: storeName,
120
+ short_name: storeName,
113
121
  theme_color: "#ff5b00",
114
122
  icons: [
115
123
  {
116
- src: "dark/Logo.svg",
124
+ src: "logo-192.png",
117
125
  sizes: "192x192",
118
- type: "image/svg",
126
+ type: "image/png",
119
127
  },
120
128
  {
121
- src: "dark/Logo.svg",
129
+ src: "logo-512.png",
122
130
  sizes: "512x512",
123
- type: "image/svg",
131
+ type: "image/png",
124
132
  },
125
133
  {
126
- src: "dark/Logo.svg",
134
+ src: "logo-512.png",
127
135
  sizes: "512x512",
128
- type: "image/svg",
136
+ type: "image/png",
129
137
  purpose: "any maskable",
130
138
  },
131
139
  ],
132
140
  },
141
+ workbox: {
142
+ globPatterns: ["**/*.{js,css,html,png,svg,ico}"],
143
+ globIgnores: ["**/_payload.json"],
144
+ },
145
+ injectManifest: {
146
+ globPatterns: ["**/*.{js,css,html,png,svg,ico}"],
147
+ globIgnores: ["**/_payload.json"],
148
+ },
149
+ client: {
150
+ installPrompt: true,
151
+ },
133
152
  },
134
153
 
135
154
  nitro: {
@@ -149,6 +168,8 @@ export default defineNuxtConfig({
149
168
 
150
169
  experimental: {
151
170
  asyncContext: true,
171
+ payloadExtraction: true,
172
+ watcher: "parcel",
152
173
  },
153
174
  $development: {
154
175
  modules: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopbite-de/storefront",
3
- "version": "1.7.1",
3
+ "version": "1.7.3",
4
4
  "main": "nuxt.config.ts",
5
5
  "description": "Shopware storefront for food delivery shops",
6
6
  "keywords": [
Binary file
Binary file