summaryrefslogtreecommitdiff
path: root/config.template
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2020-10-08 23:58:30 +0200
committeremkael <emkael@tlen.pl>2020-10-08 23:58:30 +0200
commit9a0ca4d1075f879b812cd8a1b55ab3a2c8e07c40 (patch)
treec3d885017b3e35aea1583c7ac2d5b6f4095f924c /config.template
parent22d81d669191f669edd609d94859a8e480fa5b00 (diff)
Multiple configs handling rewritten to use envsubst
Diffstat (limited to 'config.template')
-rw-r--r--config.template/butler.json8
-rw-r--r--config.template/db.json6
-rw-r--r--config.template/goniec.json5
-rw-r--r--config.template/logoh.json26
-rw-r--r--config.template/send.lftp3
-rw-r--r--config.template/translations.json124
6 files changed, 172 insertions, 0 deletions
diff --git a/config.template/butler.json b/config.template/butler.json
new file mode 100644
index 0000000..915c535
--- /dev/null
+++ b/config.template/butler.json
@@ -0,0 +1,8 @@
+{
+ "cutoff_point": 24,
+ "cutoff_rate": 0.25,
+ "opponent_factor": 0.5,
+ "only_current": 0,
+ "segments_in_table_limit": 10,
+ "output_path": "${LIGA_AUSBUTLER_OUTPUT_PATH}"
+}
diff --git a/config.template/db.json b/config.template/db.json
new file mode 100644
index 0000000..845e368
--- /dev/null
+++ b/config.template/db.json
@@ -0,0 +1,6 @@
+{
+ "user": "${LIGA_AUSBUTLER_DB_USER}",
+ "pass": "${LIGA_AUSBUTLER_DB_PASS}",
+ "db": "${LIGA_AUSBUTLER_DB_NAME}",
+ "host": "${LIGA_AUSBUTLER_DB_HOST}"
+}
diff --git a/config.template/goniec.json b/config.template/goniec.json
new file mode 100644
index 0000000..3b9c1bd
--- /dev/null
+++ b/config.template/goniec.json
@@ -0,0 +1,5 @@
+{
+ "enabled": 0,
+ "host": "localhost",
+ "port": 8090
+}
diff --git a/config.template/logoh.json b/config.template/logoh.json
new file mode 100644
index 0000000..6420b3f
--- /dev/null
+++ b/config.template/logoh.json
@@ -0,0 +1,26 @@
+{
+ "PAGE_TITLE": 0,
+ "INDIVIDUAL_CLASSIFICATION": 80,
+ "WITHOUT_PLAYERS_WITHOUT_CHANCES": 91,
+ "PERCENT_NOT_LISTED": 92,
+ "PLAYERS_WITHOUT_CHANCES": 90,
+ "PERCENT": 88,
+ "HEADER_PLACE": 65,
+ "HEADER_TEAM": 52,
+ "HEADER_IMPBRD": 44,
+ "HEADER_BOARDS": 50,
+ "HEADER_PREV_ROUNDS": 81,
+ "FOOTER_GENERATED": 11,
+ "FOOTER_OPTIMIZED": 15,
+ "FOOTER_AT": 5,
+ "ROUND": 18,
+ "SEGMENT": 8,
+ "HEADER_TABLE": 39,
+ "HEADER_IMPS": 14,
+ "HEADER_BOARD_NO": 64,
+ "FOOTER_ANALYSIS": 13,
+ "TABLE_CLOSED_NS": 101,
+ "TABLE_OPEN_NS": 99,
+ "TABLE_CLOSED_EW": 102,
+ "TABLE_OPEN_EW": 100
+}
diff --git a/config.template/send.lftp b/config.template/send.lftp
new file mode 100644
index 0000000..5c422f7
--- /dev/null
+++ b/config.template/send.lftp
@@ -0,0 +1,3 @@
+open -u ${LIGA_AUSBUTLER_FTP_USER} -p ${LIGA_AUSBUTLER_FTP_PASS} ${LIGA_AUSBUTLER_FTP_HOST}
+cd ${LIGA_AUSBUTLER_FTP_PATH}
+mput ${LIGA_AUSBUTLER_OUTPUT_PATH}/*
diff --git a/config.template/translations.json b/config.template/translations.json
new file mode 100644
index 0000000..b4df4a3
--- /dev/null
+++ b/config.template/translations.json
@@ -0,0 +1,124 @@
+{
+ "BUTLER": {
+ "pl": "BUTLER ZNORMALIZOWANY",
+ "en": "NORMALIZED BUTLER"
+ },
+ "BUTLER_ROUND": {
+ "pl": "BUTLER ZNORMALIZOWANY, RUNDA#",
+ "en": "NORMALIZED BUTLER, ROUND#"
+ },
+ "NORMALIZED_CLASSIFICATION": {
+ "pl": "INDYWIDUALNA KLASYFIKACJA BUTLERA ZNORMALIZOWANEGO",
+ "en": "INDIVIDUAL NORMALIZED BUTLER CLASSIFICATION"
+ },
+ "HEADER_OPPS": {
+ "pl": "śr.&nbsp;przec.",
+ "en": "opp.&nbsp;<br />&nbsp;ave."
+ },
+ "HEADER_NORMALIZED": {
+ "pl": "znorm.",
+ "en": "norm."
+ },
+ "INFO_NORMALIZATION_PREFIX" : {
+ "pl": "Butler znormalizowany w każdym segmencie wyliczany jest przez dodanie ",
+ "en": "Normalized butler for each segment is calculated by adding "
+ },
+ "INFO_NORMALIZATION_SUFFIX" : {
+ "pl": "% średniego nieznormalizowanego wyniku na rozdanie przeciwników do własnego nieznormalizowanego wyniku pary na rozdanie.",
+ "en": "% of opponent's average non-normalized score per board to pair's own non-normalized score per board."
+ },
+ "INFO_CUTOFF_PREFIX": {
+ "pl": "Powyżej ",
+ "en": "Above "
+ },
+ "INFO_CUTOFF": {
+ "pl": " IMP na segment, zalicza się jedynie ",
+ "en": " IMPs per segment, only "
+ },
+ "INFO_CUTOFF_SUFFIX": {
+ "pl": "% wyniku.",
+ "en": "% of the score counts."
+ },
+ "INFO_NOT_ONLY_CURRENT": {
+ "pl": "Wszystkie segmenty są brane pod uwagę przy wyliczaniu średniego wyniku przeciwników, wyniki ulegają więc zmianie z każdym rozegranym segmentem.",
+ "en": "All played segments are used each time to calculate opponent's average, so normalized scores may change after new segments are played."
+ },
+ "INFO_ONLY_CURRENT": {
+ "pl": "Jedynie dotychczas rozegrane segmenty są brane pod uwagę przy wyliczaniu średniego wyniku przeciwników, znormalizowane wartości dla początkowych rund mogą zatem nie być tak istotne.",
+ "en": "Only already played segments are used to calculate opponent's average, so normalized score for the first rounds may not be as significant."
+ },
+ "FOOTER_ANALYSIS":
+ {
+ "pl": "Analiza rozdań programem DeepFinesse",
+ "en": "Board analysis by DeepFinesse"
+ },
+ "FOOTER_AT":
+ {
+ "pl": " o ",
+ "en": " at "
+ },
+ "FOOTER_GENERATED": {
+ "pl": ", strona wygenerowana ",
+ "en": ", page generated on "
+ },
+ "FOOTER_OPTIMIZED" : {
+ "pl": ", optymalizowana dla rozdzielczości 1024x768.",
+ "en": ", optimized for 1024x768 resolution."
+ },
+ "HEADER_BOARD_NO": {
+ "pl": "Rzd#",
+ "en": "brd#"
+ },
+ "HEADER_BOARDS": {
+ "pl": "roz-<br>dania",
+ "en": "boards"
+ },
+ "HEADER_IMPBRD": {
+ "pl": "imp/rzd",
+ "en": "imp/brd"
+ },
+ "HEADER_IMPS": {
+ "pl": "impy",
+ "en": "imps"
+ },
+ "HEADER_PLACE": {
+ "pl": "miejsce",
+ "en": "place"
+ },
+ "HEADER_PREV_ROUNDS": {
+ "pl": "Poprzednia runda:",
+ "en": "Previous rounds"
+ },
+ "HEADER_TABLE": {
+ "pl": "stół",
+ "en": "table"
+ },
+ "HEADER_TEAM": {
+ "pl": "team",
+ "en": "team"
+ },
+ "PERCENT": {
+ "pl": "% rozdań",
+ "en": "% of boards"
+ },
+ "ROUND": {
+ "pl": "RUNDA ",
+ "en": "ROUND "
+ },
+ "SEGMENT": {
+ "pl": " SEGMENT ",
+ "en": " SEGMENT "
+ },
+ "WITHOUT_PLAYERS_WITHOUT_CHANCES": {
+ "pl": "bez zawodników, którzy nie mają szans na rozegranie ",
+ "en": "players without chances to play at least "
+ },
+ "PERCENT_NOT_LISTED": {
+ "pl": "% rozdań",
+ "en": "% of boards"
+ },
+ "PLAYERS_WITHOUT_CHANCES": {
+ "pl": "zawodnicy, którzy nie mają szans na rozegranie ",
+ "en": "players without chances to play at least "
+ }
+}