move theme.js to src/gatsby-theme-material-ui-top-layout | add new command showennobledbarbs
This commit is contained in:
parent
5dbd77336c
commit
9a3bbde7f0
|
@ -27,8 +27,8 @@ module.exports = {
|
|||
name: `Tribal Wars Bot`,
|
||||
short_name: `twdcbot`,
|
||||
start_url: `/`,
|
||||
background_color: `#330033`,
|
||||
theme_color: `#330033`,
|
||||
background_color: `#303032`,
|
||||
theme_color: `#303032`,
|
||||
display: `minimal-ui`,
|
||||
icon: `src/images/icon.svg`, // This path is relative to the root of the site.
|
||||
},
|
||||
|
|
|
@ -41,7 +41,7 @@ http {
|
|||
}
|
||||
|
||||
# Javascript and CSS files
|
||||
location ~* \.(?:css|js)$ {
|
||||
location ~* \.(?:css|js|woff2)$ {
|
||||
try_files $uri =404;
|
||||
expires 1y;
|
||||
access_log off;
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
import React from "react";
|
||||
import React, { Fragment } from "react";
|
||||
import PropTypes from "prop-types";
|
||||
import { useStaticQuery, graphql } from "gatsby";
|
||||
|
||||
import { ThemeProvider, makeStyles } from "@material-ui/core/styles";
|
||||
import { makeStyles } from "@material-ui/core/styles";
|
||||
import { CssBaseline } from "@material-ui/core";
|
||||
import Header from "./Header";
|
||||
import Footer from "./Footer";
|
||||
import theme from "./theme";
|
||||
|
||||
const useStyles = makeStyles(theme => ({
|
||||
main: {
|
||||
|
@ -45,7 +44,7 @@ const Layout = ({
|
|||
);
|
||||
|
||||
return (
|
||||
<ThemeProvider theme={theme}>
|
||||
<Fragment>
|
||||
{showHeader && (
|
||||
<Header
|
||||
twhelpUrl={site.siteMetadata.twhelpUrl}
|
||||
|
@ -61,7 +60,7 @@ const Layout = ({
|
|||
</main>
|
||||
{showFooter && <Footer title={site.siteMetadata.title} lang={lang} />}
|
||||
<CssBaseline />
|
||||
</ThemeProvider>
|
||||
</Fragment>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ const commandsForAll = [
|
|||
commandSyntax:
|
||||
"tw!tribe topatt [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
|
||||
description:
|
||||
"This command generates player list with the most ODA from selected tribes.",
|
||||
"This command generates player list from selected tribes ordered by ODA.",
|
||||
example: "tw!tribe topatt pl143 1 975 170",
|
||||
},
|
||||
{
|
||||
|
@ -18,7 +18,7 @@ const commandsForAll = [
|
|||
commandSyntax:
|
||||
"tw!tribe topdef [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
|
||||
description:
|
||||
"This command generates player list with the most ODD from selected tribes.",
|
||||
"This command generates player list from selected tribes ordered by ODD.",
|
||||
example: "tw!tribe topdef pl143 1 975 170",
|
||||
},
|
||||
{
|
||||
|
@ -26,7 +26,7 @@ const commandsForAll = [
|
|||
commandSyntax:
|
||||
"tw!tribe topsupp [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
|
||||
description:
|
||||
"This command generates player list with the most ODS from selected tribes.",
|
||||
"This command generates player list from selected tribes ordered by ODS.",
|
||||
example: "tw!tribe topsupp pl143 1 975 170",
|
||||
},
|
||||
{
|
||||
|
@ -34,7 +34,7 @@ const commandsForAll = [
|
|||
commandSyntax:
|
||||
"tw!tribe toptotal [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
|
||||
description:
|
||||
"This command generates player list with the most OD from selected tribes.",
|
||||
"This command generates player list from selected tribes ordered by OD.",
|
||||
example: "tw!tribe toptotal pl143 1 975 170",
|
||||
},
|
||||
{
|
||||
|
@ -112,6 +112,13 @@ const adminCommands = [
|
|||
description: "This command disable notifications about lost villages.",
|
||||
example: "tw!unobservelostvillages 1",
|
||||
},
|
||||
{
|
||||
command: " tw!showennobledbarbs",
|
||||
commandSyntax: " tw!showennobledbarbs [group ID from tw!groups]",
|
||||
description:
|
||||
"This command enables/disables notifications about barbarian villages ennoblements.",
|
||||
example: "tw!showennobledbarbs 1",
|
||||
},
|
||||
];
|
||||
|
||||
export default {
|
||||
|
|
|
@ -111,6 +111,13 @@ const adminCommands = [
|
|||
description: "Wyłącza powiadomienia o straconych wioskach w danej grupie.",
|
||||
example: "tw!unobservelostvillages 1",
|
||||
},
|
||||
{
|
||||
command: " tw!showennobledbarbs",
|
||||
commandSyntax: " tw!showennobledbarbs [group ID from tw!groups]",
|
||||
description:
|
||||
"Włącza/wyłącza informacje o podbitych wioskach barbarzyńskich.",
|
||||
example: "tw!showennobledbarbs 1",
|
||||
},
|
||||
];
|
||||
|
||||
export default {
|
||||
|
|
|
@ -5,7 +5,7 @@ export default {
|
|||
header: {
|
||||
title: "Observe your tribe ennoblements!",
|
||||
description:
|
||||
"This bot notifies you about conquered/lost village by a tribe near real-time.",
|
||||
"This bot notifies you about conquered/lost village near real-time.",
|
||||
inviteBot: "Invite bot to your server",
|
||||
commands: "Commands",
|
||||
},
|
||||
|
|
|
@ -8,7 +8,7 @@ const theme = createMuiTheme({
|
|||
MuiCssBaseline: {
|
||||
"@global": {
|
||||
body: {
|
||||
backgroundColor: "#330033",
|
||||
backgroundColor: "#000",
|
||||
backgroundImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23404' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23505'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E")`,
|
||||
},
|
||||
},
|
Reference in New Issue
Block a user