Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1395a5c

Browse files
feat: show if using coder connect in status indicator (#491)
Relates to#447Following on fromcoder/coder#17572, this PR has the extension read the `using_coder_connect` bool from the network stats file, and change the status accordingly.<img width="362" alt="image" src="https://github.com/user-attachments/assets/e5927c69-4a17-4c68-96db-77502fd6e045" />
1 parent1465657 commit1395a5c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎src/remote.ts‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,18 @@ export class Remote {
698698
derp_latency:{[key:string]:number}
699699
upload_bytes_sec:number
700700
download_bytes_sec:number
701+
using_coder_connect:boolean
701702
})=>{
702703
letstatusText="$(globe) "
704+
705+
// Coder Connect doesn't populate any other stats
706+
if(network.using_coder_connect){
707+
networkStatus.text=statusText+"Coder Connect "
708+
networkStatus.tooltip="You're connected using Coder Connect."
709+
networkStatus.show()
710+
return
711+
}
712+
703713
if(network.p2p){
704714
statusText+="Direct "
705715
networkStatus.tooltip="You're connected peer-to-peer ✨."

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp