-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
224 additions
and
159 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
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 |
---|---|---|
@@ -1 +1,4 @@ | ||
#!/usr/bin/env node | ||
|
||
// eslint-disable-next-line no-console | ||
console.log(`🐻 Dassie is here!`) |
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,8 @@ | ||
{ | ||
"extends": "@dassie/meta-tsconfig/vite-node.json", | ||
"include": ["index.js"], | ||
"compilerOptions": { | ||
"outDir": "dist" | ||
}, | ||
"references": [] | ||
} |
File renamed without changes.
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
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
2 changes: 1 addition & 1 deletion
2
packages/app-node/src/frontend/pages/settings/api-keys/api-keys.tsx
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
41 changes: 0 additions & 41 deletions
41
...-website/src/components/StreamToy/StreamSimulator/StreamPacketLog/StreamPacketDetails.tsx
This file was deleted.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
41 changes: 41 additions & 0 deletions
41
...te/src/components/stream-toy/stream-simulator/stream-packet-log/stream-packet-details.tsx
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,41 @@ | ||
import type { StreamPacket } from "@dassie/lib-protocol-stream" | ||
import { isFailure } from "@dassie/lib-type-utils" | ||
|
||
import StreamFrameDetails from "./stream-frame-details" | ||
import type { StreamPacketParseFailure } from "./use-parsed-stream-packet" | ||
|
||
interface StreamPacketDetailsProperties { | ||
packet: StreamPacket | StreamPacketParseFailure | undefined | ||
response?: boolean | undefined | ||
} | ||
|
||
export default function StreamPacketDetails({ | ||
packet, | ||
response, | ||
}: StreamPacketDetailsProperties) { | ||
return ( | ||
<div className="grid grid-cols-subgrid col-span-2"> | ||
{packet ? | ||
isFailure(packet) ? | ||
<div className="text-red-300 col-span-2">{packet.reason}</div> | ||
: <> | ||
<div className="text-muted-foreground"> | ||
{response ? "Received Amount" : "Expected Amount"} | ||
</div> | ||
<div>{String(packet.amount)}</div> | ||
<div className="text-muted-foreground">Sequence</div> | ||
<div>{String(packet.sequence)}</div> | ||
{packet.frames.length > 0 ? | ||
<div className="col-span-2 flex flex-col gap-1"> | ||
<div className="text-muted-foreground">Frames</div> | ||
{packet.frames.map((frame, index) => ( | ||
<StreamFrameDetails key={index} frame={frame} /> | ||
))} | ||
</div> | ||
: <div className="text-muted-foreground">No frames</div>} | ||
</> | ||
|
||
: null} | ||
</div> | ||
) | ||
} |
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
Oops, something went wrong.