diff --git a/gatsby-browser.js b/gatsby-browser.js index db15527..4ffeff6 100644 --- a/gatsby-browser.js +++ b/gatsby-browser.js @@ -1,2 +1,2 @@ -import wrapWithProvider from "./wrap-with-provider" -export const wrapRootElement = wrapWithProvider \ No newline at end of file +import wrapWithProvider from './wrap-with-provider' +export const wrapRootElement = wrapWithProvider diff --git a/gatsby-config.js b/gatsby-config.js index 5cc3d76..6f82953 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,31 +1,31 @@ -const ipfsPrefix = process.argv.find(val => val === "--prefix-paths") -console.log("DEBUG >> IM HERE") +const ipfsPrefix = process.argv.find(val => val === '--prefix-paths') +console.log('DEBUG >> IM HERE') const ipfsConfig = [ - "gatsby-plugin-ipfs", - `gatsby-plugin-react-helmet`, + 'gatsby-plugin-ipfs', + 'gatsby-plugin-react-helmet', { - resolve: `gatsby-source-filesystem`, + resolve: 'gatsby-source-filesystem', options: { - start_url: "__GATSBY_IPFS_PATH_PREFIX__", - name: `images`, - path: `${__dirname}/src/images`, - }, + start_url: '__GATSBY_IPFS_PATH_PREFIX__', + name: 'images', + path: `${__dirname}/src/images` + } }, - `gatsby-transformer-sharp`, - `gatsby-plugin-sharp`, + 'gatsby-transformer-sharp', + 'gatsby-plugin-sharp', { - resolve: `gatsby-plugin-manifest`, + resolve: 'gatsby-plugin-manifest', options: { - name: `gatsby-starter-default`, - short_name: `starter`, - start_url: "__GATSBY_IPFS_PATH_PREFIX__", - background_color: `#663399`, - theme_color: `#663399`, - display: `minimal-ui`, - icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site. - }, - }, + name: 'gatsby-starter-default', + short_name: 'starter', + start_url: '__GATSBY_IPFS_PATH_PREFIX__', + background_color: '#663399', + theme_color: '#663399', + display: 'minimal-ui', + icon: 'src/images/gatsby-icon.png' // This path is relative to the root of the site. + } + } // this (optional) plugin enables Progressive Web App + Offline functionality // To learn more, visit: https://gatsby.dev/offline @@ -33,29 +33,29 @@ const ipfsConfig = [ ] const normalConfig = [ - `gatsby-plugin-react-helmet`, + 'gatsby-plugin-react-helmet', { - resolve: `gatsby-source-filesystem`, + resolve: 'gatsby-source-filesystem', options: { - start_url: "/", - name: `images`, - path: `${__dirname}/src/images`, - }, + start_url: '/', + name: 'images', + path: `${__dirname}/src/images` + } }, - `gatsby-transformer-sharp`, - `gatsby-plugin-sharp`, + 'gatsby-transformer-sharp', + 'gatsby-plugin-sharp', { - resolve: `gatsby-plugin-manifest`, + resolve: 'gatsby-plugin-manifest', options: { - name: `gatsby-starter-default`, - short_name: `starter`, - start_url: "/", - background_color: `#663399`, - theme_color: `#663399`, - display: `minimal-ui`, - // icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site. - }, - }, + name: 'gatsby-starter-default', + short_name: 'starter', + start_url: '/', + background_color: '#663399', + theme_color: '#663399', + display: 'minimal-ui' + // icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site. + } + } // this (optional) plugin enables Progressive Web App + Offline functionality // To learn more, visit: https://gatsby.dev/offline @@ -64,10 +64,10 @@ const normalConfig = [ module.exports = { siteMetadata: { - title: `Gatsby IPFS Adminlte Starter`, - description: `A gatsbyjs app with adminlte2 integration.`, - author: `@gatsbyjs`, + title: 'Gatsby IPFS Adminlte Starter', + description: 'A gatsbyjs app with adminlte2 integration.', + author: '@gatsbyjs' }, - pathPrefix: "__GATSBY_IPFS_PATH_PREFIX__", - plugins: ipfsPrefix ? ipfsConfig : normalConfig, + pathPrefix: '__GATSBY_IPFS_PATH_PREFIX__', + plugins: ipfsPrefix ? ipfsConfig : normalConfig } diff --git a/gatsby-node.js b/gatsby-node.js index 3a87b65..64137da 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -1,15 +1,15 @@ exports.onCreateWebpackConfig = ({ stage, actions, getConfig }) => { actions.setWebpackConfig({ node: { - fs: "empty", - }, + fs: 'empty' + } }) - //Ignore css order - if (stage === "build-javascript") { + // Ignore css order + if (stage === 'build-javascript') { const config = getConfig() const miniCssExtractPlugin = config.plugins.find( - plugin => plugin.constructor.name === "MiniCssExtractPlugin" + plugin => plugin.constructor.name === 'MiniCssExtractPlugin' ) if (miniCssExtractPlugin) { miniCssExtractPlugin.options.ignoreOrder = true @@ -19,9 +19,9 @@ exports.onCreateWebpackConfig = ({ stage, actions, getConfig }) => { } exports.createPages = async ({ actions }, themeOptions) => { - const basePath = "/" + const basePath = '/' actions.createPage({ path: basePath, - component: require.resolve("./src/pages/index.js"), + component: require.resolve('./src/pages/index.js') }) } diff --git a/gatsby-ssr.js b/gatsby-ssr.js index db15527..4ffeff6 100644 --- a/gatsby-ssr.js +++ b/gatsby-ssr.js @@ -1,2 +1,2 @@ -import wrapWithProvider from "./wrap-with-provider" -export const wrapRootElement = wrapWithProvider \ No newline at end of file +import wrapWithProvider from './wrap-with-provider' +export const wrapRootElement = wrapWithProvider diff --git a/package.json b/package.json index 42d9389..f153049 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "build:normal": "gatsby build", "develop": "gatsby develop", "format": "prettier --write \"**/*.{js,jsx,json,md}\"", + "lint": "standard --env mocha --fix", "start": "npm run develop", "serve": "gatsby serve", "clean": "gatsby clean", diff --git a/src/components/admin-lte/audit/index.js b/src/components/admin-lte/audit/index.js index 5cc4362..2148470 100644 --- a/src/components/admin-lte/audit/index.js +++ b/src/components/admin-lte/audit/index.js @@ -1,30 +1,30 @@ -import React from "react" +import React from 'react' -import { Content, Row, Col, Box } from "adminlte-2-react" -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" +import { Content, Row, Col, Box } from 'adminlte-2-react' +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' class Audit extends React.Component { - state = {} + // state = {} - render() { + render () { return ( - + - +

