-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add account switch functionality (#55)
* Add signin/index to select sessions * Add signin loader, update commands * Update sidebar * Add AccountSwitch modal * Fix root
- Loading branch information
Showing
17 changed files
with
446 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
"windows" | ||
], | ||
"permissions": [ | ||
"dialog:allow-confirm", | ||
"dialog:allow-message" | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use crate::error::Result; | ||
use atrium_api::{client::AtpServiceClient, types::string::AtIdentifier}; | ||
use atrium_xrpc_client::reqwest::ReqwestClient; | ||
|
||
#[tauri::command] | ||
pub async fn get_public_profile( | ||
actor: AtIdentifier, | ||
) -> Result<atrium_api::app::bsky::actor::get_profile::Output> { | ||
log::info!("get_public_profile: {actor:?}"); | ||
Ok( | ||
AtpServiceClient::new(ReqwestClient::new("https://public.api.bsky.app")) | ||
.service | ||
.app | ||
.bsky | ||
.actor | ||
.get_profile(atrium_api::app::bsky::actor::get_profile::Parameters { actor }) | ||
.await?, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.