Removed GopherJS as a dependency.

This commit is contained in:
Azareal 2018-05-14 21:13:34 +10:00
parent c6de9b92be
commit 3976c49054
9 changed files with 1 additions and 70 deletions

View File

@ -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

View File

@ -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())
})
}

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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