From 9503229ae0b6749d41aaa9c14a0a720eed829561 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 24 Mar 2020 09:04:30 +0100 Subject: [PATCH] package updates --- content/tutorials/token-bridge.md | 1 - gatsby-node.js | 14 ++--- package.json | 52 +++++++++---------- src/components/DocHeader.jsx | 4 +- src/components/Footer.jsx | 4 +- src/components/Header.jsx | 2 +- src/components/HeaderHome.jsx | 2 +- src/components/QuickRun.jsx | 2 +- .../Repositories/RepositoryList.jsx | 2 +- src/components/Repositories/index.jsx | 2 +- src/components/Repository/Links.jsx | 2 +- src/components/Repository/Numbers.jsx | 4 +- src/components/Repository/Readme.jsx | 5 +- src/components/Repository/index.jsx | 8 +-- src/components/Scroll.jsx | 2 +- src/components/Seo.jsx | 2 +- src/components/Sidebar.jsx | 2 +- src/pages/404.jsx | 2 +- src/templates/Swagger/Paths.jsx | 6 +-- src/templates/Swagger/Toc.jsx | 2 +- src/templates/Swagger/utils.js | 2 +- src/templates/Typedoc/Entities.jsx | 4 +- src/templates/Typedoc/utils.js | 4 +- 23 files changed, 62 insertions(+), 68 deletions(-) diff --git a/content/tutorials/token-bridge.md b/content/tutorials/token-bridge.md index 70b756b7..7a395b9c 100644 --- a/content/tutorials/token-bridge.md +++ b/content/tutorials/token-bridge.md @@ -13,7 +13,6 @@ It's based on the [TokenBridge by POA Network](https://medium.com/poa-network/in ## Using the Token Bridge - ### Ethereum Mainnet → Ocean Pacific If you want to transfer OCEAN out of the Ethereum Mainnet, then first you need an Ethereum account with some OCEAN in the Ethereum Mainnet, and be connected to Ethereum Mainnet in MetaMask. If you want to get some OCEAN in the Ethereum Mainnet, then see the page about [Ocean Tokens](/concepts/ocean-tokens/). diff --git a/gatsby-node.js b/gatsby-node.js index cc31d127..1bf907c4 100755 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -114,7 +114,7 @@ exports.createPages = ({ graphql, actions }) => { } } ` - ).then(async result => { + ).then(async (result) => { if (result.errors) { console.log(result.errors) reject(result.errors) @@ -126,7 +126,7 @@ exports.createPages = ({ graphql, actions }) => { // // Create Doc pages // - posts.forEach(post => { + posts.forEach((post) => { createPage({ path: `${post.node.fields.slug}`, component: docTemplate, @@ -145,14 +145,14 @@ exports.createPages = ({ graphql, actions }) => { postsDevOcean // only grab files with required frontmatter defined .filter( - post => + (post) => post.node.frontmatter && post.node.frontmatter.slug && post.node.frontmatter.title && post.node.frontmatter.description && post.node.frontmatter.section ) - .forEach(post => { + .forEach((post) => { createPage({ path: `${post.node.fields.slug}`, component: docTemplate, @@ -255,7 +255,7 @@ const createTypeDocPage = async (createPage, name, downloadUrl) => { // Create pages from swagger json files // // https://github.com/swagger-api/swagger-js -const fetchSwaggerSpec = async name => { +const fetchSwaggerSpec = async (name) => { try { const client = await Swagger( `https://${name}.commons.oceanprotocol.com/spec` @@ -275,11 +275,11 @@ const fetchSwaggerSpec = async name => { } } -const createSwaggerPages = async createPage => { +const createSwaggerPages = async (createPage) => { const swaggerComponents = ['aquarius', 'brizo'] const apiSwaggerTemplate = path.resolve('./src/templates/Swagger/index.jsx') - const getSlug = name => { + const getSlug = (name) => { const slug = `/references/${name}/` return slug } diff --git a/package.json b/package.json index 42cb982a..f16aaa66 100644 --- a/package.json +++ b/package.json @@ -25,38 +25,38 @@ "@oceanprotocol/art": "^2.2.0", "axios": "^0.19.2", "classnames": "^2.2.6", - "gatsby": "^2.19.43", - "gatsby-image": "^2.2.43", - "gatsby-plugin-catch-links": "^2.1.27", - "gatsby-plugin-google-analytics": "^2.1.37", - "gatsby-plugin-manifest": "^2.2.47", - "gatsby-plugin-offline": "^3.0.40", - "gatsby-plugin-react-helmet": "^3.1.23", - "gatsby-plugin-sass": "^2.1.30", - "gatsby-plugin-sharp": "^2.4.12", - "gatsby-plugin-sitemap": "^2.2.29", + "gatsby": "^2.20.3", + "gatsby-image": "^2.3.1", + "gatsby-plugin-catch-links": "^2.2.1", + "gatsby-plugin-google-analytics": "^2.2.1", + "gatsby-plugin-manifest": "^2.3.2", + "gatsby-plugin-offline": "^3.1.1", + "gatsby-plugin-react-helmet": "^3.2.1", + "gatsby-plugin-sass": "^2.2.1", + "gatsby-plugin-sharp": "^2.5.2", + "gatsby-plugin-sitemap": "^2.3.1", "gatsby-plugin-svgr": "^2.0.2", "gatsby-plugin-webpack-size": "^1.0.0", - "gatsby-remark-autolink-headers": "^2.1.25", + "gatsby-remark-autolink-headers": "^2.2.1", "gatsby-remark-code-titles": "^1.1.0", "gatsby-remark-component": "^1.1.3", - "gatsby-remark-copy-linked-files": "^2.1.39", + "gatsby-remark-copy-linked-files": "^2.2.1", "gatsby-remark-embed-video": "^2.0.1", "gatsby-remark-github": "^2.0.0", - "gatsby-remark-images": "^3.1.49", - "gatsby-remark-responsive-iframe": "^2.2.33", - "gatsby-remark-smartypants": "^2.1.22", + "gatsby-remark-images": "^3.2.1", + "gatsby-remark-responsive-iframe": "^2.3.1", + "gatsby-remark-smartypants": "^2.2.1", "gatsby-remark-vscode": "^2.0.3", - "gatsby-source-filesystem": "^2.1.55", - "gatsby-source-graphql": "^2.1.34", - "gatsby-transformer-remark": "^2.6.58", - "gatsby-transformer-sharp": "^2.3.18", - "gatsby-transformer-xml": "^2.1.25", - "gatsby-transformer-yaml": "^2.2.26", + "gatsby-source-filesystem": "^2.2.2", + "gatsby-source-graphql": "^2.2.1", + "gatsby-transformer-remark": "^2.7.1", + "gatsby-transformer-sharp": "^2.4.2", + "gatsby-transformer-xml": "^2.2.1", + "gatsby-transformer-yaml": "^2.3.1", "giphy-js-sdk-core": "^1.0.6", "intersection-observer": "^0.7.0", - "react": "^16.13.0", - "react-dom": "^16.13.0", + "react": "^16.13.1", + "react-dom": "^16.13.1", "react-helmet": "^5.2.1", "react-scrollspy": "^3.4.2", "rehype-react": "^5.0.0", @@ -69,16 +69,16 @@ "swagger-client": "^3.10.0" }, "devDependencies": { - "@svgr/webpack": "^5.2.0", + "@svgr/webpack": "^5.3.0", "dotenv": "^8.2.0", "eslint": "^6.8.0", "eslint-config-oceanprotocol": "^1.5.0", - "eslint-config-prettier": "^6.10.0", + "eslint-config-prettier": "^6.10.1", "eslint-plugin-prettier": "^3.1.2", "markdownlint-cli": "^0.22.0", "node-sass": "^4.13.1", "npm-run-all": "^4.1.5", - "prettier": "^1.19.1", + "prettier": "^2.0.2", "prettier-stylelint": "^0.4.2", "stylelint": "^13.2.1", "stylelint-config-bigchaindb": "^1.2.2", diff --git a/src/components/DocHeader.jsx b/src/components/DocHeader.jsx index 4a7aab49..82789c1d 100644 --- a/src/components/DocHeader.jsx +++ b/src/components/DocHeader.jsx @@ -7,9 +7,7 @@ import styles from './DocHeader.module.scss' const DocHeader = ({ title, description, prepend }) => { const descriptionHtml = description && - remark() - .use(remarkReact) - .processSync(description).contents + remark().use(remarkReact).processSync(description).contents return (
diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index 7a086998..c8a236a2 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -24,7 +24,7 @@ const query = graphql` const FooterSocial = ({ social }) => (