mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-18 18:14:03 -05:00
feat(swap): Use art_client to dial over Tor (#196)
- Upgrade `sqlx` to `0.8` - Use `arti_client@0.24` in combination with [`libp2p-community-tor`](https://crates.io/crates/libp2p-community-tor/0.4.1). https://github.com/umgefahren/libp2p-tor/pull/18 was required for this. - Display spinner in GUI while Tor circuits are being established - Remove unused dependencies (`once_cell`, `tauri-plugin-devtools`, `digest`, `hyper`, `itertools`, `erased_serde`) - Bundle roboto font from npm registry
This commit is contained in:
parent
3aef92e848
commit
6cd228fada
41 changed files with 2689 additions and 871 deletions
|
|
@ -13,6 +13,7 @@ import { useSettings } from "store/hooks";
|
|||
import { themes } from "./theme";
|
||||
import { useEffect } from "react";
|
||||
import { setupBackgroundTasks } from "renderer/background";
|
||||
import "@fontsource/roboto";
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
innerContent: {
|
||||
|
|
|
|||
|
|
@ -57,6 +57,12 @@ export default function DaemonStatusAlert() {
|
|||
Opening the local database
|
||||
</LoadingSpinnerAlert>
|
||||
);
|
||||
case "EstablishingTorCircuits":
|
||||
return (
|
||||
<LoadingSpinnerAlert severity="warning">
|
||||
Connecting to the Tor network
|
||||
</LoadingSpinnerAlert>
|
||||
);
|
||||
}
|
||||
break;
|
||||
case "Available":
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { logsToRawString } from "utils/parseUtils";
|
|||
import ScrollablePaperTextBox from "./ScrollablePaperTextBox";
|
||||
|
||||
function RenderedCliLog({ log }: { log: CliLog }) {
|
||||
const { timestamp, level, fields } = log;
|
||||
const { timestamp, level, fields, target } = log;
|
||||
|
||||
const levelColorMap = {
|
||||
DEBUG: "#1976d2", // Blue
|
||||
|
|
@ -29,6 +29,9 @@ function RenderedCliLog({ log }: { log: CliLog }) {
|
|||
size="small"
|
||||
style={{ backgroundColor: levelColorMap[level], color: "white" }}
|
||||
/>
|
||||
{target && (
|
||||
<Chip label={target.split("::")[0]} size="small" variant="outlined" />
|
||||
)}
|
||||
<Chip label={timestamp} size="small" variant="outlined" />
|
||||
<Typography variant="subtitle2">{fields.message}</Typography>
|
||||
</Box>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue