fetch user profile (wip)

This commit is contained in:
2025-12-05 21:52:46 +08:00
parent a9068fe575
commit f522148489
18 changed files with 179 additions and 50 deletions

View File

@@ -6,18 +6,21 @@ use std::sync::Arc;
use std::time::Duration;
use tauri::Emitter;
use tracing::{error, info, warn};
use ts_rs::TS;
use crate::get_app_handle;
#[derive(Clone, Serialize)]
#[derive(Clone, Serialize, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export)]
pub struct CursorPosition {
pub x: i32,
pub y: i32,
}
#[derive(Clone, Serialize)]
#[derive(Clone, Serialize, TS)]
#[serde(rename_all = "camelCase")]
#[ts(export)]
pub struct CursorPositions {
pub raw: CursorPosition,
pub mapped: CursorPosition,