feat: 1.统一右侧抽屉关闭按钮布局 2.统一 UI 组件为 Ant Design 移除 radix-ui、floating-ui 组件 3. 修复 ESLint 文件格式错误的问题

This commit is contained in:
zhanjunhao
2026-11-10 14:08:10 +08:00
parent 5713d541b0
commit d224d5b6fa
202 changed files with 29195 additions and 12732 deletions
+13 -6
View File
@@ -92,7 +92,7 @@
border-radius: 50%;
background: radial-gradient(
circle,
var(--brand-primary-soft, rgba(22, 104, 220, 0.10)),
var(--brand-primary-soft, rgba(22, 104, 220, 0.1)),
transparent 70%
);
filter: blur(24px);
@@ -280,13 +280,19 @@
var el = document.getElementById('wl-splash');
var rawBrand = el ? el.getAttribute('data-brand') : null;
var rawLogo = el ? el.getAttribute('data-logo') : null;
var brandIsDevPH = !!(rawBrand && rawBrand.indexOf(PLACEHOLDER_PREFIX) === 0);
var logoIsDevPH = !!(rawLogo && rawLogo.indexOf(PLACEHOLDER_PREFIX) === 0);
var brandIsDevPH = !!(
rawBrand && rawBrand.indexOf(PLACEHOLDER_PREFIX) === 0
);
var logoIsDevPH = !!(
rawLogo && rawLogo.indexOf(PLACEHOLDER_PREFIX) === 0
);
var name = brandIsDevPH ? '' : clean(rawBrand);
var logo = logoIsDevPH ? '' : clean(rawLogo);
try {
if ((!el || brandIsDevPH) && !name) name = clean(localStorage.getItem('system_name'));
if ((!el || logoIsDevPH) && !logo) logo = clean(localStorage.getItem('logo'));
if ((!el || brandIsDevPH) && !name)
name = clean(localStorage.getItem('system_name'));
if ((!el || logoIsDevPH) && !logo)
logo = clean(localStorage.getItem('logo'));
} catch (e) {
/* 隐私模式 localStorage 不可用:name/logo 保持空,React 端走终极兜底 */
}
@@ -305,7 +311,8 @@
try {
// ---- 文案:navigator.language 判定 zh / en ----
var lang = (navigator.language || 'zh').toLowerCase();
var loadingText = lang.indexOf('zh') === 0 ? '加载中...' : 'Loading...';
var loadingText =
lang.indexOf('zh') === 0 ? '加载中...' : 'Loading...';
var textEl = el.querySelector('.wl-text');
if (textEl) textEl.textContent = loadingText;