diff --git a/bin/jq b/bin/jq new file mode 100644 index 0000000..04b0365 Binary files /dev/null and b/bin/jq differ diff --git a/webroot/index.html b/webroot/index.html index 24e1185..938df16 100644 --- a/webroot/index.html +++ b/webroot/index.html @@ -6,8 +6,8 @@ LuminPro - - + + diff --git a/webui/src/apps.js b/webui/src/apps.js index 657385f..b6ff9ac 100644 --- a/webui/src/apps.js +++ b/webui/src/apps.js @@ -1,3 +1,4 @@ +// oxlint-disable no-unused-expressions import { listPackages, getPackagesInfo } from 'kernelsu'; import { createIcons, Eye, EyeOff } from 'lucide'; import PinyinMatch from 'pinyin-match'; @@ -107,7 +108,7 @@ export async function loadApps() { } else { throw new Error('No packages found'); } - } catch (_) { + } catch { // 模拟 150 个应用包数据用于调试 console.log("[DEBUG] 使用模拟应用列表数据"); infoList = Array.from({ length: 150 }, (_, i) => ({ @@ -599,7 +600,7 @@ function setupActivityPicker() { stopPolling(); pollingTimer = setInterval(async () => { try { - const res = await runCmd(`dumpsys window 2>/dev/null | grep mCurrentFocus | sed 's/.*u0 \\(.*\\)}/\\1/'`); + const res = await runCmd(`dumpsys window 2>/dev/null | grep mCurrentFocus | sed 's/.*u[0-9][0-9]* //' | sed 's/}.*//'`); if (res.errno !== 0) return; const activity = res.stdout.trim(); // 空值或仍在 WebUI 内则继续等待 diff --git a/webui/src/header.css b/webui/src/header.css index 02d68d6..9b32144 100644 --- a/webui/src/header.css +++ b/webui/src/header.css @@ -3,7 +3,7 @@ display: flex; align-items: center; justify-content: space-between; - padding: 20px 20px; + padding: 12px 12px; } .header-content { diff --git a/webui/src/log.css b/webui/src/log.css index a695c40..0615e1e 100644 --- a/webui/src/log.css +++ b/webui/src/log.css @@ -117,15 +117,15 @@ position: fixed; bottom: calc(18px + var(--safe-area-inset-bottom, 0px)); left: 50%; - transform: translateX(-50%) translateZ(0); /* 居中并开启硬件加速 */ + transform: translateX(-50%) translateZ(0); display: flex; justify-content: center; align-items: center; gap: 8px; - background: rgba(var(--md-sys-color-surface-container-high-rgb, 43, 41, 48), 0.6); - -webkit-backdrop-filter: blur(20px) saturate(180%); - backdrop-filter: blur(20px) saturate(180%); - will-change: backdrop-filter; + background: rgba(var(--md-sys-color-surface-container-high-rgb, 43, 41, 48), 0.75); + -webkit-backdrop-filter: blur(12px); + backdrop-filter: blur(12px); + will-change: transform; padding: 8px 16px; border-radius: 28px; border: 1px solid rgba(255, 255, 255, 0.08); @@ -136,7 +136,7 @@ user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; - touch-action: none; /* Prevents browser scroll during drag */ + touch-action: none; } .navbar-slider { @@ -145,16 +145,11 @@ top: 8px; bottom: 8px; height: auto; - background: rgba(var(--md-sys-color-primary-rgb, 168, 199, 250), 0.35); - -webkit-backdrop-filter: blur(8px) saturate(120%); - backdrop-filter: blur(8px) saturate(120%); - transform: translateZ(0); + background: var(--md-sys-color-primary-container); border-radius: 20px; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s ease; pointer-events: none; z-index: 0; - border: 1px solid rgba(var(--md-sys-color-primary-rgb, 168, 199, 250), 0.4); - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .navbar-btn { diff --git a/webui/src/style.css b/webui/src/style.css index 004f204..c2ea558 100644 --- a/webui/src/style.css +++ b/webui/src/style.css @@ -73,8 +73,8 @@ body::-webkit-scrollbar { } #app { - padding: 20px; - padding-bottom: calc(20px + 80px); + padding: 12px; + padding-bottom: calc(12px + 80px); max-width: 600px; margin: 0 auto; display: flex; diff --git a/webui/src/views/AppsView.vue b/webui/src/views/AppsView.vue index 70c942b..85fa5fc 100644 --- a/webui/src/views/AppsView.vue +++ b/webui/src/views/AppsView.vue @@ -108,7 +108,7 @@ function startPolling() { pollingTimer = setInterval(async () => { try { const res = await runCmd( - `dumpsys window 2>/dev/null | grep mCurrentFocus | sed 's/.*u0 \\(.*\\)}/\\1/'` + `dumpsys window 2>/dev/null | grep mCurrentFocus | sed 's/.*u[0-9][0-9]* //' | sed 's/}.*//'` ); if (res.errno !== 0) return; const activity = res.stdout.trim(); @@ -327,7 +327,7 @@ function confirmPicker() {

切换到目标界面

- 点击「开始获取」后,切换到需要屏蔽的应用界面。

+ 切换到需要屏蔽的应用界面,并点击 「开始获取」

检测到非 Web UI 界面后将自动停止。

{{ pickerStatusText