Commit 8: Plugin-System (Scanner erweitern, Geräte importieren, Icons)

This commit is contained in:
2026-07-19 10:14:43 +02:00
parent 6a7eb3dfe5
commit 986de50963
20 changed files with 517 additions and 20 deletions

View File

@@ -5,6 +5,8 @@
* als auch vom Frontend (apps/frontend) verwendet werden.
*/
import { deviceSourceValues } from "./schemas.js";
export * from "./schemas.js";
@@ -20,7 +22,7 @@ export interface Device {
lastScan: string | null; // ISO-8601 Zeitstempel
}
export type DeviceSource = "fritzbox" | "dns" | "http" | "https" | "portscan" | "manual";
export type DeviceSource = (typeof deviceSourceValues)[number];
export interface Service {
id: string;
@@ -61,6 +63,14 @@ export interface ScanLogEntry {
createdAt: string;
}
export interface PluginInfo {
name: string;
version: string;
description?: string;
/** z. B. "scanner" (registriert Softwareerkennung), "device-import" */
capabilities: string[];
}
/**
* Ranking-Stufen für die Suche, gemäß Spezifikation:
* 1. Displayname beginnt mit Suchtext

View File

@@ -7,6 +7,7 @@ export const deviceSourceValues = [
"https",
"portscan",
"manual",
"plugin",
] as const;
export const DeviceSourceSchema = z.enum(deviceSourceValues);