Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #54 from vidar-team/dev
Browse files Browse the repository at this point in the history
v0.6.1
  • Loading branch information
wuhan005 authored Jul 15, 2020
2 parents 97618c0 + 4959aa8 commit ca58fce
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ require (
github.com/theplant/htmltestingutils v0.0.0-20190423050759-0e06de7b6967 // indirect
github.com/theplant/testingutils v0.0.0-20190603093022-26d8b4d95c61 // indirect
github.com/vidar-team/Cardinal_frontend v0.5.2-alpha
github.com/vidar-team/Cardinal_manager_frontend v0.6.0
github.com/vidar-team/Cardinal_manager_frontend v0.6.1
github.com/yosssi/gohtml v0.0.0-20200424144038-a48de20dd9dd // indirect
golang.org/x/crypto v0.0.0-20191205180655-e7c4368fe9dd
golang.org/x/text v0.3.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ github.com/vidar-team/Cardinal_manager_frontend v0.5.2-alpha h1:xgXwPqXCjHiHVQC7
github.com/vidar-team/Cardinal_manager_frontend v0.5.2-alpha/go.mod h1:uJBQtuXHTLNyuIMONoM1OqYmW7Q/N40+587Qt90kqAk=
github.com/vidar-team/Cardinal_manager_frontend v0.6.0 h1:OMsb3O7raah7r37ppyjm83iMnV4B+1OTWG38VTuT0T8=
github.com/vidar-team/Cardinal_manager_frontend v0.6.0/go.mod h1:uJBQtuXHTLNyuIMONoM1OqYmW7Q/N40+587Qt90kqAk=
github.com/vidar-team/Cardinal_manager_frontend v0.6.1 h1:R3h/YovMTtAsteNb2pVAQM/fr3whculO4JeRXzs9Hu0=
github.com/vidar-team/Cardinal_manager_frontend v0.6.1/go.mod h1:uJBQtuXHTLNyuIMONoM1OqYmW7Q/N40+587Qt90kqAk=
github.com/yosssi/gohtml v0.0.0-20200424144038-a48de20dd9dd h1:LxsPdxzQnF9yE7Xv/1Ln8C8JJbEh1SlRyIDvgR/bsKg=
github.com/yosssi/gohtml v0.0.0-20200424144038-a48de20dd9dd/go.mod h1:+ccdNT0xMY1dtc5XBxumbYfOUhmduiGudqaDgD2rVRE=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
Expand Down
2 changes: 2 additions & 0 deletions src/asteroid.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"github.com/gin-gonic/gin"
"github.com/vidar-team/Cardinal/src/asteroid"
"github.com/vidar-team/Cardinal/src/conf"
"github.com/vidar-team/Cardinal/src/locales"
"github.com/vidar-team/Cardinal/src/utils"
)
Expand All @@ -20,6 +21,7 @@ func (s *Service) asteroidGreetData() (result asteroid.Greet) {
})
}

result.Title = conf.Get().Title
result.Team = asteroidTeam
result.Time = s.Timer.RoundRemainTime
result.Round = s.Timer.NowRound
Expand Down
2 changes: 1 addition & 1 deletion src/asteroid/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const (
)

var hub *Hub
var refresh func() Greet // Used to get team, score, time data.
var refresh func() Greet // Used to get title, team, score, time data.

// InitAsteroid is used to init the asteroid. A function will be given to get the team rank data.
func InitAsteroid(function func() Greet) {
Expand Down
1 change: 1 addition & 0 deletions src/asteroid/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type Team struct {

// Greet will been sent when the client connect to the server firstly.
type Greet struct {
Title string
Time int
Round int
Team []Team
Expand Down

0 comments on commit ca58fce

Please sign in to comment.