chore: update deps

This commit is contained in:
2026-10-20 09:58:26 +07:00
parent 4b4b8b5cf2
commit eb4fbb0a33
4 changed files with 304 additions and 695 deletions
Generated
+291 -672
View File
File diff suppressed because it is too large Load Diff
+5 -5
View File
@@ -9,13 +9,13 @@ edition = "2024"
publish = false publish = false
[workspace.dependencies] [workspace.dependencies]
gpui = { package = "gpui-pre", version = "0.3.8" } gpui = { package = "gpui-pre", version = "0.3.9" }
gpui_platform = { package = "gpui-pre-platform", version = "0.3.8", features = ["font-kit", "x11", "wayland"] } gpui_platform = { package = "gpui-pre-platform", version = "0.3.9", features = ["font-kit", "x11", "wayland"] }
reqwest_client = { package = "gpui-pre-reqwest-client", version = "0.3.8" } reqwest_client = { package = "gpui-pre-reqwest-client", version = "0.3.9" }
# GPUI Kit # GPUI Kit
gpui-component = { version = "0.7.1", features = ["tree-sitter-languages"] } gpui-component = { version = "0.8", features = ["tree-sitter-languages"] }
gpui-base = "0.7.1" gpui-base = "0.8"
dock = { path = "crates/dock" } dock = { path = "crates/dock" }
settings = { path = "crates/settings" } settings = { path = "crates/settings" }
+1 -2
View File
@@ -1,5 +1,4 @@
use std::cell::Cell; use std::cell::Cell;
use std::ops::Deref as _;
use std::rc::Rc; use std::rc::Rc;
use std::sync::Arc; use std::sync::Arc;
@@ -173,7 +172,7 @@ impl SignedDockSkin {
.on_drag(ResizePanel, move |info, _, _, cx| { .on_drag(ResizePanel, move |info, _, _, cx| {
cx.stop_propagation(); cx.stop_propagation();
shared.resizing_dock().set(Some(placement)); shared.resizing_dock().set(Some(placement));
cx.new(|_| info.deref().clone()) cx.new(|_| info.clone())
}) })
} }
} }
+7 -16
View File
@@ -1,6 +1,7 @@
use std::collections::HashSet; use std::collections::HashSet;
use std::path::PathBuf; use std::path::PathBuf;
use std::str::FromStr; use std::str::FromStr;
use std::sync::Arc;
use std::time::{Duration, Instant}; use std::time::{Duration, Instant};
use anyhow::{Error, anyhow, bail}; use anyhow::{Error, anyhow, bail};
@@ -24,8 +25,6 @@ use crate::repos::RepoListStore;
use crate::state::{GitPushMode, GitPushPolicy, GitRef, PushStepStatus, SyncState}; use crate::state::{GitPushMode, GitPushPolicy, GitRef, PushStepStatus, SyncState};
pub const USER_KEYRING: &str = "Signed Safe Storage"; pub const USER_KEYRING: &str = "Signed Safe Storage";
pub const NOSTR_CONNECT_TIMEOUT: u64 = 60;
const PUMP_DEBOUNCE: Duration = Duration::from_millis(200); const PUMP_DEBOUNCE: Duration = Duration::from_millis(200);
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
@@ -199,13 +198,9 @@ impl Backend {
} else if content.starts_with("bunker://") { } else if content.starts_with("bunker://") {
let (base, keys) = extract_master_key(&content)?; let (base, keys) = extract_master_key(&content)?;
let uri = NostrConnectUri::parse(base)?; let uri = NostrConnectUri::parse(base)?;
let mut signer = NostrConnect::new( let signer = NostrConnect::builder(uri, keys)
uri, .auth_url_handler(Arc::new(SignedAuthUrlHandler))
keys, .build()?;
Duration::from_secs(NOSTR_CONNECT_TIMEOUT),
None,
)?;
signer.auth_url_handler(SignedAuthUrlHandler);
this.update(cx, |this, cx| { this.update(cx, |this, cx| {
this.set_signer(signer, cx); this.set_signer(signer, cx);
@@ -366,13 +361,9 @@ impl Backend {
let write = cx.write_credentials(USER_KEYRING, "bunker", credential.as_bytes()); let write = cx.write_credentials(USER_KEYRING, "bunker", credential.as_bytes());
cx.spawn(async move |this, cx| { cx.spawn(async move |this, cx| {
let mut signer = NostrConnect::new( let signer = NostrConnect::builder(connect_uri, keys)
connect_uri, .auth_url_handler(Arc::new(SignedAuthUrlHandler))
keys, .build()?;
Duration::from_secs(NOSTR_CONNECT_TIMEOUT),
None,
)?;
signer.auth_url_handler(SignedAuthUrlHandler);
// Verify the bunker responds before persisting the credential. // Verify the bunker responds before persisting the credential.
let public_key = signer.get_public_key_async().await?; let public_key = signer.get_public_key_async().await?;