a7a281cb11
First-party plugins (host_agent, http, snmp, traefik, unifi, docker) are now tracked under plugins/ and baked into the image, so they version atomically with core — ending the cross-repo import drift the roundtable->steward rename exposed. History for these files is preserved in the archived Roundtable-plugins repo. Plugin discovery becomes multi-root: PLUGIN_DIR (single) -> PLUGIN_DIRS (bundled first, then external) + PLUGIN_INSTALL_DIR. Bundled ships in the image; third-party plugins still mount at runtime into the external root (STEWARD_PLUGIN_DIR, default /data/plugins) and downloads/installs land there. Bundled shadows external on a name collision. - config.py: load_bootstrap returns plugin_dirs + plugin_install_dir - app.py: iterate PLUGIN_DIRS at the migration + load sites - migration_runner.py: discover_all_in() unions every plugin root - plugin_manager.py: resolve_plugin_path() (pure, first-root-wins); load / install / hot-reload span all roots; installs target the external root - settings/routes.py: _discover_plugins scans all roots, dedup bundled-first - Dockerfile: COPY plugins/ ; docker-compose: drop host bind, document external - tests/test_plugin_dirs.py: resolution, multi-root discovery, bootstrap split Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
41 lines
1.6 KiB
HTML
41 lines
1.6 KiB
HTML
{# traefik/widget_access_log.html — dashboard widget: traffic origin summary #}
|
|
{% if not summary %}
|
|
<div style="color:var(--text-muted);font-size:0.85rem;padding:0.5rem 0;">No access log data yet.</div>
|
|
{% else %}
|
|
|
|
<div style="display:flex;gap:1rem;margin-bottom:0.75rem;flex-wrap:wrap;">
|
|
<div>
|
|
<span style="font-size:1.4rem;font-weight:700;line-height:1;">{{ summary.total | int }}</span>
|
|
<span style="font-size:0.78rem;color:var(--text-muted);margin-left:0.25rem;">total req</span>
|
|
</div>
|
|
<div>
|
|
<span style="font-size:1.4rem;font-weight:700;line-height:1;color:var(--orange);">
|
|
{{ "%.1f" | format(summary.external_pct) }}%
|
|
</span>
|
|
<span style="font-size:0.78rem;color:var(--text-muted);margin-left:0.25rem;">external</span>
|
|
</div>
|
|
</div>
|
|
|
|
{% if summary.top_ips %}
|
|
<div style="font-size:0.72rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:0.05em;margin-bottom:0.4rem;">
|
|
Top IPs
|
|
{% if summary.ip_filter != "all" %}
|
|
<span style="color:var(--accent);margin-left:0.4rem;">{{ summary.ip_filter }}</span>
|
|
{% endif %}
|
|
</div>
|
|
<div style="display:grid;gap:2px;">
|
|
{% for ip in summary.top_ips %}
|
|
<div style="display:flex;align-items:center;gap:0.5rem;font-size:0.82rem;padding:0.2rem 0;">
|
|
<span class="dot {% if ip.internal %}dot-dim{% else %}dot-warn{% endif %}"></span>
|
|
<span style="flex:1;font-family:ui-monospace,monospace;font-size:0.78rem;
|
|
color:{% if ip.internal %}var(--text-muted){% else %}var(--text){% endif %};">
|
|
{{ ip.ip }}
|
|
</span>
|
|
<span style="color:var(--text-muted);font-size:0.78rem;">{{ ip.count }}</span>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% endif %}
|