@shopbite-de/storefront 1.22.1 → 1.22.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/app/app.vue +1 -1
- package/app/components/Category/Listing.vue +15 -4
- package/content.config.ts +0 -38
- package/nuxt.config.ts +38 -20
- package/package.json +2 -2
- package/public/screenshot-desktop.png +0 -0
- package/public/screenshot-mobile.png +0 -0
package/app/app.vue
CHANGED
|
@@ -138,11 +138,22 @@ const moreThanOneFilterAndOption = computed<boolean>(
|
|
|
138
138
|
<ClientOnly v-if="moreThanOneFilterAndOption">
|
|
139
139
|
<UDrawer class="lg:hidden" title="Filter" direction="right">
|
|
140
140
|
<UButton
|
|
141
|
-
label="Filter"
|
|
142
141
|
icon="i-lucide-sliders-horizontal"
|
|
143
|
-
color="
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
:color="
|
|
143
|
+
selectedPropertyFilters.length ? 'primary' : 'neutral'
|
|
144
|
+
"
|
|
145
|
+
:variant="selectedPropertyFilters.length ? 'solid' : 'subtle'"
|
|
146
|
+
>
|
|
147
|
+
Filter
|
|
148
|
+
<UBadge
|
|
149
|
+
v-if="selectedPropertyFilters.length"
|
|
150
|
+
:label="String(selectedPropertyFilters.length)"
|
|
151
|
+
size="sm"
|
|
152
|
+
color="neutral"
|
|
153
|
+
variant="solid"
|
|
154
|
+
class="ml-1"
|
|
155
|
+
/>
|
|
156
|
+
</UButton>
|
|
146
157
|
|
|
147
158
|
<template #body>
|
|
148
159
|
<div class="flex flex-col gap-4">
|
package/content.config.ts
CHANGED
|
@@ -47,27 +47,6 @@ const createFeatureSchema = () =>
|
|
|
47
47
|
.editor({ hidden: true }),
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
const createNavigationItemSchema = () =>
|
|
51
|
-
z.object({
|
|
52
|
-
label: z.string().nonempty(),
|
|
53
|
-
icon: z.string().optional().editor({ input: "icon" }),
|
|
54
|
-
to: z.string().nonempty(),
|
|
55
|
-
target: createEnum(["_blank", "_self"]),
|
|
56
|
-
type: createEnum(["label", "item"]).optional(),
|
|
57
|
-
action: z.string().optional(),
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
const createFooterColumnSchema = () =>
|
|
61
|
-
z.object({
|
|
62
|
-
label: z.string().nonempty(),
|
|
63
|
-
children: z.array(
|
|
64
|
-
z.object({
|
|
65
|
-
label: z.string().nonempty(),
|
|
66
|
-
to: z.string().optional(),
|
|
67
|
-
}),
|
|
68
|
-
),
|
|
69
|
-
});
|
|
70
|
-
|
|
71
50
|
export default defineContentConfig({
|
|
72
51
|
collections: {
|
|
73
52
|
home: defineCollection({
|
|
@@ -121,23 +100,6 @@ export default defineContentConfig({
|
|
|
121
100
|
}),
|
|
122
101
|
}),
|
|
123
102
|
}),
|
|
124
|
-
navigation: defineCollection({
|
|
125
|
-
source: "navigation.yml",
|
|
126
|
-
type: "page",
|
|
127
|
-
schema: z.object({
|
|
128
|
-
main: z.array(createNavigationItemSchema()),
|
|
129
|
-
account: z.object({
|
|
130
|
-
loggedIn: z.array(z.array(createNavigationItemSchema())),
|
|
131
|
-
loggedOut: z.array(z.array(createNavigationItemSchema())),
|
|
132
|
-
}),
|
|
133
|
-
footer: z.object({
|
|
134
|
-
withGithubLink: z.boolean(),
|
|
135
|
-
withColorModeSwitch: z.boolean(),
|
|
136
|
-
text: z.string().optional(),
|
|
137
|
-
columns: z.array(createFooterColumnSchema()),
|
|
138
|
-
}),
|
|
139
|
-
}),
|
|
140
|
-
}),
|
|
141
103
|
landingpages: defineCollection({
|
|
142
104
|
source: "**/*.md",
|
|
143
105
|
type: "page",
|
package/nuxt.config.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
|
2
|
-
const
|
|
3
|
-
const storeName = process.env.STORE_NAME || "ShopBite";
|
|
2
|
+
const storeName = process.env.NUXT_STORE_NAME || "ShopBite";
|
|
4
3
|
const storeDescription =
|
|
5
|
-
process.env.
|
|
4
|
+
process.env.NUXT_STORE_DESCRIPTION ||
|
|
6
5
|
"Reduziere deine Kosten und steigere deinen Umsatz";
|
|
7
6
|
|
|
8
7
|
export default defineNuxtConfig({
|
|
@@ -17,18 +16,15 @@ export default defineNuxtConfig({
|
|
|
17
16
|
{ name: "viewport", content: "width=device-width, initial-scale=1" },
|
|
18
17
|
{
|
|
19
18
|
name: "description",
|
|
20
|
-
content:
|
|
21
|
-
"Dein eigenes Bestellsystem ohne Provisionen, ohne monatliche Kosten – 100% Open Source und individuell anpassbar. Perfekt für Pizzerien, Imbisse und Lieferdienste.",
|
|
19
|
+
content: storeDescription,
|
|
22
20
|
},
|
|
23
21
|
{
|
|
24
22
|
property: "og:title",
|
|
25
|
-
content:
|
|
26
|
-
"Dein eigenes Bestellsystem ohne Provisionen, ohne monatliche Kosten – 100% Open Source und individuell anpassbar. Perfekt für Pizzerien, Imbisse und Lieferdienste.",
|
|
23
|
+
content: storeDescription,
|
|
27
24
|
},
|
|
28
25
|
{
|
|
29
26
|
property: "og:description",
|
|
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
|
+
content: storeDescription,
|
|
32
28
|
},
|
|
33
29
|
],
|
|
34
30
|
link: [{ rel: "icon", href: "/favicon.ico", type: "image/png" }],
|
|
@@ -119,45 +115,68 @@ export default defineNuxtConfig({
|
|
|
119
115
|
},
|
|
120
116
|
|
|
121
117
|
pwa: {
|
|
122
|
-
strategies: sw ? "injectManifest" : "generateSW",
|
|
123
|
-
srcDir: sw ? "service-worker" : undefined,
|
|
124
|
-
filename: sw ? "sw.ts" : undefined,
|
|
125
118
|
registerType: "autoUpdate",
|
|
126
119
|
manifest: {
|
|
120
|
+
id: "/",
|
|
121
|
+
scope: "/",
|
|
127
122
|
name: storeName,
|
|
128
123
|
short_name: storeName,
|
|
124
|
+
description: storeDescription,
|
|
129
125
|
theme_color: "#ff5b00",
|
|
126
|
+
background_color: "#ffffff",
|
|
130
127
|
display: "standalone",
|
|
131
128
|
start_url: "/",
|
|
129
|
+
screenshots: [
|
|
130
|
+
{
|
|
131
|
+
src: "screenshot-mobile.png",
|
|
132
|
+
sizes: "390x844",
|
|
133
|
+
type: "image/png",
|
|
134
|
+
form_factor: "narrow",
|
|
135
|
+
label: storeName,
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
src: "screenshot-desktop.png",
|
|
139
|
+
sizes: "1280x800",
|
|
140
|
+
type: "image/png",
|
|
141
|
+
form_factor: "wide",
|
|
142
|
+
label: storeName,
|
|
143
|
+
},
|
|
144
|
+
],
|
|
132
145
|
icons: [
|
|
133
146
|
{
|
|
134
147
|
src: "logo-192.png",
|
|
135
148
|
sizes: "192x192",
|
|
136
149
|
type: "image/png",
|
|
150
|
+
purpose: "any",
|
|
137
151
|
},
|
|
138
152
|
{
|
|
139
153
|
src: "logo-512.png",
|
|
140
154
|
sizes: "512x512",
|
|
141
155
|
type: "image/png",
|
|
156
|
+
purpose: "any",
|
|
142
157
|
},
|
|
143
158
|
{
|
|
144
159
|
src: "logo-512.png",
|
|
145
160
|
sizes: "512x512",
|
|
146
161
|
type: "image/png",
|
|
147
|
-
purpose: "
|
|
162
|
+
purpose: "maskable",
|
|
148
163
|
},
|
|
149
164
|
],
|
|
150
165
|
},
|
|
151
166
|
workbox: {
|
|
152
167
|
globPatterns: ["**/*.{js,css,html,png,svg,ico}"],
|
|
153
168
|
globIgnores: ["**/_payload.json"],
|
|
169
|
+
navigateFallback: null,
|
|
170
|
+
runtimeCaching: [
|
|
171
|
+
{
|
|
172
|
+
urlPattern: "/",
|
|
173
|
+
handler: "NetworkFirst",
|
|
174
|
+
},
|
|
175
|
+
],
|
|
154
176
|
},
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
},
|
|
159
|
-
client: {
|
|
160
|
-
installPrompt: true,
|
|
177
|
+
devOptions: {
|
|
178
|
+
enabled: true,
|
|
179
|
+
type: "module",
|
|
161
180
|
},
|
|
162
181
|
},
|
|
163
182
|
|
|
@@ -202,7 +221,6 @@ export default defineNuxtConfig({
|
|
|
202
221
|
"@nuxt/image",
|
|
203
222
|
"@nuxt/content",
|
|
204
223
|
"@nuxtjs/robots",
|
|
205
|
-
"@vite-pwa/nuxt",
|
|
206
224
|
"@nuxt/ui",
|
|
207
225
|
"@nuxt/scripts",
|
|
208
226
|
"@nuxt/test-utils/module",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopbite-de/storefront",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.3",
|
|
4
4
|
"main": "nuxt.config.ts",
|
|
5
5
|
"description": "Shopware storefront for food delivery shops",
|
|
6
6
|
"keywords": [
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@typescript-eslint/eslint-plugin": "^8.57.0",
|
|
56
56
|
"@typescript-eslint/parser": "^8.57.0",
|
|
57
57
|
"@vitejs/plugin-vue": "^6.0.5",
|
|
58
|
-
"@vitest/ui": "4.1.
|
|
58
|
+
"@vitest/ui": "4.1.3",
|
|
59
59
|
"@vue/compiler-dom": "^3.5.30",
|
|
60
60
|
"@vue/server-renderer": "^3.5.30",
|
|
61
61
|
"@vue/test-utils": "^2.4.6",
|
|
Binary file
|
|
Binary file
|