add screenshot of en version, change description of showinternals command

This commit is contained in:
Dawid Wysokiński 2020-08-08 14:17:44 +02:00
parent 18c5f18166
commit b0308b89bd
4 changed files with 30 additions and 18 deletions

View File

@ -6,36 +6,36 @@ const commandsForAll = [
example: "tw!help",
},
{
command: "tw!tribe topatt",
command: "tw!tribe topoda",
commandSyntax:
"tw!tribe topatt [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
"tw!tribe topoda [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
description:
"This command generates player list from selected tribes ordered by ODA.",
example: "tw!tribe topatt pl143 1 975 170",
example: "tw!tribe topoda pl143 1 975 170",
},
{
command: "tw!tribe topdef",
command: "tw!tribe topodd",
commandSyntax:
"tw!tribe topdef [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
"tw!tribe topodd [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
description:
"This command generates player list from selected tribes ordered by ODD.",
example: "tw!tribe topdef pl143 1 975 170",
example: "tw!tribe topodd pl143 1 975 170",
},
{
command: "tw!tribe topsupp",
command: "tw!tribe topods",
commandSyntax:
"tw!tribe topsupp [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
"tw!tribe topods [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
description:
"This command generates player list from selected tribes ordered by ODS.",
example: "tw!tribe topsupp pl143 1 975 170",
example: "tw!tribe topods pl143 1 975 170",
},
{
command: "tw!tribe toptotal",
command: "tw!tribe topod",
commandSyntax:
"tw!tribe toptotal [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
"tw!tribe topod [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
description:
"This command generates player list from selected tribes ordered by OD.",
example: "tw!tribe toptotal pl143 1 975 170",
example: "tw!tribe topod pl143 1 975 170",
},
{
command: "tw!tribe toppoints",
@ -129,7 +129,7 @@ const adminCommands = [
command: " tw!showinternals",
commandSyntax: " tw!showinternals [group ID from tw!groups]",
description:
"This command enables/disables notifications about self-conquers between tribes in one group.",
"This command enables/disables notifications about in-group/in-tribe conquering.",
example: "tw!showinternals 1",
},
];

View File

@ -43,16 +43,28 @@ const IndexPage = ({ location, pageContext }) => {
botInviteUrl
}
}
ss: file(relativePath: { eq: "ss.png" }) {
childImageSharp {
fluid(maxWidth: 593, quality: 100) {
...GatsbyImageSharpFluid
allSs: allFile(filter: { absolutePath: { regex: "/screenshots/" } }) {
edges {
node {
relativePath
childImageSharp {
id
fluid(maxWidth: 593, quality: 100) {
...GatsbyImageSharpFluid_withWebp
}
}
}
}
}
}
`);
const t = translations[pageContext.langKey];
console.log(data.allSs);
const ss = data.allSs.edges.find(edge => {
console.log(edge);
if (edge.node.relativePath.includes(pageContext.langKey)) return edge;
return null;
});
return (
<Layout lang={pageContext.langKey} pathname={location.pathname}>
@ -95,7 +107,7 @@ const IndexPage = ({ location, pageContext }) => {
<Grid item xs={12} md={5}>
<Image
className={classes.image}
fluid={data.ss.childImageSharp.fluid}
fluid={ss.node.childImageSharp.fluid}
alt={data.site.siteMetadata.title}
/>
</Grid>

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View File

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB