Skip to content

Commit

Permalink
Restyled by prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Oct 30, 2023
1 parent b3c9861 commit ab2e683
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 58 deletions.
94 changes: 47 additions & 47 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,67 +1,67 @@
const config = {
siteMetadata : {
title : 'Redash',
description : 'Redash Website & Knowledge Base',
siteUrl : 'https://redash.io/',
siteMetadata: {
title: 'Redash',
description: 'Redash Website & Knowledge Base',
siteUrl: 'https://redash.io/',
},
pathPrefix : '/',
plugins : [
pathPrefix: '/',
plugins: [
{
resolve : 'gatsby-source-filesystem',
options : {
path : `${__dirname}/src/pages`,
name : 'pages',
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/src/pages`,
name: 'pages',
},
},
{
resolve : 'gatsby-source-filesystem',
options : {
path : `${__dirname}/src/scss`,
name : 'scss',
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/src/scss`,
name: 'scss',
},
},
{
resolve : `gatsby-source-filesystem`,
options : {
path : `${__dirname}/src/data/`,
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/data/`,
},
},
{
resolve : 'gatsby-transformer-remark',
options : {
plugins : [
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
{
resolve : 'gatsby-remark-video',
options : {
width : '100%',
height : 'auto',
preload : 'auto',
muted : true,
autoplay : true,
playsinline : true,
controls : false,
loop : true,
resolve: 'gatsby-remark-video',
options: {
width: '100%',
height: 'auto',
preload: 'auto',
muted: true,
autoplay: true,
playsinline: true,
controls: false,
loop: true,
},
},
{
resolve : 'gatsby-remark-external-links',
options : {
target : '_blank',
rel : 'nofollow noopener noreferrer',
resolve: 'gatsby-remark-external-links',
options: {
target: '_blank',
rel: 'nofollow noopener noreferrer',
},
},
{
resolve : 'gatsby-remark-images',
options : {
maxWidth : 750,
linkImagesToOriginal : false,
wrapperStyle : 'margin-bottom: 1.0725rem;',
resolve: 'gatsby-remark-images',
options: {
maxWidth: 750,
linkImagesToOriginal: false,
wrapperStyle: 'margin-bottom: 1.0725rem;',
},
},
{
resolve : 'gatsby-remark-responsive-iframe',
options : {
wrapperStyle : 'margin-bottom: 1.0725rem',
resolve: 'gatsby-remark-responsive-iframe',
options: {
wrapperStyle: 'margin-bottom: 1.0725rem',
},
},
'gatsby-remark-prismjs',
Expand All @@ -71,11 +71,11 @@ const config = {
},
},
{
resolve : 'gatsby-plugin-netlify',
options : {
mergeSecurityHeaders : false,
mergeLinkHeaders : true,
mergeCachingHeaders : true,
resolve: 'gatsby-plugin-netlify',
options: {
mergeSecurityHeaders: false,
mergeLinkHeaders: true,
mergeCachingHeaders: true,
},
},
'gatsby-transformer-yaml',
Expand Down
6 changes: 3 additions & 3 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Footer = ({
>
<h3 className="footer__title">{node.name}</h3>
<ul className="footer__list">
{node.links.map(link => (
{node.links.map((link) => (
<li className="footer__list-item" key={link.name}>
<Link
data-track
Expand Down Expand Up @@ -58,7 +58,7 @@ const Footer = ({
</footer>
)

export default props => (
export default (props) => (
<StaticQuery
query={graphql`
{
Expand All @@ -75,6 +75,6 @@ export default props => (
}
}
`}
render={data => <Footer data={data} {...props} />}
render={(data) => <Footer data={data} {...props} />}
/>
)
2 changes: 1 addition & 1 deletion src/components/SearchResults.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const SearchResults = ({ hits }) => (
{hits.length > 0 && (
<div className="hits">
<ul className="topics__list list-unstyled">
{hits.map(result => (
{hits.map((result) => (
<li className="topics__list__item" key={result.objectID}>
<a href={result.url} className="topics__list__link">
<h4
Expand Down
12 changes: 6 additions & 6 deletions src/pages/contact/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { navigateTo } from 'gatsby-link'

function encode(data) {
return Object.keys(data)
.map(key => encodeURIComponent(key) + '=' + encodeURIComponent(data[key]))
.map((key) => encodeURIComponent(key) + '=' + encodeURIComponent(data[key]))
.join('&')
}

Expand All @@ -31,7 +31,7 @@ class ContactForm extends React.Component {
}),
})
.then(() => navigateTo(form.getAttribute('action')))
.catch(error => alert(error))
.catch((error) => alert(error))
}

render() {
Expand All @@ -42,7 +42,7 @@ class ContactForm extends React.Component {
action="/contact/thank-you/"
data-netlify="true"
data-netlify-honeypot="bot-field"
onSubmit={e => this.handleSubmit(e)}
onSubmit={(e) => this.handleSubmit(e)}
>
{/* The `form-name` hidden field is required to support form submissions without JavaScript */}
<input type="hidden" name="form-name" value="contact" />
Expand All @@ -56,7 +56,7 @@ class ContactForm extends React.Component {
id="name"
placeholder="Your name"
required
onChange={e => this.handleChange(e)}
onChange={(e) => this.handleChange(e)}
/>
</div>

Expand All @@ -69,7 +69,7 @@ class ContactForm extends React.Component {
id="email"
placeholder="[email protected]"
required
onChange={e => this.handleChange(e)}
onChange={(e) => this.handleChange(e)}
/>
</div>

Expand All @@ -83,7 +83,7 @@ class ContactForm extends React.Component {
rows="3"
width="100%"
required
onChange={e => this.handleChange(e)}
onChange={(e) => this.handleChange(e)}
/>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/templates/DataSourcePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export default function DataSourcePageTemplate({
}

export const pageQuery = graphql`
query($path: String!) {
query ($path: String!) {
markdownRemark(frontmatter: { path: { eq: $path } }) {
html
frontmatter {
Expand Down

0 comments on commit ab2e683

Please sign in to comment.