优化Web端日志导航与GUI配置
This commit is contained in:
1 parent
674ede76ee
commit
6c73f6e414
3 files changed
+1803
-495
No files matched your search
+154
-70
@@ -4,69 +4,102 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>抖音挂机 - Web GUI</title>
|
||||
<link rel="stylesheet" href="styles.css" />
|
||||
<link rel="stylesheet" href="styles.css?v=console-20260520-log-split" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="app">
|
||||
<header class="header">
|
||||
<div>
|
||||
<div class="title">抖音挂机控制台</div>
|
||||
<div class="subtitle">配置与运行(纯坐标点击)</div>
|
||||
<header class="header commandBar">
|
||||
<div class="brandBlock">
|
||||
<div class="brandMark" aria-hidden="true">控</div>
|
||||
<div>
|
||||
<div class="title">抖音挂机控制台</div>
|
||||
<div class="subtitle">设备调度、运行控制与实时观察</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-actions">
|
||||
<button id="btnStart" class="btn btnPrimary">
|
||||
<span class="btnIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M7 4v16l13-8z"/></svg>
|
||||
</span>
|
||||
开始运行
|
||||
</button>
|
||||
<button id="btnRefresh" class="btn">
|
||||
<span class="btnIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12a9 9 0 1 1-2.64-6.36"/><path d="M21 3v6h-6"/></svg>
|
||||
</span>
|
||||
刷新设备
|
||||
</button>
|
||||
<button id="btnScreenshot" class="btn">
|
||||
<span class="btnIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>
|
||||
</span>
|
||||
截图
|
||||
</button>
|
||||
<button id="btnLoad" class="btn">
|
||||
<span class="btnIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="M7 10l5 5 5-5"/><path d="M12 15V3"/></svg>
|
||||
</span>
|
||||
加载配置
|
||||
</button>
|
||||
<button id="btnSave" class="btn btnPrimary">
|
||||
<span class="btnIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h11l5 5v9a2 2 0 0 1-2 2z"/><path d="M17 21v-8H7v8"/><path d="M7 3v5h8"/></svg>
|
||||
</span>
|
||||
保存配置
|
||||
</button>
|
||||
<button id="btnStop" class="btn btnDanger">
|
||||
<span class="btnIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="6" y="6" width="12" height="12" rx="2"/></svg>
|
||||
</span>
|
||||
停止
|
||||
</button>
|
||||
<button id="btnForceStop" class="btn btnDanger">
|
||||
<span class="btnIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
|
||||
</span>
|
||||
强制停止
|
||||
</button>
|
||||
<button id="btnBackKey" class="btn">
|
||||
<span class="btnIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 14-4-4 4-4"/><path d="M5 10h11a4 4 0 0 1 0 8h-1"/></svg>
|
||||
</span>
|
||||
返回键
|
||||
</button>
|
||||
<div class="actionGroup primaryActions">
|
||||
<button id="btnStart" class="btn btnPrimary">
|
||||
<span class="btnIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M7 4v16l13-8z"/></svg>
|
||||
</span>
|
||||
开始运行
|
||||
</button>
|
||||
<button id="btnStop" class="btn btnDangerSoft">
|
||||
<span class="btnIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="6" y="6" width="12" height="12" rx="2"/></svg>
|
||||
</span>
|
||||
停止
|
||||
</button>
|
||||
<button id="btnForceStop" class="btn btnDanger">
|
||||
<span class="btnIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
|
||||
</span>
|
||||
强制停止
|
||||
</button>
|
||||
</div>
|
||||
<div class="actionGroup secondaryActions">
|
||||
<button id="btnRefresh" class="btn btnSoft">
|
||||
<span class="btnIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12a9 9 0 1 1-2.64-6.36"/><path d="M21 3v6h-6"/></svg>
|
||||
</span>
|
||||
刷新设备
|
||||
</button>
|
||||
<button id="btnScreenshot" class="btn btnSoft">
|
||||
<span class="btnIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>
|
||||
</span>
|
||||
截图
|
||||
</button>
|
||||
<button id="btnBackKey" class="btn btnSoft">
|
||||
<span class="btnIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 14-4-4 4-4"/><path d="M5 10h11a4 4 0 0 1 0 8h-1"/></svg>
|
||||
</span>
|
||||
返回键
|
||||
</button>
|
||||
<button id="btnLoad" class="btn btnGhost">
|
||||
<span class="btnIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="M7 10l5 5 5-5"/><path d="M12 15V3"/></svg>
|
||||
</span>
|
||||
加载配置
|
||||
</button>
|
||||
<button id="btnSave" class="btn btnPrimary">
|
||||
<span class="btnIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h11l5 5v9a2 2 0 0 1-2 2z"/><path d="M17 21v-8H7v8"/><path d="M7 3v5h8"/></svg>
|
||||
</span>
|
||||
保存配置
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="grid">
|
||||
<section class="card cardScroll cardConfig">
|
||||
<section class="overview statusStrip" aria-label="运行概览">
|
||||
<article class="overviewCard overviewPrimary">
|
||||
<div class="overviewLabel">运行状态</div>
|
||||
<div class="overviewValue">
|
||||
<span id="topRunDot" class="statusDot" aria-hidden="true"></span>
|
||||
<span id="topRunState">等待启动</span>
|
||||
</div>
|
||||
<div class="overviewMeta" id="topRunMeta">PID - / 运行时长 -</div>
|
||||
</article>
|
||||
<article class="overviewCard">
|
||||
<div class="overviewLabel">设备连接</div>
|
||||
<div class="overviewValue" id="topDeviceState">未刷新</div>
|
||||
<div class="overviewMeta" id="topAdbState">ADB 状态待检测</div>
|
||||
</article>
|
||||
<article class="overviewCard">
|
||||
<div class="overviewLabel">福袋处理</div>
|
||||
<div class="overviewValue" id="topFudaiState">0 / 0</div>
|
||||
<div class="overviewMeta" id="topFudaiMeta">打开详情 / 成功参与</div>
|
||||
</article>
|
||||
<article class="overviewCard">
|
||||
<div class="overviewLabel">日志缓存</div>
|
||||
<div class="overviewValue" id="topLogState">-</div>
|
||||
<div class="overviewMeta" id="topLogMeta">最后日志 -</div>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<main class="workspaceShell consoleGrid">
|
||||
<aside class="card configRail">
|
||||
<div class="cardTitle">
|
||||
<span class="sectionIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.7 1.7 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06A1.7 1.7 0 0 0 15 19.4a1.7 1.7 0 0 0-1 .31 1.7 1.7 0 0 0-.82 1.46V21a2 2 0 0 1-4 0v-.09a1.7 1.7 0 0 0-.82-1.46 1.7 1.7 0 0 0-1-.31 1.7 1.7 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-.31-1 1.7 1.7 0 0 0-1.46-.82H2a2 2 0 0 1 0-4h.09a1.7 1.7 0 0 0 1.46-.82 1.7 1.7 0 0 0 .31-1 1.7 1.7 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.7 1.7 0 0 0 9 4.6a1.7 1.7 0 0 0 1-.31 1.7 1.7 0 0 0 .82-1.46V2a2 2 0 0 1 4 0v.09a1.7 1.7 0 0 0 .82 1.46 1.7 1.7 0 0 0 1 .31 1.7 1.7 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.7 1.7 0 0 0 19.4 9a1.7 1.7 0 0 0 .31 1 1.7 1.7 0 0 0 1.46.82H22a2 2 0 0 1 0 4h-.09a1.7 1.7 0 0 0-1.46.82 1.7 1.7 0 0 0-.31 1z"/></svg>
|
||||
@@ -74,7 +107,6 @@
|
||||
配置
|
||||
</div>
|
||||
|
||||
<div class="configLayout">
|
||||
<nav class="sideNav" role="tablist" aria-label="配置分类">
|
||||
<button class="tabBtn active" type="button" data-target="device" role="tab" aria-selected="true">
|
||||
<span class="tabIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="7" y="2" width="10" height="20" rx="2"/><path d="M11 19h2"/></svg></span>
|
||||
@@ -104,7 +136,33 @@
|
||||
<span class="tabIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg></span>
|
||||
<span class="tabText">调试</span>
|
||||
</button>
|
||||
<button class="tabBtn" type="button" data-target="monitor" role="tab" aria-selected="false">
|
||||
<span class="tabIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="14" rx="2"/><path d="M8 21h8"/><path d="M12 18v3"/></svg></span>
|
||||
<span class="tabText">监控</span>
|
||||
</button>
|
||||
<button class="tabBtn" type="button" data-target="reservations" role="tab" aria-selected="false">
|
||||
<span class="tabIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2 2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg></span>
|
||||
<span class="tabText">预约</span>
|
||||
</button>
|
||||
<button class="tabBtn" type="button" data-target="runLogs" role="tab" aria-selected="false">
|
||||
<span class="tabIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16v16H4z"/><path d="M8 8h8"/><path d="M8 12h8"/><path d="M8 16h6"/></svg></span>
|
||||
<span class="tabText">运行日志</span>
|
||||
</button>
|
||||
<button class="tabBtn" type="button" data-target="actionLogs" role="tab" aria-selected="false">
|
||||
<span class="tabIcon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6h13"/><path d="M8 12h13"/><path d="M8 18h13"/><path d="M3 6h.01"/><path d="M3 12h.01"/><path d="M3 18h.01"/></svg></span>
|
||||
<span class="tabText">行为日志</span>
|
||||
</button>
|
||||
</nav>
|
||||
</aside>
|
||||
|
||||
<section class="configWorkspace">
|
||||
<div class="workspaceHeader">
|
||||
<div>
|
||||
<div class="workspaceEyebrow">Configuration</div>
|
||||
<h2 class="workspaceTitle">运行策略工作区</h2>
|
||||
</div>
|
||||
<div class="workspaceHint">配置项按当前标签自然铺排,短页不再继承长页高度。</div>
|
||||
</div>
|
||||
|
||||
<div class="panels">
|
||||
<div class="panel active" data-panel="device" role="tabpanel">
|
||||
@@ -467,7 +525,7 @@
|
||||
</div>
|
||||
<div class="stat">
|
||||
<div class="statLabel">TraceId(请求追踪)</div>
|
||||
<div id="statTraceId" class="statValue" style="font-family: monospace; font-size: 0.9em;">-</div>
|
||||
<div id="statTraceId" class="statValue mono statTrace">-</div>
|
||||
<div class="statHint" id="statTraceIdHint">-</div>
|
||||
</div>
|
||||
|
||||
@@ -967,6 +1025,24 @@
|
||||
<div><label class="check"><input id="logging_compress_logs" type="checkbox" data-key="logging.compress_logs" data-type="bool" /> <span>压缩旧日志</span></label></div>
|
||||
<div><label class="check"><input id="logging_performance_tracking_enabled" type="checkbox" data-key="logging.performance_tracking.enabled" data-type="bool" /> <span>性能追踪</span></label></div>
|
||||
</div>
|
||||
<div class="row grid3">
|
||||
<div><label class="check"><input id="logging_use_dated_logs" type="checkbox" data-key="logging.use_dated_logs" data-type="bool" /> <span>按日期拆分日志</span></label></div>
|
||||
<div><label class="check"><input id="log_unified_enabled" type="checkbox" data-key="log_unified_enabled" data-type="bool" /> <span>写入统一日志</span></label></div>
|
||||
<div>
|
||||
<label class="label">统一日志路径</label>
|
||||
<input id="log_unified_path" class="input" data-key="log_unified_path" data-type="str" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row grid2">
|
||||
<div>
|
||||
<label class="label">实时状态刷新(ms)</label>
|
||||
<input id="gui_realtime_status_refresh_interval_ms" class="input" data-key="gui.realtime_status.refresh_interval_ms" data-type="int" type="number" min="200" step="100" />
|
||||
</div>
|
||||
<div>
|
||||
<label class="label">实时状态条数</label>
|
||||
<input id="gui_realtime_status_tail_items" class="input" data-key="gui.realtime_status.tail_items" data-type="int" type="number" min="10" step="10" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row grid3">
|
||||
<div>
|
||||
<label class="label">日志保留天数</label>
|
||||
@@ -1030,11 +1106,9 @@
|
||||
<label class="check"><input id="logging_track_function_calls" type="checkbox" data-key="logging.performance_tracking.track_function_calls" data-type="bool" /> <span>追踪函数调用</span></label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="panel monitorPanel" data-panel="monitor" role="tabpanel" hidden>
|
||||
<section class="card cardShot">
|
||||
<div class="cardTitle">
|
||||
<span class="sectionIcon" aria-hidden="true">
|
||||
@@ -1048,7 +1122,9 @@
|
||||
<div class="hint" id="liveShotStatus">等待截图</div>
|
||||
</section>
|
||||
|
||||
<section class="card cardReservations">
|
||||
</div>
|
||||
|
||||
<section class="card cardReservations panel" data-panel="reservations" role="tabpanel" hidden>
|
||||
<div class="cardTitle">
|
||||
<span class="sectionIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>
|
||||
@@ -1062,7 +1138,7 @@
|
||||
<div class="divider"></div>
|
||||
<details open>
|
||||
<summary class="sectionTitle">已记录直播间(高价值)
|
||||
<span style="float:right; font-weight:normal; font-size:13px; margin-left:8px">
|
||||
<span class="summaryActions">
|
||||
<button id="hv_expand_all" class="btn small">展开全部</button>
|
||||
<button id="hv_collapse_all" class="btn small">折叠全部</button>
|
||||
</span>
|
||||
@@ -1073,16 +1149,15 @@
|
||||
</details>
|
||||
</section>
|
||||
|
||||
<section class="card cardLog">
|
||||
<section class="card cardLog panel" data-panel="runLogs" role="tabpanel" hidden>
|
||||
<div class="cardTitle">
|
||||
<span class="sectionIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16v16H4z"/><path d="M8 8h8"/><path d="M8 12h8"/><path d="M8 16h6"/></svg>
|
||||
</span>
|
||||
日志
|
||||
运行日志
|
||||
</div>
|
||||
|
||||
<div class="logRow">
|
||||
<div class="logSection">
|
||||
<div class="logSection singleLogSection">
|
||||
<div class="logHeader">
|
||||
<div class="logTitle">运行日志</div>
|
||||
<div class="logHeaderActions">
|
||||
@@ -1096,9 +1171,18 @@
|
||||
</div>
|
||||
</div>
|
||||
<pre id="runLog" class="log"></pre>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="logSection">
|
||||
<section class="card cardLog panel" data-panel="actionLogs" role="tabpanel" hidden>
|
||||
<div class="cardTitle">
|
||||
<span class="sectionIcon" aria-hidden="true">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6h13"/><path d="M8 12h13"/><path d="M8 18h13"/><path d="M3 6h.01"/><path d="M3 12h.01"/><path d="M3 18h.01"/></svg>
|
||||
</span>
|
||||
行为日志
|
||||
</div>
|
||||
|
||||
<div class="logSection singleLogSection">
|
||||
<div class="logHeader">
|
||||
<div class="logTitle">行为日志</div>
|
||||
<div class="logHeaderActions">
|
||||
@@ -1107,12 +1191,12 @@
|
||||
</div>
|
||||
</div>
|
||||
<pre id="actionsLog" class="log"></pre>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script src="app.js"></script>
|
||||
<script src="app.js?v=console-20260520-log-split"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user