Files
speckle-server/packages/frontend-2/error.vue
T
Kristaps Fabians Geikins 37d51072fb feat(server): resource limits on app tokens (#1959)
* WIP new mutation arg

* limited resource token creation done

* token resource rule creation validation

* updated authorizeResolver implementation

* introduced resource access rule checks in authorizeResolver everywhere

* more checks added

* updated projects resolvers

* updated stream resolvers

* more checks added

* error page theme resolution fix

* WIP testss

* more tests

* implemented checks in REST auth pipeline

* REST API coverage & tests

* some tests fixed

* test fixess

* added tests

* feat(server): new automation result reporting scope (#1976)

* feat(server): new automation result reporting scope

* tests fix
2024-01-19 18:14:49 +01:00

36 lines
856 B
Vue

<!-- eslint-disable vue/no-v-html -->
<template>
<div id="speckle" class="bg-foundation-page text-foreground">
<NuxtLayout name="default">
<ErrorPageRenderer :error="error" />
</NuxtLayout>
<SingletonManagers />
</div>
</template>
<script setup lang="ts">
import type { NuxtError } from '#app'
import { useTheme } from '~/lib/core/composables/theme'
/**
* Any errors thrown while rendering this page will cause Nuxt to revert to the default
* error page
*/
const props = defineProps<{
error: NuxtError
}>()
const { isDarkTheme } = useTheme()
useHead({
title: computed(() => `${props.error.statusCode} - ${props.error.message}`),
bodyAttrs: {
class: 'simple-scrollbar bg-foundation-page text-foreground'
},
htmlAttrs: {
class: computed(() => (isDarkTheme.value ? `dark` : ``)),
lang: 'en'
}
})
</script>