feat: add auth screens

This commit is contained in:
reya
2024-07-25 10:59:36 +07:00
parent d206f1d2aa
commit 005cbeab72
12 changed files with 571 additions and 69 deletions

View File

@@ -8,13 +8,7 @@ use std::{fs, sync::Mutex, time::Duration};
use tauri::Manager;
use tauri_plugin_decorum::WebviewWindowExt;
use commands::{
account::{get_accounts, get_profile, login},
chat::{
drop_inbox, get_chat_messages, get_chats, get_inboxes, send_message, subscribe_to,
unsubscribe,
},
};
use commands::{account::*, chat::*};
mod commands;
mod common;
@@ -30,8 +24,11 @@ fn main() {
let invoke_handler = {
let builder = tauri_specta::ts::builder().commands(tauri_specta::collect_commands![
login,
create_account,
import_key,
connect_account,
get_accounts,
get_profile,
get_metadata,
get_inboxes,
get_chats,
get_chat_messages,