mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-22 09:13:35 +01:00
parent
3df20ac633
commit
232c9358b9
@ -24,5 +24,10 @@
|
|||||||
"semi": ["error", "never"],
|
"semi": ["error", "never"],
|
||||||
"object-curly-spacing": ["error", "always"],
|
"object-curly-spacing": ["error", "always"],
|
||||||
"prettier/prettier": "error"
|
"prettier/prettier": "error"
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"react": {
|
||||||
|
"version": "16"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
42
package.json
42
package.json
@ -33,31 +33,31 @@
|
|||||||
"dms2dec": "^1.1.0",
|
"dms2dec": "^1.1.0",
|
||||||
"fast-exif": "^1.0.1",
|
"fast-exif": "^1.0.1",
|
||||||
"fraction.js": "^4.0.11",
|
"fraction.js": "^4.0.11",
|
||||||
"gatsby": "^2.0.67",
|
"gatsby": "^2.0.80",
|
||||||
"gatsby-image": "^2.0.25",
|
"gatsby-image": "^2.0.25",
|
||||||
"gatsby-plugin-catch-links": "^2.0.9",
|
"gatsby-plugin-catch-links": "^2.0.9",
|
||||||
"gatsby-plugin-favicon": "^3.1.4",
|
"gatsby-plugin-favicon": "^3.1.5",
|
||||||
"gatsby-plugin-feed": "^2.0.11",
|
"gatsby-plugin-feed": "^2.0.11",
|
||||||
"gatsby-plugin-lunr": "^1.2.0",
|
"gatsby-plugin-lunr": "^1.3.0",
|
||||||
"gatsby-plugin-matomo": "^0.6.0",
|
"gatsby-plugin-matomo": "^0.6.0",
|
||||||
"gatsby-plugin-meta-redirect": "^1.1.1",
|
"gatsby-plugin-meta-redirect": "^1.1.1",
|
||||||
"gatsby-plugin-offline": "^2.0.19",
|
"gatsby-plugin-offline": "^2.0.20",
|
||||||
"gatsby-plugin-react-helmet": "^3.0.4",
|
"gatsby-plugin-react-helmet": "^3.0.5",
|
||||||
"gatsby-plugin-sass": "^2.0.7",
|
"gatsby-plugin-sass": "^2.0.7",
|
||||||
"gatsby-plugin-sharp": "^2.0.15",
|
"gatsby-plugin-sharp": "^2.0.17",
|
||||||
"gatsby-plugin-sitemap": "^2.0.3",
|
"gatsby-plugin-sitemap": "^2.0.4",
|
||||||
"gatsby-plugin-svgr": "^2.0.1",
|
"gatsby-plugin-svgr": "^2.0.1",
|
||||||
"gatsby-plugin-webpack-size": "^0.0.3",
|
"gatsby-plugin-webpack-size": "^0.0.3",
|
||||||
"gatsby-redirect-from": "^0.1.1",
|
"gatsby-redirect-from": "^0.1.1",
|
||||||
"gatsby-remark-autolink-headers": "^2.0.12",
|
"gatsby-remark-autolink-headers": "^2.0.12",
|
||||||
"gatsby-remark-copy-linked-files": "^2.0.7",
|
"gatsby-remark-copy-linked-files": "^2.0.8",
|
||||||
"gatsby-remark-highlights": "^1.3.4",
|
"gatsby-remark-highlights": "^1.3.4",
|
||||||
"gatsby-remark-images": "^3.0.1",
|
"gatsby-remark-images": "^3.0.1",
|
||||||
"gatsby-remark-smartypants": "^2.0.7",
|
"gatsby-remark-smartypants": "^2.0.7",
|
||||||
"gatsby-source-filesystem": "^2.0.12",
|
"gatsby-source-filesystem": "^2.0.12",
|
||||||
"gatsby-source-graphql": "^2.0.7",
|
"gatsby-source-graphql": "^2.0.8",
|
||||||
"gatsby-transformer-remark": "^2.1.15",
|
"gatsby-transformer-remark": "^2.1.18",
|
||||||
"gatsby-transformer-sharp": "^2.1.9",
|
"gatsby-transformer-sharp": "^2.1.10",
|
||||||
"graphql": "^0.13.2",
|
"graphql": "^0.13.2",
|
||||||
"intersection-observer": "^0.5.1",
|
"intersection-observer": "^0.5.1",
|
||||||
"load-script": "^1.0.0",
|
"load-script": "^1.0.0",
|
||||||
@ -65,33 +65,33 @@
|
|||||||
"nord": "^0.2.1",
|
"nord": "^0.2.1",
|
||||||
"pigeon-maps": "^0.11.10",
|
"pigeon-maps": "^0.11.10",
|
||||||
"pigeon-marker": "^0.3.4",
|
"pigeon-marker": "^0.3.4",
|
||||||
"react": "^16.6.3",
|
"react": "^16.7.0",
|
||||||
"react-blockies": "^1.4.0",
|
"react-blockies": "^1.4.0",
|
||||||
"react-clipboard.js": "^2.0.2",
|
"react-clipboard.js": "^2.0.2",
|
||||||
"react-dom": "^16.6.3",
|
"react-dom": "^16.7.0",
|
||||||
"react-helmet": "^5.2.0",
|
"react-helmet": "^5.2.0",
|
||||||
"react-modal": "^3.7.1",
|
"react-modal": "^3.8.1",
|
||||||
"react-pose": "^4.0.4",
|
"react-pose": "^4.0.4",
|
||||||
"react-qr-svg": "^2.1.0",
|
"react-qr-svg": "^2.1.0",
|
||||||
"react-time": "^4.3.0",
|
"react-time": "^4.3.0",
|
||||||
"react-transition-group": "^2.5.1",
|
"react-transition-group": "^2.5.2",
|
||||||
"remark": "^10.0.1",
|
"remark": "^10.0.1",
|
||||||
"remark-react": "^5.0.0",
|
"remark-react": "^5.0.1",
|
||||||
"slugify": "^1.3.4",
|
"slugify": "^1.3.4",
|
||||||
"web3": "^1.0.0-beta.37"
|
"web3": "^1.0.0-beta.37"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/node": "^7.2.2",
|
"@babel/node": "^7.2.2",
|
||||||
"@babel/preset-env": "^7.2.0",
|
"@babel/preset-env": "^7.2.3",
|
||||||
"@svgr/webpack": "^4.1.0",
|
"@svgr/webpack": "^4.1.0",
|
||||||
"babel-eslint": "^10.0.1",
|
"babel-eslint": "^10.0.1",
|
||||||
"eslint": "^5.10.0",
|
"eslint": "^5.11.1",
|
||||||
"eslint-config-prettier": "^3.3.0",
|
"eslint-config-prettier": "^3.3.0",
|
||||||
"eslint-loader": "^2.1.1",
|
"eslint-loader": "^2.1.1",
|
||||||
"eslint-plugin-graphql": "^3.0.1",
|
"eslint-plugin-graphql": "^3.0.1",
|
||||||
"eslint-plugin-jsx-a11y": "^6.1.2",
|
"eslint-plugin-jsx-a11y": "^6.1.2",
|
||||||
"eslint-plugin-prettier": "^3.0.0",
|
"eslint-plugin-prettier": "^3.0.1",
|
||||||
"eslint-plugin-react": "^7.11.1",
|
"eslint-plugin-react": "^7.12.0",
|
||||||
"fs-extra": "^7.0.1",
|
"fs-extra": "^7.0.1",
|
||||||
"markdownlint-cli": "^0.13.0",
|
"markdownlint-cli": "^0.13.0",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
@ -101,7 +101,7 @@
|
|||||||
"stylelint": "^9.9.0",
|
"stylelint": "^9.9.0",
|
||||||
"stylelint-config-css-modules": "^1.3.0",
|
"stylelint-config-css-modules": "^1.3.0",
|
||||||
"stylelint-config-standard": "^18.2.0",
|
"stylelint-config-standard": "^18.2.0",
|
||||||
"stylelint-scss": "^3.4.1",
|
"stylelint-scss": "^3.4.4",
|
||||||
"why-did-you-update": "^1.0.6"
|
"why-did-you-update": "^1.0.6"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
@ -16,6 +16,12 @@ const ActionContent = ({ title, text, textLink }) => (
|
|||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ActionContent.propTypes = {
|
||||||
|
title: PropTypes.string,
|
||||||
|
text: PropTypes.string,
|
||||||
|
textLink: PropTypes.string
|
||||||
|
}
|
||||||
|
|
||||||
const ActionTwitter = ({ url, slug }) => (
|
const ActionTwitter = ({ url, slug }) => (
|
||||||
<a
|
<a
|
||||||
className={styles.action}
|
className={styles.action}
|
||||||
|
@ -1,8 +1,13 @@
|
|||||||
import React, { PureComponent } from 'react'
|
import React, { PureComponent } from 'react'
|
||||||
|
import PropTypes from 'prop-types'
|
||||||
import Input from '../atoms/Input'
|
import Input from '../atoms/Input'
|
||||||
import styles from './SearchInput.module.scss'
|
import styles from './SearchInput.module.scss'
|
||||||
|
|
||||||
export default class SearchInput extends PureComponent {
|
export default class SearchInput extends PureComponent {
|
||||||
|
static propTypes = {
|
||||||
|
onToggle: PropTypes.func
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
@ -18,7 +18,8 @@ export default class Conversion extends PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate(prevProps) {
|
componentDidUpdate(prevProps) {
|
||||||
const { amount } = this.state
|
const { amount } = this.props
|
||||||
|
|
||||||
if (amount !== prevProps.amount) {
|
if (amount !== prevProps.amount) {
|
||||||
this.getFiatResponse()
|
this.getFiatResponse()
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ Page.propTypes = {
|
|||||||
children: PropTypes.any.isRequired,
|
children: PropTypes.any.isRequired,
|
||||||
section: PropTypes.string,
|
section: PropTypes.string,
|
||||||
location: PropTypes.object,
|
location: PropTypes.object,
|
||||||
page: PropTypes.object
|
post: PropTypes.object
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Page
|
export default Page
|
||||||
|
Loading…
Reference in New Issue
Block a user