Skip to content

Real-time network monitor + outbound firewall — see & block every connection. Privacy-first, local-first, Rust fleet agent, SIEM exports, 8 languages. / Moniteur réseau temps réel + pare-feu sortant, agent de flotte Rust, exports SIEM. 100 % local.

Fix logo paths + timeline port in packaged app

MoneyLisa8b5531660bcb
diff --git a/electron/package.json b/electron/package.json
index 378a45c..68d2220 100644
--- a/electron/package.json
+++ b/electron/package.json
@@ -1,6 +1,6 @@
{
"name": "snitch",
- "version": "1.0.2",
+ "version": "1.0.3",
"description": "Snitch — real-time network traffic visualizer / visualiseur de trafic réseau en temps réel",
"main": "main.js",
"license": "AGPL-3.0-or-later",
@@ -23,7 +23,8 @@
"main.js",
"preload.js",
"splash.html",
- "icon.png"
+ "icon.png",
+ "logo.png"
],
"extraResources": [
{
diff --git a/frontend/package.json b/frontend/package.json
index e86bafa..45fad91 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -1,6 +1,6 @@
{
"name": "snitch-frontend",
- "version": "1.0.2",
+ "version": "1.0.3",
"private": true,
"license": "AGPL-3.0-or-later",
"description": "Snitch UI — React + D3.js / Interface React + D3.js",
diff --git a/frontend/src/components/Sidebar.jsx b/frontend/src/components/Sidebar.jsx
index 85e1aad..0ca9d64 100644
--- a/frontend/src/components/Sidebar.jsx
+++ b/frontend/src/components/Sidebar.jsx
@@ -116,7 +116,7 @@ export default function Sidebar({ nodes, lanDevices, packets, selected, onClose,
<div style={{ display: 'flex', alignItems: 'center', gap: 8, marginBottom: 2 }}>
{/* EN: Snitch mark — the white radar-eye sigil.
FR: Emblème Snitch — le sigle radar-œil blanc. */}
- <img src="/logo.png" alt="Snitch" style={{ width: 22, height: 22, borderRadius: 5 }} />
+ <img src="./logo.png" alt="Snitch" style={{ width: 22, height: 22, borderRadius: 5 }} />
<span style={{ fontSize: 17, fontWeight: 800, color: '#f1f5f9', letterSpacing: 1 }}>{t('app_name')}</span>
</div>
<span style={{ fontSize: 10, color: '#475569', letterSpacing: 1 }}>{t('tagline')}</span>
diff --git a/frontend/src/components/Timeline.jsx b/frontend/src/components/Timeline.jsx
index 1a1dca6..b8b6282 100644
--- a/frontend/src/components/Timeline.jsx
+++ b/frontend/src/components/Timeline.jsx
@@ -10,7 +10,7 @@
*/
import { useEffect, useRef, useState, useCallback } from 'react'
import * as d3 from 'd3'
-import { API_BASE, authHeaders } from '../api'
+import { apiBase, authHeaders } from '../api'
import { useT } from '../i18n'
const EXPANDED_H = 110
@@ -42,9 +42,15 @@ export default function Timeline() {
const fetchTimeline = useCallback(() => {
// EN: Auth header required — the API token protects every endpoint.
+ // apiBase() (not the static API_BASE constant) resolves the dynamic
+ // port Electron picked at launch — the fixed :8000 never works in
+ // the packaged app.
// FR: En-tête d'auth requis — le jeton API protège tous les endpoints.
- authHeaders()
- .then(headers => fetch(`${API_BASE}/timeline?minutes=${range}`, { headers }))
+ // apiBase() (pas la constante statique API_BASE) résout le port
+ // dynamique choisi par Electron au lancement — le :8000 fixe ne
+ // marche jamais dans l'app empaquetée.
+ Promise.all([apiBase(), authHeaders()])
+ .then(([base, headers]) => fetch(`${base}/timeline?minutes=${range}`, { headers }))
.then(r => r.json())
.then(d => setData(d.timeline || []))
.catch(() => {})