feat: React tabanli yönetim panelini ekle

This commit is contained in:
2026-03-21 11:53:12 +03:00
parent 62add37d9d
commit d07bc365f5
11 changed files with 2590 additions and 0 deletions

47
frontend/src/types.ts Normal file
View File

@@ -0,0 +1,47 @@
export type ToolToggle = {
name: string;
enabled: boolean;
};
export type RuntimeSettings = {
terminal_mode: 1 | 2 | 3;
search_provider: "brave" | "searxng";
ollama_base_url: string;
default_model: string;
tools: ToolToggle[];
};
export type DashboardSnapshot = {
settings: RuntimeSettings;
whitelist_count: number;
memory_items: number;
recent_logs: string[];
};
export type UserRecord = {
telegram_user_id: number;
username?: string | null;
display_name?: string | null;
is_active: boolean;
};
export type MemoryRecord = {
id: number;
content: string;
kind: string;
created_at: string;
};
export type OllamaStatus = {
reachable: boolean;
base_url: string;
model: string;
installed_models: string[];
message: string;
};
export type TelegramStatus = {
configured: boolean;
polling_active: boolean;
message: string;
};