Audit

- +

Never trust, always verify.

Check the open source code here. Check and/or change the diff --git a/src/components/admin-lte/configure/index.js b/src/components/admin-lte/configure/index.js index 08f3b35..d1b5878 100644 --- a/src/components/admin-lte/configure/index.js +++ b/src/components/admin-lte/configure/index.js @@ -1,48 +1,48 @@ -import React from "react" -import PropTypes from "prop-types" -import { Content, Row, Col, Box, Inputs, Button } from "adminlte-2-react" -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" -import BchWallet from "minimal-slp-wallet" +import React from 'react' +import PropTypes from 'prop-types' +import { Content, Row, Col, Box, Inputs, Button } from 'adminlte-2-react' +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' +import BchWallet from 'minimal-slp-wallet' const { Text } = Inputs let _this class Configure extends React.Component { - constructor(props) { + constructor (props) { super(props) _this = this this.state = { - JWT: "", - errMsg: "", + JWT: '', + errMsg: '' } _this.BchWallet = BchWallet } - render() { + render () { return ( - + - +

Configure

- +

Be Careful

@@ -52,11 +52,11 @@ class Configure extends React.Component {

This is just a placeholder. This View will allow the user - to pick alternate back-end servers. The default will be{" "} + to pick alternate back-end servers. The default will be{' '} FullStack.cash @@ -67,37 +67,37 @@ class Configure extends React.Component { - + - +

JWT

- +