Skip to content

Commit

Permalink
refactor: missing faction stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Mar 27, 2024
1 parent 0cb8c87 commit 473eed6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ tasks:
cmds:
# pip install watchdog[watchmedo]
- >
watchmedo auto-restart
~/venv/bin/watchmedo auto-restart
--patterns "*.templ;*.go;*.css"
-i "*_templ.go"
--recursive
Expand Down
8 changes: 8 additions & 0 deletions darkstat/front/factions.templ
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ templ FactionsT(factions []configs_export.Faction) {
<th style="width:200px;">Name</th>
<th style="width:200px;">Short Name</th>
<th style="width:100px;">Nickname</th>
<th style="width:150px;">Object Destruction Rep.Cng.</th>
<th style="width:150px;">Mission Success Rep.Cng.</th>
<th style="width:150px;">MIssion Failure Rep.Cng.</th>
<th style="width:150px;">Mission Abort Rep.Cng.</th>
<th style="width:200px;">InfonameID</th>
<th style="width:50px;">InfocardID</th>
<th style="max-width:100%;"></th>
Expand All @@ -48,6 +52,10 @@ templ FactionsT(factions []configs_export.Faction) {
<td>{ faction.Name }</td>
<td>{ faction.ShortName }</td>
<td>{ faction.Nickname }</td>
<td>{ fmt.Sprintf("%.2f", faction.ObjectDestruction) }</td>
<td>{ fmt.Sprintf("%.2f", faction.MissionSuccess) }</td>
<td>{ fmt.Sprintf("%.2f", faction.MissionFailure) }</td>
<td>{ fmt.Sprintf("%.2f", faction.MissionAbort) }</td>
<td>{ strconv.Itoa(faction.InfonameID) }</td>
<td>{ strconv.Itoa(faction.InfocardID) }</td>
<td
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.21.1

require (
github.com/a-h/templ v0.2.543
github.com/darklab8/fl-configs v0.13.1
github.com/darklab8/fl-configs v0.13.2
github.com/darklab8/go-typelog v0.6.0
github.com/darklab8/go-utils v0.12.0
github.com/yosssi/gohtml v0.0.0-20201013000340-ee4748c638f4
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ github.com/a-h/templ v0.2.543 h1:8YyLvyUtf0/IE2nIwZ62Z/m2o2NqwhnMynzOL78Lzbk=
github.com/a-h/templ v0.2.543/go.mod h1:jP908DQCwI08IrnTalhzSEH9WJqG/Q94+EODQcJGFUA=
github.com/darklab8/fl-configs v0.13.1 h1:C/8JD9eVGkxW5PGKwf5Sp7IvopJpbF+5L2v6yNJTHn0=
github.com/darklab8/fl-configs v0.13.1/go.mod h1:8zaCaFL21TvawP65KB9NOJ+nEpaMDQYsnoOi77RiSVY=
github.com/darklab8/fl-configs v0.13.2 h1:HIWrZI4z5PdEba3qkugzz1Ysl7UTJNmvsGTezjivXZw=
github.com/darklab8/fl-configs v0.13.2/go.mod h1:8zaCaFL21TvawP65KB9NOJ+nEpaMDQYsnoOi77RiSVY=
github.com/darklab8/go-typelog v0.6.0 h1:Ci8imc7ScXiy5e1qMgf46NyJjrqNLPoIE1gbVe7bxl4=
github.com/darklab8/go-typelog v0.6.0/go.mod h1:AwwOf3dkp/tpevHFNbkB+PbwlDrUUgO1CVFkEnj+q5w=
github.com/darklab8/go-utils v0.12.0 h1:LxsG3yVNf9W4xyV+tHPOaZB2ewItgM/1BzOXyKFvofs=
Expand Down

0 comments on commit 473eed6

Please sign in to comment.