feat: docking log management, sim_time DB-only, modal helpers

- Add docking_log_list and docking_log_delete routes with dedicated page
- _append_docking_log: detect existing state interval before creating new entry
- _append_undocking_log: find entry by node title+at_time, accept docked_at param
- Fix _entry_state_label and _entry_location to return time-correct values
- Add api_set_sim_time POST endpoint; remove sim_time from all url_for() calls
- _resolve_simulation_time simplified to DB-only (no URL param)
- app.js: add openModal/closeModal/toggleTheme helpers
- base.html: add 对接日志管理 nav item, remove Today button

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-05 16:19:32 +08:00
co-authored by Claude Opus 4.7
parent dd5210c203
commit ac5141fd02
4 changed files with 196 additions and 23 deletions
+9
View File
@@ -79,6 +79,15 @@
<span class="ic"></span>燃料换算
</a>
<div class="nst" onclick="this.classList.toggle('on')">
<span class="ar"></span>控制台
</div>
<div class="niw">
<a class="ni su{% if active_page == 'docking_logs' %} act{% endif %}" href="{{ url_for('web.docking_log_list') }}">
<span class="ic"></span>对接日志管理
</a>
</div>
<a class="ni" href="{{ url_for('api.health') }}">
<span class="ic">📡</span>API 健康检查
</a>