@dargmuesli/nuxt-vio 7.0.0 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,9 @@
1
+ <template>
2
+ <VioIconContainer>
3
+ <ArrowLeftIcon />
4
+ </VioIconContainer>
5
+ </template>
6
+
7
+ <script setup lang="ts">
8
+ import { ArrowLeftIcon } from '@heroicons/vue/24/outline'
9
+ </script>
@@ -7,9 +7,10 @@
7
7
  <script setup lang="ts">
8
8
  export interface Props {
9
9
  classes?: string
10
- title: string
10
+ title?: string
11
11
  }
12
12
  withDefaults(defineProps<Props>(), {
13
13
  classes: 'h-5 md:h-6 w-5 md:w-6 shrink-0',
14
+ title: undefined,
14
15
  })
15
16
  </script>
@@ -1,8 +1,14 @@
1
1
  <template>
2
2
  <div class="container mx-auto p-4 md:px-8">
3
+ <header v-if="$slots.header">
4
+ <slot name="header" />
5
+ </header>
3
6
  <main>
4
7
  <slot />
5
8
  </main>
9
+ <footer v-if="$slots.footer">
10
+ <slot name="footer" />
11
+ </footer>
6
12
  <CookieControl :locale="locale" />
7
13
  </div>
8
14
  </template>
package/nuxt.config.ts CHANGED
@@ -126,7 +126,7 @@ export default defineNuxtConfig(
126
126
  locales: ['en', 'de'],
127
127
  },
128
128
  htmlValidator: {
129
- failOnError: false, // TODO: fix invalid html in nuxt html template (https://github.com/nuxt/nuxt/issues/22526)
129
+ failOnError: true,
130
130
  logLevel: 'warning',
131
131
  },
132
132
  i18n: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "7.0.0",
3
+ "version": "8.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dargmuesli/vio.git"
@@ -67,9 +67,10 @@
67
67
  "dependencies": {
68
68
  "@axe-core/playwright": "4.7.3",
69
69
  "@dargmuesli/nuxt-cookie-control": "6.4.2",
70
+ "@heroicons/vue": "2.0.18",
70
71
  "@http-util/status-i18n": "0.8.1",
71
72
  "@intlify/eslint-plugin-vue-i18n": "3.0.0-next.3",
72
- "@nuxt/image": "1.0.0-rc.1",
73
+ "@nuxt/image": "1.0.0-rc.2",
73
74
  "@nuxtjs/color-mode": "3.3.0",
74
75
  "@nuxtjs/eslint-config-typescript": "12.1.0",
75
76
  "@nuxtjs/html-validator": "1.5.2",