@dargmuesli/nuxt-vio 10.2.2 → 10.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,8 +12,6 @@
12
12
  </template>
13
13
 
14
14
  <script setup lang="ts">
15
- const httpUtilStatusI18n = await import('@http-util/status-i18n')
16
-
17
15
  interface Props {
18
16
  statusCode?: number
19
17
  statusMessage?: string
@@ -31,7 +29,10 @@ const { locale, t } = useI18n()
31
29
 
32
30
  // data
33
31
  const title = `${props.statusCode ? `${props.statusCode} - ` : ''}${
34
- httpUtilStatusI18n.status(props.statusCode, locale.value) || t('error')
32
+ (await import('@http-util/status-i18n')).status(
33
+ props.statusCode,
34
+ locale.value,
35
+ ) || t('error')
35
36
  }`
36
37
 
37
38
  // initialization
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "10.2.2",
3
+ "version": "10.2.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dargmuesli/vio.git"
@@ -12,7 +12,7 @@
12
12
  "engines": {
13
13
  "node": "20"
14
14
  },
15
- "packageManager": "pnpm@8.14.1",
15
+ "packageManager": "pnpm@8.14.3",
16
16
  "files": [
17
17
  "assets",
18
18
  "components",
@@ -38,12 +38,12 @@
38
38
  "@heroicons/vue": "2.1.1",
39
39
  "@http-util/status-i18n": "0.8.1",
40
40
  "@nuxt/devtools": "1.0.8",
41
- "@nuxt/image": "1.2.0",
41
+ "@nuxt/image": "1.3.0",
42
42
  "@nuxtjs/color-mode": "3.3.2",
43
43
  "@nuxtjs/html-validator": "1.6.0",
44
44
  "@nuxtjs/i18n": "8.0.0",
45
45
  "@nuxtjs/seo": "2.0.0-rc.5",
46
- "@nuxtjs/tailwindcss": "6.10.4",
46
+ "@nuxtjs/tailwindcss": "6.11.0",
47
47
  "@pinia/nuxt": "0.5.1",
48
48
  "@tailwindcss/forms": "0.5.7",
49
49
  "@tailwindcss/typography": "0.5.10",
@@ -62,7 +62,7 @@
62
62
  "@axe-core/playwright": "4.8.3",
63
63
  "@intlify/eslint-plugin-vue-i18n": "3.0.0-next.5",
64
64
  "@nuxtjs/eslint-config-typescript": "12.1.0",
65
- "@playwright/test": "1.40.1",
65
+ "@playwright/test": "1.41.1",
66
66
  "@unhead/vue": "1.8.10",
67
67
  "@urql/devtools": "2.0.3",
68
68
  "@urql/exchange-graphcache": "6.4.0",
@@ -86,21 +86,21 @@
86
86
  "prettier": "3.2.4",
87
87
  "prettier-plugin-tailwindcss": "0.5.11",
88
88
  "serve": "14.2.1",
89
- "stylelint": "16.1.0",
89
+ "stylelint": "16.2.0",
90
90
  "stylelint-config-recommended-vue": "1.5.0",
91
91
  "stylelint-config-standard": "36.0.0",
92
92
  "stylelint-no-unsupported-browser-features": "8.0.0",
93
93
  "tailwindcss": "3.4.1",
94
94
  "ufo": "1.3.2",
95
- "unhead": "1.8.9",
96
- "vue": "3.4.14",
95
+ "unhead": "1.8.10",
96
+ "vue": "3.4.15",
97
97
  "vue-router": "4.2.5",
98
98
  "vue-tsc": "1.8.27"
99
99
  },
100
100
  "peerDependencies": {
101
101
  "nuxt": "3.9.3",
102
- "playwright-core": "1.40.1",
103
- "vue": "3.4.14",
102
+ "playwright-core": "1.41.1",
103
+ "vue": "3.4.15",
104
104
  "vue-router": "4.2.5"
105
105
  },
106
106
  "scripts": {
package/plugins/dayjs.ts CHANGED
@@ -1,16 +1,16 @@
1
- export default defineNuxtPlugin(async (_nuxtApp) => {
2
- const dayjs = (await import('dayjs')).default
1
+ import dayjs from 'dayjs'
3
2
 
4
- // workaround for [1]
5
- const de = (await import('dayjs/locale/de')).default
6
- // import 'dayjs/locale/de' does not make locale available
3
+ // workaround for [1]
4
+ import de from 'dayjs/locale/de'
5
+ // import 'dayjs/locale/de' does not make locale available
7
6
 
8
- const isSameOrBefore = (await import('dayjs/plugin/isSameOrBefore')).default
9
- const localizedFormat = (await import('dayjs/plugin/localizedFormat')).default
10
- const relativeTime = (await import('dayjs/plugin/relativeTime')).default
11
- const timezone = (await import('dayjs/plugin/timezone')).default
12
- const utc = (await import('dayjs/plugin/utc')).default
7
+ import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'
8
+ import localizedFormat from 'dayjs/plugin/localizedFormat'
9
+ import relativeTime from 'dayjs/plugin/relativeTime'
10
+ import timezone from 'dayjs/plugin/timezone'
11
+ import utc from 'dayjs/plugin/utc'
13
12
 
13
+ export default defineNuxtPlugin((_nuxtApp) => {
14
14
  dayjs.extend(isSameOrBefore)
15
15
  dayjs.extend(localizedFormat)
16
16
  dayjs.extend(relativeTime)
@@ -1,10 +1,10 @@
1
- export default defineNuxtPlugin(async (nuxtApp) => {
1
+ import VueGtag from 'vue-gtag'
2
+
3
+ export default defineNuxtPlugin((nuxtApp) => {
2
4
  const config = useRuntimeConfig()
3
5
  const router = useRouter()
4
6
  const cookieControl = useCookieControl()
5
7
 
6
- const VueGtag = (await import('vue-gtag')).default
7
-
8
8
  nuxtApp.vueApp.use(
9
9
  VueGtag,
10
10
  {