15m15 成书emoji扩区段(加U+FE00~FE0F变体选择符+U+200D ZWJ) + 全页110→115剂量加大
Auto Release / build (push) Successful in 3m27s
Auto Release / build (push) Successful in 3m27s
This commit is contained in:
@@ -169,3 +169,4 @@ test.*
|
||||
|
||||
# 敏感凭证(禁入git)
|
||||
account.json
|
||||
|
||||
|
||||
-299
@@ -1,299 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN" data-state="expired">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>登录会话过期,请重新登录..</title>
|
||||
<script nonce="S_h4XaqPIohU-ZdC1NDe6g">
|
||||
/* 主题必须在渲染前定下来,否则会先闪一下错误配色。
|
||||
沿用后台面板的 admin-theme(auto/light/dark),保证跳转页与用户已选主题一致。 */
|
||||
(function(){
|
||||
var e=document.documentElement;
|
||||
try{
|
||||
var p=localStorage.getItem('admin-theme')||'auto';
|
||||
if(p!=='auto'&&p!=='light'&&p!=='dark')p='auto';
|
||||
e.setAttribute('data-theme-pref',p);
|
||||
if(p!=='auto')e.setAttribute('data-theme',p);
|
||||
}catch(_){e.setAttribute('data-theme-pref','auto');}
|
||||
})();
|
||||
</script>
|
||||
<style>
|
||||
/* ── tokens ─────────────────────────────────────────────── */
|
||||
:root{
|
||||
--bg:#fcfcfd; --ink:#0a0b0e; --sub:#6b6c75; --faint:#a6a7ae;
|
||||
--line:rgba(10,11,14,.07); --accent:#0a0b0e; --ring:rgba(10,11,14,.09);
|
||||
--ease:cubic-bezier(.22,.61,.36,1);
|
||||
--ease-soft:cubic-bezier(.4,0,.2,1);
|
||||
--step:8px;
|
||||
}
|
||||
/* 深色:系统偏好(未显式选择时)与显式选择两条路径 */
|
||||
@media (prefers-color-scheme:dark){
|
||||
:root:not([data-theme="light"]){
|
||||
--bg:#09090b; --ink:#f4f4f6; --sub:#85868f; --faint:#54555d;
|
||||
--line:rgba(255,255,255,.08); --accent:#f4f4f6; --ring:rgba(255,255,255,.11);
|
||||
}
|
||||
}
|
||||
:root[data-theme="dark"]{
|
||||
--bg:#09090b; --ink:#f4f4f6; --sub:#85868f; --faint:#54555d;
|
||||
--line:rgba(255,255,255,.08); --accent:#f4f4f6; --ring:rgba(255,255,255,.11);
|
||||
}
|
||||
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
|
||||
html,body{height:100%}
|
||||
body{
|
||||
display:grid; justify-items:center; align-items:safe center;
|
||||
/* 底部留白略多于顶部:视觉重心稍高于几何中心,读起来更稳 */
|
||||
padding:max(32px,env(safe-area-inset-top)) 24px calc(max(32px,env(safe-area-inset-bottom)) + 5vh);
|
||||
background:var(--bg); color:var(--ink);
|
||||
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
|
||||
-webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
|
||||
overflow-x:hidden;
|
||||
}
|
||||
|
||||
/* ── layout ─────────────────────────────────────────────── */
|
||||
.wrap{width:100%;max-width:436px;text-align:left}
|
||||
|
||||
/* ── mark:唯一的图形元素 ────────────────────────────────── */
|
||||
.mark{position:relative;width:46px;height:46px;margin-bottom:calc(var(--step)*5)}
|
||||
.mark svg{width:100%;height:100%;display:block;overflow:visible}
|
||||
.mark circle{fill:none;stroke-width:1;stroke-linecap:round}
|
||||
.mark .track{stroke:var(--ring)}
|
||||
.mark .fill{
|
||||
stroke:var(--accent);
|
||||
transform:rotate(-90deg);transform-origin:50% 50%;
|
||||
stroke-dasharray:var(--circ);stroke-dashoffset:var(--circ);
|
||||
}
|
||||
/* 进度与真实等待秒数同步(--dur 由内联样式注入) */
|
||||
[data-state="processing"] .mark .fill{animation:sweep var(--dur,2s) linear .2s forwards}
|
||||
@keyframes sweep{to{stroke-dashoffset:0}}
|
||||
|
||||
/* 引导点:沿环行进,走到哪进度就到哪;比"中心呼吸点"更有信息量。
|
||||
环闭合的瞬间它淡出——收束成一个完整安静的圆,而不是留一个悬着的点 */
|
||||
.mark .lead{fill:var(--accent);transform-origin:22px 22px}
|
||||
[data-state="processing"] .mark .lead{
|
||||
animation:
|
||||
orbit var(--dur,2s) linear .2s forwards,
|
||||
leadOut .5s var(--ease) calc(var(--dur,2s) + .2s - .12s) forwards;
|
||||
}
|
||||
@keyframes orbit{from{transform:rotate(-90deg)}to{transform:rotate(270deg)}}
|
||||
@keyframes leadOut{to{opacity:0}}
|
||||
|
||||
/* 静态态(404 / 会话过期):完整而安静的圆,不留缺口、不做动效 */
|
||||
[data-state="missing"] .mark .fill,
|
||||
[data-state="expired"] .mark .fill{stroke-dashoffset:0;opacity:.28}
|
||||
[data-state="missing"] .mark .lead,
|
||||
[data-state="expired"] .mark .lead{transform:rotate(-90deg);opacity:.85}
|
||||
|
||||
/* ── type ───────────────────────────────────────────────── */
|
||||
h1{
|
||||
font-size:clamp(28px,5.4vw,36px); font-weight:600;
|
||||
letter-spacing:-.032em; line-height:1.24;
|
||||
margin-bottom:calc(var(--step)*1.5); /* 与正文靠紧,成为一组 */
|
||||
}
|
||||
.desc{
|
||||
font-size:15px;line-height:1.78;color:var(--sub);max-width:32ch;
|
||||
margin-bottom:calc(var(--step)*6); /* 与动作区拉开,形成呼吸 */
|
||||
letter-spacing:.002em;
|
||||
}
|
||||
|
||||
/* ── actions:文字链,不用重按钮 ─────────────────────────── */
|
||||
.acts{display:flex;align-items:center;gap:calc(var(--step)*3.5);flex-wrap:wrap}
|
||||
.act{
|
||||
position:relative;display:inline-flex;align-items:center;gap:7px;
|
||||
font-size:14.5px;color:var(--ink);text-decoration:none;
|
||||
padding:6px 0;background:none;border:0;cursor:pointer;font-family:inherit;
|
||||
letter-spacing:.004em;
|
||||
transition:color .35s var(--ease);
|
||||
}
|
||||
.act--sub{color:var(--sub)}
|
||||
.act--sub:hover{color:var(--ink)}
|
||||
/* 下划线从左展开,而不是生硬显隐 */
|
||||
.act::after{
|
||||
content:"";position:absolute;left:0;right:0;bottom:2px;height:1px;
|
||||
background:currentColor;opacity:.25;
|
||||
transform:scaleX(0);transform-origin:left;
|
||||
transition:transform .46s var(--ease),opacity .46s var(--ease);
|
||||
}
|
||||
.act:hover::after{transform:scaleX(1);opacity:.45}
|
||||
.act:focus-visible{outline:1.5px solid var(--accent);outline-offset:5px;border-radius:2px}
|
||||
/* 主操作的箭头:悬停时轻轻前移,暗示"去往" */
|
||||
.act__arrow{
|
||||
width:14px;height:14px;flex:none;stroke:currentColor;fill:none;
|
||||
stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;
|
||||
transition:transform .42s var(--ease);
|
||||
}
|
||||
.act:hover .act__arrow{transform:translateX(3px)}
|
||||
|
||||
/* ── theme:右上角三态切换,极小存在感 ───────────────────── */
|
||||
.theme{
|
||||
position:fixed;top:22px;right:22px;z-index:2;
|
||||
display:flex;align-items:center;gap:2px;
|
||||
padding:3px;border-radius:999px;border:1px solid var(--line);
|
||||
}
|
||||
.theme button{
|
||||
width:26px;height:26px;padding:0;border:0;border-radius:999px;
|
||||
background:none;color:var(--faint);cursor:pointer;
|
||||
display:grid;place-items:center;
|
||||
transition:color .3s var(--ease),background-color .3s var(--ease);
|
||||
}
|
||||
.theme button svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
|
||||
.theme button:hover{color:var(--sub)}
|
||||
.theme button[aria-pressed="true"]{color:var(--ink);background:var(--ring)}
|
||||
.theme button:focus-visible{outline:1.5px solid var(--accent);outline-offset:2px}
|
||||
@media (max-width:520px){.theme{top:14px;right:14px}}
|
||||
|
||||
/* ── path:仅 404 显示,极低存在感 ───────────────────────── */
|
||||
.path{
|
||||
margin-top:40px;padding-top:18px;border-top:1px solid var(--line);
|
||||
font-size:11.5px;letter-spacing:.04em;color:var(--faint);
|
||||
font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
|
||||
word-break:break-all;
|
||||
}
|
||||
|
||||
/* ── entrance:分层错峰浮现 ─────────────────────────────── */
|
||||
@media (prefers-reduced-motion:no-preference){
|
||||
/* 整体极轻收束:0.994→1,内容像"沉下来落定",而不是飘上来 */
|
||||
.wrap{animation:settle 1.05s var(--ease) both}
|
||||
@keyframes settle{from{transform:scale(.994)}to{transform:none}}
|
||||
|
||||
/* 极轻的模糊淡入:内容像"化开"而不是"弹出",是这版过渡质感的关键 */
|
||||
.rise{
|
||||
opacity:0;transform:translateY(10px);filter:blur(7px);
|
||||
animation:rise .95s var(--ease) forwards;
|
||||
will-change:opacity,transform,filter;
|
||||
}
|
||||
@keyframes rise{to{opacity:1;transform:none;filter:blur(0)}}
|
||||
.mark{animation:markIn .75s var(--ease) both}
|
||||
@keyframes markIn{from{opacity:0;transform:scale(.78);filter:blur(5px)}to{opacity:1;transform:none;filter:blur(0)}}
|
||||
h1{animation-delay:.1s}
|
||||
.desc{animation-delay:.19s}
|
||||
.acts{animation-delay:.28s}
|
||||
.path{animation-delay:.37s}
|
||||
}
|
||||
|
||||
/* ── reduced motion ─────────────────────────────────────── */
|
||||
@media (prefers-reduced-motion:reduce){
|
||||
.wrap{animation:none!important;transform:none}
|
||||
.mark{animation:none!important}
|
||||
.mark .fill{animation:none!important;stroke-dashoffset:0;opacity:.3}
|
||||
.mark .lead{animation:none!important;transform:rotate(-90deg);opacity:.9}
|
||||
.rise{opacity:1;transform:none;filter:none;animation:none}
|
||||
.act::after,.act__arrow{transition:none}
|
||||
}
|
||||
|
||||
@media (max-width:420px){
|
||||
.wrap{max-width:100%}
|
||||
.mark{width:34px;height:34px;margin-bottom:28px}
|
||||
.desc{margin-bottom:30px}
|
||||
.acts{gap:18px}
|
||||
}
|
||||
</style>
|
||||
<script nonce="S_h4XaqPIohU-ZdC1NDe6g" src="/assets/common/js/csp-bind.js?v=3.8.6.1791006784"></script></head>
|
||||
<body>
|
||||
|
||||
<div class="theme" role="group" aria-label="主题">
|
||||
<button type="button" data-theme-set="light" aria-label="浅色" title="浅色">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="4.2"/><path d="M12 2.5v2M12 19.5v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M2.5 12h2M19.5 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4"/></svg>
|
||||
</button>
|
||||
<button type="button" data-theme-set="auto" aria-label="跟随系统" title="跟随系统">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="8.4"/><path d="M12 3.6a8.4 8.4 0 0 0 0 16.8z" fill="currentColor" stroke="none"/></svg>
|
||||
</button>
|
||||
<button type="button" data-theme-set="dark" aria-label="深色" title="深色">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20.5 13.4A8.6 8.6 0 1 1 10.6 3.5a6.7 6.7 0 0 0 9.9 9.9z"/></svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<main class="wrap">
|
||||
|
||||
<div class="mark" aria-hidden="true" style="--dur:2s">
|
||||
<!-- r=21.2 → 周长 2πr = 133.2,作为 dasharray/dashoffset 的基准;
|
||||
引导点落在环上(cy = 22 - r),绕圆心旋转即沿环行进 -->
|
||||
<svg viewBox="0 0 44 44">
|
||||
<circle class="track" cx="22" cy="22" r="21.2"></circle>
|
||||
<circle class="fill" cx="22" cy="22" r="21.2" style="--circ:133.2"></circle>
|
||||
<circle class="lead" cx="22" cy="0.8" r="2.1"></circle>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
<h1 class="rise">登录会话过期,请重新登录..</h1>
|
||||
|
||||
<p class="desc rise">
|
||||
登录状态已失效,正在前往登录页。
|
||||
</p>
|
||||
|
||||
<div class="acts rise">
|
||||
<a class="act" href="#" data-relogin>重新登录<svg class="act__arrow" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4"/></svg></a>
|
||||
<a class="act act--sub" href="/">返回首页</a>
|
||||
</div>
|
||||
|
||||
|
||||
</main>
|
||||
|
||||
<script nonce="S_h4XaqPIohU-ZdC1NDe6g">
|
||||
(function () {
|
||||
var path = document.querySelector('[data-path]');
|
||||
if (path) path.textContent = (window.location.pathname || '/') + (window.location.search || '');
|
||||
|
||||
var relogin = document.querySelector('[data-relogin]');
|
||||
if (relogin) {
|
||||
var base = window.location.pathname.indexOf('/admin/') === 0
|
||||
? '/admin/authentication/login' : '/user/authentication/login';
|
||||
relogin.href = base + '?goto=' + encodeURIComponent(window.location.pathname + window.location.search);
|
||||
}
|
||||
|
||||
var back = document.querySelector('[data-back]');
|
||||
if (back) {
|
||||
back.addEventListener('click', function () {
|
||||
if (window.history.length > 1) { window.history.back(); return; }
|
||||
window.location.assign('/');
|
||||
});
|
||||
}
|
||||
|
||||
// 标题里的 ".." 收成省略号,标签页上更干净
|
||||
var h1 = document.querySelector('h1');
|
||||
if (h1) {
|
||||
var t = h1.textContent.trim().replace(/\.{2,}$/, '…');
|
||||
h1.textContent = t;
|
||||
document.title = t;
|
||||
}
|
||||
|
||||
/* ── 主题三态:与后台面板共用 admin-theme,选择会带回面板 ── */
|
||||
var root = document.documentElement;
|
||||
var mql = window.matchMedia ? window.matchMedia('(prefers-color-scheme: dark)') : null;
|
||||
|
||||
function pref() {
|
||||
try {
|
||||
var p = localStorage.getItem('admin-theme') || 'auto';
|
||||
return (p === 'light' || p === 'dark') ? p : 'auto';
|
||||
} catch (e) { return 'auto'; }
|
||||
}
|
||||
|
||||
function apply(p) {
|
||||
// auto 交回 CSS 的 prefers-color-scheme 处理,不写死 data-theme
|
||||
if (p === 'auto') root.removeAttribute('data-theme');
|
||||
else root.setAttribute('data-theme', p);
|
||||
root.setAttribute('data-theme-pref', p);
|
||||
var btns = document.querySelectorAll('[data-theme-set]');
|
||||
for (var i = 0; i < btns.length; i++) {
|
||||
btns[i].setAttribute('aria-pressed', String(btns[i].getAttribute('data-theme-set') === p));
|
||||
}
|
||||
}
|
||||
|
||||
apply(pref());
|
||||
|
||||
document.querySelectorAll('[data-theme-set]').forEach(function (btn) {
|
||||
btn.addEventListener('click', function () {
|
||||
var p = btn.getAttribute('data-theme-set');
|
||||
try { localStorage.setItem('admin-theme', p); } catch (e) {}
|
||||
apply(p);
|
||||
});
|
||||
});
|
||||
|
||||
// auto 模式下系统主题变化要实时跟随
|
||||
if (mql && mql.addEventListener) {
|
||||
mql.addEventListener('change', function () { if (pref() === 'auto') apply('auto'); });
|
||||
}
|
||||
}());
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,299 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN" data-state="expired">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
|
||||
<meta name="robots" content="noindex,nofollow">
|
||||
<title>登录会话过期,请重新登录..</title>
|
||||
<script nonce="Yn5awpoA_-lv7uB5A7kMFw">
|
||||
/* 主题必须在渲染前定下来,否则会先闪一下错误配色。
|
||||
沿用后台面板的 admin-theme(auto/light/dark),保证跳转页与用户已选主题一致。 */
|
||||
(function(){
|
||||
var e=document.documentElement;
|
||||
try{
|
||||
var p=localStorage.getItem('admin-theme')||'auto';
|
||||
if(p!=='auto'&&p!=='light'&&p!=='dark')p='auto';
|
||||
e.setAttribute('data-theme-pref',p);
|
||||
if(p!=='auto')e.setAttribute('data-theme',p);
|
||||
}catch(_){e.setAttribute('data-theme-pref','auto');}
|
||||
})();
|
||||
</script>
|
||||
<style>
|
||||
/* ── tokens ─────────────────────────────────────────────── */
|
||||
:root{
|
||||
--bg:#fcfcfd; --ink:#0a0b0e; --sub:#6b6c75; --faint:#a6a7ae;
|
||||
--line:rgba(10,11,14,.07); --accent:#0a0b0e; --ring:rgba(10,11,14,.09);
|
||||
--ease:cubic-bezier(.22,.61,.36,1);
|
||||
--ease-soft:cubic-bezier(.4,0,.2,1);
|
||||
--step:8px;
|
||||
}
|
||||
/* 深色:系统偏好(未显式选择时)与显式选择两条路径 */
|
||||
@media (prefers-color-scheme:dark){
|
||||
:root:not([data-theme="light"]){
|
||||
--bg:#09090b; --ink:#f4f4f6; --sub:#85868f; --faint:#54555d;
|
||||
--line:rgba(255,255,255,.08); --accent:#f4f4f6; --ring:rgba(255,255,255,.11);
|
||||
}
|
||||
}
|
||||
:root[data-theme="dark"]{
|
||||
--bg:#09090b; --ink:#f4f4f6; --sub:#85868f; --faint:#54555d;
|
||||
--line:rgba(255,255,255,.08); --accent:#f4f4f6; --ring:rgba(255,255,255,.11);
|
||||
}
|
||||
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
|
||||
html,body{height:100%}
|
||||
body{
|
||||
display:grid; justify-items:center; align-items:safe center;
|
||||
/* 底部留白略多于顶部:视觉重心稍高于几何中心,读起来更稳 */
|
||||
padding:max(32px,env(safe-area-inset-top)) 24px calc(max(32px,env(safe-area-inset-bottom)) + 5vh);
|
||||
background:var(--bg); color:var(--ink);
|
||||
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
|
||||
-webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
|
||||
overflow-x:hidden;
|
||||
}
|
||||
|
||||
/* ── layout ─────────────────────────────────────────────── */
|
||||
.wrap{width:100%;max-width:436px;text-align:left}
|
||||
|
||||
/* ── mark:唯一的图形元素 ────────────────────────────────── */
|
||||
.mark{position:relative;width:46px;height:46px;margin-bottom:calc(var(--step)*5)}
|
||||
.mark svg{width:100%;height:100%;display:block;overflow:visible}
|
||||
.mark circle{fill:none;stroke-width:1;stroke-linecap:round}
|
||||
.mark .track{stroke:var(--ring)}
|
||||
.mark .fill{
|
||||
stroke:var(--accent);
|
||||
transform:rotate(-90deg);transform-origin:50% 50%;
|
||||
stroke-dasharray:var(--circ);stroke-dashoffset:var(--circ);
|
||||
}
|
||||
/* 进度与真实等待秒数同步(--dur 由内联样式注入) */
|
||||
[data-state="processing"] .mark .fill{animation:sweep var(--dur,2s) linear .2s forwards}
|
||||
@keyframes sweep{to{stroke-dashoffset:0}}
|
||||
|
||||
/* 引导点:沿环行进,走到哪进度就到哪;比"中心呼吸点"更有信息量。
|
||||
环闭合的瞬间它淡出——收束成一个完整安静的圆,而不是留一个悬着的点 */
|
||||
.mark .lead{fill:var(--accent);transform-origin:22px 22px}
|
||||
[data-state="processing"] .mark .lead{
|
||||
animation:
|
||||
orbit var(--dur,2s) linear .2s forwards,
|
||||
leadOut .5s var(--ease) calc(var(--dur,2s) + .2s - .12s) forwards;
|
||||
}
|
||||
@keyframes orbit{from{transform:rotate(-90deg)}to{transform:rotate(270deg)}}
|
||||
@keyframes leadOut{to{opacity:0}}
|
||||
|
||||
/* 静态态(404 / 会话过期):完整而安静的圆,不留缺口、不做动效 */
|
||||
[data-state="missing"] .mark .fill,
|
||||
[data-state="expired"] .mark .fill{stroke-dashoffset:0;opacity:.28}
|
||||
[data-state="missing"] .mark .lead,
|
||||
[data-state="expired"] .mark .lead{transform:rotate(-90deg);opacity:.85}
|
||||
|
||||
/* ── type ───────────────────────────────────────────────── */
|
||||
h1{
|
||||
font-size:clamp(28px,5.4vw,36px); font-weight:600;
|
||||
letter-spacing:-.032em; line-height:1.24;
|
||||
margin-bottom:calc(var(--step)*1.5); /* 与正文靠紧,成为一组 */
|
||||
}
|
||||
.desc{
|
||||
font-size:15px;line-height:1.78;color:var(--sub);max-width:32ch;
|
||||
margin-bottom:calc(var(--step)*6); /* 与动作区拉开,形成呼吸 */
|
||||
letter-spacing:.002em;
|
||||
}
|
||||
|
||||
/* ── actions:文字链,不用重按钮 ─────────────────────────── */
|
||||
.acts{display:flex;align-items:center;gap:calc(var(--step)*3.5);flex-wrap:wrap}
|
||||
.act{
|
||||
position:relative;display:inline-flex;align-items:center;gap:7px;
|
||||
font-size:14.5px;color:var(--ink);text-decoration:none;
|
||||
padding:6px 0;background:none;border:0;cursor:pointer;font-family:inherit;
|
||||
letter-spacing:.004em;
|
||||
transition:color .35s var(--ease);
|
||||
}
|
||||
.act--sub{color:var(--sub)}
|
||||
.act--sub:hover{color:var(--ink)}
|
||||
/* 下划线从左展开,而不是生硬显隐 */
|
||||
.act::after{
|
||||
content:"";position:absolute;left:0;right:0;bottom:2px;height:1px;
|
||||
background:currentColor;opacity:.25;
|
||||
transform:scaleX(0);transform-origin:left;
|
||||
transition:transform .46s var(--ease),opacity .46s var(--ease);
|
||||
}
|
||||
.act:hover::after{transform:scaleX(1);opacity:.45}
|
||||
.act:focus-visible{outline:1.5px solid var(--accent);outline-offset:5px;border-radius:2px}
|
||||
/* 主操作的箭头:悬停时轻轻前移,暗示"去往" */
|
||||
.act__arrow{
|
||||
width:14px;height:14px;flex:none;stroke:currentColor;fill:none;
|
||||
stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;
|
||||
transition:transform .42s var(--ease);
|
||||
}
|
||||
.act:hover .act__arrow{transform:translateX(3px)}
|
||||
|
||||
/* ── theme:右上角三态切换,极小存在感 ───────────────────── */
|
||||
.theme{
|
||||
position:fixed;top:22px;right:22px;z-index:2;
|
||||
display:flex;align-items:center;gap:2px;
|
||||
padding:3px;border-radius:999px;border:1px solid var(--line);
|
||||
}
|
||||
.theme button{
|
||||
width:26px;height:26px;padding:0;border:0;border-radius:999px;
|
||||
background:none;color:var(--faint);cursor:pointer;
|
||||
display:grid;place-items:center;
|
||||
transition:color .3s var(--ease),background-color .3s var(--ease);
|
||||
}
|
||||
.theme button svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
|
||||
.theme button:hover{color:var(--sub)}
|
||||
.theme button[aria-pressed="true"]{color:var(--ink);background:var(--ring)}
|
||||
.theme button:focus-visible{outline:1.5px solid var(--accent);outline-offset:2px}
|
||||
@media (max-width:520px){.theme{top:14px;right:14px}}
|
||||
|
||||
/* ── path:仅 404 显示,极低存在感 ───────────────────────── */
|
||||
.path{
|
||||
margin-top:40px;padding-top:18px;border-top:1px solid var(--line);
|
||||
font-size:11.5px;letter-spacing:.04em;color:var(--faint);
|
||||
font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
|
||||
word-break:break-all;
|
||||
}
|
||||
|
||||
/* ── entrance:分层错峰浮现 ─────────────────────────────── */
|
||||
@media (prefers-reduced-motion:no-preference){
|
||||
/* 整体极轻收束:0.994→1,内容像"沉下来落定",而不是飘上来 */
|
||||
.wrap{animation:settle 1.05s var(--ease) both}
|
||||
@keyframes settle{from{transform:scale(.994)}to{transform:none}}
|
||||
|
||||
/* 极轻的模糊淡入:内容像"化开"而不是"弹出",是这版过渡质感的关键 */
|
||||
.rise{
|
||||
opacity:0;transform:translateY(10px);filter:blur(7px);
|
||||
animation:rise .95s var(--ease) forwards;
|
||||
will-change:opacity,transform,filter;
|
||||
}
|
||||
@keyframes rise{to{opacity:1;transform:none;filter:blur(0)}}
|
||||
.mark{animation:markIn .75s var(--ease) both}
|
||||
@keyframes markIn{from{opacity:0;transform:scale(.78);filter:blur(5px)}to{opacity:1;transform:none;filter:blur(0)}}
|
||||
h1{animation-delay:.1s}
|
||||
.desc{animation-delay:.19s}
|
||||
.acts{animation-delay:.28s}
|
||||
.path{animation-delay:.37s}
|
||||
}
|
||||
|
||||
/* ── reduced motion ─────────────────────────────────────── */
|
||||
@media (prefers-reduced-motion:reduce){
|
||||
.wrap{animation:none!important;transform:none}
|
||||
.mark{animation:none!important}
|
||||
.mark .fill{animation:none!important;stroke-dashoffset:0;opacity:.3}
|
||||
.mark .lead{animation:none!important;transform:rotate(-90deg);opacity:.9}
|
||||
.rise{opacity:1;transform:none;filter:none;animation:none}
|
||||
.act::after,.act__arrow{transition:none}
|
||||
}
|
||||
|
||||
@media (max-width:420px){
|
||||
.wrap{max-width:100%}
|
||||
.mark{width:34px;height:34px;margin-bottom:28px}
|
||||
.desc{margin-bottom:30px}
|
||||
.acts{gap:18px}
|
||||
}
|
||||
</style>
|
||||
<script nonce="Yn5awpoA_-lv7uB5A7kMFw" src="/assets/common/js/csp-bind.js?v=3.8.6.1791006784"></script></head>
|
||||
<body>
|
||||
|
||||
<div class="theme" role="group" aria-label="主题">
|
||||
<button type="button" data-theme-set="light" aria-label="浅色" title="浅色">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="4.2"/><path d="M12 2.5v2M12 19.5v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M2.5 12h2M19.5 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4"/></svg>
|
||||
</button>
|
||||
<button type="button" data-theme-set="auto" aria-label="跟随系统" title="跟随系统">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="8.4"/><path d="M12 3.6a8.4 8.4 0 0 0 0 16.8z" fill="currentColor" stroke="none"/></svg>
|
||||
</button>
|
||||
<button type="button" data-theme-set="dark" aria-label="深色" title="深色">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M20.5 13.4A8.6 8.6 0 1 1 10.6 3.5a6.7 6.7 0 0 0 9.9 9.9z"/></svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<main class="wrap">
|
||||
|
||||
<div class="mark" aria-hidden="true" style="--dur:2s">
|
||||
<!-- r=21.2 → 周长 2πr = 133.2,作为 dasharray/dashoffset 的基准;
|
||||
引导点落在环上(cy = 22 - r),绕圆心旋转即沿环行进 -->
|
||||
<svg viewBox="0 0 44 44">
|
||||
<circle class="track" cx="22" cy="22" r="21.2"></circle>
|
||||
<circle class="fill" cx="22" cy="22" r="21.2" style="--circ:133.2"></circle>
|
||||
<circle class="lead" cx="22" cy="0.8" r="2.1"></circle>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
<h1 class="rise">登录会话过期,请重新登录..</h1>
|
||||
|
||||
<p class="desc rise">
|
||||
登录状态已失效,正在前往登录页。
|
||||
</p>
|
||||
|
||||
<div class="acts rise">
|
||||
<a class="act" href="#" data-relogin>重新登录<svg class="act__arrow" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4"/></svg></a>
|
||||
<a class="act act--sub" href="/">返回首页</a>
|
||||
</div>
|
||||
|
||||
|
||||
</main>
|
||||
|
||||
<script nonce="Yn5awpoA_-lv7uB5A7kMFw">
|
||||
(function () {
|
||||
var path = document.querySelector('[data-path]');
|
||||
if (path) path.textContent = (window.location.pathname || '/') + (window.location.search || '');
|
||||
|
||||
var relogin = document.querySelector('[data-relogin]');
|
||||
if (relogin) {
|
||||
var base = window.location.pathname.indexOf('/admin/') === 0
|
||||
? '/admin/authentication/login' : '/user/authentication/login';
|
||||
relogin.href = base + '?goto=' + encodeURIComponent(window.location.pathname + window.location.search);
|
||||
}
|
||||
|
||||
var back = document.querySelector('[data-back]');
|
||||
if (back) {
|
||||
back.addEventListener('click', function () {
|
||||
if (window.history.length > 1) { window.history.back(); return; }
|
||||
window.location.assign('/');
|
||||
});
|
||||
}
|
||||
|
||||
// 标题里的 ".." 收成省略号,标签页上更干净
|
||||
var h1 = document.querySelector('h1');
|
||||
if (h1) {
|
||||
var t = h1.textContent.trim().replace(/\.{2,}$/, '…');
|
||||
h1.textContent = t;
|
||||
document.title = t;
|
||||
}
|
||||
|
||||
/* ── 主题三态:与后台面板共用 admin-theme,选择会带回面板 ── */
|
||||
var root = document.documentElement;
|
||||
var mql = window.matchMedia ? window.matchMedia('(prefers-color-scheme: dark)') : null;
|
||||
|
||||
function pref() {
|
||||
try {
|
||||
var p = localStorage.getItem('admin-theme') || 'auto';
|
||||
return (p === 'light' || p === 'dark') ? p : 'auto';
|
||||
} catch (e) { return 'auto'; }
|
||||
}
|
||||
|
||||
function apply(p) {
|
||||
// auto 交回 CSS 的 prefers-color-scheme 处理,不写死 data-theme
|
||||
if (p === 'auto') root.removeAttribute('data-theme');
|
||||
else root.setAttribute('data-theme', p);
|
||||
root.setAttribute('data-theme-pref', p);
|
||||
var btns = document.querySelectorAll('[data-theme-set]');
|
||||
for (var i = 0; i < btns.length; i++) {
|
||||
btns[i].setAttribute('aria-pressed', String(btns[i].getAttribute('data-theme-set') === p));
|
||||
}
|
||||
}
|
||||
|
||||
apply(pref());
|
||||
|
||||
document.querySelectorAll('[data-theme-set]').forEach(function (btn) {
|
||||
btn.addEventListener('click', function () {
|
||||
var p = btn.getAttribute('data-theme-set');
|
||||
try { localStorage.setItem('admin-theme', p); } catch (e) {}
|
||||
apply(p);
|
||||
});
|
||||
});
|
||||
|
||||
// auto 模式下系统主题变化要实时跟随
|
||||
if (mql && mql.addEventListener) {
|
||||
mql.addEventListener('change', function () { if (pref() === 'auto') apply('auto'); });
|
||||
}
|
||||
}());
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -396,7 +396,7 @@ public class CustomScreenManager implements Listener {
|
||||
if (!body.isEmpty()) {
|
||||
// 15m10 封页统一整字符硬切100(封页不再往回扫句末, 与正文页同策略):
|
||||
// 先验证"整字符切"会不会断标点。封页/正文页都先歇着句末切点, 纯按字数切。
|
||||
int coverLimit = 110;
|
||||
int coverLimit = 115;
|
||||
// [15m8 句末切点歇着] int best=-1; for(i..) if(。!?;\n){best=i+1;break;}
|
||||
// [15m8 句末切点歇着] int cut = (best<55)? Math.min(body.length(),coverLimit) : Math.min(body.length(),best);
|
||||
int cut = Math.min(body.length(), coverLimit);
|
||||
@@ -416,19 +416,19 @@ public class CustomScreenManager implements Listener {
|
||||
|
||||
// 当前页为空:直接开始新段落
|
||||
if (page.length() == 0) {
|
||||
if (p.length() > 110) {
|
||||
if (p.length() > 115) {
|
||||
java.util.List<String> sentences = splitSentences(p);
|
||||
for (String s : sentences) {
|
||||
// ★ 15m:单句本身超 85(长句无句末可拆)→ 硬切 85,残句进下一页
|
||||
while (s.length() > 110) {
|
||||
if (page.length() + 110 + 1 > 110 && page.length() > 0) {
|
||||
while (s.length() > 115) {
|
||||
if (page.length() + 115 + 1 > 115 && page.length() > 0) {
|
||||
pages.add(page.toString().trim());
|
||||
page = new StringBuilder();
|
||||
}
|
||||
page.append(s.substring(0, 110));
|
||||
s = s.substring(110);
|
||||
page.append(s.substring(0, 115));
|
||||
s = s.substring(115);
|
||||
}
|
||||
if (page.length() + s.length() + 1 > 110 && page.length() > 0) {
|
||||
if (page.length() + s.length() + 1 > 115 && page.length() > 0) {
|
||||
pages.add(page.toString().trim());
|
||||
page = new StringBuilder();
|
||||
}
|
||||
@@ -441,14 +441,14 @@ public class CustomScreenManager implements Listener {
|
||||
}
|
||||
|
||||
// 当前页已有内容:判断段落是否能整段放入
|
||||
if (page.length() + p.length() + 1 <= 110) {
|
||||
if (page.length() + p.length() + 1 <= 115) {
|
||||
page.append("\n").append(p);
|
||||
continue;
|
||||
}
|
||||
|
||||
// 整段放不进:在「当前页 + 段落」里找语义边界截断
|
||||
String candidate = page.toString() + "\n" + p;
|
||||
int cut = findSemanticCut(candidate, 110);
|
||||
int cut = findSemanticCut(candidate, 115);
|
||||
// ★ 15l-7f 修复:不 trim,保留语义边界(。!?;\n)在页内,避免吃掉前面整段
|
||||
String firstHalf = candidate.substring(0, cut);
|
||||
String secondHalf = candidate.substring(cut);
|
||||
@@ -459,8 +459,8 @@ public class CustomScreenManager implements Listener {
|
||||
page = new StringBuilder(secondHalf);
|
||||
|
||||
// 若剩余段仍超页,继续按语义截断或按句拆
|
||||
while (page.length() > 110) {
|
||||
int nextCut = findSemanticCut(page.toString(), 110);
|
||||
while (page.length() > 115) {
|
||||
int nextCut = findSemanticCut(page.toString(), 115);
|
||||
String chunk = page.substring(0, nextCut);
|
||||
String remain = page.substring(nextCut);
|
||||
while (chunk.endsWith("\n") || chunk.endsWith(" ")) chunk = chunk.substring(0, chunk.length() - 1);
|
||||
@@ -481,7 +481,7 @@ public class CustomScreenManager implements Listener {
|
||||
if (pages.size() > 2) {
|
||||
String last = pages.get(pages.size() - 1);
|
||||
String prev = pages.get(pages.size() - 2);
|
||||
if (last.length() < 20 && (prev.length() + last.length() + 1) <= 110) {
|
||||
if (last.length() < 20 && (prev.length() + last.length() + 1) <= 115) {
|
||||
pages.set(pages.size() - 2, prev + "\n" + last);
|
||||
pages.remove(pages.size() - 1);
|
||||
}
|
||||
@@ -491,7 +491,7 @@ public class CustomScreenManager implements Listener {
|
||||
for (int pi = 1; pi + 1 < pages.size(); pi++) {
|
||||
String cur = pages.get(pi);
|
||||
String nxt = pages.get(pi + 1);
|
||||
if (cur.length() < 50 && (cur.length() + nxt.length() + 1) <= 160) {
|
||||
if (cur.length() < 50 && (cur.length() + nxt.length() + 1) <= 165) {
|
||||
pages.set(pi + 1, cur + "\n" + nxt);
|
||||
pages.remove(pi);
|
||||
}
|
||||
@@ -543,9 +543,9 @@ public class CustomScreenManager implements Listener {
|
||||
s = s.replaceAll("(?<!\\*)\\*(?!\\*)", "");
|
||||
// 去代码反引号
|
||||
s = s.replace("`", "");
|
||||
// 15m14 去 emoji/非常规字符(⚠️、✅、❌ 等), 防成书 UI 渲染乱码方块
|
||||
// 保留常见标点与中英文, 其他非 BMP 字符(emoji 区段 U+1F000~U+FFFF)直接删
|
||||
s = s.replaceAll("[\\x{1F000}-\\x{1FFFF}\\x{2600}-\\x{27BF}\\x{2B00}-\\x{2BFF}]", "");
|
||||
// 15m15 去 emoji/非常规字符(⚠️=U+26A0+U+FE0F, ✅❌等), 防成书 UI 渲染乱码方块
|
||||
// 保留常见标点与中英文, 其他非 BMP 字符(emoji 区段 U+1F000~U+FFFF) + 变体选择符 U+FE00~FE0F 直接删
|
||||
s = s.replaceAll("[\\x{1F000}-\\x{1FFFF}\\x{2600}-\\x{27BF}\\x{2B00}-\\x{2BFF}\\x{FE00}-\\x{FE0F}\\x{200D}]", "");
|
||||
// 压缩 3 行以上空行
|
||||
s = s.replaceAll("\\n{3,}", "\n\n");
|
||||
return s;
|
||||
|
||||
Reference in New Issue
Block a user