update dockerfile + wip passkey implementation
This commit is contained in:
798
AobaClient/Cargo.lock
generated
798
AobaClient/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -6,8 +6,8 @@ edition = "2024"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
dioxus = { version = "0.7.2", features = ["router"] }
|
||||
serde = "1.0.219"
|
||||
dioxus = { version = "0.7.3", features = ["router"] }
|
||||
serde = "1.0.228"
|
||||
serde_repr = "0.1.20"
|
||||
tonic = { version = "*", default-features = false, features = [
|
||||
"codegen",
|
||||
@@ -15,7 +15,7 @@ tonic = { version = "*", default-features = false, features = [
|
||||
] }
|
||||
prost = "0.13"
|
||||
tonic-web-wasm-client = "0.7"
|
||||
web-sys = { version = "0.3.77", features = ["Storage", "Window"] }
|
||||
web-sys = { version = "0.3.91", features = ["Storage", "Window"] }
|
||||
|
||||
[build-dependencies]
|
||||
tonic-build = { version = "*", default-features = false, features = ["prost"] }
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
pub mod basic;
|
||||
mod context_menu;
|
||||
mod icons;
|
||||
mod media_grid;
|
||||
mod media_item;
|
||||
mod metrics_token;
|
||||
mod navbar;
|
||||
mod notif;
|
||||
mod pagination;
|
||||
mod passkey;
|
||||
mod search;
|
||||
pub use context_menu::*;
|
||||
pub use media_grid::*;
|
||||
@@ -14,5 +16,5 @@ pub use metrics_token::*;
|
||||
pub use navbar::*;
|
||||
pub use notif::*;
|
||||
pub use pagination::*;
|
||||
pub use passkey::*;
|
||||
pub use search::*;
|
||||
mod icons;
|
||||
|
||||
28
AobaClient/src/components/passkey.rs
Normal file
28
AobaClient/src/components/passkey.rs
Normal file
@@ -0,0 +1,28 @@
|
||||
use dioxus::prelude::*;
|
||||
|
||||
use crate::components::basic::Button;
|
||||
|
||||
#[component]
|
||||
pub fn PasskeyRegistrationButton() -> Element
|
||||
{
|
||||
rsx! {
|
||||
Button{
|
||||
text: "Register Passkey",
|
||||
onclick: move |e| {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn start_passkey_registration() {}
|
||||
|
||||
#[component]
|
||||
pub fn PasskeyLoginButton() -> Element
|
||||
{
|
||||
rsx! {
|
||||
Button{
|
||||
text: "Login with Passkey"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,21 @@
|
||||
use dioxus::prelude::*;
|
||||
|
||||
use crate::{components::MetricsToken, rpc::get_rpc_client};
|
||||
use crate::{
|
||||
components::{MetricsToken, PasskeyRegistrationButton},
|
||||
rpc::get_rpc_client,
|
||||
};
|
||||
|
||||
#[component]
|
||||
pub fn Settings() -> Element {
|
||||
pub fn Settings() -> Element
|
||||
{
|
||||
let dst = use_resource(async move || {
|
||||
let result = get_rpc_client().get_share_x_destination(()).await;
|
||||
if let Ok(d) = result {
|
||||
if let Some(r) = d.into_inner().dst_result {
|
||||
return match r {
|
||||
if let Ok(d) = result
|
||||
{
|
||||
if let Some(r) = d.into_inner().dst_result
|
||||
{
|
||||
return match r
|
||||
{
|
||||
crate::rpc::aoba::share_x_response::DstResult::Destination(json) => json,
|
||||
crate::rpc::aoba::share_x_response::DstResult::Error(err) => err,
|
||||
};
|
||||
@@ -28,5 +35,6 @@ pub fn Settings() -> Element {
|
||||
pre { class: "codeSelect", "{d}" }
|
||||
}
|
||||
MetricsToken { }
|
||||
PasskeyRegistrationButton { }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user