- Remove naive-ui and @xterm/addon-webgl from frontend deps — neither is imported anywhere in frontend/src; the entire UI is hand-rolled Tailwind and the terminal uses only FitAddon/SearchAddon/WebLinksAddon (22 packages removed, 0 vulnerabilities) - Add 003_connection_history.sql migration — CREATE TABLE IF NOT EXISTS so it is safe and idempotent on existing databases; tracks per-connection session duration for frequency/history analytics - Wire MobaConfImporter into the plugin registry in app.New() so the registry is no longer empty at runtime; ImportMobaConf continues to call the importer directly (GetImporter key is "MobaXTerm", not "mobaconf") Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
9 lines
338 B
SQL
9 lines
338 B
SQL
CREATE TABLE IF NOT EXISTS connection_history (
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
connection_id INTEGER NOT NULL REFERENCES connections(id) ON DELETE CASCADE,
|
|
protocol TEXT NOT NULL,
|
|
connected_at DATETIME DEFAULT CURRENT_TIMESTAMP,
|
|
disconnected_at DATETIME,
|
|
duration_secs INTEGER
|
|
);
|