@shopbite-de/storefront 1.22.1 → 1.22.2

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.
@@ -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="neutral"
144
- variant="subtle"
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 sw = process.env.SW === "true";
3
- const storeName = process.env.STORE_NAME || "ShopBite";
2
+ const storeName = process.env.NUXT_STORE_NAME || "ShopBite";
4
3
  const storeDescription =
5
- process.env.STORE_DESCRIPTION ||
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,10 +115,6 @@ 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
- registerType: "autoUpdate",
126
118
  manifest: {
127
119
  name: storeName,
128
120
  short_name: storeName,
@@ -156,9 +148,6 @@ export default defineNuxtConfig({
156
148
  globPatterns: ["**/*.{js,css,html,png,svg,ico}"],
157
149
  globIgnores: ["**/_payload.json"],
158
150
  },
159
- client: {
160
- installPrompt: true,
161
- },
162
151
  },
163
152
 
164
153
  nitro: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopbite-de/storefront",
3
- "version": "1.22.1",
3
+ "version": "1.22.2",
4
4
  "main": "nuxt.config.ts",
5
5
  "description": "Shopware storefront for food delivery shops",
6
6
  "keywords": [