Files
dpl/theme/Fuc/dashboard.blade.php
T

66 lines
2.2 KiB
PHP

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<meta name="referrer" content="same-origin">
<title>{{ $title }}</title>
<link rel="stylesheet" href="/theme/{{ $theme }}/assets/customer-service.css?v=29">
<script>
try {
const route = location.hash.match(/^#\/?([^/?]+)/)?.[1];
const userPage = route && !['home', 'login', 'register', 'forget', 'reset'].includes(route);
const dark = localStorage.getItem('fuc_themeMod') === 'system'
? matchMedia('(prefers-color-scheme: dark)').matches
: localStorage.getItem('fuc_color') === 'dark';
if (userPage && dark) document.documentElement.dataset.fucStartupTheme = 'dark';
} catch {}
</script>
<style>
html[data-fuc-startup-theme='dark']:has(.fuc-startup),
html[data-fuc-startup-theme='dark'] .fuc-startup {
background-color: #161d31;
}
.fuc-startup {
position: fixed;
inset: 0;
display: grid;
place-items: center;
pointer-events: none;
}
.fuc-startup::before {
content: '';
box-sizing: border-box;
width: 40px;
height: 40px;
border: 3px solid rgb(132 104 241 / 24%);
border-top-color: #8468f1;
border-radius: 50%;
animation: fuc-startup-spin .8s linear infinite;
}
@keyframes fuc-startup-spin {
to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
.fuc-startup::before { animation: none; }
}
</style>
</head>
<body>
<div id="app" aria-busy="true">
<div class="fuc-startup" role="status" aria-label="正在载入"></div>
</div>
@php
$fucSettings = [
'title' => ($theme_config['brand_name'] ?? '') ?: $title,
'description' => $theme_config['tagline'] ?? $description,
'nyanpasuDownloadOrigin' => config('fuc.nyanpasu_download_origin', $theme_config['nyanpasu_download_origin'] ?? ''),
];
@endphp
<script>window.fucSettings = @json($fucSettings);</script>
<script type="module" src="/theme/{{ $theme }}/assets/app.mjs?v=0.12.19"></script>
<script type="module" src="/theme/{{ $theme }}/assets/chatwoot.mjs?v=6"></script>
</body>
</html>