mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
feat(panel): add experimental modern UI, sliding switchers, cycle range, and fluid animations
This commit is contained in:
@@ -446,3 +446,17 @@ export function normalizeStandalonePort(port) {
|
||||
if (num >= 1024 && num <= 65535) return num;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 归一化实验性现代化新 UI 开关(默认 `false`)。
|
||||
*
|
||||
* @param {unknown} val
|
||||
* @returns {boolean}
|
||||
*/
|
||||
export function normalizeExperimentalModernUi(val) {
|
||||
if (typeof val === 'string') {
|
||||
const lower = val.trim().toLowerCase();
|
||||
return lower === 'true' || lower === '1' || lower === 'on';
|
||||
}
|
||||
return Boolean(val);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user