@dargmuesli/nuxt-vio 3.0.0-beta.3 → 3.0.0-beta.5

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.
@@ -43,7 +43,7 @@
43
43
  <script setup lang="ts">
44
44
  import type { BaseValidation } from '@vuelidate/core'
45
45
 
46
- import type { BackendError } from '~/../types/api'
46
+ import type { BackendError } from '../../../types/api'
47
47
 
48
48
  export interface Props {
49
49
  errors?: BackendError[]
@@ -18,6 +18,6 @@ export const useAppLayout = () => {
18
18
  ? `${titleChunk} ${siteConfig.titleSeparator} ${siteConfig.name}`
19
19
  : siteConfig.name
20
20
  },
21
- ...appConfig.vio.seoMeta,
21
+ ...(appConfig.vio.seoMeta ? appConfig.vio.seoMeta : {}),
22
22
  })
23
23
  }
package/nuxt.config.ts CHANGED
@@ -23,8 +23,9 @@ const BASE_URL =
23
23
  // https://v3.nuxtjs.org/api/configuration/nuxt.config
24
24
  export default defineNuxtConfig({
25
25
  alias: {
26
- sweetalert2: 'sweetalert2', // TODO: remove (https://github.com/nuxt/nuxt/issues/19426)
27
- },
26
+ dayjs: 'dayjs',
27
+ sweetalert2: 'sweetalert2',
28
+ }, // TODO: remove (https://github.com/nuxt/nuxt/issues/19426)
28
29
  app: {
29
30
  head: {
30
31
  htmlAttrs: {
@@ -45,6 +46,7 @@ export default defineNuxtConfig({
45
46
  },
46
47
  modules: [
47
48
  '@dargmuesli/nuxt-cookie-control',
49
+ '@nuxt/image',
48
50
  '@nuxtjs/color-mode',
49
51
  '@nuxtjs/html-validator',
50
52
  '@nuxtjs/i18n',
@@ -149,6 +151,7 @@ export default defineNuxtConfig({
149
151
  },
150
152
  },
151
153
  linkChecker: {
154
+ debug: process.env.NODE_ENV === 'development',
152
155
  failOnError: true,
153
156
  },
154
157
  seoKit: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "3.0.0-beta.3",
3
+ "version": "3.0.0-beta.5",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -44,6 +44,7 @@
44
44
  "dependencies": {
45
45
  "@dargmuesli/nuxt-cookie-control": "6.1.5",
46
46
  "@http-util/status-i18n": "0.7.0",
47
+ "@nuxt/image": "1.0.0-rc.1",
47
48
  "@nuxtjs/color-mode": "3.3.0",
48
49
  "@nuxtjs/html-validator": "1.5.2",
49
50
  "@nuxtjs/i18n": "8.0.0-rc.2",
package/plugins/dayjs.ts CHANGED
@@ -1,4 +1,5 @@
1
- import dayjs, { extend, locale } from 'dayjs'
1
+ /* eslint-disable import/no-named-as-default-member */
2
+ import dayjs from 'dayjs'
2
3
 
3
4
  // workaround for [1]
4
5
  import de from 'dayjs/locale/de'
@@ -10,13 +11,13 @@ import timezone from 'dayjs/plugin/timezone'
10
11
  import utc from 'dayjs/plugin/utc'
11
12
 
12
13
  export default defineNuxtPlugin((_nuxtApp) => {
13
- extend(isSameOrBefore)
14
- extend(localizedFormat)
15
- extend(timezone)
16
- extend(utc)
14
+ dayjs.extend(isSameOrBefore)
15
+ dayjs.extend(localizedFormat)
16
+ dayjs.extend(timezone)
17
+ dayjs.extend(utc)
17
18
 
18
19
  // workaround for [1]
19
- locale(de)
20
+ dayjs.locale(de)
20
21
  // dayjs.locale(en) makes `format` error
21
22
 
22
23
  return {