New Greeting Tab + New File Structure

This commit is contained in:
2026-01-22 12:57:35 +01:00
parent 881363e703
commit ba72e8118f
14 changed files with 503 additions and 445 deletions

View File

@@ -1,21 +1,14 @@
mod chat;
mod home;
mod news;
use tokio::sync::Mutex;
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_opener::init())
// Registriert den Nostr-State
.manage(chat::NostrState(Mutex::new(None)))
// HINZUGEFÜGT: Registriert den News-State für den API-Key
.manage(news::NewsState::default())
.invoke_handler(tauri::generate_handler![
home::fetch_nostr_posts,
chat::send_nostr_message,
chat::get_nostr_messages,
news::save_openrouter_key,
news::fetch_ai_news,
])