@shopbite-de/storefront 1.6.0 → 1.6.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.
- package/.env.example +4 -1
- package/LICENSE +21 -0
- package/README.md +81 -0
- package/app/pages/[...all].vue +28 -0
- package/app/pages/index.vue +4 -0
- package/app/pages/menu/[...all].vue +52 -0
- package/content/{unternehmen/impressum.md → impressum.md} +5 -0
- package/content/index.yml +2 -1
- package/content/unternehmen/agb.md +5 -0
- package/content/unternehmen/datenschutz.md +5 -0
- package/content/unternehmen/zahlung-und-versand.md +5 -0
- package/content.config.ts +6 -2
- package/eslint.config.mjs +5 -3
- package/nuxt.config.ts +32 -22
- package/package.json +2 -1
- package/public/card.png +0 -0
- package/app/pages/unternehmen/[slug].vue +0 -66
package/.env.example
CHANGED
|
@@ -10,4 +10,7 @@ NUXT_PUBLIC_SHOPWARE_COUNTRY_ID=019a17a0f67b706a8ec9ead3059e12ba
|
|
|
10
10
|
OPENAPI_ACCESS_KEY=key
|
|
11
11
|
OPENAPI_JSON_URL="https://shopware.shopbite.net"
|
|
12
12
|
|
|
13
|
-
NUXT_GEOAPIFY_API_KEY=
|
|
13
|
+
NUXT_GEOAPIFY_API_KEY=
|
|
14
|
+
|
|
15
|
+
NUXT_PUBLIC_SCRIPTS_MATOMO_ANALYTICS_MATOMO_URL=
|
|
16
|
+
NUXT_PUBLIC_SCRIPTS_MATOMO_ANALYTICS_SITE_ID=
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 @veliu
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# @shopbite-de/storefront
|
|
2
|
+
|
|
3
|
+
Shopware storefront for food delivery shops, built with Nuxt 4 and Vue 3.
|
|
4
|
+
|
|
5
|
+
This is a Nuxt project based on [shopware/frontends](https://github.com/shopware/frontends) to provide a cutting-edge frontend store based on Shopware 6.
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- Built with Nuxt 4 and Vue 3
|
|
10
|
+
- Based on shopware/frontends
|
|
11
|
+
- Integration with Shopware Store API (Shopware 6)
|
|
12
|
+
- Tailwind CSS and Nuxt UI
|
|
13
|
+
- PWA support
|
|
14
|
+
|
|
15
|
+
## Prerequisites
|
|
16
|
+
|
|
17
|
+
- Node.js (latest LTS recommended)
|
|
18
|
+
- pnpm 10+
|
|
19
|
+
- [Shopbite Shopware Plugin](https://github.com/shopbite-de/shopware-plugin) (required to enable all features)
|
|
20
|
+
|
|
21
|
+
## Setup
|
|
22
|
+
|
|
23
|
+
Install the dependencies:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pnpm install
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Development
|
|
30
|
+
|
|
31
|
+
Start the development server on `http://localhost:3000`:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
pnpm dev
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Production
|
|
38
|
+
|
|
39
|
+
Build the application for production:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
pnpm build
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Locally preview production build:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
pnpm preview
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Testing
|
|
52
|
+
|
|
53
|
+
Run unit tests:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
pnpm test:unit
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Run E2E tests:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
pnpm test:e2e
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Linting
|
|
66
|
+
|
|
67
|
+
Check code quality:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
pnpm eslint
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Fix linting issues:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
pnpm lint:fix
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## License
|
|
80
|
+
|
|
81
|
+
[MIT](./LICENSE)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
const route = useRoute();
|
|
3
|
+
const { data: page, error } = await useAsyncData(
|
|
4
|
+
`landingpages-${route.path}`,
|
|
5
|
+
() => {
|
|
6
|
+
return queryCollection("landingpages").path(route.path).first();
|
|
7
|
+
},
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
if (error.value || !page.value) {
|
|
11
|
+
throw createError({
|
|
12
|
+
statusCode: 404,
|
|
13
|
+
statusMessage: `Page ${route.path} not found!`,
|
|
14
|
+
fatal: true,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
useSeoMeta({
|
|
19
|
+
title: page.value?.title,
|
|
20
|
+
description: page.value?.description,
|
|
21
|
+
});
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<UContainer>
|
|
26
|
+
<ContentRenderer v-if="page" :value="page" class="content my-8" />
|
|
27
|
+
</UContainer>
|
|
28
|
+
</template>
|
package/app/pages/index.vue
CHANGED
|
@@ -13,8 +13,12 @@ if (!page.value) {
|
|
|
13
13
|
useSeoMeta({
|
|
14
14
|
title: page.value.seo?.title || page.value.title,
|
|
15
15
|
ogTitle: page.value.seo?.title || page.value.title,
|
|
16
|
+
twitterTitle: page.value.seo?.title || page.value.title,
|
|
16
17
|
description: page.value.seo?.description || page.value.description,
|
|
17
18
|
ogDescription: page.value.seo?.description || page.value.description,
|
|
19
|
+
twitterDescription: page.value.seo?.description || page.value.description,
|
|
20
|
+
ogImage: page.value.seo?.image,
|
|
21
|
+
twitterImage: page.value.seo?.image,
|
|
18
22
|
});
|
|
19
23
|
</script>
|
|
20
24
|
<template>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { Schemas } from "#shopware";
|
|
3
|
+
|
|
4
|
+
definePageMeta({
|
|
5
|
+
layout: "listing2",
|
|
6
|
+
});
|
|
7
|
+
const { clearBreadcrumbs } = useBreadcrumbs();
|
|
8
|
+
const { resolvePath } = useNavigationSearch();
|
|
9
|
+
const route = useRoute();
|
|
10
|
+
const routePath = route.path;
|
|
11
|
+
|
|
12
|
+
const { data: seoResult, error } = await useAsyncData(
|
|
13
|
+
`cmsResponse${routePath}`,
|
|
14
|
+
async () => {
|
|
15
|
+
// For client links if the history state contains seo url information we can omit the api call
|
|
16
|
+
if (import.meta.client) {
|
|
17
|
+
if (history.state?.routeName) {
|
|
18
|
+
return {
|
|
19
|
+
routeName: history.state?.routeName,
|
|
20
|
+
foreignKey: history.state?.foreignKey,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
const seoUrl = await resolvePath(routePath);
|
|
25
|
+
|
|
26
|
+
if (!seoUrl?.foreignKey) {
|
|
27
|
+
throw createError({
|
|
28
|
+
statusCode: 404,
|
|
29
|
+
statusMessage: `No data fetched from API for ${routePath}`,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return seoUrl;
|
|
34
|
+
},
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
if (error.value) {
|
|
38
|
+
throw error.value;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const { foreignKey } = useNavigationContext(
|
|
42
|
+
seoResult as Ref<Schemas["SeoUrl"]>,
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
onBeforeRouteLeave(() => {
|
|
46
|
+
clearBreadcrumbs();
|
|
47
|
+
});
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<template>
|
|
51
|
+
<CategoryListing :id="foreignKey" />
|
|
52
|
+
</template>
|
package/content/index.yml
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
seo:
|
|
2
|
-
title: ShopBite –
|
|
2
|
+
title: ShopBite – Demo Store
|
|
3
3
|
description: Dein eigenes Bestellsystem ohne Provisionen, ohne monatliche Kosten – 100% Open Source und individuell anpassbar. Perfekt für Pizzerien, Imbisse und Lieferdienste.
|
|
4
|
+
image: /card.png
|
|
4
5
|
title: ShopBite
|
|
5
6
|
description: Reduziere Kosten und steigere deinen Umsatz
|
|
6
7
|
hero:
|
package/content.config.ts
CHANGED
|
@@ -131,9 +131,13 @@ export default defineContentConfig({
|
|
|
131
131
|
}),
|
|
132
132
|
}),
|
|
133
133
|
}),
|
|
134
|
-
|
|
135
|
-
source: "
|
|
134
|
+
landingpages: defineCollection({
|
|
135
|
+
source: "**/*.md",
|
|
136
136
|
type: "page",
|
|
137
|
+
schema: z.object({
|
|
138
|
+
title: z.string().min(1),
|
|
139
|
+
description: z.string().optional(),
|
|
140
|
+
}),
|
|
137
141
|
}),
|
|
138
142
|
},
|
|
139
143
|
});
|
package/eslint.config.mjs
CHANGED
|
@@ -3,6 +3,8 @@ import withNuxt from './.nuxt/eslint.config.mjs'
|
|
|
3
3
|
|
|
4
4
|
export default withNuxt({
|
|
5
5
|
rules: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"vue/no-watch-after-await": "error",
|
|
7
|
+
"vue/no-lifecycle-after-await": "error",
|
|
8
|
+
"vue/multi-word-component-names": "off",
|
|
9
|
+
},
|
|
10
|
+
});
|
package/nuxt.config.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export default defineNuxtConfig({
|
|
3
3
|
app: {
|
|
4
4
|
head: {
|
|
5
|
-
title: "ShopBite
|
|
5
|
+
title: "ShopBite – Kostenloses Online-Bestellsystem für Gastronomie",
|
|
6
6
|
htmlAttrs: {
|
|
7
7
|
lang: "de",
|
|
8
8
|
},
|
|
@@ -11,18 +11,20 @@ export default defineNuxtConfig({
|
|
|
11
11
|
{ name: "viewport", content: "width=device-width, initial-scale=1" },
|
|
12
12
|
{
|
|
13
13
|
name: "description",
|
|
14
|
-
content:
|
|
14
|
+
content:
|
|
15
|
+
"Dein eigenes Bestellsystem ohne Provisionen, ohne monatliche Kosten – 100% Open Source und individuell anpassbar. Perfekt für Pizzerien, Imbisse und Lieferdienste.",
|
|
15
16
|
},
|
|
16
17
|
{
|
|
17
18
|
property: "og:title",
|
|
18
|
-
content:
|
|
19
|
+
content:
|
|
20
|
+
"Dein eigenes Bestellsystem ohne Provisionen, ohne monatliche Kosten – 100% Open Source und individuell anpassbar. Perfekt für Pizzerien, Imbisse und Lieferdienste.",
|
|
19
21
|
},
|
|
20
22
|
{
|
|
21
23
|
property: "og:description",
|
|
22
24
|
content: "Italienisch-deutsche Küche in Obertshausen",
|
|
23
25
|
},
|
|
24
26
|
],
|
|
25
|
-
link: [{ rel: "icon", href: "/favicon.ico" }],
|
|
27
|
+
link: [{ rel: "icon", href: "/favicon.ico", type: "image/png" }],
|
|
26
28
|
},
|
|
27
29
|
},
|
|
28
30
|
colorMode: {
|
|
@@ -30,12 +32,6 @@ export default defineNuxtConfig({
|
|
|
30
32
|
},
|
|
31
33
|
robots: {
|
|
32
34
|
disallow: [
|
|
33
|
-
"/unternehmen/impressum",
|
|
34
|
-
"/unternehmen/datenschutz",
|
|
35
|
-
"/unternehmen/agb",
|
|
36
|
-
"/impressum",
|
|
37
|
-
"/datenschutz",
|
|
38
|
-
"/agb",
|
|
39
35
|
"/merkliste",
|
|
40
36
|
"/passwort-vergessen",
|
|
41
37
|
"/account/recover/password",
|
|
@@ -60,15 +56,6 @@ export default defineNuxtConfig({
|
|
|
60
56
|
},
|
|
61
57
|
|
|
62
58
|
routeRules: {
|
|
63
|
-
"/impressum": {
|
|
64
|
-
redirect: "/unternehmen/impressum",
|
|
65
|
-
},
|
|
66
|
-
"/datenschutz": {
|
|
67
|
-
redirect: "/unternehmen/datenschutz",
|
|
68
|
-
},
|
|
69
|
-
"/agb": {
|
|
70
|
-
redirect: "/unternehmen/agb",
|
|
71
|
-
},
|
|
72
59
|
"/merkliste": {
|
|
73
60
|
ssr: false,
|
|
74
61
|
},
|
|
@@ -93,10 +80,8 @@ export default defineNuxtConfig({
|
|
|
93
80
|
"@vite-pwa/nuxt",
|
|
94
81
|
"@sentry/nuxt/module",
|
|
95
82
|
"@nuxt/ui",
|
|
83
|
+
"@nuxt/scripts",
|
|
96
84
|
"@nuxtjs/plausible",
|
|
97
|
-
...(process.env.NODE_ENV === "development"
|
|
98
|
-
? ["@nuxt/test-utils/module", "@nuxt/eslint"]
|
|
99
|
-
: []),
|
|
100
85
|
],
|
|
101
86
|
|
|
102
87
|
plausible: {
|
|
@@ -151,4 +136,29 @@ export default defineNuxtConfig({
|
|
|
151
136
|
experimental: {
|
|
152
137
|
asyncContext: true,
|
|
153
138
|
},
|
|
139
|
+
$development: {
|
|
140
|
+
modules: [
|
|
141
|
+
"@shopware/nuxt-module",
|
|
142
|
+
"@nuxt/image",
|
|
143
|
+
"@nuxt/content",
|
|
144
|
+
"@nuxtjs/robots",
|
|
145
|
+
"@vite-pwa/nuxt",
|
|
146
|
+
"@sentry/nuxt/module",
|
|
147
|
+
"@nuxt/ui",
|
|
148
|
+
"@nuxt/scripts",
|
|
149
|
+
"@nuxtjs/plausible",
|
|
150
|
+
"@nuxt/test-utils/module",
|
|
151
|
+
"@nuxt/eslint",
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
$production: {
|
|
155
|
+
scripts: {
|
|
156
|
+
registry: {
|
|
157
|
+
matomoAnalytics: {
|
|
158
|
+
matomoUrl: "",
|
|
159
|
+
siteId: "",
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
},
|
|
154
164
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopbite-de/storefront",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"main": "nuxt.config.ts",
|
|
5
5
|
"description": "Shopware storefront for food delivery shops",
|
|
6
6
|
"keywords": [
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"@iconify-json/simple-icons": "^1.2.59",
|
|
21
21
|
"@nuxt/content": "^3.8.2",
|
|
22
22
|
"@nuxt/image": "^2.0.0",
|
|
23
|
+
"@nuxt/scripts": "0.13.2",
|
|
23
24
|
"@nuxt/ui": "^4.1.0",
|
|
24
25
|
"@nuxtjs/plausible": "2.0.1",
|
|
25
26
|
"@nuxtjs/robots": "^5.5.6",
|
package/public/card.png
ADDED
|
Binary file
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
const slug = useRoute().params.slug;
|
|
3
|
-
const { data } = await useAsyncData(`unternehmen-${slug}`, () => {
|
|
4
|
-
return queryCollection("unternehmen").path(`/unternehmen/${slug}`).first();
|
|
5
|
-
});
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<template>
|
|
9
|
-
<UContainer>
|
|
10
|
-
<ContentRenderer :value="data" class="content my-8" />
|
|
11
|
-
</UContainer>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<style scoped>
|
|
15
|
-
@import "tailwindcss";
|
|
16
|
-
@import "@nuxt/ui";
|
|
17
|
-
|
|
18
|
-
:deep(.content h1) {
|
|
19
|
-
@apply text-4xl font-bold mb-8 text-gray-900 dark:text-gray-100;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
:deep(.content h2) {
|
|
23
|
-
@apply text-2xl font-semibold mt-8 mb-4 text-gray-800 dark:text-gray-200;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:deep(.content h3) {
|
|
27
|
-
@apply text-xl font-semibold mt-6 mb-3 text-gray-800 dark:text-gray-200;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
:deep(.content p) {
|
|
31
|
-
@apply mb-4 text-gray-700 dark:text-gray-300 leading-relaxed;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
:deep(.content ul),
|
|
35
|
-
:deep(.content ol) {
|
|
36
|
-
@apply mb-4 ml-6 space-y-2;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
:deep(.content li) {
|
|
40
|
-
@apply text-gray-700 dark:text-gray-300 leading-relaxed;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
:deep(.content ul li) {
|
|
44
|
-
@apply list-disc;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
:deep(.content ol li) {
|
|
48
|
-
@apply list-decimal;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
:deep(.content strong) {
|
|
52
|
-
@apply font-semibold text-gray-900 dark:text-gray-100;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/* Unstyle links by default, keep subtle hover */
|
|
56
|
-
:deep(.content a) {
|
|
57
|
-
@apply no-underline text-inherit transition-colors;
|
|
58
|
-
}
|
|
59
|
-
:deep(.content a:hover) {
|
|
60
|
-
@apply text-primary;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
:deep(.content section) {
|
|
64
|
-
@apply mb-8;
|
|
65
|
-
}
|
|
66
|
-
</style>
|