-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/trayscale: add netcheck functionality (#23)
* tailscale: add support for getting netcheck reports * internal/set: add * cmd/gtkbuildergen: remove double-use of values as children * cmd/trayscale: add non-functional `NetCheckGroup` * cmd/trayscale: move `NetCheckGroup` further down the window * tailscale: disable automatic `netcheck` logging * cmd/gtkbuildergen: add `visible` property * cmd/trayscale: add basic netcheck functionality * tailscale: return the DERP map from `NetCheck()` * cmd/trayscale: add a bunch more netcheck information Also add a `false` boolean icon. * meta: update some dependencies * internal/xmaps: add * cmd/trayscale: add full list of DERP latencies * tailscale: make it possible do a full DERP latency check * cmd/trayscale: do a full DERP latency check * cmd/trayscale: add a bunch more netcheck info * cmd/trayscale: add yet more netcheck info * cmd/trayscale: combine IP address and status into the same row
- Loading branch information
1 parent
4064a83
commit 6e98d11
Showing
13 changed files
with
504 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
{{- $id := or .ID "parent" -}} | ||
{{- $used := newValueSet -}} | ||
|
||
{{range .Properties -}} | ||
{{$id}}.SetObjectProperty({{.Name | printf "%q"}}, {{.Value}}) | ||
{{$id}}.SetObjectProperty({{.Name | printf "%q"}}, {{$used.Add .Value}}) | ||
{{end -}} | ||
{{range $i, $c := .Children -}} | ||
{{- $cid := or .Object.ID (printf "%v%v" $id $i) -}} | ||
{{$id}}.{{$.Type.AddChild .Type $cid}} | ||
{{if not ($used.Has $cid) -}} | ||
{{$id}}.{{$.Type.AddChild .Type $cid}} | ||
{{end -}} | ||
{{end}} |
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
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.