Skip to content

Commit

Permalink
feat(randomizer): add randomizer registry (#3178)
Browse files Browse the repository at this point in the history
Fixes #2376
  • Loading branch information
sogehige committed Jan 21, 2020
1 parent da1caff commit 278b2bd
Show file tree
Hide file tree
Showing 50 changed files with 2,890 additions and 1,183 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ css:
@echo -ne "\n\t ----- Generating CSS themes\n"
@npx node-sass --output-style expanded --precision 6 scss/themes/light.scss public/dist/css/light.css
@npx node-sass --output-style expanded --precision 6 scss/themes/dark.scss public/dist/css/dark.css
@npx postcss public/dist/css/*.css --use autoprefixer -d public/dist/css/

ui:
@echo -ne "\n\t ----- Bundling with webpack\n"
Expand Down
1 change: 1 addition & 0 deletions locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@
"title-template": "Šablona nadpisu",
"minimal-watched-time": "Minimální čas sledování:",
"widget-title-customvariables": "VLASTNÍ PROMĚNNÉ",
"widget-title-randomizer": "NÁHODNÝ VÝBĚR",
"widget-title-eventlist": "KANÁL AKTIVIT",
"widget-title-bets": "SÁZKY",
"widget-title-chat": "CHAT",
Expand Down
6 changes: 5 additions & 1 deletion locales/cs/ui.errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"command_must_start_with_!": "Příkaz musí začít !",
"this_value_must_be_a_positive_number_or_0": "Tato hodnota musí být kladné číslo nebo 0",
"value_cannot_be_empty": "Hodnota nemůže být prázdná",
"minLength_of_value_is": "Minimální dělka je $value.",
"this_currency_is_not_supported": "Tato měna není podporována",
"something_went_wrong": "Něco se pokazilo"
"something_went_wrong": "Něco se pokazilo",
"permission_must_exist": "Oprávnění musí existovat",
"minValue_of_value_is": "Minimální hodnota je $value.",
"invalid_format": "Nesprávný formát hodnoty"
}
4 changes: 2 additions & 2 deletions locales/cs/ui.menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"seppuku": "Seppuku",
"gamble": "Gamble",
"roulette": "Roulette",
"wheeloffortune": "Kolo štěstí",
"heist": "Heist",
"oauth": "OAuth",
"socket": "Socket",
Expand Down Expand Up @@ -75,5 +74,6 @@
"scrim": "Scrim",
"commandcount": "Počet užití příkazů",
"howlongtobeat": "How long to beat",
"responsivevoice": "ResponsiveVoice"
"responsivevoice": "ResponsiveVoice",
"randomizer": "Náhodný výběr"
}
4 changes: 4 additions & 0 deletions locales/cs/ui.widgets.randomizer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"no-randomizer-found": "Náhodný výběr nenalezen, přidejte je v <a href=\"/#/registry/randomizer/list\">registru náhodného výběru</a>",
"add-randomizer-to-widget": "Přidat náhodný výběr do widgetu"
}
30 changes: 0 additions & 30 deletions locales/cs/ui/games/wheeloffortune.json

This file was deleted.

20 changes: 20 additions & 0 deletions locales/cs/ui/registry/randomizer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"addRandomizer": "Add Randomizer",
"form": {
"name": "Název",
"command": "Příkaz",
"permission": "Oprávnění příkazu",
"simple": "Jednoduchý výběr",
"wheelOfFortune": "Kolo štěstí",
"type": "Typ",
"options": "Možnosti",
"optionsAreEmpty": "Možnosti jsou zatím prázdné.",
"color": "Barva",
"numOfDuplicates": "Počet duplikátů",
"minimalSpacing": "Minimální rozestup",
"groupUp": "Seskupit",
"ungroup": "Rozdělit",
"groupedWithOptionAbove": "Seskupeno s předchozí možností",
"generatedOptionsPreview": "Náhled vygenerovaných možností"
}
}
1 change: 1 addition & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,7 @@
"custom-ban-message-warning": "Custom warning message",
"minimal-watched-time": "Minimal watched time:",
"widget-title-customvariables": "CUSTOM VARIABLES",
"widget-title-randomizer": "RANDOMIZER",
"widget-title-eventlist": "EVENTLIST",
"widget-title-bets": "BETS",
"widget-title-chat": "CHAT",
Expand Down
6 changes: 5 additions & 1 deletion locales/en/ui.errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"command_must_start_with_!": "Command must start with !",
"this_value_must_be_a_positive_number_or_0": "This value must be a positive number or 0",
"value_cannot_be_empty": "Value cannot be empty",
"minLength_of_value_is": "Minimal length is $value.",
"this_currency_is_not_supported": "This currency is not supported",
"something_went_wrong": "Something went wrong"
"something_went_wrong": "Something went wrong",
"permission_must_exist": "Permission must exist",
"minValue_of_value_is": "Minimal value is $value",
"invalid_format": "Invalid value format"
}
4 changes: 2 additions & 2 deletions locales/en/ui.menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"seppuku": "Seppuku",
"gamble": "Gamble",
"roulette": "Roulette",
"wheeloffortune": "Wheel of Fortune",
"heist": "Heist",
"oauth": "OAuth",
"socket": "Socket",
Expand Down Expand Up @@ -75,5 +74,6 @@
"scrim": "Scrim",
"commandcount": "Command count",
"howlongtobeat": "How long to beat",
"responsivevoice": "ResponsiveVoice"
"responsivevoice": "ResponsiveVoice",
"randomizer": "Randomizer"
}
4 changes: 4 additions & 0 deletions locales/en/ui.widgets.randomizer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"no-randomizer-found": "No randomizer found, add at <a href=\"/#/registry/randomizer/list\">randomizer registry</a>",
"add-randomizer-to-widget": "Add randomizer to widget"
}
30 changes: 0 additions & 30 deletions locales/en/ui/games/wheeloffortune.json

This file was deleted.

20 changes: 20 additions & 0 deletions locales/en/ui/registry/randomizer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"addRandomizer": "Add Randomizer",
"form": {
"name": "Name",
"command": "Command",
"permission": "Command permission",
"simple": "Simple",
"wheelOfFortune": "Wheel of Fortune",
"type": "Type",
"options": "Options",
"optionsAreEmpty": "Options are empty.",
"color": "Color",
"numOfDuplicates": "No. of duplicates",
"minimalSpacing": "Minimal spacing",
"groupUp": "Group Up",
"ungroup": "Ungroup",
"groupedWithOptionAbove": "Grouped with option above",
"generatedOptionsPreview": "Preview of generated options"
}
}
Loading

0 comments on commit 278b2bd

Please sign in to comment.