mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Add client and server connection-info windows
Sends raw getconnectioninfo/serverrequestconnectioninfo commands and reads the reply out of tsclientlib's bookkeeping state (it already tracks ping, packet loss, bytes/packets sent+received internally - just needed to be requested and surfaced). Wired into the client context menu (any client), the Selbst menu (self), and a new link in the server info panel. Uses send_with_result() so a permission-denied rejection surfaces as a visible error instead of silently doing nothing; the dialogs also fall back to a "no response" message after 6s in case the server declines without any reply at all (observed against a real server where a guest lacked b_virtualserver_connectioninfo_view). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a300daedeb
commit
74f688aba8
7 files changed
+565
-3
No files matched your search
@@ -440,6 +440,42 @@
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-info-connection-link {
|
||||
margin-top: 0.5rem;
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
color: var(--accent);
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.ts-info-connection-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.ts-connection-info-dialog {
|
||||
width: 380px;
|
||||
}
|
||||
|
||||
.ts-connection-info-loading {
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-connection-info-grid {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
gap: 0.35rem 0.75rem;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.ts-connection-info-grid span:nth-child(odd) {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.ts-row-selected {
|
||||
background: var(--row-hover);
|
||||
outline: 1px solid var(--border);
|
||||
|
||||
Reference in new issue
Block a user