diff --git a/Makefile b/Makefile index 2e273c7..58969d7 100644 --- a/Makefile +++ b/Makefile @@ -39,4 +39,4 @@ run-standalone: clean: rm -rf client/dist/ rm -rf client/.nuxt/ - rm -f server/knowyt + $(MAKE) -C server clean diff --git a/client/package.json b/client/package.json index b4bc31b..5ba605d 100644 --- a/client/package.json +++ b/client/package.json @@ -1,5 +1,5 @@ { - "name": "knyt", + "name": "knowyt", "version": "1.0.0", "private": true, "scripts": { diff --git a/server/Makefile b/server/Makefile index 15c931c..8c72174 100644 --- a/server/Makefile +++ b/server/Makefile @@ -3,10 +3,11 @@ info: @perl -ne 'm/^([a-zA-Z0-9\-]+):/ && print(" $$1\n");' Makefile build: - cd src/ && go build -o ../knowyt knowyt.go + $(MAKE) generate + go build -o knowyt src/knowyt.go run: - cd src/ && go run knowyt.go + go run src/knowyt.go run-loop: pexec -R -c -e TARGET \ @@ -22,3 +23,13 @@ _run-endless-loop: _run-inotify-restart: inotifyloop --exclude 'data/.*' . curl -s http://localhost:32039/__intern__/exit + +clean: + rm -f knowyt + rm -f src/resources/*-generated.go + +generate: src/resources/dist-generated.go + +src/resources/dist-generated.go: $(shell find ../client/dist -type f) +src/resources/dist-generated.go: src/resources/dist-build.go + go generate src/resources/dist-build.go diff --git a/server/src/application/application.go b/server/src/application/application.go index 157b463..ce19c7f 100644 --- a/server/src/application/application.go +++ b/server/src/application/application.go @@ -1,9 +1,9 @@ package application import ( - "sirlab.de/go/knyt/applicationConfig" - "sirlab.de/go/knyt/game" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/applicationConfig" + "sirlab.de/go/knowyt/game" + "sirlab.de/go/knowyt/user" "time" ) diff --git a/server/src/application/collectQuotes.go b/server/src/application/collectQuotes.go index 38edf26..7fdfa45 100644 --- a/server/src/application/collectQuotes.go +++ b/server/src/application/collectQuotes.go @@ -3,7 +3,7 @@ package application import ( "fmt" "net/http" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (app *Application) CollectQuotes(usr *user.User, w http.ResponseWriter, r *http.Request) { diff --git a/server/src/application/continueGame.go b/server/src/application/continueGame.go index 0c480a0..41672e1 100644 --- a/server/src/application/continueGame.go +++ b/server/src/application/continueGame.go @@ -3,7 +3,7 @@ package application import ( "fmt" "net/http" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (app *Application) ContinueGame(usr *user.User, w http.ResponseWriter, r *http.Request) { diff --git a/server/src/application/deletePlayer.go b/server/src/application/deletePlayer.go index 07bcfc7..479580a 100644 --- a/server/src/application/deletePlayer.go +++ b/server/src/application/deletePlayer.go @@ -3,7 +3,7 @@ package application import ( "fmt" "net/http" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (app *Application) DeletePlayer(usr *user.User, w http.ResponseWriter, r *http.Request) { diff --git a/server/src/application/finishGame.go b/server/src/application/finishGame.go index b134ccb..62e12c1 100644 --- a/server/src/application/finishGame.go +++ b/server/src/application/finishGame.go @@ -3,7 +3,7 @@ package application import ( "fmt" "net/http" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (app *Application) FinishGame(usr *user.User, w http.ResponseWriter, r *http.Request) { diff --git a/server/src/application/getConfig.go b/server/src/application/getConfig.go index 6d114d4..4277f7a 100644 --- a/server/src/application/getConfig.go +++ b/server/src/application/getConfig.go @@ -1,7 +1,7 @@ package application import ( - "sirlab.de/go/knyt/applicationConfig" + "sirlab.de/go/knowyt/applicationConfig" ) func (app *Application) GetConfig() applicationConfig.ApplicationConfig { diff --git a/server/src/application/getGame.go b/server/src/application/getGame.go index 6157cff..c7ad6f9 100644 --- a/server/src/application/getGame.go +++ b/server/src/application/getGame.go @@ -2,7 +2,7 @@ package application import ( "fmt" - "sirlab.de/go/knyt/game" + "sirlab.de/go/knowyt/game" ) func (app Application) GetGameById(id string) (*game.Game, error) { diff --git a/server/src/application/getGameInfo.go b/server/src/application/getGameInfo.go index 316d5cb..b4a6243 100644 --- a/server/src/application/getGameInfo.go +++ b/server/src/application/getGameInfo.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" "net/http" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (app *Application) GetGameInfo(usr *user.User, w http.ResponseWriter, r *http.Request) { diff --git a/server/src/application/getQuotes.go b/server/src/application/getQuotes.go index 9e482fb..aaa6267 100644 --- a/server/src/application/getQuotes.go +++ b/server/src/application/getQuotes.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" "net/http" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (app *Application) GetQuotes(usr *user.User, w http.ResponseWriter, r *http.Request) { diff --git a/server/src/application/getUser.go b/server/src/application/getUser.go index 736051b..2225954 100644 --- a/server/src/application/getUser.go +++ b/server/src/application/getUser.go @@ -2,7 +2,7 @@ package application import ( "fmt" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (app Application) GetUserById(id string) (*user.User, error) { diff --git a/server/src/application/loadGameState.go b/server/src/application/loadGameState.go index 2ad92f1..55e1900 100644 --- a/server/src/application/loadGameState.go +++ b/server/src/application/loadGameState.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" "os" - "sirlab.de/go/knyt/game" + "sirlab.de/go/knowyt/game" ) func (app *Application) loadGameState(gm *game.Game, fileName string) error { diff --git a/server/src/application/loadGames.go b/server/src/application/loadGames.go index cd0eb97..78dfffd 100644 --- a/server/src/application/loadGames.go +++ b/server/src/application/loadGames.go @@ -3,7 +3,7 @@ package application import ( "os" "path" - "sirlab.de/go/knyt/game" + "sirlab.de/go/knowyt/game" ) func (app Application) loadGames() error { diff --git a/server/src/application/loadQuotes.go b/server/src/application/loadQuotes.go index a618f67..12d1718 100644 --- a/server/src/application/loadQuotes.go +++ b/server/src/application/loadQuotes.go @@ -3,8 +3,8 @@ package application import ( "os" "path" - "sirlab.de/go/knyt/game" - "sirlab.de/go/knyt/quote" + "sirlab.de/go/knowyt/game" + "sirlab.de/go/knowyt/quote" ) func (app Application) loadQuotes(gm *game.Game, dirName string) error { diff --git a/server/src/application/loadUsers.go b/server/src/application/loadUsers.go index 5b84a3d..5edb8a7 100644 --- a/server/src/application/loadUsers.go +++ b/server/src/application/loadUsers.go @@ -3,7 +3,7 @@ package application import ( "os" "path" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (app Application) loadUsers() error { diff --git a/server/src/application/playerATime.go b/server/src/application/playerATime.go index 498a59f..db794d7 100644 --- a/server/src/application/playerATime.go +++ b/server/src/application/playerATime.go @@ -1,7 +1,7 @@ package application import ( - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" "time" ) diff --git a/server/src/application/removeQuote.go b/server/src/application/removeQuote.go index c2db0b9..38bf326 100644 --- a/server/src/application/removeQuote.go +++ b/server/src/application/removeQuote.go @@ -4,7 +4,7 @@ import ( "fmt" "net/http" "path" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (app *Application) RemoveQuote(usr *user.User, w http.ResponseWriter, r *http.Request) { diff --git a/server/src/application/resetGame.go b/server/src/application/resetGame.go index f0a93c4..50d60d7 100644 --- a/server/src/application/resetGame.go +++ b/server/src/application/resetGame.go @@ -3,7 +3,7 @@ package application import ( "fmt" "net/http" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (app *Application) ResetGame(usr *user.User, w http.ResponseWriter, r *http.Request) { diff --git a/server/src/application/saveGameState.go b/server/src/application/saveGameState.go index 5c38155..793b7c6 100644 --- a/server/src/application/saveGameState.go +++ b/server/src/application/saveGameState.go @@ -4,7 +4,7 @@ import ( "encoding/json" "os" "path" - "sirlab.de/go/knyt/game" + "sirlab.de/go/knowyt/game" ) func (app *Application) saveGameState(gm *game.Game) error { diff --git a/server/src/application/savePlayer.go b/server/src/application/savePlayer.go index 07f48a8..4c089fd 100644 --- a/server/src/application/savePlayer.go +++ b/server/src/application/savePlayer.go @@ -5,8 +5,8 @@ import ( "github.com/google/uuid" "net/http" "path" - "sirlab.de/go/knyt/game" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/game" + "sirlab.de/go/knowyt/user" ) func (app *Application) SavePlayer(usr *user.User, w http.ResponseWriter, r *http.Request) { diff --git a/server/src/application/saveQuote.go b/server/src/application/saveQuote.go index 6e983ab..5415ffc 100644 --- a/server/src/application/saveQuote.go +++ b/server/src/application/saveQuote.go @@ -5,8 +5,8 @@ import ( "github.com/google/uuid" "net/http" "path" - "sirlab.de/go/knyt/game" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/game" + "sirlab.de/go/knowyt/user" ) func (app *Application) SaveQuote(usr *user.User, w http.ResponseWriter, r *http.Request) { diff --git a/server/src/application/saveSelection.go b/server/src/application/saveSelection.go index 06279da..8cca3d1 100644 --- a/server/src/application/saveSelection.go +++ b/server/src/application/saveSelection.go @@ -3,7 +3,7 @@ package application import ( "fmt" "net/http" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (app *Application) SaveSelection(usr *user.User, w http.ResponseWriter, r *http.Request) { diff --git a/server/src/application/setGameName.go b/server/src/application/setGameName.go index 32b3a88..281754a 100644 --- a/server/src/application/setGameName.go +++ b/server/src/application/setGameName.go @@ -3,7 +3,7 @@ package application import ( "fmt" "net/http" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (app *Application) SetGameName(usr *user.User, w http.ResponseWriter, r *http.Request) { diff --git a/server/src/application/startGame.go b/server/src/application/startGame.go index ad96efb..3ae73e8 100644 --- a/server/src/application/startGame.go +++ b/server/src/application/startGame.go @@ -3,7 +3,7 @@ package application import ( "fmt" "net/http" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (app *Application) StartGame(usr *user.User, w http.ResponseWriter, r *http.Request) { diff --git a/server/src/application/struct.go b/server/src/application/struct.go index 5ef51d6..2d22639 100644 --- a/server/src/application/struct.go +++ b/server/src/application/struct.go @@ -1,9 +1,9 @@ package application import ( - "sirlab.de/go/knyt/applicationConfig" - "sirlab.de/go/knyt/game" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/applicationConfig" + "sirlab.de/go/knowyt/game" + "sirlab.de/go/knowyt/user" "sync" "time" ) diff --git a/server/src/application/syncHandler.go b/server/src/application/syncHandler.go index 154628c..d7f20b1 100644 --- a/server/src/application/syncHandler.go +++ b/server/src/application/syncHandler.go @@ -3,7 +3,7 @@ package application import ( "fmt" "net/http" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (app *Application) SyncHandler(usr *user.User, w http.ResponseWriter, r *http.Request) { diff --git a/server/src/engine/engine.go b/server/src/engine/engine.go index 063775e..6c83304 100644 --- a/server/src/engine/engine.go +++ b/server/src/engine/engine.go @@ -2,7 +2,7 @@ package engine import ( "github.com/imkira/go-observer" - "sirlab.de/go/knyt/syncdata" + "sirlab.de/go/knowyt/syncdata" "time" ) diff --git a/server/src/engine/publish.go b/server/src/engine/publish.go index 7a044a3..1120ca1 100644 --- a/server/src/engine/publish.go +++ b/server/src/engine/publish.go @@ -2,7 +2,7 @@ package engine import ( "fmt" - "sirlab.de/go/knyt/syncdata" + "sirlab.de/go/knowyt/syncdata" ) func (eng *Engine) publish(populateSyncDataCb PopulateSyncDataCb) { diff --git a/server/src/engine/struct.go b/server/src/engine/struct.go index acd51d2..aaeecc8 100644 --- a/server/src/engine/struct.go +++ b/server/src/engine/struct.go @@ -3,7 +3,7 @@ package engine import ( "github.com/imkira/go-observer" "net/http" - "sirlab.de/go/knyt/syncdata" + "sirlab.de/go/knowyt/syncdata" "sync" ) diff --git a/server/src/engine/sync.go b/server/src/engine/sync.go index 7775132..84bc12c 100644 --- a/server/src/engine/sync.go +++ b/server/src/engine/sync.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" "net/http" - "sirlab.de/go/knyt/syncdata" + "sirlab.de/go/knowyt/syncdata" "strconv" ) diff --git a/server/src/game/addQuote.go b/server/src/game/addQuote.go index 74aa540..2fd7c3d 100644 --- a/server/src/game/addQuote.go +++ b/server/src/game/addQuote.go @@ -1,7 +1,7 @@ package game import ( - "sirlab.de/go/knyt/quote" + "sirlab.de/go/knowyt/quote" ) func (gm *Game) AddQuote(qu *quote.Quote) { diff --git a/server/src/game/game.go b/server/src/game/game.go index 8ac9e87..6833f63 100644 --- a/server/src/game/game.go +++ b/server/src/game/game.go @@ -4,8 +4,8 @@ import ( "encoding/json" "fmt" "os" - "sirlab.de/go/knyt/engine" - "sirlab.de/go/knyt/quote" + "sirlab.de/go/knowyt/engine" + "sirlab.de/go/knowyt/quote" ) func NewGameFromFile(id, fileName string) (*Game, error) { diff --git a/server/src/game/getQuote.go b/server/src/game/getQuote.go index bccfd98..380e253 100644 --- a/server/src/game/getQuote.go +++ b/server/src/game/getQuote.go @@ -2,7 +2,7 @@ package game import ( "fmt" - "sirlab.de/go/knyt/quote" + "sirlab.de/go/knowyt/quote" ) func (gm *Game) getQuoteById(id string) (*quote.Quote, error) { diff --git a/server/src/game/getQuotesInfoByUser.go b/server/src/game/getQuotesInfoByUser.go index f66480e..297549a 100644 --- a/server/src/game/getQuotesInfoByUser.go +++ b/server/src/game/getQuotesInfoByUser.go @@ -1,7 +1,7 @@ package game import ( - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (gm *Game) GetQuotesInfoByUser(usr *user.User) *QuotesInfo { diff --git a/server/src/game/player.go b/server/src/game/player.go index cef4d78..f3d5de3 100644 --- a/server/src/game/player.go +++ b/server/src/game/player.go @@ -2,7 +2,7 @@ package game import ( "fmt" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (gm *Game) EventPlayerJoins(usr *user.User) { diff --git a/server/src/game/populateGetPlayers.go b/server/src/game/populateGetPlayers.go index fe76d89..abe9fb2 100644 --- a/server/src/game/populateGetPlayers.go +++ b/server/src/game/populateGetPlayers.go @@ -1,7 +1,7 @@ package game import ( - "sirlab.de/go/knyt/syncdata" + "sirlab.de/go/knowyt/syncdata" "sort" ) diff --git a/server/src/game/populateGetRoundInfo.go b/server/src/game/populateGetRoundInfo.go index edd3f2e..1437a8c 100644 --- a/server/src/game/populateGetRoundInfo.go +++ b/server/src/game/populateGetRoundInfo.go @@ -2,7 +2,7 @@ package game import ( "fmt" - "sirlab.de/go/knyt/syncdata" + "sirlab.de/go/knowyt/syncdata" ) func (gm *Game) populateGetRoundInfo() *syncdata.RoundInfo { diff --git a/server/src/game/populateSyncDataCb.go b/server/src/game/populateSyncDataCb.go index 1e99580..f44583a 100644 --- a/server/src/game/populateSyncDataCb.go +++ b/server/src/game/populateSyncDataCb.go @@ -1,7 +1,7 @@ package game import ( - "sirlab.de/go/knyt/syncdata" + "sirlab.de/go/knowyt/syncdata" ) func (gm *Game) populateSyncDataCb(syncData *syncdata.SyncData) { diff --git a/server/src/game/removeQuote.go b/server/src/game/removeQuote.go index 51be54b..24c7ba0 100644 --- a/server/src/game/removeQuote.go +++ b/server/src/game/removeQuote.go @@ -3,7 +3,7 @@ package game import ( "fmt" "os" - "sirlab.de/go/knyt/quote" + "sirlab.de/go/knowyt/quote" ) func (gm *Game) RemoveQuote(fileName, usrId, quoteId string) error { diff --git a/server/src/game/saveQuote.go b/server/src/game/saveQuote.go index cb2d6a5..89b8ce5 100644 --- a/server/src/game/saveQuote.go +++ b/server/src/game/saveQuote.go @@ -2,7 +2,7 @@ package game import ( "fmt" - "sirlab.de/go/knyt/quote" + "sirlab.de/go/knowyt/quote" ) func (gm *Game) CreateQuote(fileName, usrId, quoteId, quoteText string) error { diff --git a/server/src/game/saveSelection.go b/server/src/game/saveSelection.go index b3d5ee3..2b2451a 100644 --- a/server/src/game/saveSelection.go +++ b/server/src/game/saveSelection.go @@ -2,7 +2,7 @@ package game import ( "fmt" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (gm *Game) SaveSelection(usr *user.User, selection string) { diff --git a/server/src/game/setupRound.go b/server/src/game/setupRound.go index d589591..2cd3860 100644 --- a/server/src/game/setupRound.go +++ b/server/src/game/setupRound.go @@ -3,7 +3,7 @@ package game import ( "fmt" "math/rand" - "sirlab.de/go/knyt/quote" + "sirlab.de/go/knowyt/quote" "time" ) diff --git a/server/src/game/struct.go b/server/src/game/struct.go index 27b991f..b876dc6 100644 --- a/server/src/game/struct.go +++ b/server/src/game/struct.go @@ -1,8 +1,8 @@ package game import ( - "sirlab.de/go/knyt/engine" - "sirlab.de/go/knyt/quote" + "sirlab.de/go/knowyt/engine" + "sirlab.de/go/knowyt/quote" "sync" ) diff --git a/server/src/go.mod b/server/src/go.mod index 672145c..2120fde 100644 --- a/server/src/go.mod +++ b/server/src/go.mod @@ -1,4 +1,4 @@ -module sirlab.de/go/knyt +module sirlab.de/go/knowyt go 1.16 diff --git a/server/src/handler/authmux.go b/server/src/handler/authmux.go index a71bfe5..cee075f 100644 --- a/server/src/handler/authmux.go +++ b/server/src/handler/authmux.go @@ -2,8 +2,8 @@ package handler import ( "net/http" - "sirlab.de/go/knyt/application" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/application" + "sirlab.de/go/knowyt/user" ) type HandlerFunc func(http.ResponseWriter, *http.Request) diff --git a/server/src/handler/filehandler.go b/server/src/handler/filehandler.go new file mode 100644 index 0000000..21f0001 --- /dev/null +++ b/server/src/handler/filehandler.go @@ -0,0 +1,31 @@ +package handler + +import ( + "fmt" + "mime" + "net/http" + "path" + "sirlab.de/go/knowyt/resources" +) + +func FileHandler(w http.ResponseWriter, req *http.Request) { + + uri := req.URL.String() + if uri[len(uri)-1] == '/' { + uri += "index.html" + } + uri = uri[1:] + data, err := Resources.Asset(uri) + if err != nil { + fmt.Printf("%s: %v\n", uri, err) + http.NotFoundHandler().ServeHTTP(w, req) + return + } + + mimeType := mime.TypeByExtension(path.Ext(uri)) + if mimeType == "" { + mimeType = "text/plain" + } + w.Header().Add("Content-Type", mimeType) + fmt.Fprint(w, string(data)) +} diff --git a/server/src/handler/login.go b/server/src/handler/login.go index 68d5e89..17ff1b8 100644 --- a/server/src/handler/login.go +++ b/server/src/handler/login.go @@ -3,12 +3,12 @@ package handler import ( "fmt" "net/http" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) func (authMux *AuthMux) createCookie() *http.Cookie { return &http.Cookie{ - Name: "knyt-auth", + Name: "knowyt-auth", Path: "/", HttpOnly: true, MaxAge: -1, diff --git a/server/src/handler/private.go b/server/src/handler/private.go index 7d70115..0bcbe05 100644 --- a/server/src/handler/private.go +++ b/server/src/handler/private.go @@ -3,7 +3,7 @@ package handler import ( "fmt" "net/http" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" "strings" ) @@ -25,7 +25,7 @@ func (authMux *AuthMux) accessDenied(w http.ResponseWriter, r *http.Request) { } func (authMux *AuthMux) getUserFromSession(r *http.Request) (*user.User, error) { - authCookie, err := r.Cookie("knyt-auth") + authCookie, err := r.Cookie("knowyt-auth") if err != nil { fmt.Printf("%v\n", err) return nil, fmt.Errorf("invalid cookie") diff --git a/server/src/handler/userinfo.go b/server/src/handler/userinfo.go index 5ac23b2..40579ad 100644 --- a/server/src/handler/userinfo.go +++ b/server/src/handler/userinfo.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" "net/http" - "sirlab.de/go/knyt/user" + "sirlab.de/go/knowyt/user" ) type UserInfoJson struct { diff --git a/server/src/knowyt.go b/server/src/knowyt.go index ada57d4..667015c 100644 --- a/server/src/knowyt.go +++ b/server/src/knowyt.go @@ -4,9 +4,9 @@ import ( "fmt" "net/http" "os" - "sirlab.de/go/knyt/application" - "sirlab.de/go/knyt/applicationConfig" - "sirlab.de/go/knyt/handler" + "sirlab.de/go/knowyt/application" + "sirlab.de/go/knowyt/applicationConfig" + "sirlab.de/go/knowyt/handler" ) func main() { @@ -38,8 +38,7 @@ func main() { mux.PrivateHandleFunc("/api/removeQuote", app.RemoveQuote) // default handler - fsHandler := http.FileServer(http.Dir("../../client/dist/")) - mux.PublicHandle("/", fsHandler) + http.HandleFunc("/", handler.FileHandler) // start listening fmt.Printf("http://localhost:%d/\n", mux.Port) diff --git a/server/src/resources/.gitignore b/server/src/resources/.gitignore new file mode 100644 index 0000000..27d8ae6 --- /dev/null +++ b/server/src/resources/.gitignore @@ -0,0 +1 @@ +*-generated.go diff --git a/server/src/resources/dist-build.go b/server/src/resources/dist-build.go new file mode 100644 index 0000000..9cda25e --- /dev/null +++ b/server/src/resources/dist-build.go @@ -0,0 +1,3 @@ +package Resources + +//go:generate go-bindata -pkg Resources -o dist-generated.go --prefix ../../../client/dist/ ../../../client/dist/ ../../../client/dist/_nuxt/ ../../../client/dist/play ../../../client/dist/admin ../../../client/dist/fonts/dosis ../../../client/dist/fonts/wendy-one