Skip to content

Commit 96a63b6

Browse files
committed
Merge branch 'master' into circleci
# Conflicts: # README.md
2 parents c6b4dbe + 4305f8b commit 96a63b6

File tree

6 files changed

+16
-27
lines changed

6 files changed

+16
-27
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
[![CircleCI](https://circleci.com/gh/g3force/ssl-game-controller/tree/master.svg?style=svg)](https://circleci.com/gh/g3force/ssl-game-controller/tree/master)
2-
[![Go Report Card](https://goreportcard.com/badge/github.com/g3force/ssl-game-controller?style=flat-square)](https://goreportcard.com/report/github.com/g3force/ssl-game-controller)
3-
[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/g3force/ssl-game-controller)
4-
[![Release](https://img.shields.io/github/release/golang-standards/project-layout.svg?style=flat-square)](https://github.com/g3force/ssl-game-controller/releases/latest)
1+
[![CircleCI](https://circleci.com/gh/RoboCup-SSL/ssl-game-controller/tree/master.svg?style=svg)](https://circleci.com/gh/RoboCup-SSL/ssl-game-controller/tree/master)
2+
[![Go Report Card](https://goreportcard.com/badge/github.com/RoboCup-SSL/ssl-game-controller?style=flat-square)](https://goreportcard.com/report/github.com/RoboCup-SSL/ssl-game-controller)
3+
[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/github.com/RoboCup-SSL/ssl-game-controller/internal/app/controller)
4+
[![Release](https://img.shields.io/github/release/golang-standards/project-layout.svg?style=flat-square)](https://github.com/RoboCup-SSL/ssl-game-controller/releases/latest)
55

66
# ssl-game-controller
77

cmd/ssl-game-controller/main.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package main
22

33
import (
4-
"github.com/g3force/ssl-game-controller/internal/app/controller"
4+
"github.com/RoboCup-SSL/ssl-game-controller/internal/app/controller"
55
"github.com/gobuffalo/packr"
6+
"log"
67
"net/http"
78
)
89

@@ -14,6 +15,12 @@ func main() {
1415
box := packr.NewBox("../../ui/dist")
1516
http.Handle("/", http.FileServer(box))
1617

18+
if box.Has("index.html") {
19+
log.Print("UI is available at http://localhost:8081")
20+
} else {
21+
log.Print("Backend-only version started. Run the UI separately or get a binary that has the UI included")
22+
}
23+
1724
// serve the bidirectional web socket
1825
http.HandleFunc("/ws", g.ApiServer.WsHandler)
1926
http.ListenAndServe(":8081", nil)

internal/app/controller/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package controller
22

33
import (
44
"encoding/json"
5-
"github.com/g3force/ssl-game-controller/pkg/timer"
5+
"github.com/RoboCup-SSL/ssl-game-controller/pkg/timer"
66
"io"
77
"log"
88
"os"

internal/app/controller/publisher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewPublisher(address string) (publisher Publisher, err error) {
2929
}
3030

3131
conn.SetReadBuffer(maxDatagramSize)
32-
log.Println("Connected to", address)
32+
log.Println("Publishing to", address)
3333

3434
publisher.conn = conn
3535

release.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

ui/src/components/common/EditableLabelSelect.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
}
3939
},
4040
watch: {
41-
editValue: function (newTeamName) {
41+
editValue: function (val) {
4242
this.edit = false;
43-
this.callback(this.editValue)
43+
this.callback(val);
4444
}
4545
}
4646
}

0 commit comments

Comments
 (0)