Skip to content

Commit

Permalink
[Races] Race Inventory Parser (#14)
Browse files Browse the repository at this point in the history
* Race inventory parser / map generator

* Revert swagger.go

* Add static map file serving

* Raceviewer work

* Add groupBy support in crud controllers

* Improve race viewer algorithms

* UI tweaks
  • Loading branch information
Akkadius authored Jan 18, 2022
1 parent d5b4016 commit b885237
Show file tree
Hide file tree
Showing 210 changed files with 4,338 additions and 740 deletions.
2 changes: 1 addition & 1 deletion .air.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bin = "/bin/main"
# Customize binary.
full_bin = "APP_ENV=local /tmp/bin/app http:serve --port=3000"
# Watch these filename extensions.
include_ext = ["go", "tpl", "tmpl", "html", "md"]
include_ext = ["go", "tpl", "tmpl", "html", "md", "json"]
# Ignore these filename extensions or directories.
exclude_dir = [
"bin",
Expand Down
3 changes: 3 additions & 0 deletions boot/inject_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ var commandSet = wire.NewSet(
cmd.NewGenerateConfigurationCommand,
cmd.NewSpireMigrateCommand,
cmd.NewQuestExampleTestCommand,
cmd.NewGenerateRaceModelMapsCommand,
ProvideCommands,
)

Expand All @@ -32,6 +33,7 @@ func ProvideCommands(
spireMigrateCommand *cmd.SpireMigrateCommand,
questApiParseCommand *cmd.QuestApiParseCommand,
questExampleTestCommand *cmd.QuestExampleTestCommand,
generateRaceModelMapsCommand *cmd.GenerateRaceModelMapsCommand,
) []*cobra.Command {
return []*cobra.Command{
helloWorldCommand.Command(),
Expand All @@ -43,5 +45,6 @@ func ProvideCommands(
spireMigrateCommand.Command(),
questApiParseCommand.Command(),
questExampleTestCommand.Command(),
generateRaceModelMapsCommand.Command(),
}
}
4 changes: 4 additions & 0 deletions boot/inject_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"github.com/Akkadius/spire/internal/http/controllers"
appmiddleware "github.com/Akkadius/spire/internal/http/middleware"
"github.com/Akkadius/spire/internal/http/routes"
"github.com/Akkadius/spire/internal/http/staticmaps"
"github.com/Akkadius/spire/internal/models"
"github.com/google/wire"
"github.com/labstack/echo/v4"
Expand All @@ -26,6 +27,7 @@ var httpSet = wire.NewSet(
controllers.NewAppController,
controllers.NewQueryController,
controllers.NewQuestFileApiController,
staticmaps.NewStaticMapController,
provideControllers,
NewRouter,
)
Expand Down Expand Up @@ -108,6 +110,7 @@ func provideControllers(
app *controllers.AppController,
query *controllers.QueryController,
questFileApi *controllers.QuestFileApiController,
staticMaps *staticmaps.StaticMapController,
) *appControllerGroups {
return &appControllerGroups{
authControllers: []routes.Controller{
Expand All @@ -125,6 +128,7 @@ func provideControllers(
app,
query,
questFileApi,
staticMaps,
},
}
}
Expand Down
7 changes: 5 additions & 2 deletions boot/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b885237

Please sign in to comment.