start
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<div class="auth-box overflow-hidden align-items-center d-flex">
|
||||
<BContainer>
|
||||
<BRow class="justify-content-center">
|
||||
<BCol cols="12" md="6" xxl="4">
|
||||
<div class="auth-brand text-center mb-3">
|
||||
<AuthLogo />
|
||||
</div>
|
||||
|
||||
<div class="p-2 text-center">
|
||||
<div class="error-glitch" data-text="400">400</div>
|
||||
<h3 class="fw-bold text-uppercase">Bad Request</h3>
|
||||
<p class="text-muted">Something's not right in the request you made.</p>
|
||||
|
||||
<RouterLink to="/" class="btn btn-primary mt-3 rounded-pill">Go Home</RouterLink>
|
||||
</div>
|
||||
|
||||
<p class="text-center text-muted mt-5 mb-0">
|
||||
© {{ currentYear }} {{ META_DATA.name }} — by <span class="fw-bold">{{ META_DATA.author }}</span>
|
||||
</p>
|
||||
</BCol>
|
||||
</BRow>
|
||||
</BContainer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { currentYear, META_DATA } from '~/config/constants'
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
@@ -0,0 +1,55 @@
|
||||
<template>
|
||||
<div class="auth-box d-flex align-items-center">
|
||||
<BContainer fluid="xxl">
|
||||
<BRow class="align-items-center justify-content-center">
|
||||
<BCol xl="10">
|
||||
<BCard no-body class="rounded-4 p-0 border-0">
|
||||
<BCardBody class="p-0">
|
||||
<BRow class="g-0 justify-content-between">
|
||||
<BCol lg="6">
|
||||
<BCard no-body class="mb-0 border-0 rounded-4">
|
||||
<BCardBody>
|
||||
<div class="auth-brand text-center mb-3">
|
||||
<AuthLogo />
|
||||
</div>
|
||||
|
||||
<div class="p-2 text-center">
|
||||
<div class="error-wave-container justify-content-center gap-1">
|
||||
<span class="error-wave-char">4</span>
|
||||
<span class="error-wave-char">0</span>
|
||||
<span class="error-wave-char">1</span>
|
||||
</div>
|
||||
|
||||
<h3 class="fw-bold">Unauthorized Access</h3>
|
||||
<p class="text-muted">You don't have permission to view this page.</p>
|
||||
|
||||
<RouterLink to="/" class="btn btn-primary mt-3 rounded-pill"> Back to Safety </RouterLink>
|
||||
</div>
|
||||
|
||||
<p class="text-center text-muted mt-5 mb-0">
|
||||
© {{ currentYear }} {{ META_DATA.name }} — by <span class="fw-bold">{{ META_DATA.author }}</span>
|
||||
</p>
|
||||
</BCardBody>
|
||||
</BCard>
|
||||
</BCol>
|
||||
|
||||
<BCol lg="6" class="d-none d-lg-block">
|
||||
<div class="h-100 position-relative card-side-img rounded-end-4 rounded-0 overflow-hidden" style="background-image: url('/images/auth.jpg')">
|
||||
<div class="p-4 card-img-overlay rounded-4 rounded-start-0 auth-overlay d-flex align-items-end justify-content-center"></div>
|
||||
</div>
|
||||
</BCol>
|
||||
</BRow>
|
||||
</BCardBody>
|
||||
</BCard>
|
||||
</BCol>
|
||||
</BRow>
|
||||
</BContainer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { currentYear, META_DATA } from '~/config/constants'
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
@@ -0,0 +1,51 @@
|
||||
<template>
|
||||
<div class="auth-box p-0 w-100">
|
||||
<BRow class="w-100 g-0">
|
||||
<BCol>
|
||||
<div class="h-100 position-relative card-side-img rounded-0 overflow-hidden" style="background-image: url('/images/auth.jpg')">
|
||||
<div class="p-4 card-img-overlay auth-overlay d-flex align-items-end justify-content-center"></div>
|
||||
</div>
|
||||
</BCol>
|
||||
|
||||
<BCol xl="auto">
|
||||
<div class="card auth-box-form border-0 mb-0">
|
||||
<div class="card-body min-vh-100 d-flex flex-column justify-content-center">
|
||||
<div class="auth-brand text-center">
|
||||
<AuthLogo />
|
||||
</div>
|
||||
|
||||
<div class="p-2 text-center mt-auto">
|
||||
<div class="error-glitch" data-text="403">403</div>
|
||||
<h3 class="fw-bold text-uppercase">无访问权限</h3>
|
||||
<p class="text-muted">当前账号没有后台管理权限,请联系管理员授权后重试。</p>
|
||||
|
||||
<div class="d-flex justify-content-center gap-2 mt-3">
|
||||
<BButton variant="light" class="rounded-pill" @click="relogin">退出并重新登录</BButton>
|
||||
<BButton variant="primary" class="rounded-pill" @click="goHome">返回工作台</BButton>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="text-center text-muted mt-auto mb-0">© {{ currentYear }} {{ META_DATA.name }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</BCol>
|
||||
</BRow>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useRouter } from 'vue-router'
|
||||
import AuthLogo from '~/components/AuthLogo.vue'
|
||||
import { currentYear, META_DATA } from '~/config/constants'
|
||||
import { useAuthStore } from '~/stores/auth'
|
||||
|
||||
const auth = useAuthStore()
|
||||
const router = useRouter()
|
||||
|
||||
const goHome = () => router.replace('/dashboard')
|
||||
|
||||
const relogin = async () => {
|
||||
await auth.signout()
|
||||
router.replace('/auth/sign-in')
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div class="auth-box overflow-hidden align-items-center d-flex">
|
||||
<BContainer>
|
||||
<BRow class="justify-content-center">
|
||||
<BCol cols="12" sm="8" md="6" xxl="4">
|
||||
<div class="auth-brand text-center mb-3">
|
||||
<AuthLogo />
|
||||
</div>
|
||||
|
||||
<div class="p-2 text-center">
|
||||
<img src="/images/svg/404.svg" alt="404" class="img-fluid" />
|
||||
<h3 class="fw-bold text-uppercase">页面不存在</h3>
|
||||
<p class="text-muted">您访问的页面不存在或已被移动。</p>
|
||||
|
||||
<RouterLink to="/dashboard" class="btn btn-primary mt-3 rounded-pill">返回工作台</RouterLink>
|
||||
</div>
|
||||
|
||||
<p class="text-center text-muted mt-5 mb-0">© {{ currentYear }} {{ META_DATA.name }}</p>
|
||||
</BCol>
|
||||
</BRow>
|
||||
</BContainer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import AuthLogo from '~/components/AuthLogo.vue'
|
||||
import { currentYear, META_DATA } from '~/config/constants'
|
||||
</script>
|
||||
@@ -0,0 +1,52 @@
|
||||
<template>
|
||||
<div class="auth-box d-flex align-items-center">
|
||||
<BContainer fluid="xxl">
|
||||
<BRow class="align-items-center justify-content-center">
|
||||
<BCol xl="10">
|
||||
<BCard no-body class="rounded-3 p-0 rounded-4 border-0">
|
||||
<BCardBody class="p-0">
|
||||
<BRow class="justify-content-between g-0">
|
||||
<BCol lg="6">
|
||||
<BCard no-body class="mb-0 border-0 rounded-4">
|
||||
<BCardBody>
|
||||
<div class="auth-brand text-center mb-3">
|
||||
<AuthLogo />
|
||||
</div>
|
||||
|
||||
<div class="p-2 text-center">
|
||||
<div class="error-wave-container error-text-alt justify-content-center gap-1">
|
||||
<span class="error-wave-char">4</span>
|
||||
<span class="error-wave-char">0</span>
|
||||
<span class="error-wave-char">8</span>
|
||||
</div>
|
||||
|
||||
<h3 class="fw-bold text-uppercase">Request Timeout</h3>
|
||||
<p class="text-muted">Your request took too long, and the server timed out. Please try again later.</p>
|
||||
|
||||
<RouterLink to="/" class="btn btn-primary mt-3 rounded-pill">Back to Safety</RouterLink>
|
||||
</div>
|
||||
<p class="text-center text-muted mt-5 mb-0">
|
||||
© {{ currentYear }} {{ META_DATA.name }} — by
|
||||
<span class="fw-bold">{{ META_DATA.author }}</span>
|
||||
</p>
|
||||
</BCardBody>
|
||||
</BCard>
|
||||
</BCol>
|
||||
|
||||
<BCol lg="6" class="d-none d-lg-block">
|
||||
<div class="h-100 position-relative card-side-img rounded-end-4 overflow-hidden" style="background-image: url('/images/auth.jpg')">
|
||||
<div class="p-4 card-img-overlay rounded-start-0 auth-overlay d-flex align-items-end justify-content-center"></div>
|
||||
</div>
|
||||
</BCol>
|
||||
</BRow>
|
||||
</BCardBody>
|
||||
</BCard>
|
||||
</BCol>
|
||||
</BRow>
|
||||
</BContainer>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { currentYear, META_DATA } from '~/config/constants'
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<div class="auth-box p-0 w-100">
|
||||
<BRow class="w-100 g-0">
|
||||
<BCol>
|
||||
<div class="h-100 position-relative card-side-img rounded-0 overflow-hidden" style="background-image: url('/images/auth.jpg')">
|
||||
<div class="p-4 card-img-overlay auth-overlay d-flex align-items-end justify-content-center"></div>
|
||||
</div>
|
||||
</BCol>
|
||||
|
||||
<BCol xl="auto">
|
||||
<BCard no-body class="auth-box-form border-0 mb-0">
|
||||
<BCardBody class="min-vh-100 d-flex flex-column justify-content-center">
|
||||
<div class="p-2 text-center mt-auto">
|
||||
<img src="/images/svg/500.svg" alt="500" class="img-fluid" />
|
||||
<h3 class="fw-bold text-uppercase">服务异常</h3>
|
||||
<p class="text-muted">服务器处理请求时出现异常,请稍后重试。</p>
|
||||
|
||||
<div class="d-flex justify-content-center gap-2 mt-3">
|
||||
<BButton variant="light" class="rounded-pill" @click="reload">重新加载</BButton>
|
||||
<BButton variant="primary" class="rounded-pill" @click="goHome">返回工作台</BButton>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="text-center text-muted mt-auto mb-0">© {{ currentYear }} {{ META_DATA.name }}</p>
|
||||
</BCardBody>
|
||||
</BCard>
|
||||
</BCol>
|
||||
</BRow>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useRouter } from 'vue-router'
|
||||
import { currentYear, META_DATA } from '~/config/constants'
|
||||
|
||||
const router = useRouter()
|
||||
const reload = () => window.location.reload()
|
||||
const goHome = () => router.replace('/dashboard')
|
||||
</script>
|
||||
@@ -0,0 +1,43 @@
|
||||
<template>
|
||||
<div class="auth-box d-flex align-items-center">
|
||||
<BContainer fluid="xxl">
|
||||
<BRow class="align-items-center justify-content-center">
|
||||
<BCol xl="6">
|
||||
<BCard class="mb-0" no-body>
|
||||
<BCardBody>
|
||||
<div class="auth-brand text-center mb-0">
|
||||
<AuthLogo />
|
||||
</div>
|
||||
|
||||
<div class="p-2 text-center">
|
||||
<div class="w-md-50 mx-auto">
|
||||
<img src="/images/maintenance.svg" alt="Maintenance" class="img-fluid" />
|
||||
</div>
|
||||
|
||||
<h3 class="fw-bold text-uppercase">Site Under Maintenance</h3>
|
||||
<p class="text-muted">
|
||||
We’re currently performing scheduled maintenance. <br />
|
||||
Please check back soon.
|
||||
</p>
|
||||
|
||||
<button class="btn btn-primary rounded-pill mt-3 me-1">Call Now</button>
|
||||
<button class="btn btn-info mt-3 rounded-pill">Email Us</button>
|
||||
</div>
|
||||
|
||||
<p class="text-center text-muted mt-5 mb-0">
|
||||
© {{ currentYear }} {{ META_DATA.name }} — by <span class="fw-semibold">{{ META_DATA.author }}</span>
|
||||
</p>
|
||||
</BCardBody>
|
||||
</BCard>
|
||||
</BCol>
|
||||
</BRow>
|
||||
</BContainer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { BCard, BCardBody, BCol, BContainer, BRow } from 'bootstrap-vue-next'
|
||||
import AuthLogo from '~/components/AuthLogo.vue'
|
||||
import { currentYear, META_DATA } from '~/config/constants'
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user