make Gatsby start
10
.prettierrc
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"semi": false,
|
"semi": false,
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"trailingComma": "none",
|
"trailingComma": "none",
|
||||||
"tabWidth": 2
|
"tabWidth": 2
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ before_script:
|
|||||||
# - rm -rf "${HOME}/.ocean/keeper-contracts/artifacts"
|
# - rm -rf "${HOME}/.ocean/keeper-contracts/artifacts"
|
||||||
# - bash -x start_ocean.sh --no-commons --no-dashboard 2>&1 > start_ocean.log &
|
# - bash -x start_ocean.sh --no-commons --no-dashboard 2>&1 > start_ocean.log &
|
||||||
# - cd ..
|
# - cd ..
|
||||||
- cp .env.example .env && cp .env.example .env.build
|
# - cp .env.example .env
|
||||||
# overwrite AQUARIUS_URI from above .env files, which default to Spree
|
# overwrite AQUARIUS_URI from above .env files, which default to Spree
|
||||||
- export AQUARIUS_URI='https://aquarius.pacific.market.dev-ocean.com'
|
- export AQUARIUS_URI='https://aquarius.pacific.market.dev-ocean.com'
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
"siteTitle": "Ocean Market",
|
"siteTitle": "Ocean Market",
|
||||||
"siteTagline": "A marketplace to find and publish open data sets in the Ocean Network.",
|
"siteTagline": "A marketplace to find and publish open data sets in the Ocean Network.",
|
||||||
"siteUrl": "https://market.oceanprotocol.now.sh/",
|
"siteUrl": "https://market.oceanprotocol.now.sh/",
|
||||||
|
"siteIcon": "node_modules/@oceanprotocol/art/logo/favicon-white.png",
|
||||||
|
"siteImage": "../src/images/share.png",
|
||||||
"copyright": "All Rights Reserved. Powered by [Ocean Protocol](https://oceanprotocol.com)",
|
"copyright": "All Rights Reserved. Powered by [Ocean Protocol](https://oceanprotocol.com)",
|
||||||
"menu": [
|
"menu": [
|
||||||
{
|
{
|
||||||
|
@ -28,6 +28,13 @@ module.exports = {
|
|||||||
path: `${__dirname}/node_modules/@oceanprotocol/art/`
|
path: `${__dirname}/node_modules/@oceanprotocol/art/`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
resolve: 'gatsby-plugin-sharp',
|
||||||
|
options: {
|
||||||
|
defaultQuality: 80
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'gatsby-transformer-sharp',
|
||||||
'gatsby-transformer-json',
|
'gatsby-transformer-json',
|
||||||
'gatsby-transformer-remark',
|
'gatsby-transformer-remark',
|
||||||
{
|
{
|
||||||
@ -41,6 +48,20 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
'gatsby-plugin-react-helmet',
|
'gatsby-plugin-react-helmet',
|
||||||
'gatsby-plugin-remove-trailing-slashes',
|
'gatsby-plugin-remove-trailing-slashes',
|
||||||
|
{
|
||||||
|
// https://www.gatsbyjs.org/packages/gatsby-plugin-manifest/#using-with-gatsby-plugin-offline
|
||||||
|
resolve: 'gatsby-plugin-manifest',
|
||||||
|
options: {
|
||||||
|
name: siteConfig.site.siteTitle,
|
||||||
|
short_name: siteConfig.site.siteTitle,
|
||||||
|
start_url: '/',
|
||||||
|
background_color: '#ffffff',
|
||||||
|
theme_color: '#141414',
|
||||||
|
icon: siteConfig.site.siteIcon,
|
||||||
|
display: 'standalone',
|
||||||
|
cache_busting_mode: 'none'
|
||||||
|
}
|
||||||
|
},
|
||||||
'gatsby-plugin-webpack-size'
|
'gatsby-plugin-webpack-size'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
8
gatsby-node.js
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
exports.onCreateWebpackConfig = ({ actions }) => {
|
||||||
|
actions.setWebpackConfig({
|
||||||
|
node: {
|
||||||
|
// 'fs' fix for squid.js
|
||||||
|
fs: 'empty'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
6659
package-lock.json
generated
19
package.json
@ -5,8 +5,8 @@
|
|||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"homepage": "https://oceanprotocol.com",
|
"homepage": "https://oceanprotocol.com",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "gatsby develop --host 0.0.0.0",
|
"start": "gatsby clean && gatsby develop --host 0.0.0.0",
|
||||||
"build": "gatsby build",
|
"build": "gatsby clean && gatsby build",
|
||||||
"serve": "serve -s public/",
|
"serve": "serve -s public/",
|
||||||
"jest": "NODE_ENV=test jest -c tests/unit/jest.config.js",
|
"jest": "NODE_ENV=test jest -c tests/unit/jest.config.js",
|
||||||
"test": "npm run lint && npm run jest",
|
"test": "npm run lint && npm run jest",
|
||||||
@ -21,7 +21,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@loadable/component": "^5.13.0",
|
"@loadable/component": "^5.13.0",
|
||||||
"@now/node": "^1.7.1",
|
"@now/node": "^1.7.1",
|
||||||
"@oceanprotocol/art": "^2.2.0",
|
"@oceanprotocol/art": "^3.0.0",
|
||||||
"@oceanprotocol/react": "0.0.11",
|
"@oceanprotocol/react": "0.0.11",
|
||||||
"@oceanprotocol/squid": "^2.2.0",
|
"@oceanprotocol/squid": "^2.2.0",
|
||||||
"@oceanprotocol/typographies": "^0.1.0",
|
"@oceanprotocol/typographies": "^0.1.0",
|
||||||
@ -34,14 +34,18 @@
|
|||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"filesize": "^6.1.0",
|
"filesize": "^6.1.0",
|
||||||
"gatsby": "^2.23.12",
|
"gatsby": "^2.23.12",
|
||||||
|
"gatsby-image": "^2.4.9",
|
||||||
|
"gatsby-plugin-manifest": "^2.4.14",
|
||||||
"gatsby-plugin-react-helmet": "^3.3.6",
|
"gatsby-plugin-react-helmet": "^3.3.6",
|
||||||
"gatsby-plugin-remove-trailing-slashes": "^2.3.7",
|
"gatsby-plugin-remove-trailing-slashes": "^2.3.7",
|
||||||
|
"gatsby-plugin-sharp": "^2.6.14",
|
||||||
"gatsby-plugin-svgr": "^2.0.2",
|
"gatsby-plugin-svgr": "^2.0.2",
|
||||||
"gatsby-plugin-webpack-size": "^1.0.0",
|
"gatsby-plugin-webpack-size": "^1.0.0",
|
||||||
"gatsby-source-filesystem": "^2.3.14",
|
"gatsby-source-filesystem": "^2.3.14",
|
||||||
"gatsby-source-graphql": "^2.5.7",
|
"gatsby-source-graphql": "^2.5.7",
|
||||||
"gatsby-transformer-json": "^2.4.7",
|
"gatsby-transformer-json": "^2.4.7",
|
||||||
"gatsby-transformer-remark": "^2.8.20",
|
"gatsby-transformer-remark": "^2.8.20",
|
||||||
|
"gatsby-transformer-sharp": "^2.5.7",
|
||||||
"is-url-superb": "^4.0.0",
|
"is-url-superb": "^4.0.0",
|
||||||
"numeral": "^2.0.6",
|
"numeral": "^2.0.6",
|
||||||
"react": "^16.13.1",
|
"react": "^16.13.1",
|
||||||
@ -63,8 +67,11 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.10.3",
|
"@babel/core": "^7.10.3",
|
||||||
"@storybook/addon-storyshots": "^5.3.19",
|
"@babel/preset-typescript": "^7.10.1",
|
||||||
"@storybook/react": "^5.3.19",
|
"@storybook/addon-actions": "^5.3.19",
|
||||||
|
"@storybook/addon-storyshots": "^6.0.0-beta.37",
|
||||||
|
"@storybook/react": "^6.0.0-beta.37",
|
||||||
|
"@svgr/webpack": "^5.4.0",
|
||||||
"@testing-library/jest-dom": "^5.11.0",
|
"@testing-library/jest-dom": "^5.11.0",
|
||||||
"@testing-library/react": "^10.4.3",
|
"@testing-library/react": "^10.4.3",
|
||||||
"@testing-library/react-hooks": "^3.3.0",
|
"@testing-library/react-hooks": "^3.3.0",
|
||||||
@ -90,6 +97,8 @@
|
|||||||
"jest": "^26.1.0",
|
"jest": "^26.1.0",
|
||||||
"node-mocks-http": "^1.8.1",
|
"node-mocks-http": "^1.8.1",
|
||||||
"prettier": "^2.0.5",
|
"prettier": "^2.0.5",
|
||||||
|
"serve": "^11.3.2",
|
||||||
|
"source-map-explorer": "^2.4.2",
|
||||||
"typescript": "^3.9.5"
|
"typescript": "^3.9.5"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -14,7 +14,7 @@ import {
|
|||||||
} from '@oceanprotocol/react'
|
} from '@oceanprotocol/react'
|
||||||
import styles from './Compute.module.css'
|
import styles from './Compute.module.css'
|
||||||
import Button from '../atoms/Button'
|
import Button from '../atoms/Button'
|
||||||
import Input from '../atoms/Input/Input'
|
import Input from '../atoms/Input'
|
||||||
|
|
||||||
export default function Compute({
|
export default function Compute({
|
||||||
ddo,
|
ddo,
|
||||||
|
@ -2,7 +2,7 @@ import React from 'react'
|
|||||||
import { Link } from 'gatsby'
|
import { Link } from 'gatsby'
|
||||||
import Menu from '../molecules/Menu'
|
import Menu from '../molecules/Menu'
|
||||||
import styles from './Header.module.css'
|
import styles from './Header.module.css'
|
||||||
import Logo from '@oceanprotocol/art/logo/logo.svg'
|
import { ReactComponent as Logo } from '@oceanprotocol/art/logo/logo.svg'
|
||||||
import { useSiteMetadata } from '../../hooks/useSiteMetadata'
|
import { useSiteMetadata } from '../../hooks/useSiteMetadata'
|
||||||
|
|
||||||
export default function Header() {
|
export default function Header() {
|
||||||
|
@ -3,9 +3,9 @@ import { Link } from 'gatsby'
|
|||||||
import shortid from 'shortid'
|
import shortid from 'shortid'
|
||||||
import Button from '../atoms/Button'
|
import Button from '../atoms/Button'
|
||||||
import SearchBar from '../molecules/SearchBar'
|
import SearchBar from '../molecules/SearchBar'
|
||||||
import Explore from '../../images/explore.svg'
|
import { ReactComponent as Explore } from '../../images/explore.svg'
|
||||||
import Publish from '../../images/publish.svg'
|
import { ReactComponent as Publish } from '../../images/publish.svg'
|
||||||
import DataPool from '../../images/datapool.svg'
|
import { ReactComponent as DataPool } from '../../images/datapool.svg'
|
||||||
import styles from './Home.module.css'
|
import styles from './Home.module.css'
|
||||||
|
|
||||||
const actions = [
|
const actions = [
|
||||||
@ -41,17 +41,17 @@ export default function HomePage(): ReactElement {
|
|||||||
|
|
||||||
<div className={styles.actions}>
|
<div className={styles.actions}>
|
||||||
{actions.map((action) => (
|
{actions.map((action) => (
|
||||||
<Link key={shortid.generate()} to={action.link}>
|
<Link
|
||||||
<a
|
key={shortid.generate()}
|
||||||
className={action.comingSoon ? styles.comingSoon : styles.action}
|
to={action.link}
|
||||||
>
|
className={action.comingSoon ? styles.comingSoon : styles.action}
|
||||||
{action.icon}
|
>
|
||||||
<h3 className={styles.actionTitle}>{action.title}</h3>
|
{action.icon}
|
||||||
<p>{action.text}</p>
|
<h3 className={styles.actionTitle}>{action.title}</h3>
|
||||||
<Button style={action.primary ? 'primary' : null}>
|
<p>{action.text}</p>
|
||||||
{action.action}
|
<Button style={action.primary ? 'primary' : null}>
|
||||||
</Button>
|
{action.action}
|
||||||
</a>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,6 +10,14 @@ const query = graphql`
|
|||||||
siteTitle
|
siteTitle
|
||||||
siteTagline
|
siteTagline
|
||||||
siteUrl
|
siteUrl
|
||||||
|
siteIcon
|
||||||
|
siteImage {
|
||||||
|
childImageSharp {
|
||||||
|
original {
|
||||||
|
src
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
copyright
|
copyright
|
||||||
menu {
|
menu {
|
||||||
name
|
name
|
||||||
|
BIN
src/images/share.png
Normal file
After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 4.2 KiB |
@ -4,6 +4,7 @@
|
|||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"lib": ["dom", "es2017"],
|
"lib": ["dom", "es2017"],
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
|
"moduleResolution": "Node",
|
||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
|