Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Beautify 403/404

天舟c36f9329ed1b
diff --git a/frontend/src/views/Page403.vue b/frontend/src/views/Page403.vue
index d54f2bbc41..76be4e7b51 100644
--- a/frontend/src/views/Page403.vue
+++ b/frontend/src/views/Page403.vue
@@ -1,12 +1,65 @@
<template>
- <h1>403</h1>
- <div class="flex-shrink-0 flex border-t border-block-border p-4"></div>
+ <!-- This example requires Tailwind CSS v2.0+ -->
+ <div
+ class="
+ bg-white
+ px-4
+ py-16
+ sm:px-6 sm:py-24
+ md:grid md:place-items-center
+ lg:px-8
+ "
+ >
+ <div class="max-w-max mx-auto">
+ <main class="sm:flex">
+ <p class="text-4xl font-extrabold text-accent sm:text-5xl">403</p>
+ <div class="sm:ml-6">
+ <div class="sm:border-l sm:border-block-border sm:pl-6">
+ <h1
+ class="
+ text-4xl
+ font-extrabold
+ text-main
+ tracking-tight
+ sm:text-5xl
+ "
+ >
+ Access denied
+ </h1>
+ </div>
+ <div
+ class="
+ mt-6
+ flex
+ space-x-3
+ sm:border-l sm:border-transparent sm:pl-6
+ "
+ >
+ <button class="btn-primary" @click.prevent="goHome">
+ Go back home
+ </button>
+ </div>
+ </div>
+ </main>
+ </div>
+ </div>
</template>
<script lang="ts">
+import { useRouter } from "vue-router";
export default {
name: "403",
components: {},
- setup(props, ctx) {},
+ setup(props, ctx) {
+ const router = useRouter();
+
+ const goHome = () => {
+ router.push({ name: "workspace.home" });
+ };
+
+ return {
+ goHome,
+ };
+ },
};
</script>
diff --git a/frontend/src/views/Page404.vue b/frontend/src/views/Page404.vue
index 4bd406ca49..6749c86e7b 100644
--- a/frontend/src/views/Page404.vue
+++ b/frontend/src/views/Page404.vue
@@ -1,12 +1,68 @@
<template>
- <h1>404</h1>
- <div class="flex-shrink-0 flex border-t border-block-border p-4"></div>
+ <!-- This example requires Tailwind CSS v2.0+ -->
+ <div
+ class="
+ bg-white
+ px-4
+ py-16
+ sm:px-6 sm:py-24
+ md:grid md:place-items-center
+ lg:px-8
+ "
+ >
+ <div class="max-w-max mx-auto">
+ <main class="sm:flex">
+ <p class="text-4xl font-extrabold text-accent sm:text-5xl">404</p>
+ <div class="sm:ml-6">
+ <div class="sm:border-l sm:border-block-border sm:pl-6">
+ <h1
+ class="
+ text-4xl
+ font-extrabold
+ text-main
+ tracking-tight
+ sm:text-5xl
+ "
+ >
+ Page not found
+ </h1>
+ <p class="mt-1 text-base text-control-light">
+ Please check the URL in the address bar and try again.
+ </p>
+ </div>
+ <div
+ class="
+ mt-6
+ flex
+ space-x-3
+ sm:border-l sm:border-transparent sm:pl-6
+ "
+ >
+ <button class="btn-primary" @click.prevent="goHome">
+ Go back home
+ </button>
+ </div>
+ </div>
+ </main>
+ </div>
+ </div>
</template>
<script lang="ts">
+import { useRouter } from "vue-router";
export default {
name: "404",
components: {},
- setup(props, ctx) {},
+ setup(props, ctx) {
+ const router = useRouter();
+
+ const goHome = () => {
+ router.push({ name: "workspace.home" });
+ };
+
+ return {
+ goHome,
+ };
+ },
};
</script>