@motor-cms/ui-admin 4.12.1-rc.3 → 4.12.1-rc.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.
- package/app/pages/no-access.vue +24 -0
- package/package.json +2 -2
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const { t } = useI18n()
|
|
3
|
+
|
|
4
|
+
// No `permission` meta on purpose: this page must stay reachable for any
|
|
5
|
+
// authenticated user so the permission middleware can redirect here instead of
|
|
6
|
+
// throwing a layout-less error. The default layout gives the user their
|
|
7
|
+
// permission-filtered sidebar + the user menu (logout) (ZRMDEV-236).
|
|
8
|
+
definePageMeta({ layout: 'default' })
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<div class="flex flex-1 flex-col items-center justify-center gap-3 p-8 text-center min-h-[60vh]">
|
|
13
|
+
<UIcon
|
|
14
|
+
name="i-lucide-lock"
|
|
15
|
+
class="size-10 text-[var(--ui-text-muted)]"
|
|
16
|
+
/>
|
|
17
|
+
<h1 class="text-lg font-semibold">
|
|
18
|
+
{{ t('motor-core.errors.access_denied') }}
|
|
19
|
+
</h1>
|
|
20
|
+
<p class="text-sm text-[var(--ui-text-muted)] max-w-md">
|
|
21
|
+
{{ t('motor-core.errors.no_access_description') }}
|
|
22
|
+
</p>
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@motor-cms/ui-admin",
|
|
3
|
-
"version": "4.12.1-rc.
|
|
3
|
+
"version": "4.12.1-rc.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"files": [
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"nuxt": "^4.0.0",
|
|
24
24
|
"vue": "^3.5.0",
|
|
25
|
-
"@motor-cms/ui-core": "^4.12.1-rc.
|
|
25
|
+
"@motor-cms/ui-core": "^4.12.1-rc.5"
|
|
26
26
|
}
|
|
27
27
|
}
|