Move presets to json objects
This commit is contained in:
40
presets/baseball.json
Normal file
40
presets/baseball.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"name": "Baseball - coming soon",
|
||||
"outcomes": [
|
||||
"Win",
|
||||
"Loss"
|
||||
],
|
||||
"results": [
|
||||
{ "name" : "1", "description" : "1st inning runs" },
|
||||
{ "name" : "2", "description" : "2nd inning runs" },
|
||||
{ "name" : "3", "description" : "3rd inning runs" },
|
||||
{ "name" : "4", "description" : "4th inning runs" },
|
||||
{ "name" : "5", "description" : "5th inning runs" },
|
||||
{ "name" : "6", "description" : "6th inning runs" },
|
||||
{ "name" : "7", "description" : "7th inning runs" },
|
||||
{ "name" : "8", "description" : "8th inning runs" },
|
||||
{ "name" : "9", "description" : "9th inning runs" },
|
||||
{ "name" : "", "id" : "extra", "description" : "Extra inning runs" },
|
||||
{ "name" : "R", "description" : "Total runs", "main" : 1 },
|
||||
{ "name" : "H", "description" : "Hits" },
|
||||
{ "name" : "E", "description" : "Errors" }
|
||||
],
|
||||
"performance": [
|
||||
],
|
||||
"columns": [
|
||||
{ "name" : "W", "equation" : "$win", "description" : "Wins" },
|
||||
{ "name" : "L", "equation" : "$loss", "description" : "Losses" },
|
||||
{ "name" : "PCT", "equation" : "$win / $eventsplayed", "precision" : 3, "description" : "Win percentage" },
|
||||
{ "name" : "RS", "equation" : "$rfor", "description" : "Runs scored" },
|
||||
{ "name" : "RA", "equation" : "$ragainst", "description" : "Runs allowed" },
|
||||
{ "name" : "DIFF", "equation" : "$rfor - $ragainst", "description" : "Run differential" },
|
||||
{ "name" : "L10", "equation" : "$last10", "description" : "Last 10 games" },
|
||||
{ "name" : "STRK", "equation" : "$streak", "description" : "Current streak" }
|
||||
],
|
||||
"metrics": [
|
||||
"Height",
|
||||
"Weight"
|
||||
],
|
||||
"statistics": [
|
||||
]
|
||||
}
|
||||
61
presets/basketball.json
Normal file
61
presets/basketball.json
Normal file
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"name": "Basketball",
|
||||
"outcomes": [
|
||||
"Win",
|
||||
"Loss"
|
||||
],
|
||||
"results": [
|
||||
{ "name" : "1", "description" : "1st quarter points" },
|
||||
{ "name" : "2", "description" : "2nd quarter points" },
|
||||
{ "name" : "3", "description" : "3rd quarter points" },
|
||||
{ "name" : "4", "description" : "4th quarter points" },
|
||||
{ "name" : "", "id" : "ot", "description" : "Overtime points" },
|
||||
{ "name" : "T", "description" : "Total points", "main" : 1 }
|
||||
],
|
||||
"performance": [
|
||||
{ "name" : "MIN", "description" : "Minutes" },
|
||||
{ "name" : "FGM", "description" : "Field goals made" },
|
||||
{ "name" : "FGA", "description" : "Field goals attempted" },
|
||||
{ "name" : "FTM", "description" : "Free throws made" },
|
||||
{ "name" : "FTA", "description" : "Free throws attempted" },
|
||||
{ "name" : "3PM", "description" : "3-pointers made" },
|
||||
{ "name" : "3PA", "description" : "3-pointers attempted" },
|
||||
{ "name" : "OFF REB", "description" : "Offensive rebounds" },
|
||||
{ "name" : "DEF REB", "description" : "Defensive rebounds" },
|
||||
{ "name" : "AST", "description" : "Assists" },
|
||||
{ "name" : "PF", "description" : "Personal fouls" },
|
||||
{ "name" : "TF", "description" : "Technical fouls" },
|
||||
{ "name" : "STL", "description" : "Steals" },
|
||||
{ "name" : "TO", "description" : "Turnovers" },
|
||||
{ "name" : "BLK", "description" : "Blocks" },
|
||||
{ "name" : "PTS", "description" : "Points" }
|
||||
],
|
||||
"columns": [
|
||||
{ "name" : "W", "equation" : "$win", "description" : "Wins" },
|
||||
{ "name" : "L", "equation" : "$loss", "description" : "Losses" },
|
||||
{ "name" : "PCT", "equation" : "$win / $eventsplayed", "precision" : 3, "description" : "Win percentage" },
|
||||
{ "name" : "PF", "equation" : "$tfor / $eventsplayed", "precision" : 1, "description" : "Average points for" },
|
||||
{ "name" : "PA", "equation" : "$tagainst / $eventsplayed", "precision" : 1, "description" : "Average points against" },
|
||||
{ "name" : "DIFF", "equation" : "( $tfor - $tagainst ) / $eventsplayed", "precision" : 1, "description" : "Average point differential" },
|
||||
{ "name" : "L10", "equation" : "$last10", "description" : "Last 10 games" },
|
||||
{ "name" : "STRK", "equation" : "$streak", "description" : "Current streak" }
|
||||
],
|
||||
"metrics": [
|
||||
"Height",
|
||||
"Weight"
|
||||
],
|
||||
"statistics": [
|
||||
{ "name" : "G", "equation" : "$eventsplayed", "description" : "Games played" },
|
||||
{ "name" : "GS", "equation" : "$eventsstarted", "description" : "Games started" },
|
||||
{ "name" : "MPG", "equation" : "$min / $eventsplayed", "precision" : 1, "description" : "Minutes per game" },
|
||||
{ "name" : "FG%", "equation" : "$fgm / $fga", "precision" : 3, "description" : "Field goal percentage" },
|
||||
{ "name" : "FT%", "equation" : "$ftm / $fta", "precision" : 3, "description" : "Free throw percentage" },
|
||||
{ "name" : "3P%", "equation" : "$threepm / $threepa", "precision" : 3, "description" : "3-pointer percentage" },
|
||||
{ "name" : "RPG", "equation" : "( $offreb + $defreb ) / $eventsplayed", "precision" : 1, "description" : "Rebounds per game" },
|
||||
{ "name" : "APG", "equation" : "$ast / $eventsplayed", "precision" : 1, "description" : "Assists per game" },
|
||||
{ "name" : "SPG", "equation" : "$stl / $eventsplayed", "precision" : 1, "description" : "Steals per game" },
|
||||
{ "name" : "BPG", "equation" : "$blk / $eventsplayed", "precision" : 1, "description" : "Blocks per game" },
|
||||
{ "name" : "PPG", "equation" : "$pts / $eventsplayed", "precision" : 1, "description" : "Points per game" },
|
||||
{ "name" : "EFF", "equation" : "$pts + $offreb + $defreb + $ast + $stl + $blk - $fga + $fgm - $fta + $ftm + $to", "description" : "Efficiency rating" }
|
||||
]
|
||||
}
|
||||
21
presets/cricket.json
Normal file
21
presets/cricket.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "Cricket - coming soon",
|
||||
"outcomes": [
|
||||
"Win",
|
||||
"Loss",
|
||||
"Tie",
|
||||
"Draw"
|
||||
],
|
||||
"results": [
|
||||
],
|
||||
"performance": [
|
||||
],
|
||||
"columns": [
|
||||
],
|
||||
"metrics": [
|
||||
"Height",
|
||||
"Weight"
|
||||
],
|
||||
"statistics": [
|
||||
]
|
||||
}
|
||||
20
presets/football.json
Normal file
20
presets/football.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "Football - coming soon",
|
||||
"outcomes": [
|
||||
"Win",
|
||||
"Loss",
|
||||
"Tie"
|
||||
],
|
||||
"results": [
|
||||
],
|
||||
"performance": [
|
||||
],
|
||||
"columns": [
|
||||
],
|
||||
"metrics": [
|
||||
"Height",
|
||||
"Weight"
|
||||
],
|
||||
"statistics": [
|
||||
]
|
||||
}
|
||||
19
presets/footy.json
Normal file
19
presets/footy.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "Footy - coming soon",
|
||||
"outcomes": [
|
||||
"Win",
|
||||
"Loss"
|
||||
],
|
||||
"results": [
|
||||
],
|
||||
"performance": [
|
||||
],
|
||||
"columns": [
|
||||
],
|
||||
"metrics": [
|
||||
"Height",
|
||||
"Weight"
|
||||
],
|
||||
"statistics": [
|
||||
]
|
||||
}
|
||||
19
presets/racing.json
Normal file
19
presets/racing.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "Racing - coming soon",
|
||||
"outcomes": [
|
||||
"Win",
|
||||
"Loss"
|
||||
],
|
||||
"results": [
|
||||
],
|
||||
"performance": [
|
||||
],
|
||||
"columns": [
|
||||
],
|
||||
"metrics": [
|
||||
"Height",
|
||||
"Weight"
|
||||
],
|
||||
"statistics": [
|
||||
]
|
||||
}
|
||||
20
presets/rugby.json
Normal file
20
presets/rugby.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "Rugby - coming soon",
|
||||
"outcomes": [
|
||||
"Win",
|
||||
"Draw",
|
||||
"Loss"
|
||||
],
|
||||
"results": [
|
||||
],
|
||||
"performance": [
|
||||
],
|
||||
"columns": [
|
||||
],
|
||||
"metrics": [
|
||||
"Height",
|
||||
"Weight"
|
||||
],
|
||||
"statistics": [
|
||||
]
|
||||
}
|
||||
@@ -1,46 +1,43 @@
|
||||
{
|
||||
"sport": "soccer",
|
||||
"id": "premier-league",
|
||||
"name": "Premier League",
|
||||
"name": "Soccer (Association Football)",
|
||||
"outcomes": [
|
||||
"W",
|
||||
"D",
|
||||
"L"
|
||||
"Win",
|
||||
"Draw",
|
||||
"Loss"
|
||||
],
|
||||
"results": [
|
||||
"1st Half",
|
||||
"2nd Half",
|
||||
"Goals"
|
||||
{ "name" : "1st Half", "description" : "1st half goals" },
|
||||
{ "name" : "2nd Half", "description" : "2nd half goals" },
|
||||
{ "name" : "Goals", "description" : "Total goals", "main" : 1 }
|
||||
],
|
||||
"performance": [
|
||||
"Goals",
|
||||
"Shots on Goal",
|
||||
"Assists",
|
||||
"Fouls",
|
||||
"Fouled",
|
||||
"Yellow Cards",
|
||||
"Red Cards"
|
||||
],
|
||||
"columns": [
|
||||
{ "name" : "P", "equation" : "$events" },
|
||||
{ "name" : "W", "equation" : "$w" },
|
||||
{ "name" : "D", "equation" : "$d" },
|
||||
{ "name" : "L", "equation" : "$l" },
|
||||
{ "name" : "GF", "equation" : "$goalsfor" },
|
||||
{ "name" : "GA", "equation" : "$goalsagainst" },
|
||||
{ "name" : "GD", "equation" : "$goalsfor - $goalsagainst" },
|
||||
{ "name" : "Pts", "equation" : "$w * 3 + $d" }
|
||||
{ "name" : "P", "equation" : "$eventsplayed", "description" : "Matches played" },
|
||||
{ "name" : "W", "equation" : "$win", "description" : "Wins" },
|
||||
{ "name" : "D", "equation" : "$draw", "description" : "Draws" },
|
||||
{ "name" : "L", "equation" : "$loss", "description" : "Losses" },
|
||||
{ "name" : "F", "equation" : "$goalsfor", "priority" : 3, "description" : "Goals for" },
|
||||
{ "name" : "A", "equation" : "$goalsagainst", "description" : "Goals against" },
|
||||
{ "name" : "GD", "equation" : "$goalsfor - $goalsagainst", "priority" : 2, "description" : "Goal difference" },
|
||||
{ "name" : "PTS", "equation" : "$win * 3 + $draw", "priority" : 1, "description" : "Team points" }
|
||||
],
|
||||
"metrics": [
|
||||
"Height",
|
||||
"Weight"
|
||||
],
|
||||
"statistics": [
|
||||
{ "name" : "Appearances", "equation" : "$events" }
|
||||
{ "name" : "Average Goals per Match", "equation" : "$goals / $events" }
|
||||
{ "name" : "Win Ratio", "equation" : "$w / $events" }
|
||||
{ "name" : "Played", "equation" : "$eventsplayed" }
|
||||
{ "name" : "Played", "equation" : "$eventsplayed" }
|
||||
{ "name" : "Played", "equation" : "$eventsplayed" }
|
||||
{ "name" : "Played", "equation" : "$eventsplayed" }
|
||||
{ "name" : "Played", "equation" : "$eventsplayed" }
|
||||
{ "name" : "Appearances", "equation" : "$eventsplayed", "description" : "Matches played" },
|
||||
{ "name" : "Average Goals per Match", "id" : "averagegoals", "equation" : "$goals / $eventsplayed", "precision" : 2 },
|
||||
{ "name" : "Win Ratio", "equation" : "$win / $eventsplayed * 100", "precision" : 2 },
|
||||
{ "name" : "Draw Ratio", "equation" : "$draw / $eventsplayed * 100", "precision" : 2 },
|
||||
{ "name" : "Loss Ratio", "equation" : "$loss / $eventsplayed * 100", "precision" : 2 }
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user