ui improovements

This commit is contained in:
pavel 2026-05-14 22:52:59 +02:00
commit 950139010e
7 changed files with 67 additions and 0 deletions

View file

@ -50,6 +50,14 @@ func (a *App) deployWebhookURL(projectID int64, token string) string {
return path
}
func (a *App) appURL(routeHost string) string {
routeHost = strings.TrimSpace(routeHost)
if routeHost == "" {
return ""
}
return "https://" + routeHost
}
func newDeployToken() (string, error) {
buf := make([]byte, 24)
if _, err := rand.Read(buf); err != nil {