refactor: move record/playback to dedicated page, restore test mode in settings
- New '录制回放' page with sidebar nav entry - Recording: start/stop/auto, file list with play/export/delete - Playback: visual bar indicator, opens dashboards to see replayed data - Settings: restored dev tools section with test mode toggle
This commit is contained in:
@@ -57,6 +57,10 @@
|
||||
<svg viewBox="0 0 24 24" width="20" height="20"><path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z" fill="currentColor"/></svg>
|
||||
<span class="nav-label">数据测试</span>
|
||||
</a>
|
||||
<a href="#/record" class="nav-item" data-route="record">
|
||||
<svg viewBox="0 0 24 24" width="20" height="20"><circle cx="12" cy="12" r="8" fill="none" stroke="currentColor" stroke-width="2"/><circle cx="12" cy="12" r="3" fill="currentColor"/></svg>
|
||||
<span class="nav-label">录制回放</span>
|
||||
</a>
|
||||
<a href="#/settings" class="nav-item" data-route="settings">
|
||||
<svg viewBox="0 0 24 24" width="20" height="20"><path d="M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96a.49.49 0 0 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.07.62-.07.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z" fill="currentColor"/></svg>
|
||||
<span class="nav-label">设置</span>
|
||||
@@ -97,6 +101,8 @@
|
||||
</div>
|
||||
<div id="page-debug" class="page">
|
||||
</div>
|
||||
<div id="page-record" class="page">
|
||||
</div>
|
||||
<div id="page-settings" class="page">
|
||||
</div>
|
||||
</div>
|
||||
@@ -114,6 +120,7 @@
|
||||
<script src="/static/js/pages/dashboard.js"></script>
|
||||
<script src="/static/js/pages/scene.js"></script>
|
||||
<script src="/static/js/pages/debug.js"></script>
|
||||
<script src="/static/js/pages/record.js"></script>
|
||||
<script src="/static/js/pages/settings.js"></script>
|
||||
<script src="/static/js/router.js"></script>
|
||||
<script src="/static/js/app.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user