This file contains hidden or 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
| // First make sure the wrapper app is loaded | |
| document.addEventListener("DOMContentLoaded", function() { | |
| // Then get its webviews | |
| let webviews = document.querySelectorAll(".TeamView webview"); | |
| // Fetch our CSS in parallel ahead of time | |
| const cssPath = 'https://raw.githubusercontent.com/Nockiro/slack-black-theme/master/custom.css'; | |
| let cssPromise = fetch(cssPath).then(response => response.text()); |
This file contains hidden or 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
| diff --git a/cmd/gotext/common.go b/cmd/gotext/common.go | |
| index 51322db..03e85db 100644 | |
| --- a/cmd/gotext/common.go | |
| +++ b/cmd/gotext/common.go | |
| @@ -6,16 +6,6 @@ package main | |
| import ( | |
| "fmt" | |
| - "go/build" | |
| - "go/parser" |
This file contains hidden or 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
| # IOT/sensor2/temp | |
| env,type=A temp=23.39 | |
| env,type=B temp=40.00 | |
| # IOT/sensor1/acc | |
| env,type=A x=0.2 | |
| env,type=B x=1.3 |
This file contains hidden or 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
| func get[I, O any](api huma.API, path string, handler func(context.Context, *I) (*O, error), roles ...models.Role) { | |
| huma.Register(api, huma.Operation{ | |
| DefaultStatus: http.StatusOK, | |
| Method: http.MethodGet, | |
| Path: path, | |
| Security: []map[string][]string{ | |
| { | |
| "bearer": {"jwt"}, | |
| "roles": rolesToStrings(roles...), | |
| }, |
OlderNewer