Removed GopherJS as a dependency.
This commit is contained in:
parent
c6de9b92be
commit
3976c49054
|
@ -124,8 +124,6 @@ go get -u github.com/denisenkom/go-mssqldb
|
|||
|
||||
go get -u github.com/fsnotify/fsnotify
|
||||
|
||||
go get -u github.com/gopherjs/gopherjs/...
|
||||
|
||||
|
||||
go generate
|
||||
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
||||
"../common"
|
||||
"../common/alerts"
|
||||
"../tmpl_client"
|
||||
"github.com/gopherjs/gopherjs/js"
|
||||
)
|
||||
|
||||
func main() {
|
||||
js.Global.Set("weakPassword", func(password string, username string, email string) string {
|
||||
err := common.WeakPassword(password, username, email)
|
||||
if err != nil {
|
||||
return err.Error()
|
||||
}
|
||||
return ""
|
||||
})
|
||||
|
||||
js.Global.Set("renderAlert", func(asid int, path string, msg string, avatar string) string {
|
||||
var buf bytes.Buffer
|
||||
alertItem := alerts.AlertItem{asid, path, msg, avatar}
|
||||
err := tmpl.Template_alert(alertItem, &buf)
|
||||
if err != nil {
|
||||
println(err.Error())
|
||||
}
|
||||
return string(buf.Bytes())
|
||||
})
|
||||
}
|
|
@ -28,9 +28,6 @@ go get -u github.com/bamiaux/rez
|
|||
echo "Updating fsnotify"
|
||||
go get -u github.com/fsnotify/fsnotify
|
||||
|
||||
echo "Updating GopherJS"
|
||||
go get -u github.com/gopherjs/gopherjs/...
|
||||
|
||||
echo "Updating Gosora"
|
||||
rm ./schema/lastSchema.json
|
||||
cp ./schema/schema.json ./schema/lastSchema.json
|
||||
|
|
|
@ -85,13 +85,6 @@ if %errorlevel% neq 0 (
|
|||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
echo Updating GopherJS
|
||||
go get -u github.com/gopherjs/gopherjs/...
|
||||
if %errorlevel% neq 0 (
|
||||
pause
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
|
||||
echo Updating Gosora
|
||||
cd schema
|
||||
|
|
|
@ -85,13 +85,6 @@ if %errorlevel% neq 0 (
|
|||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
echo Updating GopherJS
|
||||
go get -u github.com/gopherjs/gopherjs/...
|
||||
if %errorlevel% neq 0 (
|
||||
pause
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
|
||||
echo Building the updater
|
||||
go generate
|
||||
|
|
|
@ -28,9 +28,6 @@ go get -u github.com/bamiaux/rez
|
|||
echo "Installing fsnotify"
|
||||
go get -u github.com/fsnotify/fsnotify
|
||||
|
||||
echo "Installing GopherJS"
|
||||
go get -u github.com/gopherjs/gopherjs/...
|
||||
|
||||
echo "Building the installer"
|
||||
cd ./install
|
||||
go generate
|
||||
|
|
|
@ -85,13 +85,6 @@ if %errorlevel% neq 0 (
|
|||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
echo Installing GopherJS
|
||||
go get -u github.com/gopherjs/gopherjs/...
|
||||
if %errorlevel% neq 0 (
|
||||
pause
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
|
||||
echo Building the installer
|
||||
go generate
|
||||
|
|
|
@ -26,7 +26,4 @@ echo "Updating the Rez Image Resizer"
|
|||
go get -u github.com/bamiaux/rez
|
||||
|
||||
echo "Updating fsnotify"
|
||||
go get -u github.com/fsnotify/fsnotify
|
||||
|
||||
echo "Updating GopherJS"
|
||||
go get -u github.com/gopherjs/gopherjs/...
|
||||
go get -u github.com/fsnotify/fsnotify
|
|
@ -82,12 +82,5 @@ if %errorlevel% neq 0 (
|
|||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
echo Updating GopherJS
|
||||
go get -u github.com/gopherjs/gopherjs/...
|
||||
if %errorlevel% neq 0 (
|
||||
pause
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
echo The dependencies were successfully updated
|
||||
pause
|
||||
|
|
Loading…
Reference in New Issue