@dargmuesli/nuxt-vio 1.7.0 → 1.7.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/error.vue +21 -0
- package/package.json +2 -1
package/error.vue
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
<template>
|
2
|
+
<NuxtLayout>
|
3
|
+
<VioError
|
4
|
+
:status-code="error?.statusCode ? +error?.statusCode : undefined"
|
5
|
+
/>
|
6
|
+
</NuxtLayout>
|
7
|
+
</template>
|
8
|
+
|
9
|
+
<script setup lang="ts">
|
10
|
+
export type Error = { statusCode: string }
|
11
|
+
export interface Props {
|
12
|
+
error?: Error
|
13
|
+
}
|
14
|
+
const props = withDefaults(defineProps<Props>(), {
|
15
|
+
error: undefined,
|
16
|
+
})
|
17
|
+
|
18
|
+
useHead({
|
19
|
+
title: props.error?.statusCode?.toString(),
|
20
|
+
})
|
21
|
+
</script>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dargmuesli/nuxt-vio",
|
3
|
-
"version": "1.7.
|
3
|
+
"version": "1.7.1",
|
4
4
|
"type": "module",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -17,6 +17,7 @@
|
|
17
17
|
"server",
|
18
18
|
"plugins",
|
19
19
|
"utils",
|
20
|
+
"error.vue",
|
20
21
|
"nuxt.config.ts",
|
21
22
|
"tailwind.config.ts"
|
22
23
|
],
|