1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

Merge pull request #307 from oceanprotocol/feature/updates

package updates
This commit is contained in:
Matthias Kretschmann 2019-08-19 13:35:58 +02:00 committed by GitHub
commit fc2eb3e7de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 35 additions and 34 deletions

2
external/dev-ocean vendored

@ -1 +1 @@
Subproject commit b5b2bea3e92380113911ed4051bba6e1375c212c Subproject commit 1a82c6964075aa6358643cc902f971e64da32b72

View File

@ -25,55 +25,55 @@
"@oceanprotocol/art": "^2.2.0", "@oceanprotocol/art": "^2.2.0",
"axios": "^0.19.0", "axios": "^0.19.0",
"classnames": "^2.2.6", "classnames": "^2.2.6",
"gatsby": "^2.13.23", "gatsby": "^2.13.67",
"gatsby-image": "^2.2.6", "gatsby-image": "^2.2.8",
"gatsby-plugin-catch-links": "^2.1.2", "gatsby-plugin-catch-links": "^2.1.3",
"gatsby-plugin-google-analytics": "^2.1.4", "gatsby-plugin-google-analytics": "^2.1.7",
"gatsby-plugin-manifest": "^2.2.3", "gatsby-plugin-manifest": "^2.2.5",
"gatsby-plugin-offline": "^2.2.4", "gatsby-plugin-offline": "^2.2.6",
"gatsby-plugin-react-helmet": "^3.1.2", "gatsby-plugin-react-helmet": "^3.1.3",
"gatsby-plugin-sass": "^2.1.3", "gatsby-plugin-sass": "^2.1.8",
"gatsby-plugin-sharp": "^2.2.7", "gatsby-plugin-sharp": "^2.2.12",
"gatsby-plugin-sitemap": "^2.2.3", "gatsby-plugin-sitemap": "^2.2.6",
"gatsby-plugin-svgr": "^2.0.2", "gatsby-plugin-svgr": "^2.0.2",
"gatsby-remark-autolink-headers": "^2.1.3", "gatsby-remark-autolink-headers": "^2.1.3",
"gatsby-remark-code-titles": "^1.1.0", "gatsby-remark-code-titles": "^1.1.0",
"gatsby-remark-component": "^1.1.3", "gatsby-remark-component": "^1.1.3",
"gatsby-remark-copy-linked-files": "^2.1.3", "gatsby-remark-copy-linked-files": "^2.1.6",
"gatsby-remark-embed-video": "^1.7.1", "gatsby-remark-embed-video": "^1.7.1",
"gatsby-remark-github": "^2.0.0", "gatsby-remark-github": "^2.0.0",
"gatsby-remark-images": "^3.1.6", "gatsby-remark-images": "^3.1.12",
"gatsby-remark-responsive-iframe": "^2.2.4", "gatsby-remark-responsive-iframe": "^2.2.4",
"gatsby-remark-smartypants": "^2.1.2", "gatsby-remark-smartypants": "^2.1.2",
"gatsby-remark-vscode": "^1.0.6", "gatsby-remark-vscode": "^1.1.2",
"gatsby-source-filesystem": "^2.1.5", "gatsby-source-filesystem": "^2.1.9",
"gatsby-source-graphql": "^2.1.2", "gatsby-source-graphql": "^2.1.5",
"gatsby-transformer-remark": "^2.6.6", "gatsby-transformer-remark": "^2.6.14",
"gatsby-transformer-sharp": "^2.2.3", "gatsby-transformer-sharp": "^2.2.6",
"gatsby-transformer-xml": "^2.1.3", "gatsby-transformer-xml": "^2.1.3",
"gatsby-transformer-yaml": "^2.2.3", "gatsby-transformer-yaml": "^2.2.4",
"giphy-js-sdk-core": "^1.0.6", "giphy-js-sdk-core": "^1.0.6",
"intersection-observer": "^0.7.0", "intersection-observer": "^0.7.0",
"react": "^16.8.6", "react": "^16.9.0",
"react-dom": "^16.8.6", "react-dom": "^16.9.0",
"react-helmet": "^5.2.1", "react-helmet": "^5.2.1",
"react-scrollspy": "^3.4.0", "react-scrollspy": "^3.4.0",
"rehype-react": "^4.0.1", "rehype-react": "^4.0.1",
"remark": "^11.0.0", "remark": "^11.0.1",
"remark-github-plugin": "^1.3.1", "remark-github-plugin": "^1.3.1",
"remark-react": "^6.0.0", "remark-react": "^6.0.0",
"slugify": "^1.3.4", "slugify": "^1.3.4",
"smoothscroll-polyfill": "^0.4.4", "smoothscroll-polyfill": "^0.4.4",
"swagger-client": "^3.9.0" "swagger-client": "^3.9.3"
}, },
"devDependencies": { "devDependencies": {
"@svgr/webpack": "^4.3.2", "@svgr/webpack": "^4.3.2",
"dotenv": "^8.0.0", "dotenv": "^8.1.0",
"eslint": "^6.0.1", "eslint": "^6.2.0",
"eslint-config-oceanprotocol": "^1.3.0", "eslint-config-oceanprotocol": "^1.4.0",
"eslint-config-prettier": "^6.0.0", "eslint-config-prettier": "^6.0.0",
"eslint-plugin-prettier": "^3.1.0", "eslint-plugin-prettier": "^3.1.0",
"markdownlint-cli": "^0.17.0", "markdownlint-cli": "^0.18.0",
"node-sass": "^4.12.0", "node-sass": "^4.12.0",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"prettier": "^1.18.2", "prettier": "^1.18.2",

View File

@ -130,6 +130,7 @@ class Numbers extends PureComponent {
} }
url = 'https://oceanprotocol-github.now.sh' url = 'https://oceanprotocol-github.now.sh'
signal = axios.CancelToken.source() signal = axios.CancelToken.source()
componentDidMount() { componentDidMount() {
@ -224,7 +225,7 @@ const Repository = ({ name, links, readme }) => (
// just iterate over all repos until we have a name match, // just iterate over all repos until we have a name match,
// then return that repo, and then filter out all empty nodes // then return that repo, and then filter out all empty nodes
let repoFilteredArray = repositoriesGitHub const repoFilteredArray = repositoriesGitHub
.map(({ node }) => { .map(({ node }) => {
if (node.name === name) return node if (node.name === name) return node
}) })
@ -249,7 +250,7 @@ const Repository = ({ name, links, readme }) => (
// enhance passed links array with what's in repositories.yml, // enhance passed links array with what's in repositories.yml,
// iterating over all repos until we have a name match // iterating over all repos until we have a name match
let linksFilteredArray = [] const linksFilteredArray = []
repositoriesYaml.map(({ node }) => { repositoriesYaml.map(({ node }) => {
node.items.forEach(item => { node.items.forEach(item => {

View File

@ -134,8 +134,8 @@ const SEO = ({ title, description, slug, article, location }) => (
title = title || siteMeta.siteTitle title = title || siteMeta.siteTitle
description = description || siteMeta.siteDescription description = description || siteMeta.siteDescription
let url = siteMeta.siteUrl || siteMeta.siteUrl + slug const url = siteMeta.siteUrl || siteMeta.siteUrl + slug
let image = siteMeta.siteUrl + shareImage const image = siteMeta.siteUrl + shareImage
let schema = createSchemaOrg( let schema = createSchemaOrg(
title, title,

View File

@ -29,7 +29,7 @@ export default class NotFoundPage extends Component {
async getRandomGif() { async getRandomGif() {
try { try {
let response = await giphyClient.random('gifs', { tag }) const response = await giphyClient.random('gifs', { tag })
const gif = response.data.images.original.mp4 const gif = response.data.images.original.mp4
this.setState({ gif }) this.setState({ gif })
} catch (error) { } catch (error) {

View File

@ -7,7 +7,7 @@ import { cleanPathKey } from './utils'
import stylesSidebar from '../../components/Sidebar.module.scss' import stylesSidebar from '../../components/Sidebar.module.scss'
const Toc = ({ data }) => { const Toc = ({ data }) => {
let Ids = [] const Ids = []
const items = Object.keys(data.paths).map(key => { const items = Object.keys(data.paths).map(key => {
Ids.push(slugify(cleanPathKey(key))) Ids.push(slugify(cleanPathKey(key)))

View File

@ -32,7 +32,7 @@ export default class Toc extends PureComponent {
}) })
items = this.props.data.map(({ name, children }) => { items = this.props.data.map(({ name, children }) => {
let subIds = [] const subIds = []
const parentName = name const parentName = name
subIds.push( subIds.push(