Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/pierr3/TrackAudio
Browse files Browse the repository at this point in the history
  • Loading branch information
pierr3 committed May 1, 2024
2 parents 01ea49a + 3de202e commit 3acb091
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 6 deletions.
36 changes: 36 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Electron: Main",
"runtimeExecutable": "${workspaceFolder}/node_modules/@electron-forge/cli/script/vscode.sh",
"runtimeArgs": ["--remote-debugging-port=9223"],
"windows": {
"runtimeExecutable": "${workspaceFolder}/node_modules/@electron-forge/cli/script/vscode.cmd"
},
"cwd": "${workspaceFolder}",
"console": "integratedTerminal"
},
{
"name": "Electron: Renderer",
"type": "chrome",
"request": "attach",
"port": 9223,
"webRoot": "${workspaceFolder}",
"timeout": 30000,
}],
"compounds": [
{
"name": "Electron: All",
"configurations": [
"Electron: Main",
"Electron: Renderer"
]
}
]
}
18 changes: 12 additions & 6 deletions src/app/components/mini.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,18 @@ const Mini: React.FC = () => {
.filter((r) => r.rx)
.map((radio) => {
return (
<div
key={radio.frequency}
style={{ color: radio.currentlyTx ? "orange" : "inherit" }}
>
{radio.callsign}:{" "}
{radio.lastReceivedCallsign ? radio.lastReceivedCallsign : ""}
<div key={radio.frequency}>
<span
style={{ color: radio.currentlyTx ? "orange" : "inherit" }}
>
{radio.callsign}
</span>
:{" "}
<span
style={{ color: radio.currentlyRx ? "green" : "inherit" }}
>
{radio.lastReceivedCallsign ? radio.lastReceivedCallsign : ""}
</span>
</div>
);
})}
Expand Down

0 comments on commit 3acb091

Please sign in to comment.