feat: space

This commit is contained in:
2024-03-14 14:22:41 +07:00
parent 3005d27403
commit 16e6d234e5
34 changed files with 249 additions and 1837 deletions

View File

@@ -16,6 +16,7 @@ tokio = { version = "1", features = ["full"] }
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "2.0.0-beta", features = [
"unstable",
"tray-icon",
"macos-private-api",
"native-tls-vendored",

View File

@@ -294,7 +294,7 @@ pub async fn set_nwc(uri: &str, state: State<'_, Nostr>) -> Result<bool, String>
}
#[tauri::command]
pub async fn load_nwc(state: State<'_, Nostr>) -> Result<bool, bool> {
pub async fn load_nwc(state: State<'_, Nostr>) -> Result<bool, String> {
let client = &state.client;
let keyring = Entry::new("Lume Secret Storage", "NWC").unwrap();
@@ -305,10 +305,10 @@ pub async fn load_nwc(state: State<'_, Nostr>) -> Result<bool, bool> {
client.set_zapper(nwc).await;
Ok(true)
} else {
Err(false)
Err("Cannot connect to NWC".into())
}
}
Err(_) => Err(false),
Err(_) => Ok(false),
}
}

View File

@@ -6,11 +6,10 @@
"title": "Lume",
"label": "main",
"titleBarStyle": "Overlay",
"width": 1080,
"width": 500,
"height": 800,
"minWidth": 1080,
"minHeight": 800,
"center": true
"minWidth": 500,
"minHeight": 800
}
]
}

View File

@@ -6,13 +6,16 @@
"title": "Lume",
"label": "main",
"titleBarStyle": "Overlay",
"width": 1080,
"width": 500,
"height": 800,
"minWidth": 1080,
"minWidth": 500,
"minHeight": 800,
"center": true,
"hiddenTitle": true,
"decorations": true
"decorations": true,
"transparent": true,
"windowEffects": {
"effects": ["windowBackground"]
}
}
]
}

View File

@@ -5,11 +5,10 @@
{
"title": "Lume",
"label": "main",
"width": 1080,
"width": 500,
"height": 800,
"minWidth": 1080,
"minHeight": 800,
"center": true
"minWidth": 500,
"minHeight": 800
}
]
}