From eaf5f0c44d6c3bee0cb7815924e76989ed2673a6 Mon Sep 17 00:00:00 2001 From: Kichiyaki Date: Sat, 9 Jan 2021 11:02:02 +0100 Subject: [PATCH] - [CommandsPage] update translations - bump caniuse-liste --- src/features/CommandsPage/Command.js | 14 +++++--- src/features/CommandsPage/CommandsPage.js | 4 +-- src/features/CommandsPage/commands.en.js | 27 +++++++-------- src/features/CommandsPage/commands.pl.js | 35 ++++++++++---------- src/features/CommandsPage/translations.en.js | 1 + src/features/CommandsPage/translations.pl.js | 1 + yarn.lock | 6 ++-- 7 files changed, 49 insertions(+), 39 deletions(-) diff --git a/src/features/CommandsPage/Command.js b/src/features/CommandsPage/Command.js index 7b0975e..46c9046 100644 --- a/src/features/CommandsPage/Command.js +++ b/src/features/CommandsPage/Command.js @@ -3,17 +3,23 @@ import PropTypes from 'prop-types'; import { Card, CardHeader, CardContent, Typography } from '@material-ui/core'; -function Command({ command, commandSyntax, description, example }) { +function Command({ + command, + commandSyntax, + description, + example, + exampleText = '', +}) { return ( - + - + {description} {example && ( <>
- Example: {example} + {exampleText}: {example} )}
diff --git a/src/features/CommandsPage/CommandsPage.js b/src/features/CommandsPage/CommandsPage.js index e461136..fcadf8e 100644 --- a/src/features/CommandsPage/CommandsPage.js +++ b/src/features/CommandsPage/CommandsPage.js @@ -27,7 +27,7 @@ const CommandsPage = ({ location, pageContext }) => { {c.commandsForEveryone.map(cmd => ( - + ))} @@ -39,7 +39,7 @@ const CommandsPage = ({ location, pageContext }) => { {c.adminCommands.map(cmd => ( - + ))} diff --git a/src/features/CommandsPage/commands.en.js b/src/features/CommandsPage/commands.en.js index 0805dbe..e066001 100644 --- a/src/features/CommandsPage/commands.en.js +++ b/src/features/CommandsPage/commands.en.js @@ -8,42 +8,42 @@ const commandsForEveryone = [ { command: 'tw!tribe topoda', commandSyntax: - 'tw!tribe topoda [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]', + 'tw!tribe topoda [server] [page] [tribe id/tag, you can enter more than one]', description: 'This command generates a player list from selected tribes ordered by ODA.', - example: 'tw!tribe topoda pl143 1 975 170', + example: 'tw!tribe topoda en113 1 KEKW', }, { command: 'tw!tribe topodd', commandSyntax: - 'tw!tribe topodd [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]', + 'tw!tribe topodd [server] [page] [tribe id/tag, you can enter more than one]', description: 'This command generates a player list from selected tribes ordered by ODD.', - example: 'tw!tribe topodd pl143 1 975 170', + example: 'tw!tribe topodd en113 1 KEKW', }, { command: 'tw!tribe topods', commandSyntax: - 'tw!tribe topods [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]', + 'tw!tribe topods [server] [page] [tribe id/tag, you can enter more than one]', description: 'This command generates a player list from selected tribes ordered by ODS.', - example: 'tw!tribe topods pl143 1 975 170', + example: 'tw!tribe topods en113 1 KEKW', }, { command: 'tw!tribe topod', commandSyntax: - 'tw!tribe topod [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]', + 'tw!tribe topod [server] [page] [tribe id/tag, you can enter more than one]', description: 'This command generates a player list from selected tribes ordered by OD.', - example: 'tw!tribe topod pl143 1 975 170', + example: 'tw!tribe topod en113 1 KEKW', }, { command: 'tw!tribe toppoints', commandSyntax: - 'tw!tribe toppoints [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]', + 'tw!tribe toppoints [server] [page] [tribe id/tag, you can enter more than one]', description: 'This command generates a player list from selected tribes ordered by points.', - example: 'tw!tribe toppoints pl143 1 975 170', + example: 'tw!tribe toppoints en113 1 KEKW', }, ]; @@ -69,9 +69,10 @@ const adminCommands = [ }, { command: 'tw!observe', - commandSyntax: 'tw!observe [group ID from tw!groups] [server] [tribe id]', + commandSyntax: + 'tw!observe [group ID from tw!groups] [server] [tribe id/tribe tag]', description: 'This command adds a tribe to the observation group.', - example: 'tw!observe 1 pl143 975 170', + example: 'tw!observe 1 en113 KEKW', }, { command: 'tw!observations', @@ -85,7 +86,7 @@ const adminCommands = [ commandSyntax: 'tw!deleteobservation [group ID from tw!groups] [id from tw!observations]', description: 'This command removes a tribe from the observation group.', - example: 'tw!deleteobservation 1 pl143 975 170', + example: 'tw!deleteobservation 1 1', }, { command: 'tw!conqueredvillages', diff --git a/src/features/CommandsPage/commands.pl.js b/src/features/CommandsPage/commands.pl.js index 366f6b0..1cfce0e 100644 --- a/src/features/CommandsPage/commands.pl.js +++ b/src/features/CommandsPage/commands.pl.js @@ -6,44 +6,44 @@ const commandsForEveryone = [ example: 'tw!help', }, { - command: 'tw!tribe topatt', + command: 'tw!tribe topod', commandSyntax: - 'tw!tribe topatt [serwer] [strona] [id_plemienia1] [id_plemienia2] ... [id_plemienia n]', + 'tw!tribe topod [serwer] [strona] [id/skrót plemienia, można podać więcej niż 1]', description: 'Generuje listę graczy z wybranych plemion i sortuje po pokonanych w ataku.', - example: 'tw!tribe topatt pl143 1 975 170', + example: 'tw!tribe topod pl148 1 AWW! AWW!!', }, { - command: 'tw!tribe topdef', + command: 'tw!tribe topodd', commandSyntax: - 'tw!tribe topdef [serwer] [strona] [id_plemienia1] [id_plemienia2] ... [id_plemienia n]', + 'tw!tribe topodd [serwer] [strona] [id/skrót plemienia, można podać więcej niż 1]', description: 'Generuje listę graczy z wybranych plemion i sortuje po pokonanych w obronie.', - example: 'tw!tribe topdef pl143 1 975 170', + example: 'tw!tribe topodd pl148 1 AWW! AWW!!', }, { - command: 'tw!tribe topsupp', + command: 'tw!tribe topods', commandSyntax: - 'tw!tribe topsupp [serwer] [strona] [id_plemienia1] [id_plemienia2] ... [id_plemienia n]', + 'tw!tribe topods [serwer] [strona] [id/skrót plemienia, można podać więcej niż 1]', description: 'Generuje listę graczy z wybranych plemion i sortuje po pokonanych jako wspierający.', - example: 'tw!tribe topsupp pl143 1 975 170', + example: 'tw!tribe topods pl148 1 AWW! AWW!!', }, { - command: 'tw!tribe toptotal', + command: 'tw!tribe topod', commandSyntax: - 'tw!tribe toptotal [serwer] [strona] [id_plemienia1] [id_plemienia2] ... [id_plemienia n]', + 'tw!tribe topod [serwer] [strona] [id/skrót plemienia, można podać więcej niż 1]', description: 'Generuje listę graczy z wybranych plemion i sortuje po pokonanych ogólnie.', - example: 'tw!tribe toptotal pl143 1 975 170', + example: 'tw!tribe topod pl148 1 AWW! AWW!!', }, { command: 'tw!tribe toppoints', commandSyntax: - 'tw!tribe toppoints [serwer] [strona] [id_plemienia1] [id_plemienia2] ... [id_plemienia n]', + 'tw!tribe toppoints [serwer] [strona] [id/skrót plemienia, można podać więcej niż 1]', description: 'Generuje listę graczy z wybranych plemion i sortuje po punktach.', - example: 'tw!tribe toppoints pl143 1 975 170', + example: 'tw!tribe toppoints pl148 1 AWW! AWW!!', }, ]; @@ -69,9 +69,10 @@ const adminCommands = [ }, { command: 'tw!observe', - commandSyntax: 'tw!observe [ID grupy z tw!groups] [serwer] [id plemienia]', + commandSyntax: + 'tw!observe [ID grupy z tw!groups] [serwer] [id plemienia/skrót plemienia]', description: 'Dodaje plemię do grupy.', - example: 'tw!observe 1 pl143 975 170', + example: 'tw!observe 1 pl148 AWW!', }, { command: 'tw!observations', @@ -84,7 +85,7 @@ const adminCommands = [ commandSyntax: 'tw!deleteobservation [ID grupy z tw!groups] [id z tw!observations]', description: 'Usuwa plemię z grupy.', - example: 'tw!deleteobservation 1 pl143 975 170', + example: 'tw!deleteobservation 1 1', }, { command: 'tw!conqueredvillages', diff --git a/src/features/CommandsPage/translations.en.js b/src/features/CommandsPage/translations.en.js index 286aa7a..3c0c9ea 100644 --- a/src/features/CommandsPage/translations.en.js +++ b/src/features/CommandsPage/translations.en.js @@ -1,6 +1,7 @@ export default { title: 'Commands', description: 'List of commands offered by TWHelp Discord Bot with examples', + example: 'Example', commandsForEveryoneSection: { title: 'For everyone', }, diff --git a/src/features/CommandsPage/translations.pl.js b/src/features/CommandsPage/translations.pl.js index 6ad8070..ec8dc77 100644 --- a/src/features/CommandsPage/translations.pl.js +++ b/src/features/CommandsPage/translations.pl.js @@ -2,6 +2,7 @@ export default { title: 'Komendy', description: 'Lista komend oferowanych przez TWHelp Discord Bot z przykładami', + example: 'Przykład', commandsForEveryoneSection: { title: 'Dla wszystkich', }, diff --git a/yarn.lock b/yarn.lock index 2637cab..10340ce 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3567,9 +3567,9 @@ caniuse-api@^3.0.0: lodash.uniq "^4.5.0" caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001043, caniuse-lite@^1.0.30001087: - version "1.0.30001087" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001087.tgz#4a0bdc5998a114fcf8b7954e7ba6c2c29831c54a" - integrity sha512-KAQRGtt+eGCQBSp2iZTQibdCf9oe6cNTi5lmpsW38NnxP4WMYzfU6HCRmh4kJyh6LrTM9/uyElK4xcO93kafpg== + version "1.0.30001173" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001173.tgz" + integrity sha512-R3aqmjrICdGCTAnSXtNyvWYMK3YtV5jwudbq0T7nN9k4kmE4CBuwPqyJ+KBzepSTh0huivV2gLbSMEzTTmfeYw== caseless@~0.12.0: version "0.12.0"