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/fsnotify/fsnotify
|
||||||
|
|
||||||
go get -u github.com/gopherjs/gopherjs/...
|
|
||||||
|
|
||||||
|
|
||||||
go generate
|
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"
|
echo "Updating fsnotify"
|
||||||
go get -u github.com/fsnotify/fsnotify
|
go get -u github.com/fsnotify/fsnotify
|
||||||
|
|
||||||
echo "Updating GopherJS"
|
|
||||||
go get -u github.com/gopherjs/gopherjs/...
|
|
||||||
|
|
||||||
echo "Updating Gosora"
|
echo "Updating Gosora"
|
||||||
rm ./schema/lastSchema.json
|
rm ./schema/lastSchema.json
|
||||||
cp ./schema/schema.json ./schema/lastSchema.json
|
cp ./schema/schema.json ./schema/lastSchema.json
|
||||||
|
@ -85,13 +85,6 @@ if %errorlevel% neq 0 (
|
|||||||
exit /b %errorlevel%
|
exit /b %errorlevel%
|
||||||
)
|
)
|
||||||
|
|
||||||
echo Updating GopherJS
|
|
||||||
go get -u github.com/gopherjs/gopherjs/...
|
|
||||||
if %errorlevel% neq 0 (
|
|
||||||
pause
|
|
||||||
exit /b %errorlevel%
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
echo Updating Gosora
|
echo Updating Gosora
|
||||||
cd schema
|
cd schema
|
||||||
|
@ -85,13 +85,6 @@ if %errorlevel% neq 0 (
|
|||||||
exit /b %errorlevel%
|
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
|
echo Building the updater
|
||||||
go generate
|
go generate
|
||||||
|
@ -28,9 +28,6 @@ go get -u github.com/bamiaux/rez
|
|||||||
echo "Installing fsnotify"
|
echo "Installing fsnotify"
|
||||||
go get -u github.com/fsnotify/fsnotify
|
go get -u github.com/fsnotify/fsnotify
|
||||||
|
|
||||||
echo "Installing GopherJS"
|
|
||||||
go get -u github.com/gopherjs/gopherjs/...
|
|
||||||
|
|
||||||
echo "Building the installer"
|
echo "Building the installer"
|
||||||
cd ./install
|
cd ./install
|
||||||
go generate
|
go generate
|
||||||
|
@ -85,13 +85,6 @@ if %errorlevel% neq 0 (
|
|||||||
exit /b %errorlevel%
|
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
|
echo Building the installer
|
||||||
go generate
|
go generate
|
||||||
|
@ -27,6 +27,3 @@ go get -u github.com/bamiaux/rez
|
|||||||
|
|
||||||
echo "Updating fsnotify"
|
echo "Updating fsnotify"
|
||||||
go get -u github.com/fsnotify/fsnotify
|
go get -u github.com/fsnotify/fsnotify
|
||||||
|
|
||||||
echo "Updating GopherJS"
|
|
||||||
go get -u github.com/gopherjs/gopherjs/...
|
|
@ -82,12 +82,5 @@ if %errorlevel% neq 0 (
|
|||||||
exit /b %errorlevel%
|
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
|
echo The dependencies were successfully updated
|
||||||
pause
|
pause
|
||||||
|
Loading…
Reference in New Issue
Block a user