From 9a0ca4d1075f879b812cd8a1b55ab3a2c8e07c40 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 8 Oct 2020 23:58:30 +0200 Subject: Multiple configs handling rewritten to use envsubst --- .gitattributes | 2 +- ausbutler-single.sh | 10 ++- config.template/butler.json | 8 +++ config.template/db.json | 6 ++ config.template/goniec.json | 5 ++ config.template/logoh.json | 26 +++++++ config.template/send.lftp | 3 + config.template/translations.json | 124 ++++++++++++++++++++++++++++++++ configs/1n.env | Bin 0 -> 129 bytes configs/1s.env | Bin 0 -> 129 bytes configs/2ne.env | Bin 0 -> 132 bytes configs/2nw.env | Bin 0 -> 132 bytes configs/2se.env | Bin 0 -> 132 bytes configs/2sw.env | Bin 0 -> 132 bytes configs/_common.env | Bin 0 -> 245 bytes configs/b0.env | Bin 0 -> 129 bytes configs/b1.env | Bin 0 -> 135 bytes configs/b2.env | Bin 0 -> 135 bytes configs/config.1n/butler.json | 8 --- configs/config.1n/db.json | Bin 99 -> 0 bytes configs/config.1n/goniec.json | 1 - configs/config.1n/logoh.json | 1 - configs/config.1n/translations.json | 1 - configs/config.1s/butler.json | 8 --- configs/config.1s/db.json | Bin 99 -> 0 bytes configs/config.1s/goniec.json | 1 - configs/config.1s/logoh.json | 1 - configs/config.1s/translations.json | 1 - configs/config.2ne/butler.json | 8 --- configs/config.2ne/db.json | Bin 99 -> 0 bytes configs/config.2ne/goniec.json | 1 - configs/config.2ne/logoh.json | 1 - configs/config.2ne/translations.json | 1 - configs/config.2nw/butler.json | 8 --- configs/config.2nw/db.json | Bin 99 -> 0 bytes configs/config.2nw/goniec.json | 1 - configs/config.2nw/logoh.json | 1 - configs/config.2nw/translations.json | 1 - configs/config.2se/butler.json | 8 --- configs/config.2se/db.json | Bin 99 -> 0 bytes configs/config.2se/goniec.json | 1 - configs/config.2se/logoh.json | 1 - configs/config.2se/translations.json | 1 - configs/config.2sw/butler.json | 8 --- configs/config.2sw/db.json | Bin 99 -> 0 bytes configs/config.2sw/goniec.json | 1 - configs/config.2sw/logoh.json | 1 - configs/config.2sw/translations.json | 1 - configs/config.eklasa/butler.json | 8 --- configs/config.eklasa/db.json | Bin 99 -> 0 bytes configs/config.eklasa/goniec.json | 1 - configs/config.eklasa/logoh.json | 1 - configs/config.eklasa/translations.json | 1 - configs/eklasa.env | Bin 0 -> 136 bytes configs/goniec.json | 5 -- configs/logoh.json | 26 ------- configs/translations.json | 124 -------------------------------- 57 files changed, 182 insertions(+), 234 deletions(-) create mode 100644 config.template/butler.json create mode 100644 config.template/db.json create mode 100644 config.template/goniec.json create mode 100644 config.template/logoh.json create mode 100644 config.template/send.lftp create mode 100644 config.template/translations.json create mode 100644 configs/1n.env create mode 100644 configs/1s.env create mode 100644 configs/2ne.env create mode 100644 configs/2nw.env create mode 100644 configs/2se.env create mode 100644 configs/2sw.env create mode 100644 configs/_common.env create mode 100644 configs/b0.env create mode 100644 configs/b1.env create mode 100644 configs/b2.env delete mode 100644 configs/config.1n/butler.json delete mode 100644 configs/config.1n/db.json delete mode 120000 configs/config.1n/goniec.json delete mode 120000 configs/config.1n/logoh.json delete mode 120000 configs/config.1n/translations.json delete mode 100644 configs/config.1s/butler.json delete mode 100644 configs/config.1s/db.json delete mode 120000 configs/config.1s/goniec.json delete mode 120000 configs/config.1s/logoh.json delete mode 120000 configs/config.1s/translations.json delete mode 100644 configs/config.2ne/butler.json delete mode 100644 configs/config.2ne/db.json delete mode 120000 configs/config.2ne/goniec.json delete mode 120000 configs/config.2ne/logoh.json delete mode 120000 configs/config.2ne/translations.json delete mode 100644 configs/config.2nw/butler.json delete mode 100644 configs/config.2nw/db.json delete mode 120000 configs/config.2nw/goniec.json delete mode 120000 configs/config.2nw/logoh.json delete mode 120000 configs/config.2nw/translations.json delete mode 100644 configs/config.2se/butler.json delete mode 100644 configs/config.2se/db.json delete mode 120000 configs/config.2se/goniec.json delete mode 120000 configs/config.2se/logoh.json delete mode 120000 configs/config.2se/translations.json delete mode 100644 configs/config.2sw/butler.json delete mode 100644 configs/config.2sw/db.json delete mode 120000 configs/config.2sw/goniec.json delete mode 120000 configs/config.2sw/logoh.json delete mode 120000 configs/config.2sw/translations.json delete mode 100644 configs/config.eklasa/butler.json delete mode 100644 configs/config.eklasa/db.json delete mode 120000 configs/config.eklasa/goniec.json delete mode 120000 configs/config.eklasa/logoh.json delete mode 120000 configs/config.eklasa/translations.json create mode 100644 configs/eklasa.env delete mode 100644 configs/goniec.json delete mode 100644 configs/logoh.json delete mode 100644 configs/translations.json diff --git a/.gitattributes b/.gitattributes index 61ec02c..38871a4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -configs/*/db.json filter=git-crypt diff=git-crypt +configs/*.env filter=git-crypt diff=git-crypt diff --git a/ausbutler-single.sh b/ausbutler-single.sh index 322c9ab..2f95c68 100755 --- a/ausbutler-single.sh +++ b/ausbutler-single.sh @@ -5,7 +5,15 @@ cd "$(dirname "$0")" echo "Processing $TOURNAMENT..." -ln -sfn configs/config.$TOURNAMENT config +set -o allexport +source configs/_common.env +source configs/$TOURNAMENT.env +set +o allexport + +ls config.template | while read CONFIGFILE +do + envsubst < config.template/$CONFIGFILE > config/$CONFIGFILE +done python jfrteamy-ausbutler/butler.py calculate generate nowait echo "Done" 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. przec.", + "en": "opp. 
 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-
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 " + } +} diff --git a/configs/1n.env b/configs/1n.env new file mode 100644 index 0000000..76045d2 Binary files /dev/null and b/configs/1n.env differ diff --git a/configs/1s.env b/configs/1s.env new file mode 100644 index 0000000..2595e7d Binary files /dev/null and b/configs/1s.env differ diff --git a/configs/2ne.env b/configs/2ne.env new file mode 100644 index 0000000..d9d79ef Binary files /dev/null and b/configs/2ne.env differ diff --git a/configs/2nw.env b/configs/2nw.env new file mode 100644 index 0000000..1e131a4 Binary files /dev/null and b/configs/2nw.env differ diff --git a/configs/2se.env b/configs/2se.env new file mode 100644 index 0000000..99a68a8 Binary files /dev/null and b/configs/2se.env differ diff --git a/configs/2sw.env b/configs/2sw.env new file mode 100644 index 0000000..cb84deb Binary files /dev/null and b/configs/2sw.env differ diff --git a/configs/_common.env b/configs/_common.env new file mode 100644 index 0000000..7514a7b Binary files /dev/null and b/configs/_common.env differ diff --git a/configs/b0.env b/configs/b0.env new file mode 100644 index 0000000..ad0a478 Binary files /dev/null and b/configs/b0.env differ diff --git a/configs/b1.env b/configs/b1.env new file mode 100644 index 0000000..d8c7fe5 Binary files /dev/null and b/configs/b1.env differ diff --git a/configs/b2.env b/configs/b2.env new file mode 100644 index 0000000..a9cf823 Binary files /dev/null and b/configs/b2.env differ diff --git a/configs/config.1n/butler.json b/configs/config.1n/butler.json deleted file mode 100644 index 0f62f7a..0000000 --- a/configs/config.1n/butler.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "cutoff_point": 24, - "cutoff_rate": 0.25, - "opponent_factor": 0.5, - "only_current": 0, - "segments_in_table_limit": 10, - "output_path": "./output" -} diff --git a/configs/config.1n/db.json b/configs/config.1n/db.json deleted file mode 100644 index 616e6c4..0000000 Binary files a/configs/config.1n/db.json and /dev/null differ diff --git a/configs/config.1n/goniec.json b/configs/config.1n/goniec.json deleted file mode 120000 index 5954b9b..0000000 --- a/configs/config.1n/goniec.json +++ /dev/null @@ -1 +0,0 @@ -../goniec.json \ No newline at end of file diff --git a/configs/config.1n/logoh.json b/configs/config.1n/logoh.json deleted file mode 120000 index 7910e73..0000000 --- a/configs/config.1n/logoh.json +++ /dev/null @@ -1 +0,0 @@ -../logoh.json \ No newline at end of file diff --git a/configs/config.1n/translations.json b/configs/config.1n/translations.json deleted file mode 120000 index d53e316..0000000 --- a/configs/config.1n/translations.json +++ /dev/null @@ -1 +0,0 @@ -../translations.json \ No newline at end of file diff --git a/configs/config.1s/butler.json b/configs/config.1s/butler.json deleted file mode 100644 index 0f62f7a..0000000 --- a/configs/config.1s/butler.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "cutoff_point": 24, - "cutoff_rate": 0.25, - "opponent_factor": 0.5, - "only_current": 0, - "segments_in_table_limit": 10, - "output_path": "./output" -} diff --git a/configs/config.1s/db.json b/configs/config.1s/db.json deleted file mode 100644 index 616e6c4..0000000 Binary files a/configs/config.1s/db.json and /dev/null differ diff --git a/configs/config.1s/goniec.json b/configs/config.1s/goniec.json deleted file mode 120000 index 5954b9b..0000000 --- a/configs/config.1s/goniec.json +++ /dev/null @@ -1 +0,0 @@ -../goniec.json \ No newline at end of file diff --git a/configs/config.1s/logoh.json b/configs/config.1s/logoh.json deleted file mode 120000 index 7910e73..0000000 --- a/configs/config.1s/logoh.json +++ /dev/null @@ -1 +0,0 @@ -../logoh.json \ No newline at end of file diff --git a/configs/config.1s/translations.json b/configs/config.1s/translations.json deleted file mode 120000 index d53e316..0000000 --- a/configs/config.1s/translations.json +++ /dev/null @@ -1 +0,0 @@ -../translations.json \ No newline at end of file diff --git a/configs/config.2ne/butler.json b/configs/config.2ne/butler.json deleted file mode 100644 index 0f62f7a..0000000 --- a/configs/config.2ne/butler.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "cutoff_point": 24, - "cutoff_rate": 0.25, - "opponent_factor": 0.5, - "only_current": 0, - "segments_in_table_limit": 10, - "output_path": "./output" -} diff --git a/configs/config.2ne/db.json b/configs/config.2ne/db.json deleted file mode 100644 index 616e6c4..0000000 Binary files a/configs/config.2ne/db.json and /dev/null differ diff --git a/configs/config.2ne/goniec.json b/configs/config.2ne/goniec.json deleted file mode 120000 index 5954b9b..0000000 --- a/configs/config.2ne/goniec.json +++ /dev/null @@ -1 +0,0 @@ -../goniec.json \ No newline at end of file diff --git a/configs/config.2ne/logoh.json b/configs/config.2ne/logoh.json deleted file mode 120000 index 7910e73..0000000 --- a/configs/config.2ne/logoh.json +++ /dev/null @@ -1 +0,0 @@ -../logoh.json \ No newline at end of file diff --git a/configs/config.2ne/translations.json b/configs/config.2ne/translations.json deleted file mode 120000 index d53e316..0000000 --- a/configs/config.2ne/translations.json +++ /dev/null @@ -1 +0,0 @@ -../translations.json \ No newline at end of file diff --git a/configs/config.2nw/butler.json b/configs/config.2nw/butler.json deleted file mode 100644 index 0f62f7a..0000000 --- a/configs/config.2nw/butler.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "cutoff_point": 24, - "cutoff_rate": 0.25, - "opponent_factor": 0.5, - "only_current": 0, - "segments_in_table_limit": 10, - "output_path": "./output" -} diff --git a/configs/config.2nw/db.json b/configs/config.2nw/db.json deleted file mode 100644 index 616e6c4..0000000 Binary files a/configs/config.2nw/db.json and /dev/null differ diff --git a/configs/config.2nw/goniec.json b/configs/config.2nw/goniec.json deleted file mode 120000 index 5954b9b..0000000 --- a/configs/config.2nw/goniec.json +++ /dev/null @@ -1 +0,0 @@ -../goniec.json \ No newline at end of file diff --git a/configs/config.2nw/logoh.json b/configs/config.2nw/logoh.json deleted file mode 120000 index 7910e73..0000000 --- a/configs/config.2nw/logoh.json +++ /dev/null @@ -1 +0,0 @@ -../logoh.json \ No newline at end of file diff --git a/configs/config.2nw/translations.json b/configs/config.2nw/translations.json deleted file mode 120000 index d53e316..0000000 --- a/configs/config.2nw/translations.json +++ /dev/null @@ -1 +0,0 @@ -../translations.json \ No newline at end of file diff --git a/configs/config.2se/butler.json b/configs/config.2se/butler.json deleted file mode 100644 index 0f62f7a..0000000 --- a/configs/config.2se/butler.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "cutoff_point": 24, - "cutoff_rate": 0.25, - "opponent_factor": 0.5, - "only_current": 0, - "segments_in_table_limit": 10, - "output_path": "./output" -} diff --git a/configs/config.2se/db.json b/configs/config.2se/db.json deleted file mode 100644 index 616e6c4..0000000 Binary files a/configs/config.2se/db.json and /dev/null differ diff --git a/configs/config.2se/goniec.json b/configs/config.2se/goniec.json deleted file mode 120000 index 5954b9b..0000000 --- a/configs/config.2se/goniec.json +++ /dev/null @@ -1 +0,0 @@ -../goniec.json \ No newline at end of file diff --git a/configs/config.2se/logoh.json b/configs/config.2se/logoh.json deleted file mode 120000 index 7910e73..0000000 --- a/configs/config.2se/logoh.json +++ /dev/null @@ -1 +0,0 @@ -../logoh.json \ No newline at end of file diff --git a/configs/config.2se/translations.json b/configs/config.2se/translations.json deleted file mode 120000 index d53e316..0000000 --- a/configs/config.2se/translations.json +++ /dev/null @@ -1 +0,0 @@ -../translations.json \ No newline at end of file diff --git a/configs/config.2sw/butler.json b/configs/config.2sw/butler.json deleted file mode 100644 index 0f62f7a..0000000 --- a/configs/config.2sw/butler.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "cutoff_point": 24, - "cutoff_rate": 0.25, - "opponent_factor": 0.5, - "only_current": 0, - "segments_in_table_limit": 10, - "output_path": "./output" -} diff --git a/configs/config.2sw/db.json b/configs/config.2sw/db.json deleted file mode 100644 index 616e6c4..0000000 Binary files a/configs/config.2sw/db.json and /dev/null differ diff --git a/configs/config.2sw/goniec.json b/configs/config.2sw/goniec.json deleted file mode 120000 index 5954b9b..0000000 --- a/configs/config.2sw/goniec.json +++ /dev/null @@ -1 +0,0 @@ -../goniec.json \ No newline at end of file diff --git a/configs/config.2sw/logoh.json b/configs/config.2sw/logoh.json deleted file mode 120000 index 7910e73..0000000 --- a/configs/config.2sw/logoh.json +++ /dev/null @@ -1 +0,0 @@ -../logoh.json \ No newline at end of file diff --git a/configs/config.2sw/translations.json b/configs/config.2sw/translations.json deleted file mode 120000 index d53e316..0000000 --- a/configs/config.2sw/translations.json +++ /dev/null @@ -1 +0,0 @@ -../translations.json \ No newline at end of file diff --git a/configs/config.eklasa/butler.json b/configs/config.eklasa/butler.json deleted file mode 100644 index 0f62f7a..0000000 --- a/configs/config.eklasa/butler.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "cutoff_point": 24, - "cutoff_rate": 0.25, - "opponent_factor": 0.5, - "only_current": 0, - "segments_in_table_limit": 10, - "output_path": "./output" -} diff --git a/configs/config.eklasa/db.json b/configs/config.eklasa/db.json deleted file mode 100644 index 616e6c4..0000000 Binary files a/configs/config.eklasa/db.json and /dev/null differ diff --git a/configs/config.eklasa/goniec.json b/configs/config.eklasa/goniec.json deleted file mode 120000 index 5954b9b..0000000 --- a/configs/config.eklasa/goniec.json +++ /dev/null @@ -1 +0,0 @@ -../goniec.json \ No newline at end of file diff --git a/configs/config.eklasa/logoh.json b/configs/config.eklasa/logoh.json deleted file mode 120000 index 7910e73..0000000 --- a/configs/config.eklasa/logoh.json +++ /dev/null @@ -1 +0,0 @@ -../logoh.json \ No newline at end of file diff --git a/configs/config.eklasa/translations.json b/configs/config.eklasa/translations.json deleted file mode 120000 index d53e316..0000000 --- a/configs/config.eklasa/translations.json +++ /dev/null @@ -1 +0,0 @@ -../translations.json \ No newline at end of file diff --git a/configs/eklasa.env b/configs/eklasa.env new file mode 100644 index 0000000..b29bbb5 Binary files /dev/null and b/configs/eklasa.env differ diff --git a/configs/goniec.json b/configs/goniec.json deleted file mode 100644 index 3b9c1bd..0000000 --- a/configs/goniec.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "enabled": 0, - "host": "localhost", - "port": 8090 -} diff --git a/configs/logoh.json b/configs/logoh.json deleted file mode 100644 index 6420b3f..0000000 --- a/configs/logoh.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "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/configs/translations.json b/configs/translations.json deleted file mode 100644 index b4df4a3..0000000 --- a/configs/translations.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "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. przec.", - "en": "opp. 
 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-
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 " - } -} -- cgit v1.2.3