@shopbite-de/storefront 1.5.3 → 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 +6 -1
- package/LICENSE +21 -0
- package/README.md +81 -0
- package/app/components/Address/Fields.vue +128 -0
- package/app/components/Checkout/PaymentAndDelivery.vue +49 -27
- package/app/components/Header.vue +26 -13
- package/app/components/User/LoginForm.vue +32 -11
- package/app/components/User/RegistrationForm.vue +105 -180
- package/app/composables/useAddressAutocomplete.ts +84 -0
- package/app/composables/useAddressValidation.ts +95 -0
- package/app/composables/useValidCitiesForDelivery.ts +12 -0
- package/app/pages/[...all].vue +28 -0
- package/app/pages/index.vue +4 -0
- package/app/pages/menu/[...all].vue +52 -0
- package/app/validation/registrationSchema.ts +105 -124
- 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 +34 -0
- package/content.config.ts +6 -2
- package/eslint.config.mjs +5 -3
- package/nuxt.config.ts +33 -22
- package/package.json +2 -1
- package/public/card.png +0 -0
- package/server/api/address/autocomplete.get.ts +33 -0
- package/test/nuxt/AddressFields.test.ts +284 -0
- package/test/nuxt/Header.test.ts +124 -0
- package/test/nuxt/LoginForm.test.ts +141 -0
- package/test/nuxt/PaymentAndDelivery.test.ts +78 -0
- package/test/nuxt/RegistrationForm.test.ts +255 -0
- package/test/nuxt/RegistrationValidation.test.ts +39 -0
- package/test/nuxt/registrationSchema.test.ts +242 -0
- package/test/nuxt/useAddressAutocomplete.test.ts +161 -0
- package/app/pages/unternehmen/[slug].vue +0 -66
|
@@ -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>
|