update prettier config
This commit is contained in:
parent
970b8cf033
commit
06f247a5c7
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
"arrowParens": "avoid",
|
"arrowParens": "avoid",
|
||||||
"semi": true
|
"semi": true,
|
||||||
|
"singleQuote": true
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
import "@kichiyaki/roboto";
|
import '@kichiyaki/roboto';
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
const baseUrl = "tribalwarshelp.com";
|
const baseUrl = 'tribalwarshelp.com';
|
||||||
const siteUrl = "https://" + baseUrl;
|
const siteUrl = 'https://' + baseUrl;
|
||||||
const apiUrl = "https://api." + baseUrl;
|
const apiUrl = 'https://api.' + baseUrl;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
siteMetadata: {
|
siteMetadata: {
|
||||||
title: `TWHelp`,
|
title: `TWHelp`,
|
||||||
description: `Tools for the popular online game TribalWars.`,
|
description: `Tools for the popular online game TribalWars.`,
|
||||||
dcbotUrl: "https://dcbot." + baseUrl,
|
dcbotUrl: 'https://dcbot.' + baseUrl,
|
||||||
apiUrl,
|
apiUrl,
|
||||||
author: "Dawid Wysokiński",
|
author: 'Dawid Wysokiński',
|
||||||
contactUrl: "http://dawid-wysokinski.pl/#contact",
|
contactUrl: 'http://dawid-wysokinski.pl/#contact',
|
||||||
scriptsUrl: "https://github.com/tribalwarshelp/scripts",
|
scriptsUrl: 'https://github.com/tribalwarshelp/scripts',
|
||||||
siteUrl,
|
siteUrl,
|
||||||
baseUrl,
|
baseUrl,
|
||||||
},
|
},
|
||||||
|
@ -45,29 +45,29 @@ module.exports = {
|
||||||
},
|
},
|
||||||
`gatsby-plugin-sitemap`,
|
`gatsby-plugin-sitemap`,
|
||||||
{
|
{
|
||||||
resolve: "gatsby-plugin-robots-txt",
|
resolve: 'gatsby-plugin-robots-txt',
|
||||||
options: {
|
options: {
|
||||||
host: siteUrl,
|
host: siteUrl,
|
||||||
sitemap: siteUrl + "/sitemap.xml",
|
sitemap: siteUrl + '/sitemap.xml',
|
||||||
env: {
|
env: {
|
||||||
development: {
|
development: {
|
||||||
policy: [{ userAgent: "*", disallow: ["/"] }],
|
policy: [{ userAgent: '*', disallow: ['/'] }],
|
||||||
},
|
},
|
||||||
production: {
|
production: {
|
||||||
policy: [{ userAgent: "*", allow: "/" }],
|
policy: [{ userAgent: '*', allow: '/' }],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
resolve: "gatsby-source-graphql",
|
resolve: 'gatsby-source-graphql',
|
||||||
options: {
|
options: {
|
||||||
// This type will contain remote schema Query type
|
// This type will contain remote schema Query type
|
||||||
typeName: "twhelp",
|
typeName: 'twhelp',
|
||||||
// This is the field under which it's accessible
|
// This is the field under which it's accessible
|
||||||
fieldName: "twhelp",
|
fieldName: 'twhelp',
|
||||||
// URL to query from
|
// URL to query from
|
||||||
url: apiUrl + "/graphql",
|
url: apiUrl + '/graphql',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React from "react";
|
import React from 'react';
|
||||||
import { Link as GatsbyLink } from "gatsby";
|
import { Link as GatsbyLink } from 'gatsby';
|
||||||
import { Link as MUILink } from "@material-ui/core";
|
import { Link as MUILink } from '@material-ui/core';
|
||||||
|
|
||||||
function Link({ href, to, ...rest }) {
|
function Link({ href, to, ...rest }) {
|
||||||
if (to) {
|
if (to) {
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
* See: https://www.gatsbyjs.org/docs/use-static-query/
|
* See: https://www.gatsbyjs.org/docs/use-static-query/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React from "react";
|
import React from 'react';
|
||||||
import PropTypes from "prop-types";
|
import PropTypes from 'prop-types';
|
||||||
import { Helmet } from "react-helmet";
|
import { Helmet } from 'react-helmet';
|
||||||
import { useStaticQuery, graphql } from "gatsby";
|
import { useStaticQuery, graphql } from 'gatsby';
|
||||||
import seoBG from "@images/seo-bg.png";
|
import seoBG from '@images/seo-bg.png';
|
||||||
|
|
||||||
function SEO({ description, lang, meta, title, pathname }) {
|
function SEO({ description, lang, meta, title, pathname }) {
|
||||||
const { site } = useStaticQuery(
|
const { site } = useStaticQuery(
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { createMuiTheme, responsiveFontSizes } from "@material-ui/core/styles";
|
import { createMuiTheme, responsiveFontSizes } from '@material-ui/core/styles';
|
||||||
|
|
||||||
const theme = createMuiTheme({
|
const theme = createMuiTheme({
|
||||||
palette: {
|
palette: {
|
||||||
type: "dark",
|
type: 'dark',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import React from "react";
|
import React from 'react';
|
||||||
|
|
||||||
import { Typography, Box, Container } from "@material-ui/core";
|
import { Typography, Box, Container } from '@material-ui/core';
|
||||||
import { Link } from "gatsby-theme-material-ui";
|
import { Link } from 'gatsby-theme-material-ui';
|
||||||
import SEO from "../components/SEO";
|
import SEO from '../components/SEO';
|
||||||
|
|
||||||
const NotFoundPage = ({ location }) => (
|
const NotFoundPage = ({ location }) => (
|
||||||
<Box
|
<Box
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import React from "react";
|
import React from 'react';
|
||||||
import { useStaticQuery, graphql } from "gatsby";
|
import { useStaticQuery, graphql } from 'gatsby';
|
||||||
|
|
||||||
import { makeStyles } from "@material-ui/core/styles";
|
import { makeStyles } from '@material-ui/core/styles';
|
||||||
import { Typography, Button, Box, Container } from "@material-ui/core";
|
import { Typography, Button, Box, Container } from '@material-ui/core';
|
||||||
import SEO from "../components/SEO";
|
import SEO from '../components/SEO';
|
||||||
import Link from "../components/Link";
|
import Link from '../components/Link';
|
||||||
|
|
||||||
const LinkButton = ({ children, href, to }) => {
|
const LinkButton = ({ children, href, to }) => {
|
||||||
return (
|
return (
|
||||||
|
@ -19,16 +19,16 @@ const LinkButton = ({ children, href, to }) => {
|
||||||
const useStyles = makeStyles(theme => ({
|
const useStyles = makeStyles(theme => ({
|
||||||
nav: {
|
nav: {
|
||||||
marginBottom: theme.spacing(3),
|
marginBottom: theme.spacing(3),
|
||||||
display: "flex",
|
display: 'flex',
|
||||||
flexDirection: "row",
|
flexDirection: 'row',
|
||||||
flexWrap: "wrap",
|
flexWrap: 'wrap',
|
||||||
alignItems: "center",
|
alignItems: 'center',
|
||||||
justifyContent: "center",
|
justifyContent: 'center',
|
||||||
"& > *": {
|
'& > *': {
|
||||||
padding: theme.spacing(0.5),
|
padding: theme.spacing(0.5),
|
||||||
},
|
},
|
||||||
[theme.breakpoints.down("xs")]: {
|
[theme.breakpoints.down('xs')]: {
|
||||||
flexDirection: "column",
|
flexDirection: 'column',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
@ -79,7 +79,7 @@ const IndexPage = ({ location }) => {
|
||||||
<LinkButton href={siteMetadata.dcbotUrl}>Discord Bot</LinkButton>
|
<LinkButton href={siteMetadata.dcbotUrl}>Discord Bot</LinkButton>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<LinkButton to={"/supported-versions"}>
|
<LinkButton to={'/supported-versions'}>
|
||||||
Stat tracking website
|
Stat tracking website
|
||||||
</LinkButton>
|
</LinkButton>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React from "react";
|
import React from 'react';
|
||||||
import { useStaticQuery, graphql } from "gatsby";
|
import { useStaticQuery, graphql } from 'gatsby';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Box,
|
Box,
|
||||||
|
@ -8,9 +8,9 @@ import {
|
||||||
Grid,
|
Grid,
|
||||||
Container,
|
Container,
|
||||||
Typography,
|
Typography,
|
||||||
} from "@material-ui/core";
|
} from '@material-ui/core';
|
||||||
import Link from "../components/Link";
|
import Link from '../components/Link';
|
||||||
import SEO from "../components/SEO";
|
import SEO from '../components/SEO';
|
||||||
|
|
||||||
const buildURLToVersionPage = (baseUrl, code) => {
|
const buildURLToVersionPage = (baseUrl, code) => {
|
||||||
return `https://${code}.${baseUrl}`;
|
return `https://${code}.${baseUrl}`;
|
||||||
|
|
Reference in New Issue