feat(ui): add in-app log viewer and file logging controls

- Add Logs section with refresh, download, and clear actions
- Implement auto-refresh toggle and incremental loading via timestamp
- Add “logging to file” setting; integrate with config and /logging-to-file API
- Auto-load logs when opening Logs; hide nav when logging disabled
- Escape HTML when rendering logs for safety
- Update i18n with strings for logs and settings
- Ignore CLAUDE.md and AGENTS.md in .gitignore

Why: Enable users to monitor and manage logs within the app, reduce overhead with incremental updates, and avoid committing local agent docs.
This commit is contained in:
hkfires
2025-10-16 12:03:15 +08:00
parent 7de5280824
commit dcfffc716b
5 changed files with 620 additions and 1 deletions

3
.gitignore vendored
View File

@@ -20,3 +20,6 @@ package-lock.json
# OS files
.DS_Store
Thumbs.db
CLAUDE.md
AGENTS.md