Chart details draft (#4)

* Add logo

* Refactor out structs

* Data layer context-awareness

* Mod

* Data layer improvements

* Progress

* Progress

* Progress

* Figured the time format shorter

* Statuses colors

* Sticky URL

* Calculate some diffs inside

* Separate checks

* Scrap gofmt

* Skip custom test in GH

* Shows some colorful diff
This commit is contained in:
Andrey Pokhilko
2022-08-31 12:12:08 +01:00
committed by GitHub
parent d9a88feb7b
commit 1580c2e9a0
16 changed files with 699 additions and 203 deletions

View File

@@ -1,3 +1,17 @@
package dashboard
import (
"errors"
"strings"
)
type ControlChan = chan struct{}
func chartAndVersion(x string) (string, string, error) {
lastInd := strings.LastIndex(x, "-")
if lastInd < 0 {
return "", "", errors.New("can't parse chart version string")
}
return x[:lastInd], x[lastInd+1:], nil
}