mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
commit
760e26e81e
@ -3,8 +3,6 @@ language: node_js
|
||||
node_js:
|
||||
- '11'
|
||||
|
||||
# will run `npm install` automatically here
|
||||
|
||||
# Deploying uses awscli and it uses Python.
|
||||
# Xenial on Travis comes with Python 2 & 3 installed but 2 is default.
|
||||
# Ensure pip3 is installed and upgraded.
|
||||
@ -14,6 +12,7 @@ before_install:
|
||||
- sudo -H pip3 install --upgrade pip
|
||||
|
||||
script:
|
||||
# will run `npm ci` automatically here
|
||||
- npm test
|
||||
- 'if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then npm run build; fi'
|
||||
|
||||
@ -26,6 +25,6 @@ notifications:
|
||||
email: false
|
||||
|
||||
cache:
|
||||
npm: true
|
||||
directories:
|
||||
- node_modules
|
||||
- public
|
||||
|
@ -81,6 +81,6 @@ Our team members travel the world to present about Ocean Protocol and meet with
|
||||
|
||||
We also often host and co-organize meetups all around the globe. Check the different meetup groups to find a group in your city and attend our meetup:
|
||||
|
||||
- [Data Economy](https://www.meetup.com/de-DE/pro/data-economy) - Estimates show that a $2-5 Trillion Data Economy could be created if organizations and people would have the tools to guarantee control, privacy, security, compliance and pricing of data. Our target is bringing together curious minds with a background in Data Science, Blockchain, Artificial Intelligence, Robotics, Business Innovation and Blockchain. We started this initiative to build a community of enthusiasts around Data Economy including the following core topic areas: (1) Data Exchanges & Marketplaces, (2) Data Security, Privacy, Ethics, (3) Decentralised Systems & Blockchain, (4) Artificial Intelligence & Machine Learning, (5) Data Curation & Interoperability, and (6) New Business Models and Tangible Use Cases.
|
||||
- [Data Economy](https://www.meetup.com/de-DE/pro/data-economy) - Estimates show that a \$2-5 Trillion Data Economy could be created if organizations and people would have the tools to guarantee control, privacy, security, compliance and pricing of data. Our target is bringing together curious minds with a background in Data Science, Blockchain, Artificial Intelligence, Robotics, Business Innovation and Blockchain. We started this initiative to build a community of enthusiasts around Data Economy including the following core topic areas: (1) Data Exchanges & Marketplaces, (2) Data Security, Privacy, Ethics, (3) Decentralised Systems & Blockchain, (4) Artificial Intelligence & Machine Learning, (5) Data Curation & Interoperability, and (6) New Business Models and Tangible Use Cases.
|
||||
|
||||
- [Token Engineering](https://www.meetup.com/pro/tokenengineering/) - Our mission is to see token ecosystem design become a new engineering discipline. This implies a body of theory, practice, tools and a sense of responsibility. We aim to do this collectively as a community in a decentralized, permissionless, open-source fashion that all can contribute to and all can use.
|
||||
|
@ -76,8 +76,7 @@ module.exports = {
|
||||
quality: 80,
|
||||
withWebp: true,
|
||||
linkImagesToOriginal: true,
|
||||
showCaptions: true,
|
||||
sizeByPixelDensity: true
|
||||
showCaptions: true
|
||||
}
|
||||
},
|
||||
{
|
||||
|
46
package.json
46
package.json
@ -26,39 +26,38 @@
|
||||
"@oceanprotocol/art": "^2.2.0",
|
||||
"axios": "^0.19.0",
|
||||
"classnames": "^2.2.6",
|
||||
"gatsby": "^2.3.27",
|
||||
"gatsby-image": "^2.0.40",
|
||||
"gatsby-plugin-catch-links": "^2.0.13",
|
||||
"gatsby-plugin-google-analytics": "^2.0.18",
|
||||
"gatsby-plugin-manifest": "^2.0.29",
|
||||
"gatsby-plugin-offline": "^2.0.25",
|
||||
"gatsby": "^2.8.5",
|
||||
"gatsby-image": "^2.1.2",
|
||||
"gatsby-plugin-catch-links": "^2.0.15",
|
||||
"gatsby-plugin-google-analytics": "^2.0.20",
|
||||
"gatsby-plugin-manifest": "^2.1.1",
|
||||
"gatsby-plugin-offline": "^2.1.1",
|
||||
"gatsby-plugin-react-helmet": "^3.0.12",
|
||||
"gatsby-plugin-sass": "^2.0.11",
|
||||
"gatsby-plugin-sharp": "^2.0.35",
|
||||
"gatsby-plugin-sitemap": "^2.0.12",
|
||||
"gatsby-plugin-sharp": "^2.1.3",
|
||||
"gatsby-plugin-sitemap": "^2.1.0",
|
||||
"gatsby-plugin-svgr": "^2.0.2",
|
||||
"gatsby-remark-autolink-headers": "^2.0.16",
|
||||
"gatsby-remark-component": "^1.1.3",
|
||||
"gatsby-remark-copy-linked-files": "^2.0.12",
|
||||
"gatsby-remark-copy-linked-files": "^2.0.13",
|
||||
"gatsby-remark-embed-video": "^1.7.1",
|
||||
"gatsby-remark-github": "^2.0.0",
|
||||
"gatsby-remark-images": "^3.0.11",
|
||||
"gatsby-remark-prismjs": "^3.2.8",
|
||||
"gatsby-remark-images": "^3.0.14",
|
||||
"gatsby-remark-prismjs": "^3.2.10",
|
||||
"gatsby-remark-responsive-iframe": "^2.1.1",
|
||||
"gatsby-remark-smartypants": "^2.0.9",
|
||||
"gatsby-source-filesystem": "^2.0.31",
|
||||
"gatsby-source-filesystem": "^2.0.38",
|
||||
"gatsby-source-graphql": "^2.0.18",
|
||||
"gatsby-transformer-remark": "^2.3.10",
|
||||
"gatsby-transformer-sharp": "^2.1.18",
|
||||
"gatsby-transformer-xml": "^2.0.9",
|
||||
"gatsby-transformer-yaml": "^2.1.11",
|
||||
"gatsby-transformer-remark": "^2.3.12",
|
||||
"gatsby-transformer-sharp": "^2.1.21",
|
||||
"gatsby-transformer-xml": "^2.0.10",
|
||||
"gatsby-transformer-yaml": "^2.1.12",
|
||||
"giphy-js-sdk-core": "^1.0.6",
|
||||
"intersection-observer": "^0.7.0",
|
||||
"node-sass": "^4.11.0",
|
||||
"prismjs": "^1.16.0",
|
||||
"react": "^16.8.6",
|
||||
"react-dom": "^16.8.6",
|
||||
"react-helmet": "^5.2.0",
|
||||
"react-helmet": "^5.2.1",
|
||||
"react-scrollspy": "^3.4.0",
|
||||
"rehype-react": "^3.1.0",
|
||||
"remark": "^10.0.1",
|
||||
@ -69,19 +68,20 @@
|
||||
"swagger-client": "^3.8.25"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@svgr/webpack": "^4.2.0",
|
||||
"@svgr/webpack": "^4.3.0",
|
||||
"dotenv": "^8.0.0",
|
||||
"eslint": "^5.16.0",
|
||||
"eslint-config-oceanprotocol": "^1.3.0",
|
||||
"eslint-config-prettier": "^4.1.0",
|
||||
"eslint-plugin-prettier": "^3.0.1",
|
||||
"eslint-config-prettier": "^4.3.0",
|
||||
"eslint-plugin-prettier": "^3.1.0",
|
||||
"markdownlint-cli": "^0.16.0",
|
||||
"node-sass": "^4.12.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"ora": "^3.4.0",
|
||||
"prettier": "^1.17.0",
|
||||
"prettier": "^1.18.0",
|
||||
"prettier-stylelint": "^0.4.2",
|
||||
"stylelint": "^10.0.1",
|
||||
"stylelint-config-bigchaindb": "^1.2.1",
|
||||
"stylelint-config-bigchaindb": "^1.2.2",
|
||||
"stylelint-config-css-modules": "^1.4.0",
|
||||
"stylelint-config-standard": "^18.3.0",
|
||||
"typedoc": "^0.14.2"
|
||||
|
@ -19,6 +19,10 @@ const queryGithub = graphql`
|
||||
description
|
||||
url
|
||||
forkCount
|
||||
isFork
|
||||
parent {
|
||||
nameWithOwner
|
||||
}
|
||||
stargazers {
|
||||
totalCount
|
||||
}
|
||||
@ -62,9 +66,15 @@ const queryGithub = graphql`
|
||||
}
|
||||
`
|
||||
|
||||
const Title = ({ name, releases, url }) => (
|
||||
const Title = ({ name, isFork, parent, releases, url }) => (
|
||||
<h1 className={styles.repositoryName}>
|
||||
<a href={url}>{name}</a>
|
||||
<a href={url}>
|
||||
{isFork && <Forks />}
|
||||
{name}
|
||||
{isFork && (
|
||||
<span className={styles.forkLine}>{parent.nameWithOwner}</span>
|
||||
)}
|
||||
</a>
|
||||
{releases.edges[0] && (
|
||||
<a
|
||||
href={`${url}/releases`}
|
||||
@ -79,6 +89,10 @@ const Title = ({ name, releases, url }) => (
|
||||
|
||||
Title.propTypes = {
|
||||
name: PropTypes.string.isRequired,
|
||||
isFork: PropTypes.bool,
|
||||
parent: PropTypes.shape({
|
||||
nameWithOwner: PropTypes.string
|
||||
}),
|
||||
releases: PropTypes.object.isRequired,
|
||||
url: PropTypes.string.isRequired
|
||||
}
|
||||
@ -116,6 +130,15 @@ class Numbers extends PureComponent {
|
||||
}
|
||||
|
||||
url = 'https://oceanprotocol-github.now.sh'
|
||||
signal = axios.CancelToken.source()
|
||||
|
||||
componentDidMount() {
|
||||
this.fetchNumbers()
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
this.signal.cancel()
|
||||
}
|
||||
|
||||
fetchNumbers = async () => {
|
||||
try {
|
||||
@ -147,14 +170,14 @@ class Numbers extends PureComponent {
|
||||
this.setState({ stars })
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error) // eslint-disable-line no-console
|
||||
if (axios.isCancel(error)) {
|
||||
return null
|
||||
} else {
|
||||
console.log(error.message) // eslint-disable-line no-console
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.fetchNumbers()
|
||||
}
|
||||
|
||||
render() {
|
||||
const { url } = this.props
|
||||
const { forks, stars } = this.state
|
||||
@ -217,6 +240,8 @@ const Repository = ({ name, links, readme }) => (
|
||||
url,
|
||||
description,
|
||||
forkCount,
|
||||
isFork,
|
||||
parent,
|
||||
stargazers,
|
||||
releases,
|
||||
object
|
||||
@ -238,7 +263,13 @@ const Repository = ({ name, links, readme }) => (
|
||||
|
||||
return (
|
||||
<article className={styles.repository}>
|
||||
<Title name={name} releases={releases} url={url} />
|
||||
<Title
|
||||
name={name}
|
||||
releases={releases}
|
||||
url={url}
|
||||
isFork={isFork}
|
||||
parent={parent}
|
||||
/>
|
||||
|
||||
<p>{!description ? '...' : description}</p>
|
||||
|
||||
|
@ -24,6 +24,7 @@
|
||||
border: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
|
||||
a:first-of-type {
|
||||
color: $brand-black;
|
||||
@ -33,6 +34,25 @@
|
||||
color: $brand-pink;
|
||||
}
|
||||
}
|
||||
|
||||
svg {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
display: inline-block;
|
||||
fill: $brand-grey-light;
|
||||
margin-right: $spacer / 8;
|
||||
margin-left: -.2rem;
|
||||
margin-bottom: -.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
.forkLine {
|
||||
display: inline;
|
||||
margin-left: $spacer / 4;
|
||||
font-size: $font-size-mini;
|
||||
font-family: $font-family-monospace;
|
||||
font-weight: $font-weight-base;
|
||||
color: $brand-grey-light;
|
||||
}
|
||||
|
||||
.repositoryRelease {
|
||||
|
@ -30,9 +30,7 @@ const ParameterExample = ({ properties }) => (
|
||||
<span className="token property">{` "${key}"`}</span>
|
||||
<span className="token operator">{`: `}</span>
|
||||
{properties[key].type === 'string' && (
|
||||
<span className="token string">{`"${
|
||||
properties[key].example
|
||||
}"`}</span>
|
||||
<span className="token string">{`"${properties[key].example}"`}</span>
|
||||
)}
|
||||
{(properties[key].type === 'integer' ||
|
||||
properties[key].type === 'number') && (
|
||||
|
Loading…
Reference in New Issue
Block a user