mirror of https://github.com/statping/statping
parent
849ec6ed8d
commit
ac118304b0
6
api.go
6
api.go
|
@ -1,12 +1,12 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/gorilla/mux"
|
||||
"net/http"
|
||||
"crypto/sha1"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/gorilla/mux"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func ApiIndexHandler(w http.ResponseWriter, r *http.Request) {
|
||||
|
|
21
build.sh
21
build.sh
|
@ -44,4 +44,23 @@ mv build/$APP-linux-arm64 build/$APP
|
|||
tar -czvf build/$APP-linux-arm64.tar.gz build/$APP && rm -f build/$APP
|
||||
|
||||
mv build/$APP-linux-alpine build/$APP
|
||||
tar -czvf build/$APP-linux-alpine.tar.gz build/$APP && rm -f build/$APP
|
||||
tar -czvf build/$APP-linux-alpine.tar.gz build/$APP && rm -f build/$APP
|
||||
|
||||
body='{
|
||||
"request": {
|
||||
"message": "Updating Homebrew Formula to v'"$VERSION"'",
|
||||
"branch":"master",
|
||||
"config": {
|
||||
"env": {
|
||||
["VERSION='"$VERSION"'"]
|
||||
}
|
||||
}
|
||||
}}'
|
||||
|
||||
curl -s -X POST \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Accept: application/json" \
|
||||
-H "Travis-API-Version: 3" \
|
||||
-H "Authorization: $TRAVIS_API" \
|
||||
-d "$body" \
|
||||
https://api.travis-ci.com/repo/hunterlong%2Fhomebrew-statup/requests
|
|
@ -1,8 +1,7 @@
|
|||
var currentLocation = window.location;
|
||||
$("#domain_input").val(currentLocation.origin);
|
||||
|
||||
function forceLower(strInput)
|
||||
{
|
||||
function forceLower(strInput) {
|
||||
strInput.value=strInput.value.toLowerCase();
|
||||
}
|
||||
|
||||
|
|
|
@ -196,4 +196,4 @@ func CountOnline() int {
|
|||
}
|
||||
}
|
||||
return amount
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue