ui improovements
This commit is contained in:
parent
1dce9fb0e8
commit
950139010e
7 changed files with 67 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue