Compare commits

...

668 Commits

Author SHA1 Message Date
Matthias Kretschmann de77f693d9
Update README.md 2020-10-27 10:12:24 +01:00
Trent McConaghy ad08e3bb53
Say 'obsolete' 2020-10-21 15:36:32 +02:00
Matthias Kretschmann 97b3e55bc1
Merge pull request #327 from oceanprotocol/dependabot/npm_and_yarn/client/types/jest-26.0.0
Bump @types/jest from 25.2.3 to 26.0.0 in /client
2020-06-15 12:50:49 +02:00
dependabot[bot] 0948e18c41
Bump @types/jest from 25.2.3 to 26.0.0 in /client
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.2.3 to 26.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-15 09:28:34 +00:00
Matthias Kretschmann 15dcc2e31a
Merge pull request #319 from oceanprotocol/dependabot/npm_and_yarn/server/types/morgan-1.9.1
Bump @types/morgan from 1.9.0 to 1.9.1 in /server
2020-06-15 11:26:15 +02:00
Matthias Kretschmann 2e34c0df81
Merge pull request #316 from oceanprotocol/dependabot/npm_and_yarn/release-it-13.6.3
Bump release-it from 13.6.2 to 13.6.3
2020-06-15 11:25:55 +02:00
Matthias Kretschmann cf1038a7fd
Merge pull request #312 from oceanprotocol/dependabot/npm_and_yarn/client/react-datepicker-3.0.0
Bump react-datepicker from 2.16.0 to 3.0.0 in /client
2020-06-15 11:25:37 +02:00
dependabot[bot] 3b0a366217
Bump @types/morgan from 1.9.0 to 1.9.1 in /server
Bumps [@types/morgan](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/morgan) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/morgan)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-15 08:50:00 +00:00
dependabot[bot] b63a693ed6
Bump react-datepicker from 2.16.0 to 3.0.0 in /client
Bumps [react-datepicker](https://github.com/Hacker0x01/react-datepicker) from 2.16.0 to 3.0.0.
- [Release notes](https://github.com/Hacker0x01/react-datepicker/releases)
- [Commits](https://github.com/Hacker0x01/react-datepicker/compare/v2.16.0...v3.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-15 08:48:29 +00:00
Matthias Kretschmann 468c0204d4
Merge pull request #324 from oceanprotocol/dependabot/npm_and_yarn/server/types/node-14.0.13
Bump @types/node from 14.0.11 to 14.0.13 in /server
2020-06-15 10:48:28 +02:00
dependabot[bot] 31185f9c64
Bump release-it from 13.6.2 to 13.6.3
Bumps [release-it](https://github.com/release-it/release-it) from 13.6.2 to 13.6.3.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.6.2...13.6.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-15 08:46:47 +00:00
Matthias Kretschmann a4cd995669
Merge pull request #325 from oceanprotocol/dependabot/npm_and_yarn/client/query-string-6.13.1
Bump query-string from 6.13.0 to 6.13.1 in /client
2020-06-15 10:45:37 +02:00
Matthias Kretschmann c3cd566efd
Merge pull request #322 from oceanprotocol/dependabot/npm_and_yarn/auto-changelog-2.1.0
Bump auto-changelog from 2.0.0 to 2.1.0
2020-06-15 10:45:14 +02:00
dependabot[bot] ca1e84e3e0
Bump @types/node from 14.0.11 to 14.0.13 in /server
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.11 to 14.0.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-15 07:05:13 +00:00
dependabot[bot] 23a11e39ca
Bump auto-changelog from 2.0.0 to 2.1.0
Bumps [auto-changelog](https://github.com/CookPete/auto-changelog) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/CookPete/auto-changelog/releases)
- [Changelog](https://github.com/CookPete/auto-changelog/blob/master/CHANGELOG.md)
- [Commits](https://github.com/CookPete/auto-changelog/compare/v2.0.0...v2.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-15 07:05:00 +00:00
dependabot[bot] f4e0a38520
Bump query-string from 6.13.0 to 6.13.1 in /client
Bumps [query-string](https://github.com/sindresorhus/query-string) from 6.13.0 to 6.13.1.
- [Release notes](https://github.com/sindresorhus/query-string/releases)
- [Commits](https://github.com/sindresorhus/query-string/compare/v6.13.0...v6.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-15 07:04:37 +00:00
Matthias Kretschmann 8699cd7ce9
Merge pull request #321 from oceanprotocol/dependabot/npm_and_yarn/release-it/bumper-1.2.0
Bump @release-it/bumper from 1.1.1 to 1.2.0
2020-06-15 09:03:38 +02:00
Matthias Kretschmann 1bae3ae85a
Merge pull request #326 from oceanprotocol/dependabot/npm_and_yarn/client/is-url-superb-4.0.0
Bump is-url-superb from 3.0.0 to 4.0.0 in /client
2020-06-15 09:01:18 +02:00
Matthias Kretschmann 932f6ee1e4
Merge pull request #320 from oceanprotocol/dependabot/npm_and_yarn/eslint-plugin-prettier-3.1.4
Bump eslint-plugin-prettier from 3.1.3 to 3.1.4
2020-06-15 08:59:58 +02:00
Matthias Kretschmann d3b35c302f
Merge pull request #323 from oceanprotocol/dependabot/npm_and_yarn/client/testing-library/react-10.2.1
Bump @testing-library/react from 10.0.6 to 10.2.1 in /client
2020-06-15 08:59:18 +02:00
Matthias Kretschmann b0acdb3473
Merge pull request #318 from oceanprotocol/dependabot/npm_and_yarn/server/types/jest-26.0.0
Bump @types/jest from 25.2.3 to 26.0.0 in /server
2020-06-15 08:58:41 +02:00
Matthias Kretschmann 87dc14f6d9
Merge pull request #317 from oceanprotocol/dependabot/npm_and_yarn/cypress-4.8.0
Bump cypress from 4.7.0 to 4.8.0
2020-06-15 08:58:17 +02:00
Matthias Kretschmann d1d4ab72c6
Merge pull request #315 from oceanprotocol/dependabot/npm_and_yarn/server/sendgrid/mail-7.2.0
Bump @sendgrid/mail from 7.1.1 to 7.2.0 in /server
2020-06-15 08:57:50 +02:00
dependabot[bot] 626432c6c9
Bump is-url-superb from 3.0.0 to 4.0.0 in /client
Bumps [is-url-superb](https://github.com/sindresorhus/is-url-superb) from 3.0.0 to 4.0.0.
- [Release notes](https://github.com/sindresorhus/is-url-superb/releases)
- [Commits](https://github.com/sindresorhus/is-url-superb/compare/v3.0.0...v4.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-15 01:05:49 +00:00
dependabot[bot] 5b95d0253c
Bump @testing-library/react from 10.0.6 to 10.2.1 in /client
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 10.0.6 to 10.2.1.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/react-testing-library/compare/v10.0.6...v10.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-15 01:03:58 +00:00
dependabot[bot] 8850b76cf8
Bump @release-it/bumper from 1.1.1 to 1.2.0
Bumps [@release-it/bumper](https://github.com/release-it/bumper) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/release-it/bumper/releases)
- [Commits](https://github.com/release-it/bumper/compare/1.1.1...1.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-15 01:03:39 +00:00
dependabot[bot] 72c513c338
Bump eslint-plugin-prettier from 3.1.3 to 3.1.4
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v3.1.3...v3.1.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-15 01:03:29 +00:00
dependabot[bot] 06f8b88140
Bump @types/jest from 25.2.3 to 26.0.0 in /server
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.2.3 to 26.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-15 01:03:04 +00:00
dependabot[bot] 3ce14e8e7b
Bump cypress from 4.7.0 to 4.8.0
Bumps [cypress](https://github.com/cypress-io/cypress) from 4.7.0 to 4.8.0.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Commits](https://github.com/cypress-io/cypress/compare/v4.7.0...v4.8.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-15 01:02:59 +00:00
dependabot[bot] 04598e296e
Bump @sendgrid/mail from 7.1.1 to 7.2.0 in /server
Bumps [@sendgrid/mail](https://github.com/sendgrid/sendgrid-nodejs) from 7.1.1 to 7.2.0.
- [Release notes](https://github.com/sendgrid/sendgrid-nodejs/releases)
- [Changelog](https://github.com/sendgrid/sendgrid-nodejs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sendgrid/sendgrid-nodejs/compare/7.1.1...7.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-15 01:02:38 +00:00
Matthias Kretschmann 473b0b6e9d
Merge pull request #311 from oceanprotocol/dependabot/npm_and_yarn/server/types/node-14.0.11
Bump @types/node from 14.0.9 to 14.0.11 in /server
2020-06-08 12:14:02 +02:00
Matthias Kretschmann cb8c7fdaab
Merge pull request #310 from oceanprotocol/dependabot/npm_and_yarn/client/jest-mock-axios-4.2.0
Bump jest-mock-axios from 4.1.0 to 4.2.0 in /client
2020-06-08 12:13:38 +02:00
Matthias Kretschmann 624ee063b0
Merge pull request #309 from oceanprotocol/dependabot/npm_and_yarn/client/query-string-6.13.0
Bump query-string from 6.12.1 to 6.13.0 in /client
2020-06-08 12:13:11 +02:00
Matthias Kretschmann 6a94339ab6
Merge pull request #313 from oceanprotocol/dependabot/npm_and_yarn/client/ipfs-http-client-44.2.0
Bump ipfs-http-client from 44.1.1 to 44.2.0 in /client
2020-06-08 12:12:49 +02:00
Matthias Kretschmann 08803802fa
Merge pull request #314 from oceanprotocol/dependabot/npm_and_yarn/server/typescript-3.9.5
Bump typescript from 3.9.3 to 3.9.5 in /server
2020-06-08 12:12:31 +02:00
Matthias Kretschmann b771931e74
Merge pull request #308 from oceanprotocol/dependabot/npm_and_yarn/client/react-ga-3.0.0
Bump react-ga from 2.7.0 to 3.0.0 in /client
2020-06-08 12:12:12 +02:00
Matthias Kretschmann f5622b92f6
Merge pull request #307 from oceanprotocol/dependabot/npm_and_yarn/typescript-3.9.5
Bump typescript from 3.9.3 to 3.9.5
2020-06-08 12:11:50 +02:00
dependabot[bot] 4696012f06
Bump typescript from 3.9.3 to 3.9.5 in /server
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.3 to 3.9.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.3...v3.9.5)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-08 01:09:21 +00:00
dependabot[bot] d8f6c976bf
Bump ipfs-http-client from 44.1.1 to 44.2.0 in /client
Bumps [ipfs-http-client](https://github.com/ipfs/js-ipfs) from 44.1.1 to 44.2.0.
- [Release notes](https://github.com/ipfs/js-ipfs/releases)
- [Changelog](https://github.com/ipfs/js-ipfs/blob/master/docs/RELEASES.md)
- [Commits](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@44.1.1...ipfs-http-client@44.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-08 01:07:29 +00:00
dependabot[bot] 54ad4798fc
Bump @types/node from 14.0.9 to 14.0.11 in /server
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.9 to 14.0.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-08 01:05:55 +00:00
dependabot[bot] 0eee025656
Bump jest-mock-axios from 4.1.0 to 4.2.0 in /client
Bumps [jest-mock-axios](https://github.com/knee-cola/jest-mock-axios) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/knee-cola/jest-mock-axios/releases)
- [Changelog](https://github.com/knee-cola/jest-mock-axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/knee-cola/jest-mock-axios/compare/4.1.0...4.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-08 01:04:45 +00:00
dependabot[bot] 5a4e272c95
Bump query-string from 6.12.1 to 6.13.0 in /client
Bumps [query-string](https://github.com/sindresorhus/query-string) from 6.12.1 to 6.13.0.
- [Release notes](https://github.com/sindresorhus/query-string/releases)
- [Commits](https://github.com/sindresorhus/query-string/compare/v6.12.1...v6.13.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-08 01:03:48 +00:00
dependabot[bot] c0ac535814
Bump react-ga from 2.7.0 to 3.0.0 in /client
Bumps [react-ga](https://github.com/react-ga/react-ga) from 2.7.0 to 3.0.0.
- [Release notes](https://github.com/react-ga/react-ga/releases)
- [Commits](https://github.com/react-ga/react-ga/compare/v2.7.0...v3.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-08 01:02:52 +00:00
dependabot[bot] ba31f967f2
Bump typescript from 3.9.3 to 3.9.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.3 to 3.9.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.3...v3.9.5)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-08 01:01:58 +00:00
Matthias Kretschmann 61d0c7328c
Merge pull request #306 from oceanprotocol/dependabot/npm_and_yarn/client/websocket-extensions-0.1.4
Bump websocket-extensions from 0.1.3 to 0.1.4 in /client
2020-06-07 10:59:35 +02:00
dependabot[bot] 8be3572945
Bump websocket-extensions from 0.1.3 to 0.1.4 in /client
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases)
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-07 06:46:28 +00:00
Matthias Kretschmann 19e3b55193
Merge pull request #302 from oceanprotocol/dependabot/npm_and_yarn/release-it-13.6.2
Bump release-it from 13.6.1 to 13.6.2
2020-06-03 08:57:42 +02:00
Matthias Kretschmann c4d71aab53
Merge pull request #303 from oceanprotocol/dependabot/npm_and_yarn/server/types/node-14.0.9
Bump @types/node from 14.0.6 to 14.0.9 in /server
2020-06-03 08:57:25 +02:00
Matthias Kretschmann fbe61b006b
Merge pull request #304 from oceanprotocol/dependabot/npm_and_yarn/client/jest-mock-axios-4.1.0
Bump jest-mock-axios from 4.0.0 to 4.1.0 in /client
2020-06-03 08:57:08 +02:00
Matthias Kretschmann 34e20186c3
Merge pull request #305 from oceanprotocol/dependabot/npm_and_yarn/client/testing-library/react-10.0.6
Bump @testing-library/react from 10.0.4 to 10.0.6 in /client
2020-06-03 08:56:49 +02:00
dependabot[bot] f553fcd7e0
Bump @testing-library/react from 10.0.4 to 10.0.6 in /client
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 10.0.4 to 10.0.6.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/react-testing-library/compare/v10.0.4...v10.0.6)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-03 06:14:54 +00:00
dependabot[bot] 9ade7d25db
Bump jest-mock-axios from 4.0.0 to 4.1.0 in /client
Bumps [jest-mock-axios](https://github.com/knee-cola/jest-mock-axios) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/knee-cola/jest-mock-axios/releases)
- [Changelog](https://github.com/knee-cola/jest-mock-axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/knee-cola/jest-mock-axios/compare/4.0.0...4.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-03 06:13:10 +00:00
dependabot[bot] c8706698ed
Bump @types/node from 14.0.6 to 14.0.9 in /server
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.6 to 14.0.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-03 06:12:02 +00:00
dependabot[bot] ea99c045bd
Bump release-it from 13.6.1 to 13.6.2
Bumps [release-it](https://github.com/release-it/release-it) from 13.6.1 to 13.6.2.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.6.1...13.6.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-03 06:11:51 +00:00
Matthias Kretschmann 75039762e7
Merge pull request #301 from oceanprotocol/dependabot/add-v2-config-file
Create Dependabot config file
2020-06-03 08:10:41 +02:00
dependabot-preview[bot] bca6d3d0df
Create Dependabot config file 2020-06-03 00:48:58 +00:00
dependabot-preview[bot] 016086c727
Merge pull request #300 from oceanprotocol/dependabot/npm_and_yarn/server/types/node-14.0.6 2020-06-02 07:02:28 +00:00
dependabot-preview[bot] 735e2c5882
Merge pull request #299 from oceanprotocol/dependabot/npm_and_yarn/client/ipfs-http-client-44.1.1 2020-06-02 07:02:15 +00:00
dependabot-preview[bot] d1a1d5430d
Merge pull request #298 from oceanprotocol/dependabot/npm_and_yarn/server/ts-node-8.10.2 2020-06-02 07:01:58 +00:00
dependabot-preview[bot] 546483b8d0
Merge pull request #297 from oceanprotocol/dependabot/npm_and_yarn/client/testing-library/jest-dom-5.9.0 2020-06-02 07:01:43 +00:00
dependabot-preview[bot] b4da9f3ebc
Merge pull request #296 from oceanprotocol/dependabot/npm_and_yarn/eslint-plugin-cypress-2.11.1 2020-06-02 07:01:23 +00:00
dependabot-preview[bot] 75586154d8
Merge pull request #295 from oceanprotocol/dependabot/npm_and_yarn/cypress-4.7.0 2020-06-02 07:01:04 +00:00
dependabot-preview[bot] 49f76033db
Bump @types/node from 14.0.5 to 14.0.6 in /server
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.5 to 14.0.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-01 01:27:20 +00:00
dependabot-preview[bot] 957f9836c4
Bump ipfs-http-client from 44.1.0 to 44.1.1 in /client
Bumps [ipfs-http-client](https://github.com/ipfs/js-ipfs) from 44.1.0 to 44.1.1.
- [Release notes](https://github.com/ipfs/js-ipfs/releases)
- [Changelog](https://github.com/ipfs/js-ipfs/blob/master/docs/RELEASES.md)
- [Commits](https://github.com/ipfs/js-ipfs/compare/ipfs-http-client@44.1.0...ipfs-http-client@44.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-01 01:26:56 +00:00
dependabot-preview[bot] 1684bf844f
Bump ts-node from 8.10.1 to 8.10.2 in /server
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 8.10.1 to 8.10.2.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v8.10.1...v8.10.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-01 01:26:45 +00:00
dependabot-preview[bot] 6518b01622
Bump @testing-library/jest-dom from 5.8.0 to 5.9.0 in /client
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.8.0 to 5.9.0.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.8.0...v5.9.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-01 01:25:38 +00:00
dependabot-preview[bot] 413ed7e13f
Bump eslint-plugin-cypress from 2.10.3 to 2.11.1
Bumps [eslint-plugin-cypress](https://github.com/cypress-io/eslint-plugin-cypress) from 2.10.3 to 2.11.1.
- [Release notes](https://github.com/cypress-io/eslint-plugin-cypress/releases)
- [Commits](https://github.com/cypress-io/eslint-plugin-cypress/compare/v2.10.3...v2.11.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-01 01:24:28 +00:00
dependabot-preview[bot] be5a32797c
Bump cypress from 4.6.0 to 4.7.0
Bumps [cypress](https://github.com/cypress-io/cypress) from 4.6.0 to 4.7.0.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Commits](https://github.com/cypress-io/cypress/compare/v4.6.0...v4.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-01 01:24:00 +00:00
dependabot-preview[bot] d285b1106f
Merge pull request #290 from oceanprotocol/dependabot/npm_and_yarn/server/types/node-14.0.5 2020-05-25 07:38:00 +00:00
dependabot-preview[bot] d5582e14ce
Merge pull request #292 from oceanprotocol/dependabot/npm_and_yarn/client/types/react-transition-group-4.4.0 2020-05-25 07:17:34 +00:00
dependabot-preview[bot] ab7a519c78
Bump @types/node from 14.0.4 to 14.0.5 in /server
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.4 to 14.0.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-25 07:16:00 +00:00
dependabot-preview[bot] cc392edf04
Merge pull request #294 from oceanprotocol/dependabot/npm_and_yarn/client/moment-2.26.0 2020-05-25 07:14:52 +00:00
dependabot-preview[bot] 744bfd67fc
Merge pull request #293 from oceanprotocol/dependabot/npm_and_yarn/client/web3-1.2.8 2020-05-25 07:14:35 +00:00
dependabot-preview[bot] cf24217330
Merge pull request #291 from oceanprotocol/dependabot/npm_and_yarn/cypress-4.6.0 2020-05-25 07:14:01 +00:00
dependabot-preview[bot] fed35cf79b
Bump moment from 2.25.3 to 2.26.0 in /client
Bumps [moment](https://github.com/moment/moment) from 2.25.3 to 2.26.0.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.25.3...2.26.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-25 01:34:33 +00:00
dependabot-preview[bot] 062a030fb5
Bump web3 from 1.2.7 to 1.2.8 in /client
Bumps [web3](https://github.com/ethereum/web3.js) from 1.2.7 to 1.2.8.
- [Release notes](https://github.com/ethereum/web3.js/releases)
- [Changelog](https://github.com/ethereum/web3.js/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/ethereum/web3.js/compare/v1.2.7...v1.2.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-25 01:33:28 +00:00
dependabot-preview[bot] bdfe3854d6
Bump @types/react-transition-group from 4.2.4 to 4.4.0 in /client
Bumps [@types/react-transition-group](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-transition-group) from 4.2.4 to 4.4.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-transition-group)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-25 01:31:59 +00:00
dependabot-preview[bot] 7f8e363840
Bump cypress from 4.5.0 to 4.6.0
Bumps [cypress](https://github.com/cypress-io/cypress) from 4.5.0 to 4.6.0.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Commits](https://github.com/cypress-io/cypress/compare/v4.5.0...v4.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-25 01:28:28 +00:00
dependabot-preview[bot] 772df475cd
Merge pull request #287 from oceanprotocol/dependabot/npm_and_yarn/client/typescript-3.9.3 2020-05-20 07:19:59 +00:00
dependabot-preview[bot] 12a81c8001
Merge pull request #286 from oceanprotocol/dependabot/npm_and_yarn/client/types/react-router-dom-5.1.5 2020-05-20 07:18:16 +00:00
dependabot-preview[bot] 3f5a4aa4f6
Bump typescript from 3.9.2 to 3.9.3 in /client
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.2 to 3.9.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.2...v3.9.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-20 06:57:05 +00:00
dependabot-preview[bot] 1aa2afb005
Bump @types/react-router-dom from 5.1.3 to 5.1.5 in /client
Bumps [@types/react-router-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-router-dom) from 5.1.3 to 5.1.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-router-dom)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-20 06:56:35 +00:00
dependabot-preview[bot] f88d9d556d
Merge pull request #289 from oceanprotocol/dependabot/npm_and_yarn/client/testing-library/jest-dom-5.8.0 2020-05-20 06:54:53 +00:00
dependabot-preview[bot] ee20f6541c
Merge pull request #284 from oceanprotocol/dependabot/npm_and_yarn/server/types/node-14.0.4 2020-05-20 06:54:27 +00:00
dependabot-preview[bot] e35c3015d5
Merge pull request #285 from oceanprotocol/dependabot/npm_and_yarn/server/typescript-3.9.3 2020-05-20 06:53:45 +00:00
dependabot-preview[bot] 99097d91cc
Merge pull request #283 from oceanprotocol/dependabot/npm_and_yarn/typescript-3.9.3 2020-05-20 06:53:34 +00:00
dependabot-preview[bot] 3af9ee9efa
Merge pull request #288 from oceanprotocol/dependabot/npm_and_yarn/client/types/react-helmet-6.0.0 2020-05-20 06:53:13 +00:00
dependabot-preview[bot] 7ba39430c9
Bump @testing-library/jest-dom from 5.7.0 to 5.8.0 in /client
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.7.0 to 5.8.0.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.7.0...v5.8.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-20 01:56:18 +00:00
dependabot-preview[bot] 809deeb3a8
Bump @types/react-helmet from 5.0.15 to 6.0.0 in /client
Bumps [@types/react-helmet](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-helmet) from 5.0.15 to 6.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-helmet)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-20 01:54:42 +00:00
dependabot-preview[bot] 119a1ee672
Bump typescript from 3.9.2 to 3.9.3 in /server
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.2 to 3.9.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.2...v3.9.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-20 01:16:19 +00:00
dependabot-preview[bot] bacf948f53
Bump @types/node from 14.0.1 to 14.0.4 in /server
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.1 to 14.0.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-20 01:14:57 +00:00
dependabot-preview[bot] 4660175c50
Bump typescript from 3.8.3 to 3.9.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.8.3 to 3.9.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.8.3...v3.9.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-20 01:14:20 +00:00
Matthias Kretschmann 380b57388c
Release 2.4.1 2020-05-19 19:00:51 +02:00
Alex Coseru 197d3a950d
Merge pull request #282 from oceanprotocol/bug/fix_history
fix history
2020-05-19 19:59:20 +03:00
alexcos20 bbeef61afd fix history 2020-05-19 09:25:10 -07:00
alexcos20 8831c46e39 fix history 2020-05-19 09:23:38 -07:00
Matthias Kretschmann c0effd449f
Release 2.4.0 2020-05-19 16:00:26 +02:00
Matthias Kretschmann 91821e88d4
bump to squid-js v2.2.0 2020-05-19 15:48:50 +02:00
dependabot-preview[bot] 6f05baff3a
Merge pull request #281 from oceanprotocol/dependabot/npm_and_yarn/client/react-router-dom-5.2.0 2020-05-19 13:44:00 +00:00
dependabot-preview[bot] 0abc740ed8
Merge pull request #276 from oceanprotocol/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-2.34.0 2020-05-19 13:42:35 +00:00
dependabot-preview[bot] 5eb2b3fde0
Merge pull request #275 from oceanprotocol/dependabot/npm_and_yarn/concurrently-5.2.0 2020-05-19 13:42:30 +00:00
dependabot-preview[bot] a38ecc255d
Bump react-router-dom from 5.1.2 to 5.2.0 in /client
Bumps [react-router-dom](https://github.com/ReactTraining/react-router) from 5.1.2 to 5.2.0.
- [Release notes](https://github.com/ReactTraining/react-router/releases)
- [Changelog](https://github.com/ReactTraining/react-router/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ReactTraining/react-router/compare/v5.1.2...v5.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 13:23:26 +00:00
dependabot-preview[bot] 7e59a1807c
Bump @typescript-eslint/eslint-plugin from 2.33.0 to 2.34.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.33.0 to 2.34.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.34.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 13:21:14 +00:00
dependabot-preview[bot] 1f9a358451
Bump concurrently from 5.1.0 to 5.2.0
Bumps [concurrently](https://github.com/kimmobrunfeldt/concurrently) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/kimmobrunfeldt/concurrently/releases)
- [Commits](https://github.com/kimmobrunfeldt/concurrently/compare/v5.1.0...v5.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 13:21:11 +00:00
dependabot-preview[bot] 006948360f
Merge pull request #280 from oceanprotocol/dependabot/npm_and_yarn/client/types/jest-25.2.3 2020-05-19 13:20:34 +00:00
dependabot-preview[bot] bdab45c565
Merge pull request #279 from oceanprotocol/dependabot/npm_and_yarn/client/react-transition-group-4.4.1 2020-05-19 13:20:11 +00:00
dependabot-preview[bot] 62a64f8539
Merge pull request #273 from oceanprotocol/dependabot/npm_and_yarn/eslint-plugin-prettier-3.1.3 2020-05-19 13:19:29 +00:00
dependabot-preview[bot] b3fa56c2b2
Merge pull request #272 from oceanprotocol/dependabot/npm_and_yarn/typescript-eslint/parser-2.34.0 2020-05-19 13:19:18 +00:00
Matthias Kretschmann 55d9592565
Merge pull request #225 from oceanprotocol/feature/compute
Feature/compute
2020-05-19 15:18:53 +02:00
mihaisc 5015d26cea asset details fix 2020-05-19 15:47:21 +03:00
mihaisc a6b0ca4be6 test fix 2020-05-19 15:24:40 +03:00
dependabot-preview[bot] 3c8cbcc22b
Bump react-transition-group from 4.3.0 to 4.4.1 in /client
Bumps [react-transition-group](https://github.com/reactjs/react-transition-group) from 4.3.0 to 4.4.1.
- [Release notes](https://github.com/reactjs/react-transition-group/releases)
- [Changelog](https://github.com/reactjs/react-transition-group/blob/master/CHANGELOG.md)
- [Commits](https://github.com/reactjs/react-transition-group/compare/v4.3.0...v4.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 11:59:42 +00:00
dependabot-preview[bot] 3aa79cd7dc
Merge pull request #277 from oceanprotocol/dependabot/npm_and_yarn/client/web3-1.2.7 2020-05-19 11:56:22 +00:00
dependabot-preview[bot] 0f55b73dc5
Merge pull request #278 from oceanprotocol/dependabot/npm_and_yarn/client/oceanprotocol/squid-2.1.3 2020-05-19 11:56:08 +00:00
dependabot-preview[bot] daf39e8ed2
Bump @types/jest from 25.2.2 to 25.2.3 in /client
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.2.2 to 25.2.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 11:30:43 +00:00
dependabot-preview[bot] ef013c0d10
Bump @oceanprotocol/squid from 2.1.2 to 2.1.3 in /client
Bumps [@oceanprotocol/squid](https://github.com/oceanprotocol/squid-js) from 2.1.2 to 2.1.3.
- [Release notes](https://github.com/oceanprotocol/squid-js/releases)
- [Changelog](https://github.com/oceanprotocol/squid-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/oceanprotocol/squid-js/compare/v2.1.2...v2.1.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 11:28:05 +00:00
dependabot-preview[bot] 7184a7bb66
Bump web3 from 1.2.6 to 1.2.7 in /client
Bumps [web3](https://github.com/ethereum/web3.js) from 1.2.6 to 1.2.7.
- [Release notes](https://github.com/ethereum/web3.js/releases)
- [Changelog](https://github.com/ethereum/web3.js/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/ethereum/web3.js/compare/v1.2.6...v1.2.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 11:26:31 +00:00
mihaisc 28b213d2fc Merge branch 'feature/compute' of https://github.com/oceanprotocol/commons into feature/compute 2020-05-19 14:24:04 +03:00
mihaisc 55bf9f314f test fixes 2020-05-19 14:21:34 +03:00
dependabot-preview[bot] 51b1dd228f
Bump @typescript-eslint/parser from 2.33.0 to 2.34.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.33.0 to 2.34.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.34.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 09:19:03 +00:00
dependabot-preview[bot] 3511bafdf3
Bump eslint-plugin-prettier from 3.1.2 to 3.1.3
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v3.1.2...v3.1.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 09:18:59 +00:00
Matthias Kretschmann b93f005154
Merge branch 'master' into feature/compute 2020-05-19 11:18:38 +02:00
dependabot-preview[bot] 7cba1cd148
Merge pull request #271 from oceanprotocol/dependabot/npm_and_yarn/server/types/jest-25.2.3 2020-05-19 09:17:19 +00:00
dependabot-preview[bot] 876d7c22d3
Merge pull request #230 from oceanprotocol/dependabot/npm_and_yarn/prettier-2.0.5 2020-05-19 09:17:03 +00:00
dependabot-preview[bot] 87bcba5af7
Bump @types/jest from 25.2.2 to 25.2.3 in /server
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.2.2 to 25.2.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 08:45:11 +00:00
Matthias Kretschmann d058fc815d
formatting for new prettier rules 2020-05-19 10:36:18 +02:00
Matthias Kretschmann d916f0df1e
security fixes 2020-05-19 10:34:59 +02:00
Matthias Kretschmann 2884015678
small refactor 2020-05-19 10:28:02 +02:00
Matthias Kretschmann 7d09350967
test fixes 2020-05-19 10:18:40 +02:00
Matthias Kretschmann fe37382833
Merge branch 'master' into feature/compute 2020-05-19 10:11:44 +02:00
dependabot-preview[bot] 0d3bdc7a2c
Bump prettier from 1.19.1 to 2.0.5
Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.5.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/1.19.1...2.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 08:10:27 +00:00
Matthias Kretschmann 00e2d8acb5
Merge pull request #270 from oceanprotocol/fix/stylelint
remove stylelint & codacy
2020-05-19 10:08:43 +02:00
Matthias Kretschmann b7408a3c9b
remove codacy 2020-05-19 09:46:39 +02:00
Matthias Kretschmann 4ddd607499
remove stylelint 2020-05-19 09:21:55 +02:00
Matthias Kretschmann 5d9fee0e69
Merge branch 'master' into feature/compute 2020-05-19 09:10:55 +02:00
dependabot-preview[bot] 780d9db16e
Merge pull request #263 from oceanprotocol/dependabot/npm_and_yarn/client/react-helmet-6.0.0 2020-05-19 07:01:56 +00:00
Matthias Kretschmann 7905a1f8a9
new Helmet import 2020-05-19 08:37:51 +02:00
Alex Coseru 17cdb87b8d
Merge branch 'master' into feature/compute 2020-05-19 02:16:14 +03:00
dependabot-preview[bot] 4b3130e0e9
Merge pull request #269 from oceanprotocol/dependabot/npm_and_yarn/server/morgan-1.10.0 2020-05-18 22:27:48 +00:00
dependabot-preview[bot] 1014ab02cf
Merge pull request #268 from oceanprotocol/dependabot/npm_and_yarn/server/types/request-2.48.5 2020-05-18 22:27:34 +00:00
dependabot-preview[bot] cb68e7ef3d
Bump morgan from 1.9.1 to 1.10.0 in /server
Bumps [morgan](https://github.com/expressjs/morgan) from 1.9.1 to 1.10.0.
- [Release notes](https://github.com/expressjs/morgan/releases)
- [Changelog](https://github.com/expressjs/morgan/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/morgan/compare/1.9.1...1.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 18:08:27 +00:00
dependabot-preview[bot] cc3bc599b4
Bump @types/request from 2.48.4 to 2.48.5 in /server
Bumps [@types/request](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/request) from 2.48.4 to 2.48.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/request)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 18:07:30 +00:00
dependabot-preview[bot] 3ce29a59b9
Bump react-helmet from 5.2.1 to 6.0.0 in /client
Bumps [react-helmet](https://github.com/nfl/react-helmet) from 5.2.1 to 6.0.0.
- [Release notes](https://github.com/nfl/react-helmet/releases)
- [Changelog](https://github.com/nfl/react-helmet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nfl/react-helmet/commits/6.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 18:06:21 +00:00
dependabot-preview[bot] 73ba7d4cdd
Merge pull request #266 from oceanprotocol/dependabot/npm_and_yarn/client/types/react-dom-16.9.8 2020-05-18 18:02:56 +00:00
dependabot-preview[bot] f431b66a41
Merge pull request #265 from oceanprotocol/dependabot/npm_and_yarn/client/jest-mock-axios-4.0.0 2020-05-18 18:02:42 +00:00
dependabot-preview[bot] 5d1377fa24
Merge pull request #267 from oceanprotocol/dependabot/npm_and_yarn/client/query-string-6.12.1 2020-05-18 18:02:24 +00:00
dependabot-preview[bot] cd81fa3d9a
Merge pull request #264 from oceanprotocol/dependabot/npm_and_yarn/client/oceanprotocol/squid-2.1.2 2020-05-18 18:02:13 +00:00
dependabot-preview[bot] c69797cb02
Bump query-string from 6.11.1 to 6.12.1 in /client
Bumps [query-string](https://github.com/sindresorhus/query-string) from 6.11.1 to 6.12.1.
- [Release notes](https://github.com/sindresorhus/query-string/releases)
- [Commits](https://github.com/sindresorhus/query-string/compare/v6.11.1...v6.12.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 17:41:22 +00:00
dependabot-preview[bot] 6d834fb6a6
Bump @types/react-dom from 16.9.5 to 16.9.8 in /client
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 16.9.5 to 16.9.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 17:40:23 +00:00
dependabot-preview[bot] 0dda840f92
Bump jest-mock-axios from 3.2.0 to 4.0.0 in /client
Bumps [jest-mock-axios](https://github.com/knee-cola/jest-mock-axios) from 3.2.0 to 4.0.0.
- [Release notes](https://github.com/knee-cola/jest-mock-axios/releases)
- [Commits](https://github.com/knee-cola/jest-mock-axios/compare/3.2.0...4.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 17:38:55 +00:00
dependabot-preview[bot] 41600c2f30
Bump @oceanprotocol/squid from 2.1.1 to 2.1.2 in /client
Bumps [@oceanprotocol/squid](https://github.com/oceanprotocol/squid-js) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/oceanprotocol/squid-js/releases)
- [Changelog](https://github.com/oceanprotocol/squid-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/oceanprotocol/squid-js/compare/v2.1.1...v2.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 17:37:45 +00:00
alexcos20 54f437a6e6 fix tests 2020-05-18 10:02:40 -07:00
dependabot-preview[bot] 456e9a6607
Merge pull request #262 from oceanprotocol/dependabot/npm_and_yarn/client/ipfs-http-client-44.1.0 2020-05-18 16:22:02 +00:00
dependabot-preview[bot] 8a48afb535
Bump ipfs-http-client from 39.0.2 to 44.1.0 in /client
Bumps [ipfs-http-client](https://github.com/ipfs/js-ipfs) from 39.0.2 to 44.1.0.
- [Release notes](https://github.com/ipfs/js-ipfs/releases)
- [Changelog](https://github.com/ipfs/js-ipfs/blob/master/docs/RELEASES.md)
- [Commits](https://github.com/ipfs/js-ipfs/commits/ipfs-http-client@44.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 16:00:22 +00:00
dependabot-preview[bot] 0dfaf4c069
Merge pull request #261 from oceanprotocol/dependabot/npm_and_yarn/client/react-dropzone-11.0.1 2020-05-18 15:56:39 +00:00
dependabot-preview[bot] 23f956092a
Merge pull request #260 from oceanprotocol/dependabot/npm_and_yarn/client/moment-2.25.3 2020-05-18 15:56:22 +00:00
dependabot-preview[bot] 8bed302e9e
Merge pull request #259 from oceanprotocol/dependabot/npm_and_yarn/client/react-collapsed-3.0.0 2020-05-18 15:56:07 +00:00
alexcos20 f6be84e76f remove css lint 2020-05-18 08:56:02 -07:00
dependabot-preview[bot] 8284a407f8
Merge pull request #258 from oceanprotocol/dependabot/npm_and_yarn/client/testing-library/react-10.0.4 2020-05-18 15:55:40 +00:00
dependabot-preview[bot] 074250e544
Merge pull request #257 from oceanprotocol/dependabot/npm_and_yarn/client/truffle/hdwallet-provider-1.0.35 2020-05-18 15:55:27 +00:00
dependabot-preview[bot] 445c86f60d
Bump react-dropzone from 10.2.1 to 11.0.1 in /client
Bumps [react-dropzone](https://github.com/react-dropzone/react-dropzone) from 10.2.1 to 11.0.1.
- [Release notes](https://github.com/react-dropzone/react-dropzone/releases)
- [Commits](https://github.com/react-dropzone/react-dropzone/compare/v10.2.1...v11.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 15:30:00 +00:00
dependabot-preview[bot] 97fda45977
Bump moment from 2.24.0 to 2.25.3 in /client
Bumps [moment](https://github.com/moment/moment) from 2.24.0 to 2.25.3.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.24.0...2.25.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 15:28:52 +00:00
dependabot-preview[bot] b97205a0c2
Bump react-collapsed from 2.2.3 to 3.0.0 in /client
Bumps [react-collapsed](https://github.com/roginfarrer/react-collapsed) from 2.2.3 to 3.0.0.
- [Release notes](https://github.com/roginfarrer/react-collapsed/releases)
- [Changelog](https://github.com/roginfarrer/react-collapsed/blob/master/CHANGELOG.md)
- [Commits](https://github.com/roginfarrer/react-collapsed/compare/v2.2.3...v3.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 15:27:40 +00:00
dependabot-preview[bot] c0e15d5695
Bump @testing-library/react from 10.0.1 to 10.0.4 in /client
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 10.0.1 to 10.0.4.
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/react-testing-library/compare/v10.0.1...v10.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 15:26:28 +00:00
dependabot-preview[bot] 401d8349e6
Bump @truffle/hdwallet-provider from 1.0.33 to 1.0.35 in /client
Bumps [@truffle/hdwallet-provider](https://github.com/trufflesuite/truffle) from 1.0.33 to 1.0.35.
- [Release notes](https://github.com/trufflesuite/truffle/releases)
- [Commits](https://github.com/trufflesuite/truffle/compare/@truffle/hdwallet-provider@1.0.33...@truffle/hdwallet-provider@1.0.35)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 15:25:35 +00:00
dependabot-preview[bot] 9c93c92e10
Merge pull request #244 from oceanprotocol/dependabot/npm_and_yarn/auto-changelog-2.0.0 2020-05-18 13:30:24 +00:00
dependabot-preview[bot] 8505c1efd0
Merge pull request #246 from oceanprotocol/dependabot/npm_and_yarn/release-it-13.6.1 2020-05-18 13:30:08 +00:00
Matthias Kretschmann 7b02cbe52f
Merge pull request #256 from oceanprotocol/dependabot/npm_and_yarn/client/typescript-3.9.2
Bump typescript from 3.8.3 to 3.9.2 in /client
2020-05-18 15:29:34 +02:00
dependabot-preview[bot] a34c37f212
Merge pull request #235 from oceanprotocol/dependabot/npm_and_yarn/server/typescript-3.9.2 2020-05-18 13:29:13 +00:00
dependabot-preview[bot] 98c459241f
Merge pull request #249 from oceanprotocol/dependabot/npm_and_yarn/server/types/jest-25.2.2 2020-05-18 13:14:33 +00:00
dependabot-preview[bot] 6a6688b2e0
Bump typescript from 3.8.3 to 3.9.2 in /client
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.8.3 to 3.9.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.8.3...v3.9.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 12:39:47 +00:00
dependabot-preview[bot] d4cb1f78bd
Bump @types/jest from 25.1.4 to 25.2.2 in /server
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.1.4 to 25.2.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 12:38:03 +00:00
Matthias Kretschmann 13780d6a82
Merge pull request #255 from oceanprotocol/dependabot/npm_and_yarn/client/sindresorhus/slugify-1.0.0
Bump @sindresorhus/slugify from 0.11.0 to 1.0.0 in /client
2020-05-18 14:37:58 +02:00
dependabot-preview[bot] dba1f8f878
Bump typescript from 3.8.3 to 3.9.2 in /server
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.8.3 to 3.9.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.8.3...v3.9.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 12:37:38 +00:00
dependabot-preview[bot] 6e12b3f1be
Merge pull request #253 from oceanprotocol/dependabot/npm_and_yarn/client/oceanprotocol/squid-2.1.1 2020-05-18 12:36:14 +00:00
dependabot-preview[bot] 04f5db99f0
Merge pull request #254 from oceanprotocol/dependabot/npm_and_yarn/client/types/react-16.9.35 2020-05-18 12:35:52 +00:00
dependabot-preview[bot] ca6ee70da8
Merge pull request #252 from oceanprotocol/dependabot/npm_and_yarn/client/react-scripts-3.4.1 2020-05-18 12:35:31 +00:00
dependabot-preview[bot] 274a9507e3
Bump auto-changelog from 1.16.2 to 2.0.0
Bumps [auto-changelog](https://github.com/CookPete/auto-changelog) from 1.16.2 to 2.0.0.
- [Release notes](https://github.com/CookPete/auto-changelog/releases)
- [Changelog](https://github.com/CookPete/auto-changelog/blob/master/CHANGELOG.md)
- [Commits](https://github.com/CookPete/auto-changelog/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 12:31:20 +00:00
dependabot-preview[bot] 2dafe64a00
Bump release-it from 13.6.0 to 13.6.1
Bumps [release-it](https://github.com/release-it/release-it) from 13.6.0 to 13.6.1.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.6.0...13.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 12:31:14 +00:00
dependabot-preview[bot] e8bab5749b
Merge pull request #248 from oceanprotocol/dependabot/npm_and_yarn/eslint-config-prettier-6.11.0 2020-05-18 12:29:50 +00:00
Matthias Kretschmann 3f5def552e
Merge pull request #250 from oceanprotocol/dependabot/npm_and_yarn/cypress-4.5.0
Bump cypress from 4.2.0 to 4.5.0
2020-05-18 14:29:31 +02:00
dependabot-preview[bot] 7df95c69ab
Merge pull request #243 from oceanprotocol/dependabot/npm_and_yarn/typescript-eslint/parser-2.33.0 2020-05-18 12:28:47 +00:00
dependabot-preview[bot] 024b873614
Merge pull request #251 from oceanprotocol/dependabot/npm_and_yarn/server/ts-node-8.10.1 2020-05-18 12:28:05 +00:00
dependabot-preview[bot] 9c16ad30e1
Merge pull request #247 from oceanprotocol/dependabot/npm_and_yarn/server/types/supertest-2.0.9 2020-05-18 12:27:48 +00:00
dependabot-preview[bot] 8fb906b168
Merge pull request #245 from oceanprotocol/dependabot/npm_and_yarn/server/types/express-4.17.6 2020-05-18 12:27:28 +00:00
dependabot-preview[bot] 20cc62b2fa
Merge pull request #242 from oceanprotocol/dependabot/npm_and_yarn/server/express-validator-6.5.0 2020-05-18 12:27:12 +00:00
alexcos20 99fa2e965b fix lint 2020-05-18 05:09:04 -07:00
dependabot-preview[bot] c82f31dc2d
Bump @sindresorhus/slugify from 0.11.0 to 1.0.0 in /client
Bumps [@sindresorhus/slugify](https://github.com/sindresorhus/slugify) from 0.11.0 to 1.0.0.
- [Release notes](https://github.com/sindresorhus/slugify/releases)
- [Commits](https://github.com/sindresorhus/slugify/compare/v0.11.0...v1.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 11:49:16 +00:00
dependabot-preview[bot] d11dc641cf
Bump @types/react from 16.9.23 to 16.9.35 in /client
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 16.9.23 to 16.9.35.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 11:48:03 +00:00
dependabot-preview[bot] 8e547f9b9d
Bump @oceanprotocol/squid from 2.0.0-beta.4 to 2.1.1 in /client
Bumps [@oceanprotocol/squid](https://github.com/oceanprotocol/squid-js) from 2.0.0-beta.4 to 2.1.1.
- [Release notes](https://github.com/oceanprotocol/squid-js/releases)
- [Changelog](https://github.com/oceanprotocol/squid-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/oceanprotocol/squid-js/compare/2.0.0-beta.4...v2.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 11:46:54 +00:00
dependabot-preview[bot] 112f2ba00c
Bump react-scripts from 3.4.0 to 3.4.1 in /client
Bumps [react-scripts](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts) from 3.4.0 to 3.4.1.
- [Release notes](https://github.com/facebook/create-react-app/releases)
- [Changelog](https://github.com/facebook/create-react-app/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/create-react-app/commits/react-scripts@3.4.1/packages/react-scripts)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 11:45:42 +00:00
dependabot-preview[bot] d5ff3c1df2
Bump ts-node from 8.7.0 to 8.10.1 in /server
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 8.7.0 to 8.10.1.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v8.7.0...v8.10.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 08:54:53 +00:00
dependabot-preview[bot] f7d4a5a994
Bump cypress from 4.2.0 to 4.5.0
Bumps [cypress](https://github.com/cypress-io/cypress) from 4.2.0 to 4.5.0.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Commits](https://github.com/cypress-io/cypress/compare/v4.2.0...v4.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 08:54:31 +00:00
dependabot-preview[bot] abab1b1ffb
Bump eslint-config-prettier from 6.10.0 to 6.11.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.10.0 to 6.11.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.10.0...v6.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 08:53:51 +00:00
dependabot-preview[bot] c1296ed172
Bump @types/supertest from 2.0.8 to 2.0.9 in /server
Bumps [@types/supertest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/supertest) from 2.0.8 to 2.0.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/supertest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 08:53:38 +00:00
dependabot-preview[bot] c00911c886
Bump @types/express from 4.17.3 to 4.17.6 in /server
Bumps [@types/express](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/express) from 4.17.3 to 4.17.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/express)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 08:53:05 +00:00
dependabot-preview[bot] c539db7141
Bump @typescript-eslint/parser from 2.24.0 to 2.33.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.24.0 to 2.33.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.33.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 08:52:18 +00:00
dependabot-preview[bot] af5dd6339a
Bump express-validator from 6.4.1 to 6.5.0 in /server
Bumps [express-validator](https://github.com/express-validator/express-validator) from 6.4.1 to 6.5.0.
- [Release notes](https://github.com/express-validator/express-validator/releases)
- [Commits](https://github.com/express-validator/express-validator/compare/v6.4.1...v6.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 08:52:07 +00:00
dependabot-preview[bot] f70612300d
Merge pull request #233 from oceanprotocol/dependabot/npm_and_yarn/server/types/node-14.0.1 2020-05-17 01:15:45 +00:00
dependabot-preview[bot] cd9364167d
Bump @types/node from 13.9.2 to 14.0.1 in /server
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.9.2 to 14.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-17 00:46:57 +00:00
dependabot-preview[bot] 24316aa19d
Merge pull request #241 from oceanprotocol/dependabot/npm_and_yarn/client/source-map-explorer-2.4.2 2020-05-17 00:45:30 +00:00
dependabot-preview[bot] dd6f1537c9
Merge pull request #238 from oceanprotocol/dependabot/npm_and_yarn/server/sendgrid/mail-7.1.1 2020-05-17 00:45:05 +00:00
Matthias Kretschmann c642fa0ee7
Merge pull request #240 from oceanprotocol/dependabot/npm_and_yarn/client/types/jest-25.2.2
Bump @types/jest from 25.1.4 to 25.2.2 in /client
2020-05-17 02:44:34 +02:00
dependabot-preview[bot] 8e06fc63e3
Merge pull request #239 from oceanprotocol/dependabot/npm_and_yarn/client/react-datepicker-2.16.0 2020-05-17 00:43:57 +00:00
dependabot-preview[bot] c64adf2400
Merge pull request #236 from oceanprotocol/dependabot/npm_and_yarn/server/nodemon-2.0.4 2020-05-17 00:43:33 +00:00
dependabot-preview[bot] 32a8086753
Merge pull request #237 from oceanprotocol/dependabot/npm_and_yarn/client/testing-library/jest-dom-5.7.0 2020-05-17 00:42:57 +00:00
dependabot-preview[bot] d2e250149d
Merge pull request #232 from oceanprotocol/dependabot/npm_and_yarn/server/express-validator-6.4.1 2020-05-17 00:16:20 +00:00
dependabot-preview[bot] d5c26544ef
Merge pull request #229 from oceanprotocol/dependabot/npm_and_yarn/stylelint-13.3.3 2020-05-17 00:16:04 +00:00
dependabot-preview[bot] 93db50886e
Bump source-map-explorer from 2.4.0 to 2.4.2 in /client
Bumps [source-map-explorer](https://github.com/danvk/source-map-explorer) from 2.4.0 to 2.4.2.
- [Release notes](https://github.com/danvk/source-map-explorer/releases)
- [Commits](https://github.com/danvk/source-map-explorer/compare/v2.4.0...v2.4.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 23:55:30 +00:00
dependabot-preview[bot] 5e6b56112f
Bump @types/jest from 25.1.4 to 25.2.2 in /client
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.1.4 to 25.2.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 23:54:13 +00:00
dependabot-preview[bot] 812812d413
Bump react-datepicker from 2.14.0 to 2.16.0 in /client
Bumps [react-datepicker](https://github.com/Hacker0x01/react-datepicker) from 2.14.0 to 2.16.0.
- [Release notes](https://github.com/Hacker0x01/react-datepicker/releases)
- [Commits](https://github.com/Hacker0x01/react-datepicker/compare/v2.14.0...v2.16.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 23:53:36 +00:00
dependabot-preview[bot] 0d69433ad2
Bump @sendgrid/mail from 6.5.5 to 7.1.1 in /server
Bumps [@sendgrid/mail](https://github.com/sendgrid/sendgrid-nodejs) from 6.5.5 to 7.1.1.
- [Release notes](https://github.com/sendgrid/sendgrid-nodejs/releases)
- [Changelog](https://github.com/sendgrid/sendgrid-nodejs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sendgrid/sendgrid-nodejs/compare/6.5.5...7.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 23:52:21 +00:00
dependabot-preview[bot] 874ae1d058
Bump @testing-library/jest-dom from 5.1.1 to 5.7.0 in /client
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.1.1 to 5.7.0.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.1.1...v5.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 23:52:02 +00:00
dependabot-preview[bot] 1193b62607
Bump nodemon from 2.0.2 to 2.0.4 in /server
Bumps [nodemon](https://github.com/remy/nodemon) from 2.0.2 to 2.0.4.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v2.0.2...v2.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 23:51:32 +00:00
dependabot-preview[bot] 1d5a17142e
Bump express-validator from 6.4.0 to 6.4.1 in /server
Bumps [express-validator](https://github.com/express-validator/express-validator) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/express-validator/express-validator/releases)
- [Commits](https://github.com/express-validator/express-validator/compare/v6.4.0...v6.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 23:49:34 +00:00
dependabot-preview[bot] 78f3358672
Bump stylelint from 13.2.1 to 13.3.3
Bumps [stylelint](https://github.com/stylelint/stylelint) from 13.2.1 to 13.3.3.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/13.2.1...13.3.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 23:47:26 +00:00
Matthias Kretschmann c34797e9d8
Merge pull request #231 from oceanprotocol/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-2.33.0
Bump @typescript-eslint/eslint-plugin from 2.24.0 to 2.33.0
2020-05-17 01:45:45 +02:00
Matthias Kretschmann aef84642af
Merge pull request #228 from oceanprotocol/dependabot/npm_and_yarn/start-server-and-test-1.11.0
Bump start-server-and-test from 1.10.10 to 1.11.0
2020-05-17 01:45:18 +02:00
dependabot-preview[bot] dbc8baf5ca
Bump start-server-and-test from 1.10.10 to 1.11.0
Bumps [start-server-and-test](https://github.com/bahmutov/start-server-and-test) from 1.10.10 to 1.11.0.
- [Release notes](https://github.com/bahmutov/start-server-and-test/releases)
- [Commits](https://github.com/bahmutov/start-server-and-test/compare/v1.10.10...v1.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 22:45:43 +00:00
Matthias Kretschmann 366c49537e
Merge pull request #227 from oceanprotocol/dependabot/npm_and_yarn/handlebars-4.7.6
[Security] Bump handlebars from 4.5.3 to 4.7.6
2020-05-17 00:44:07 +02:00
Matthias Kretschmann 59aa6e3cc8
Merge pull request #226 from oceanprotocol/dependabot/npm_and_yarn/release-it-13.6.0
Bump release-it from 13.1.1 to 13.6.0
2020-05-17 00:43:45 +02:00
dependabot-preview[bot] 881c924afd
Bump @typescript-eslint/eslint-plugin from 2.24.0 to 2.33.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.24.0 to 2.33.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.33.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 22:20:49 +00:00
dependabot-preview[bot] 41968bf4b6
[Security] Bump handlebars from 4.5.3 to 4.7.6
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.5.3 to 4.7.6. **This update includes a security fix.**
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.5.3...v4.7.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 22:18:34 +00:00
dependabot-preview[bot] 906a141504
Bump release-it from 13.1.1 to 13.6.0
Bumps [release-it](https://github.com/release-it/release-it) from 13.1.1 to 13.6.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.1.1...13.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 22:18:23 +00:00
alexcos20 38691369d4 lint fix 2020-05-05 12:43:14 +03:00
alexcos20 23aced5f9c update compute images 2020-05-05 08:36:59 +03:00
alexcos20 3f7e8f9f18 fix get jobs 2020-04-15 15:33:08 +03:00
alexcos20 e7cd6105bf fix image select 2020-04-03 10:30:47 +03:00
mihaisc aff63caf9a job styling 2020-04-02 15:10:27 +03:00
mihaisc b5eb2e2ddf job history 2020-03-31 22:04:15 +03:00
mihaisc 553535c578 job history 2020-03-30 19:22:48 +03:00
mihaisc 1b20b12cce squid update, assetjob refactor 2020-03-30 14:22:34 +03:00
mihaisc d234717a6a add job on compute asset 2020-03-29 17:39:09 +03:00
Matthias Kretschmann f63077181e
Release 2.3.1 2020-03-20 11:47:03 +01:00
Matthias Kretschmann 5f8b3d7b69
Merge pull request #223 from oceanprotocol/fix/packages
package updates
2020-03-20 11:43:10 +01:00
Matthias Kretschmann 192c54134a
more package updates 2020-03-20 00:10:29 +01:00
Matthias Kretschmann b7c6543fbe
lint fixes 2020-03-16 12:40:49 +01:00
Matthias Kretschmann 94fa7701eb
package updates 2020-03-16 11:48:08 +01:00
Matthias Kretschmann 5ced0c4dc8
Merge pull request #222 from oceanprotocol/dependabot/npm_and_yarn/server/acorn-5.7.4
Bump acorn from 5.7.3 to 5.7.4 in /server
2020-03-16 10:55:35 +01:00
dependabot[bot] f5728e732b
Bump acorn from 5.7.3 to 5.7.4 in /server
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-03-16 09:32:59 +00:00
Matthias Kretschmann 6bacf8936d
Merge pull request #221 from oceanprotocol/dependabot/npm_and_yarn/client/acorn-5.7.4
Bump acorn from 5.7.3 to 5.7.4 in /client
2020-03-16 10:30:51 +01:00
Matthias Kretschmann 1e0f549e8f
Merge pull request #220 from oceanprotocol/dependabot/npm_and_yarn/acorn-7.1.1
Bump acorn from 7.1.0 to 7.1.1
2020-03-16 10:30:32 +01:00
dependabot[bot] 70ba8ded20
Bump acorn from 5.7.3 to 5.7.4 in /client
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-03-15 16:14:51 +00:00
dependabot[bot] a0df037d37
Bump acorn from 7.1.0 to 7.1.1
Bumps [acorn](https://github.com/acornjs/acorn) from 7.1.0 to 7.1.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/7.1.0...7.1.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-03-13 23:21:19 +00:00
Matthias Kretschmann f143a59b0b
Release 2.3.0 2020-02-20 16:38:14 +01:00
Matthias Kretschmann 456ad15ddf
Merge pull request #218 from oceanprotocol/feature/squid-v2
bump to squid.js v2 beta
2020-02-20 16:36:42 +01:00
Matthias Kretschmann c669089d3b
update ocean.assets methods 2020-02-20 16:11:28 +01:00
Matthias Kretschmann e81c196d40
bump to squid.js v2 beta 2020-02-20 15:34:55 +01:00
Matthias Kretschmann 57f2022f37
Release 2.2.0 2020-02-01 15:46:03 +01:00
Matthias Kretschmann ba2de2e69c
Merge pull request #209 from oceanprotocol/feature/react-scripts-update
bump to react-scripts v3.3
2020-02-01 15:41:44 +01:00
Matthias Kretschmann 3e814b98a7
fix Travis 2020-02-01 14:25:35 +01:00
Matthias Kretschmann a54bcc1afb
fix tests 2020-01-31 18:03:13 +01:00
Matthias Kretschmann 65b72e597d
package updates 2020-01-31 17:14:03 +01:00
Matthias Kretschmann 004f946d99
test tweaks 2020-01-31 16:57:46 +01:00
Matthias Kretschmann 8089a7aa3e
package updates 2020-01-31 16:57:46 +01:00
Matthias Kretschmann 9cbedb8f87
bump to react-scripts v3.3
* allows to bump all eslint packages too
* fix new lint errors
2020-01-31 16:57:46 +01:00
Matthias Kretschmann b9f83021c7
Release 2.1.0 2020-01-23 13:29:58 +01:00
Matthias Kretschmann 44d0c25e0b
Merge pull request #216 from oceanprotocol/fix/search-duplication
Fix search code duplication
2020-01-23 13:28:37 +01:00
Matthias Kretschmann ebdbb04bd9
Merge pull request #210 from oceanprotocol/feature/keeper-0.13
bump to keeper-contracts v0.13
2020-01-23 13:28:17 +01:00
Matthias Kretschmann 37296c502e
bump all components 2020-01-22 18:17:09 +01:00
Matthias Kretschmann d80530c315
fix search 2020-01-15 21:39:11 +01:00
Matthias Kretschmann c5ea3b7c8a
fix code duplication 2020-01-15 21:31:37 +01:00
Matthias Kretschmann 77e2dd49c5
Release 2.1.0-beta.0 2020-01-07 12:22:45 +01:00
Matthias Kretschmann 5ba5cd9e20
bump to keeper-contracts v0.13.0 2020-01-07 12:21:14 +01:00
Matthias Kretschmann e9e5dd9049
Release 2.0.1 2020-01-07 12:16:23 +01:00
Matthias Kretschmann c98fc44d35
Merge pull request #213 from oceanprotocol/fix/additionalInformation
more additionalInformation checks
2020-01-07 12:14:48 +01:00
Matthias Kretschmann 1355be96c8
more additionalInformation checks 2020-01-07 11:49:06 +01:00
Matthias Kretschmann 3d9ed9d1c3
Merge pull request #211 from oceanprotocol/feature/tabwidth
remove editorconfig
2019-12-18 11:28:15 +01:00
Matthias Kretschmann f8dfaa438c
remove editorconfig, define all styling in prettierrc 2019-12-18 10:46:43 +01:00
Matthias Kretschmann 70a3339f8b
Release 2.0.0 2019-12-09 14:21:45 +01:00
Matthias Kretschmann 1b07944e02
Merge pull request #207 from oceanprotocol/feature/v2-ddo
Migrate to new v2 DDO structure
2019-12-09 14:20:20 +01:00
Matthias Kretschmann 7f9daa0d82
bump to squid-js v1.0.0 2019-12-09 12:55:39 +01:00
Matthias Kretschmann 3df046bbea
test and package fixes 2019-12-07 18:42:30 +01:00
Matthias Kretschmann a8c695e16f
bump dependencies 2019-12-06 16:24:48 +01:00
Matthias Kretschmann ed2812d6f4
bump components 2019-12-06 15:46:47 +01:00
Matthias Kretschmann 2868076da2
Release 2.0.0-beta.3 2019-11-22 12:47:45 +01:00
Matthias Kretschmann b652d243d4
bump squid-js 2019-11-22 12:46:55 +01:00
Matthias Kretschmann c0a79b3188
bump Brizo & Aquarius 2019-11-22 12:43:08 +01:00
Matthias Kretschmann 670f717b37
Release 2.0.0-beta.2 2019-11-22 12:43:07 +01:00
Matthias Kretschmann dcc5642aa2
bump squid-js 2019-11-22 12:42:37 +01:00
Matthias Kretschmann 50d077a887
test against Brizo v0.7.0 2019-11-22 12:42:37 +01:00
Matthias Kretschmann 5800027cbf
bump packages 2019-11-22 12:42:37 +01:00
Matthias Kretschmann f7a5de7b5c
run against Node.js v12 2019-11-22 12:42:37 +01:00
Matthias Kretschmann 954c6d2d46
Release 2.0.0-beta.1 2019-11-22 12:42:37 +01:00
Matthias Kretschmann 8c3262c1d9
bump web3 packages 2019-11-22 12:42:00 +01:00
Matthias Kretschmann b4248b7693
Release 2.0.0-beta.0 2019-11-22 12:42:00 +01:00
Matthias Kretschmann 831e3d1aa1
bump squid-js 2019-11-22 12:40:25 +01:00
Matthias Kretschmann 7eea449a5d
bump to Aquarius v1.0.2 2019-11-22 12:40:25 +01:00
Matthias Kretschmann 417abf8988
search tweaks 2019-11-22 12:40:25 +01:00
Matthias Kretschmann ed33f690f9
test against Aquarius v1.0.1 2019-11-22 12:40:24 +01:00
Matthias Kretschmann 6282dbb5fc
contentLength as string 2019-11-22 12:40:24 +01:00
Matthias Kretschmann ac5c66f0e9
test against Aquarius v1.0.0 2019-11-22 12:40:24 +01:00
Matthias Kretschmann 985803d43e
update to new DDO structure 2019-11-22 12:40:24 +01:00
Matthias Kretschmann c3c8ca5368
switch to v2 components 2019-11-22 12:40:24 +01:00
Matthias Kretschmann a81838c8e7
bump to squid@next 2019-11-22 12:40:16 +01:00
Matthias Kretschmann b02cda043c
Release 1.3.2 2019-11-22 12:37:00 +01:00
Matthias Kretschmann 8ca727fffc
bump to squid-js v0.8.3 2019-11-22 12:36:25 +01:00
Matthias Kretschmann c8a46a5316
Release 1.3.1 2019-11-07 15:06:59 +01:00
Matthias Kretschmann 345bbb0dfb
Merge pull request #206 from oceanprotocol/feature/bump-squid
Bump squid
2019-11-07 15:06:04 +01:00
Matthias Kretschmann afd4ec991f
downgrade @typescript-eslint packages 2019-11-07 14:19:16 +01:00
Matthias Kretschmann 826cb07953
test fix 2019-11-07 13:57:21 +01:00
Matthias Kretschmann ccdef8143e
bump squid 2019-11-07 13:46:03 +01:00
Matthias Kretschmann 4741e1260d
add nvmrc 2019-11-07 11:18:17 +01:00
Matthias Kretschmann 7d60a85885
Release 1.3.0 2019-11-01 12:48:07 +01:00
Matthias Kretschmann 7c88cb4fea
Merge pull request #204 from oceanprotocol/feature/bump-squid
bump packages
2019-11-01 12:47:12 +01:00
Matthias Kretschmann da9237ea46
lock to react-scripts 3.0.1 2019-11-01 11:20:48 +01:00
Matthias Kretschmann 532dee9845
increase add file timeouts in publish test 2019-10-30 12:09:53 +01:00
Matthias Kretschmann ced3f716da
run unit tests in silent mode
* prevents unhelpful and noisy console logging in passed tests
2019-10-30 11:32:59 +01:00
Matthias Kretschmann 9daa49a085
fix async unit tests
* async act() to the rescue with React 16.9+
2019-10-30 10:58:30 +01:00
Matthias Kretschmann e417c8299a
consume integration test tweaks 2019-10-29 17:30:19 +01:00
Matthias Kretschmann aec1f78257
web3 1.2.2 & truffle-hd-wallet updates, simplify types 2019-10-29 14:27:13 +01:00
Matthias Kretschmann fe4f2233f0
more test fixes 2019-10-28 18:46:24 +01:00
Matthias Kretschmann 3fb7358b77
bump testing-library packages 2019-10-25 15:30:56 +02:00
Matthias Kretschmann f14413e34f
test fixes 2019-10-25 12:43:25 +02:00
Matthias Kretschmann 1bf47ce128
bump packages
* squid-js to v0.8.0 with keeper-contracts v12
* ipfs packages
2019-10-24 15:36:35 +02:00
Matthias Kretschmann ae34031e9f
Release 1.2.2 2019-10-24 14:25:54 +02:00
Alex Coseru a8cde6499b
Merge pull request #203 from oceanprotocol/fix/ipfs
IPFS fixes
2019-10-24 15:23:08 +03:00
Matthias Kretschmann 4319115e00
lazy load IPFS component 2019-10-24 13:36:12 +02:00
Matthias Kretschmann 77deaf063e
stream files when adding 2019-10-24 13:31:35 +02:00
Matthias Kretschmann 28c1d2e331
disable progress for now 2019-10-24 13:11:40 +02:00
Matthias Kretschmann 70b3f8c8bd
Release 1.2.1 2019-10-15 11:42:13 +02:00
Matthias Kretschmann 9226bf2799
Docker tweaks 2019-10-15 11:39:34 +02:00
Matthias Kretschmann 78d4c8b874
package fixes 2019-10-15 10:44:47 +02:00
Matthias Kretschmann 8aadcb9d97
hotfix for Docker build 2019-10-14 16:50:14 +02:00
Matthias Kretschmann e06c337ba1
Release 1.2.0 2019-10-14 15:25:09 +02:00
Matthias Kretschmann 54a4ba5c68
Merge pull request #191 from oceanprotocol/feature/ipfs
Add files to IPFS during publish flow
2019-10-14 15:22:51 +02:00
Matthias Kretschmann 4fb47c063b
move travis to ipfs.oceanprotocol.com 2019-10-14 14:30:31 +02:00
Matthias Kretschmann 59ede97931
update docs 2019-10-14 11:23:49 +02:00
Matthias Kretschmann 74cb19f5ef
use final IPFS gateway url in server 2019-10-14 10:57:37 +02:00
Matthias Kretschmann 4ead855731
eslint tweaks 2019-10-14 10:57:37 +02:00
Matthias Kretschmann af8df224cb
bump IPFS packages 2019-10-14 10:57:37 +02:00
Matthias Kretschmann dc0f5c803d
better error handling 2019-10-14 10:57:37 +02:00
Matthias Kretschmann aef52f61c0
IPFS node testing 2019-10-14 10:57:36 +02:00
Matthias Kretschmann 4920bae0fa
api port tweaks 2019-10-14 10:57:06 +02:00
Matthias Kretschmann 8b31257837
test fixes 2019-10-14 10:57:06 +02:00
Matthias Kretschmann e3be76fb95
move IPFS config for client & server 2019-10-14 10:57:06 +02:00
Matthias Kretschmann c63325bdf2
useIpfs fixes 2019-10-14 10:57:06 +02:00
Matthias Kretschmann 60a570892b
more error output in UI 2019-10-14 10:57:06 +02:00
Matthias Kretschmann 483cc35de3
make showing received file size more reliable 2019-10-14 10:57:06 +02:00
Matthias Kretschmann 1813207772
fix gateway url ping 2019-10-14 10:57:06 +02:00
Matthias Kretschmann 752498d6b3
IPFS publish & consume integration tests 2019-10-14 10:57:06 +02:00
Matthias Kretschmann c6f5f8561c
update tests 2019-10-14 10:57:05 +02:00
Matthias Kretschmann ba3704dcce
preserve original file names 2019-10-14 10:57:05 +02:00
Matthias Kretschmann 6d4b6b77c2
refactor IPFS dropzone
* only allow single file for now
* async file content reading
* output list of files by default in Dropzone component
2019-10-14 10:57:05 +02:00
Matthias Kretschmann 302986d63b
test updates 2019-10-14 10:57:05 +02:00
Matthias Kretschmann 84eff3f3b4
add use-ipfs hook test 2019-10-14 10:57:05 +02:00
Matthias Kretschmann 8b612ea4a2
code fixes 2019-10-14 10:57:05 +02:00
Matthias Kretschmann 725215b6ee
new client package-lock 2019-10-14 10:57:05 +02:00
Matthias Kretschmann 3d1d81ffe9
update tests 2019-10-14 10:57:04 +02:00
Matthias Kretschmann be7020bceb
downgrade @typescript-eslint packages 2019-10-14 10:57:04 +02:00
Matthias Kretschmann e512ed4471
IPFS publishing fixes, allow dropping multiple files 2019-10-14 10:57:04 +02:00
Matthias Kretschmann da357b82c2
add content-range 2019-10-14 10:56:34 +02:00
Matthias Kretschmann 2f741d300e
fix file adding on faulty url checker response 2019-10-14 10:56:34 +02:00
Matthias Kretschmann 839140d906
tweaks 2019-10-14 10:56:34 +02:00
Matthias Kretschmann a2a6720fd8
dropzone component 2019-10-14 10:56:34 +02:00
Matthias Kretschmann a258f6b94b
fix useEffect warning 2019-10-14 10:56:33 +02:00
Matthias Kretschmann 955608202d
message output 2019-10-14 10:56:33 +02:00
Matthias Kretschmann a2f075171c
prototype publishing to remote node (ipfs.infura.io) 2019-10-14 10:56:33 +02:00
Matthias Kretschmann 8127174fbd
allow multiple nodes running at same time 2019-10-14 10:56:33 +02:00
Matthias Kretschmann 6db965b79a
more test fixes 2019-10-14 10:56:33 +02:00
Matthias Kretschmann 5002effbfe
unit test fixes 2019-10-14 10:56:33 +02:00
Matthias Kretschmann b6d255bbad
IPFS gateway tweaks 2019-10-14 10:56:33 +02:00
Matthias Kretschmann 9c38c82496
output js-ipfs version 2019-10-14 10:56:32 +02:00
Matthias Kretschmann 3b889725f1
more user feedback, refactoring 2019-10-14 10:56:32 +02:00
Matthias Kretschmann 1c59d49d5d
working prototype of adding files to IPFS during publish flow 2019-10-14 10:56:32 +02:00
Matthias Kretschmann 414dcd455a
update server tests 2019-10-14 10:56:32 +02:00
Matthias Kretschmann 85ffae37d1
add help text 2019-10-14 10:56:32 +02:00
Matthias Kretschmann 475cade27f
support adding files from IPFS url 2019-10-14 10:56:32 +02:00
Matthias Kretschmann 10b662343f
Release 1.1.4 2019-10-14 10:28:08 +02:00
Alex Coseru 2c99d6f9e6
Merge pull request #202 from oceanprotocol/fix/faucet
Faucet route refactor
2019-10-14 11:22:25 +03:00
Alex Coseru 5d880778ba
Merge pull request #201 from oceanprotocol/feature/channels-feature-switch
Put Channels behind feature switch
2019-10-14 11:21:06 +03:00
Matthias Kretschmann e007ab2090
more dynamic intro text 2019-10-11 19:16:23 +02:00
Matthias Kretschmann 5b0c3486dd
Faucet route refactor
* split up components
* move actions state management into single action component
* layout & style tweaks
* update tests
2019-10-11 18:25:13 +02:00
Matthias Kretschmann cf783e66b8
properly make env variable values into booleans 2019-10-10 11:41:33 +02:00
Matthias Kretschmann a7209f690d
put channels behind feature switch 2019-10-10 11:21:55 +02:00
Matthias Kretschmann 8f0988e1b0
Release 1.1.3 2019-10-08 15:31:21 +02:00
Matthias Kretschmann 60327973de
Merge pull request #200 from oceanprotocol/feature/pleuston-commons
switch Barge to --no-commons flag
2019-10-08 13:21:45 +02:00
Matthias Kretschmann 9e773fa791
switch Barge to --no-commons flag 2019-10-08 13:01:42 +02:00
Sebastian Gerske c1f9b96b04
Merge pull request #199 from oceanprotocol/feature/request_tokens
added token faucet functionality
2019-10-07 15:30:52 +02:00
Sebastian Gerske e965fe1ff6 Merge remote-tracking branch 'origin/feature/request_tokens' into feature/request_tokens 2019-10-07 15:11:34 +02:00
Sebastian Gerske d7e93d116c fixed coded ui tests 2019-10-07 15:09:45 +02:00
Matthias Kretschmann 5b52505ee8
update faucet integration test 2019-10-07 15:09:42 +02:00
Sebastian Gerske aeb24aadda - increased token amount given
- made clear which token is going to be requested
- removed code duplication
2019-10-07 14:52:05 +02:00
Sebastian Gerske 3235dc1d5e prettier 2019-10-07 14:25:42 +02:00
Sebastian Gerske 6b237e7348 remove console.log 2019-10-07 14:12:07 +02:00
Sebastian Gerske 9ec7b0af66 added token faucet functionality 2019-10-07 14:02:53 +02:00
Matthias Kretschmann 29e6e8b5af
Release 1.1.2 2019-09-24 17:14:41 +02:00
Matthias Kretschmann 1e592497ae
Merge pull request #198 from oceanprotocol/fix/asset-details-loading
show web3 message on asset loading failure
2019-09-24 16:26:05 +02:00
Matthias Kretschmann 97a5f39b5e
show web3 message on asset loading failure 2019-09-24 14:32:15 +02:00
Matthias Kretschmann 33b14bc8e3
Release 1.1.1 2019-09-13 11:18:45 +02:00
Matthias Kretschmann 5f37adc420
Merge pull request #196 from oceanprotocol/fix/asset-detail-errors
fix error output on asset details loading
2019-09-13 10:59:06 +02:00
Matthias Kretschmann b77e38c3ab
always show price on asset detail when bigger than 0 2019-09-12 13:52:50 +02:00
Matthias Kretschmann e32f3bbb62
fix event bubbling on wallet selector button
* closes #197
2019-09-12 11:45:52 +02:00
Matthias Kretschmann 12f6cfcb80
test fixes 2019-09-12 11:33:20 +02:00
Matthias Kretschmann 821f80da0f
asset details refactor 2019-09-12 11:27:32 +02:00
Matthias Kretschmann c4e71173ba
fix error output on asset details loading 2019-09-12 11:11:47 +02:00
Matthias Kretschmann c4029b147c
Release 1.1.0 2019-09-11 16:48:10 +02:00
Matthias Kretschmann 8e8c145d18
Merge pull request #189 from oceanprotocol/feature/squid
bump to squid-js v0.7.2
2019-09-11 16:06:19 +02:00
Matthias Kretschmann 199df0e23d
failing CI build workaround
* until fix in web3.js is released for https://github.com/ethereum/web3.js/issues/3018
2019-09-11 14:35:03 +02:00
Matthias Kretschmann 8058325697
lock React to v16.8.6 2019-09-11 14:13:20 +02:00
Matthias Kretschmann 9ef8fc9fba
set events handler version 2019-09-11 14:03:26 +02:00
Matthias Kretschmann cb3f9c11d2
bump component versions 2019-09-11 10:42:41 +02:00
Matthias Kretschmann 09caa5461e
specific aquarius & brizo versions on Travis 2019-09-11 10:42:41 +02:00
Matthias Kretschmann 3a32a72de2
bump to squid-js v0.7.2 2019-09-11 10:42:41 +02:00
Matthias Kretschmann 8b155b375f
Merge pull request #195 from oceanprotocol/feature/faucet-version
get faucet network from response
2019-09-11 10:42:20 +02:00
Matthias Kretschmann dd9b1b5122
get faucet network from response 2019-09-10 16:08:45 +02:00
Matthias Kretschmann 7d911bf763
Merge pull request #194 from oceanprotocol/feature/codeclimate
add code climate
2019-09-10 10:11:45 +02:00
Matthias Kretschmann 3f730f295e
code climate script fix 2019-09-10 00:52:25 +02:00
Matthias Kretschmann 60d98340d9
lint fix 2019-09-10 00:33:23 +02:00
Matthias Kretschmann c62b69b17f
pipe and merge coverage reports 2019-09-10 00:22:23 +02:00
Matthias Kretschmann 1f7845aa22
code fixes 2019-09-10 00:15:13 +02:00
Matthias Kretschmann 73c7624873
add code climate coverage reporting 2019-09-09 23:58:12 +02:00
Matthias Kretschmann e009733c7e
Merge pull request #193 from oceanprotocol/feature/disable-auto-deployments
Disable auto-deployments for now
2019-09-09 10:06:41 +02:00
Matthias Kretschmann 4ae344a861
disable auto-deployments for now 2019-09-06 14:27:09 +02:00
Matthias Kretschmann 276688ffee
Release 1.0.2 2019-09-02 16:19:11 +02:00
Matthias Kretschmann 20c0d9b3ae
Merge pull request #190 from oceanprotocol/fix/vulnerabilities
Fix vulnerabilities
2019-09-02 15:33:44 +02:00
Matthias Kretschmann 33301e22c1
change Spree Brizo address 2019-09-02 14:27:22 +02:00
Matthias Kretschmann 348af32b65
new linting rule fixes 2019-09-02 13:25:46 +02:00
Matthias Kretschmann 509a69b53d
bump packages 2019-09-02 13:25:33 +02:00
Jernej Pregelj db6b53257f
Merge pull request #185 from oceanprotocol/fix/cypress-consume
Fix faucet on consume, publish category warning
2019-08-05 12:47:34 +02:00
Jernej Pregelj 459019f5ee fix wait for consume, publish category warning 2019-08-05 12:26:35 +02:00
Jernej Pregelj 483c333732
Merge pull request #184 from oceanprotocol/fix/consume-hang
Consume hang fix
2019-08-02 13:42:57 +02:00
Jernej Pregelj e1b685bb5d add wait after tests 2019-08-02 11:58:24 +02:00
Jernej Pregelj 52ec23628f
Merge pull request #182 from oceanprotocol/feature/optional-prices
Optional pricing
2019-08-01 15:11:42 +02:00
Matthias Kretschmann a2b8bd6400
price display tweaks 2019-08-01 14:27:36 +02:00
Jernej Pregelj 09797aed78
pacakge fixes 2019-08-01 13:51:59 +02:00
Jernej Pregelj 7c59faf4a4
config fixes 2019-08-01 13:49:15 +02:00
Jernej Pregelj 552d9a90f8
pricing to displays 2019-08-01 13:49:15 +02:00
Jernej Pregelj 74075fab08
add pricing to publish 2019-08-01 13:49:15 +02:00
Matthias Kretschmann 105dcbc8cf
Merge pull request #179 from oceanprotocol/feature/packages
package updates and test fixes
2019-08-01 13:48:33 +02:00
Matthias Kretschmann 73ac3d0875
bump root packages 2019-07-31 15:30:43 +02:00
Matthias Kretschmann b112f3aa60
modify /etc/hosts on Travis 2019-07-31 14:45:08 +02:00
Matthias Kretschmann c3270ce36c
lock truffle-hdwallet-provider 2019-07-31 14:21:02 +02:00
Matthias Kretschmann 7c4c7a0956
bump to squid-js v0.6.6 2019-07-31 13:53:43 +02:00
Matthias Kretschmann e76ffd8954
add client bundle analyzer 2019-07-31 12:52:10 +02:00
Matthias Kretschmann ba4717bbd3
document macOS Docker restriction for Spree 2019-07-31 11:45:01 +02:00
Matthias Kretschmann e2aef49256
bump packages, fresh package-lock 2019-07-31 11:45:01 +02:00
Matthias Kretschmann 30917f890f
document usage with barge and Spree 2019-07-31 11:45:01 +02:00
Matthias Kretschmann 036305c315
copy contracts from Docker 2019-07-31 11:45:01 +02:00
Matthias Kretschmann c2e2606133
run cypress tests in specific order, store and read published DID 2019-07-31 11:45:01 +02:00
Matthias Kretschmann abe3f9630f
fix submarine link 2019-07-31 11:45:01 +02:00
Matthias Kretschmann 68250f5ae5
bump faucet version 2019-07-31 11:45:01 +02:00
Matthias Kretschmann 9012eea1dc
have unit tests waiting for keeper contracts 2019-07-31 11:45:01 +02:00
Matthias Kretschmann 1f75f38849
run against latest faucet version 2019-07-31 11:45:01 +02:00
Matthias Kretschmann da70e4d43c
only send auto faucet request if account balance is empty 2019-07-31 11:45:01 +02:00
Matthias Kretschmann 15db426080
disable faucet timespan 2019-07-31 11:45:01 +02:00
Matthias Kretschmann 1405a6931d
run against default barge versions 2019-07-31 11:45:01 +02:00
Matthias Kretschmann 16783bc7da
fix version component Spree detection 2019-07-31 11:45:00 +02:00
Matthias Kretschmann 6fe55e7a81
use faucet in barge 2019-07-31 11:45:00 +02:00
Matthias Kretschmann 62cc0b407d
run E2E tests against local Spree 2019-07-31 11:45:00 +02:00
Matthias Kretschmann 0a196f462a
remove ganache-cli 2019-07-31 11:45:00 +02:00
Matthias Kretschmann f6c67781ed
output browser console errors during integration tests 2019-07-31 11:45:00 +02:00
Matthias Kretschmann 64008abc26
test coverage 2019-07-31 11:45:00 +02:00
Matthias Kretschmann b3ee23e728
bump packages 2019-07-31 11:45:00 +02:00
Jernej Pregelj ba1ba78849
Merge pull request #181 from oceanprotocol/fix/wallets-events
Stop wallet event propagation
2019-07-19 12:34:01 +02:00
Jernej Pregelj 3c5ff6da1d prevent wallet select to fire other events 2019-07-19 12:01:15 +02:00
Matthias Kretschmann 3cafd60b07
Release 1.0.1 2019-07-18 19:12:13 +02:00
Matthias Kretschmann 17112bef00
Merge pull request #180 from oceanprotocol/feature/about
Update About page
2019-07-18 15:10:25 +02:00
Matthias Kretschmann 8d06a67e7f
update about text 2019-07-18 12:46:05 +02:00
Matthias Kretschmann 31a0d3cfb1
Release 1.0.0 2019-07-17 18:34:58 +02:00
Jernej Pregelj 599e1834cc
Merge pull request #176 from oceanprotocol/feature/wallets
Wallet selection
2019-07-17 09:22:11 +02:00
Matthias Kretschmann e0ca17883f
Merge pull request #178 from oceanprotocol/feature/update_k8s_to_pacific
Updated the script to deploy on pacific-ocean
2019-07-16 18:45:42 +02:00
Matthias Kretschmann a31b041c05
workaround for version number components updating 2019-07-16 18:45:22 +02:00
Javier Cortejoso 6f40ba1735
Updated the script to deploy on pacific-ocean 2019-07-16 17:23:46 +02:00
Matthias Kretschmann c1ff41b711
fix AssetFile unit test 2019-07-16 14:50:30 +02:00
Jernej Pregelj 69d8c28858 Merge branch 'feature/wallets' of https://github.com/oceanprotocol/commons into feature/wallets 2019-07-16 12:16:48 +02:00
Jernej Pregelj b09c15ff1b get versions on each rerender 2019-07-16 12:16:16 +02:00
Matthias Kretschmann 9e3f56e622
block download/publish when connected to wrong network with MetaMask 2019-07-15 17:56:27 +02:00
Matthias Kretschmann ba33fc52a4
fix test coverage 2019-07-15 16:14:55 +02:00
Matthias Kretschmann 8d2dee6554
vulnerability fixes 2019-07-15 15:28:08 +02:00
Jernej Pregelj 3a72470208 squid to 0.6.4 2019-07-15 13:00:27 +02:00
Jernej Pregelj 57dcdb7c21 leave seedphrase present 2019-07-15 12:41:52 +02:00
Matthias Kretschmann 892c07b783
mention burner wallet in readme 2019-07-12 17:56:13 +02:00
Matthias Kretschmann c386aa5518
Merge branch 'master' into feature/wallets 2019-07-12 15:47:22 +02:00
Matthias Kretschmann a5919ff69d
Merge pull request #173 from oceanprotocol/feature/integration-test-switch
run tests against Aquarius & Brizo pacific test instances
2019-07-12 15:41:49 +02:00
Matthias Kretschmann 9190dd6f2b
run unit test coverage right after unit tests 2019-07-12 14:06:09 +02:00
Matthias Kretschmann 288c630aa8
consume test fix 2019-07-12 13:59:28 +02:00
Matthias Kretschmann 61aef37e8e
test coverage fixes 2019-07-12 13:49:44 +02:00
Jernej Pregelj 9c47ed2183 fix cypress test 2019-07-12 12:08:10 +02:00
Jernej Pregelj 3518abab26 fix network error v2 2019-07-12 11:18:43 +02:00
Jernej Pregelj a1fdfa8a90 linting 2019-07-12 10:51:43 +02:00
Jernej Pregelj 645f79f733 network name crash fix 2019-07-12 10:25:11 +02:00
Matthias Kretschmann 69d7295f57
fix unit tests 2019-07-12 00:24:29 +02:00
Matthias Kretschmann 1ab87dea30
fix faucet test 2019-07-11 23:13:19 +02:00
Matthias Kretschmann ca58d7d0b1
fix re-renders caused by withTracker HOC 2019-07-11 23:09:03 +02:00
Matthias Kretschmann 93e6ba0af7
increase consume timeout 2019-07-11 17:00:06 +02:00
Matthias Kretschmann c72ebd6749
switch Brizo address 2019-07-11 16:45:03 +02:00
Matthias Kretschmann e488b9f001
Ocean network detection, remove isOceanNetwork 2019-07-11 16:30:54 +02:00
Matthias Kretschmann 4f051deefa
hide wallet selection in non-Web3 browsers 2019-07-11 14:54:43 +02:00
Jernej Pregelj b4db8a6556 add isWeb3Capable 2019-07-11 14:04:40 +02:00
Matthias Kretschmann 55af9ad5ab
run tests against Aquarius & Brizo pacific test instances 2019-07-11 12:41:50 +02:00
Matthias Kretschmann 25ab6e0c42
spacing 2019-07-11 12:41:12 +02:00
Matthias Kretschmann 725b5884bb
fill burner account with Ether automatically 2019-07-10 21:51:07 +02:00
Matthias Kretschmann 0d6875f065
style wallet selection modal, move out content 2019-07-10 21:24:02 +02:00
Matthias Kretschmann 57db99049f
address locked MetaMask account use case 2019-07-10 20:27:06 +02:00
Matthias Kretschmann 0befc3a597
output seed prase for burner wallet account, messaging tweaks 2019-07-10 18:46:28 +02:00
Matthias Kretschmann 87c54d2cb8
fix unit tests 2019-07-10 17:29:33 +02:00
Matthias Kretschmann 01fb305612
remove wallet setup from Cypress 2019-07-10 17:21:55 +02:00
Matthias Kretschmann 4ee5f19a9a
simplify Web3message UI, show during Publish flow 2019-07-10 16:34:16 +02:00
Matthias Kretschmann 8bb8111aca
basic wallet modal styling 2019-07-10 15:41:58 +02:00
Matthias Kretschmann 7b334b9104
new Web3message styling 2019-07-10 14:29:46 +02:00
Matthias Kretschmann ac2cd2eb70
fetch market network, use it in some places to switch copy, fix faucet button 2019-07-10 13:40:19 +02:00
Jernej Pregelj 84c0877c43 some test fixes 2019-07-10 13:05:43 +02:00
Jernej Pregelj 7cc2de7d8b make web3 working again 2019-07-10 10:16:14 +02:00
Matthias Kretschmann 8d23868a9d
adapt messaging for wallet types, output wallet type 2019-07-10 01:31:51 +02:00
Matthias Kretschmann ad454b9f8a
rebase fixes 2019-07-09 23:36:22 +02:00
Jernej Pregelj 9e7df28b89
survive metamask failure to login 2019-07-09 23:18:31 +02:00
Jernej Pregelj 85304c2d09
burner as default, web3 message 2019-07-09 23:18:31 +02:00
Jernej Pregelj cce2a7fad3
select wallet modal 2019-07-09 23:18:31 +02:00
Jernej Pregelj adf52ceb77
allow login to wallets 2019-07-09 23:18:31 +02:00
Matthias Kretschmann d545bcaa30
Merge pull request #177 from oceanprotocol/fix/modal-fixes
Modal fixes
2019-07-09 23:17:39 +02:00
Matthias Kretschmann 62c356d9e8
reset report state on modal close 2019-07-09 22:56:45 +02:00
Matthias Kretschmann c97876336a
prevent modal background scrolling 2019-07-09 22:55:07 +02:00
Matthias Kretschmann edbc3276d7
Release 0.6.3 2019-07-09 15:57:01 +02:00
Matthias Kretschmann 362a266518
server: adapt to new tsc output 2019-07-09 15:56:38 +02:00
Matthias Kretschmann 2a9d7476c8
Release 0.6.2 2019-07-09 14:56:00 +02:00
Matthias Kretschmann 4ed72f382c
server build fix 2019-07-09 14:49:32 +02:00
Matthias Kretschmann 24d26e4b8b
Release 0.6.1 2019-07-09 13:56:13 +02:00
Matthias Kretschmann b6770e68de
Merge pull request #172 from oceanprotocol/feature/reporting
Reporting data sets
2019-07-09 11:31:21 +02:00
Matthias Kretschmann 64d58173c0
copy changes 2019-07-09 11:19:57 +02:00
Matthias Kretschmann ca77e1ed94
add UI states: sending, done, error 2019-07-08 15:50:45 +02:00
Matthias Kretschmann 050936a0c1
remove slack, source email from env var 2019-07-08 15:31:48 +02:00
Matthias Kretschmann fa078c6c4c
send Slack message 2019-07-06 14:39:38 +02:00
Matthias Kretschmann 21b44fb425
fix integration tests 2019-07-05 16:15:00 +02:00
Matthias Kretschmann cee49978c4
email sending via sendgrid 2019-07-05 15:30:19 +02:00
Matthias Kretschmann acb7ae4d35
fix modal tests 2019-07-05 13:54:39 +02:00
Matthias Kretschmann 5adba86e5e
modal fixes 2019-07-05 13:27:00 +02:00
Matthias Kretschmann 4b489811ac
Report component and UI 2019-07-05 13:04:44 +02:00
Matthias Kretschmann cb1e0ca624
add Modal component 2019-07-05 13:04:27 +02:00
Matthias Kretschmann 812854c19d
Release 0.6.0 2019-07-04 11:01:17 +02:00
Matthias Kretschmann 0dcbf05a9a
migrate to release-it hooks 2019-07-04 11:00:40 +02:00
Matthias Kretschmann a3838ba7c3
Merge pull request #164 from oceanprotocol/feature/pacific-copy
default all connections to Pacific
2019-07-04 09:49:18 +01:00
Matthias Kretschmann be847f4909
update network urls 2019-07-04 10:39:27 +02:00
Matthias Kretschmann f5c01a8e30
Merge branch 'master' into feature/pacific-copy 2019-07-04 09:09:23 +01:00
Jernej Pregelj d7f40a631b
Merge pull request #166 from oceanprotocol/fix/version-updates
fix version tags, fixed squid-js
2019-07-03 14:01:47 +02:00
Jernej Pregelj 2ad9e4f2d8 Merge branch 'master' of https://github.com/oceanprotocol/commons into fix/version-updates 2019-07-03 09:51:33 +02:00
Jernej Pregelj 4c744d1ea9
Merge pull request #167 from oceanprotocol/fix/account-message
Connect to pacific
2019-07-02 15:19:12 +02:00
Jernej Pregelj 6c8d22f56c update test asset to consume 2019-07-02 14:36:32 +02:00
Jernej Pregelj 4e8680a073 fix test 2019-07-02 14:24:13 +02:00
Jernej Pregelj 29aba3197d about 2019-07-02 14:14:39 +02:00
Jernej Pregelj eb21932604 more text fixes 2019-07-02 11:51:26 +02:00
Jernej Pregelj c367dd9e57 update address 2019-07-02 10:52:14 +02:00
Jernej Pregelj 3c5f0ce401 fix/account-message 2019-07-01 16:22:15 +02:00
Jernej Pregelj 28b4ce80ae update brizo address 2019-07-01 15:25:41 +02:00
Jernej Pregelj d343f58f8e new travis variables 2019-07-01 15:20:46 +02:00
Jernej Pregelj d169e76f8d travis fixes 2019-07-01 15:06:52 +02:00
Jernej Pregelj 40dab70331 connect to pacific 2019-07-01 14:52:30 +02:00
Jernej Pregelj d4e361aa90 fix version tags, fixed squid-js 2019-06-28 14:10:46 +02:00
Matthias Kretschmann 22275bc9dd
switch to new pacific urls 2019-06-27 21:32:08 +01:00
Jernej Pregelj fcff8c72cd fix wrong nodeUri on cypress config 2019-06-27 11:21:14 +02:00
Matthias Kretschmann 3d129b5415
lint fixes 2019-06-26 19:54:53 +02:00
Matthias Kretschmann 599e712181
fail faster on Travis 2019-06-26 19:46:36 +02:00
Matthias Kretschmann 557cfcc8b5
exit build run when tests fail 2019-06-26 19:34:20 +02:00
Matthias Kretschmann c3673015db
run e2e tests against pacific 2019-06-26 19:21:41 +02:00
Matthias Kretschmann e33be03155
default all connections to Pacific 2019-06-26 18:45:28 +02:00
Matthias Kretschmann c6e791dabd
Merge pull request #165 from oceanprotocol/fix/cypress
Cypress cleanup & fixes
2019-06-26 18:44:28 +02:00
Matthias Kretschmann a8a81226da
another secret store url fix 2019-06-26 16:31:55 +02:00
Matthias Kretschmann 96e5363859
bump packages 2019-06-26 16:28:22 +02:00
Matthias Kretschmann e60a46f72e
travis tweaks 2019-06-26 16:15:35 +02:00
Matthias Kretschmann cc53823279
fix secret store url 2019-06-26 14:45:00 +02:00
Matthias Kretschmann c1cf01b834
test fixes 2019-06-26 13:33:57 +02:00
Matthias Kretschmann af6da53c58
travis tweaks 2019-06-26 12:45:12 +02:00
Matthias Kretschmann 2dfa8a0962
mention Cypress UI 2019-06-26 12:29:41 +02:00
Matthias Kretschmann 9b9db4b655
fresh package-lock 2019-06-26 12:29:33 +02:00
Matthias Kretschmann 1c0f009d3e
load wallet via support file for all tests, more Travis tweaks 2019-06-26 11:52:28 +02:00
Matthias Kretschmann b320e31858
add Chrome on Travis 2019-06-26 11:38:16 +02:00
Matthias Kretschmann 87176212ef
add docs, consolidate more config values 2019-06-26 11:24:54 +02:00
Matthias Kretschmann 0bc38610ee
move cypress env variables 2019-06-26 10:55:21 +02:00
Matthias Kretschmann d240ee8eab
Merge pull request #134 from oceanprotocol/feature/cypress
End-to-end testing setup with Cypress
2019-06-25 17:20:33 +02:00
Jernej Pregelj 3898dc307f reference variable properly 2019-06-25 16:44:24 +02:00
Jernej Pregelj cb2fc05caa fix brizo address 2019-06-25 16:30:06 +02:00
Jernej Pregelj 9a024b6004 squid 0.6.2, to Nile 2019-06-25 16:07:55 +02:00
Matthias Kretschmann 96990309e0
Release 0.5.4 2019-06-25 15:06:39 +02:00
Matthias Kretschmann 57e9cd69ff
bump to squid-js v0.6.2 2019-06-25 14:29:16 +02:00
Jernej Pregelj 49666eb420 remove duplicated 2019-06-25 10:22:35 +02:00
Jernej Pregelj 5caa62ea57 merge 2019-06-25 10:19:52 +02:00
Jernej Pregelj 643d5a3c84 squid 0.6.1 2019-06-25 10:17:43 +02:00
Matthias Kretschmann 9a5ebd0a91
bump to squid-js v0.6.1 2019-06-24 16:28:31 +02:00
Jernej Pregelj 59ffac93a6 squid 0.6.0 2019-06-24 15:28:37 +02:00
Matthias Kretschmann 0b51754954
Merge pull request #163 from oceanprotocol/feature/squid
bump to squid-js v0.6.0
2019-06-24 12:08:03 +02:00
Matthias Kretschmann dfb26d89b8
Merge pull request #162 from oceanprotocol/feature/axios
switch to axios for file url check
2019-06-24 12:07:49 +02:00
Matthias Kretschmann aaf3cff9ce
bump to squid-js v0.6.0 2019-06-24 11:40:44 +02:00
Jernej Pregelj 91a611f834 update squid-js 2019-06-21 16:53:38 +02:00
Jernej Pregelj f38111073e more of Pacific support 2019-06-21 15:54:00 +02:00
Jernej Pregelj d7dadfb291 add pacific in ocean networks, asset 2019-06-21 15:42:28 +02:00
Jernej Pregelj 0ef8a88d30 cypress env variables 2019-06-21 15:18:53 +02:00
Jernej Pregelj 67f736809b use pacific, fix export vars 2019-06-21 14:58:24 +02:00
Jernej Pregelj eae754e6d7 update squid-js 2019-06-20 14:20:41 +02:00
Jernej Pregelj 08d50c0ce1 point to duero 2019-06-20 13:54:49 +02:00
Jernej Pregelj 3cfb9755b4 bump timeouts 2019-06-20 13:41:11 +02:00
Jernej Pregelj 9681d3848c use chrome 2019-06-20 12:08:29 +02:00
Jernej Pregelj 406e039ad8 faucet fix + button test, consume inc timeout 2019-06-20 11:55:16 +02:00
Jernej Pregelj e60ca7b941 facuet + consume fix 2019-06-20 11:40:19 +02:00
Jernej Pregelj 3b3c08f549 remove faucet + target nile node 2019-06-20 11:15:56 +02:00
Jernej Pregelj 24b68baa24 revert package-lock 2019-06-20 10:40:53 +02:00
Jernej Pregelj 932b7b858b inc memory limit 2019-06-20 10:19:00 +02:00
Jernej Pregelj 0cba776f02 show free hd before e2e test 2019-06-20 10:02:18 +02:00
Matthias Kretschmann 75a262f5d6
Release 0.5.3 2019-06-19 17:57:54 +02:00
Matthias Kretschmann 1bda116c14
Merge pull request #159 from oceanprotocol/feature/seo
SEO component
2019-06-19 17:42:26 +02:00
Matthias Kretschmann 7043266254
switch to axios for file publish 2019-06-19 17:39:43 +02:00
Matthias Kretschmann fd1482e6f5
Release 0.5.2 2019-06-19 16:44:37 +02:00
Matthias Kretschmann 27dd656270
Merge pull request #161 from oceanprotocol/feature/pacific
add config values for Pacific connection
2019-06-19 16:27:12 +02:00
Matthias Kretschmann 18f7ab7ddc
Merge pull request #160 from oceanprotocol/feature/versions-squid-js
Refactor VersionNumbers to be sourced from squid-js
2019-06-19 15:45:46 +02:00
Jernej Pregelj e5960d3fd6 add tests 2019-06-19 15:28:31 +02:00
Matthias Kretschmann f55fc09495
bump squid-js 2019-06-19 15:25:36 +02:00
Matthias Kretschmann d43afddc39
add config values for Pacific connection 2019-06-19 14:04:38 +02:00
Matthias Kretschmann 74b8bc3f13
add status info tooltips 2019-06-19 13:43:21 +02:00
Matthias Kretschmann a4178854bb
increase test coverage, mock ocean.versions.get() 2019-06-19 13:14:42 +02:00
Matthias Kretschmann 996d986570
animation fixes 2019-06-19 12:26:46 +02:00
Matthias Kretschmann 3e912f9203
output select commons config values 2019-06-19 11:50:28 +02:00
Matthias Kretschmann 512f06f7d4
commit output, network output, keeper version output 2019-06-19 11:30:25 +02:00
Matthias Kretschmann 8e9a4c1fd2
fix tests 2019-06-18 16:27:23 +02:00
Matthias Kretschmann 059ae62f96
output overall status 2019-06-18 16:08:37 +02:00
Matthias Kretschmann 838757f5e8
collapse contracts by default 2019-06-18 14:35:18 +02:00
Matthias Kretschmann 15ebb34931
fetch faucet 2019-06-18 13:38:02 +02:00
Matthias Kretschmann d92c3e92f4
wait for ocean object, sort contracts 2019-06-18 13:28:35 +02:00
Matthias Kretschmann c4f862baa5
switch to using squid-js for version numbers 2019-06-18 12:27:05 +02:00
Matthias Kretschmann b8113798b6
SEO component 2019-06-18 11:26:44 +02:00
Matthias Kretschmann 30249447ce
add robots.txt 2019-06-17 23:41:08 +02:00
Jernej Pregelj 667c46303c fix server test 2019-06-17 16:43:17 +02:00
Jernej Pregelj d364a7beef fix web3 version + use truffle-hdwallet 2019-06-17 16:27:57 +02:00
Matthias Kretschmann c063ad82cb
Release 0.5.1 2019-06-14 13:18:12 +02:00
Matthias Kretschmann f699fa8db6
Merge pull request #158 from oceanprotocol/fix/hashes
Submarine links and Pacific support
2019-06-14 13:15:47 +02:00
Matthias Kretschmann 6f7edfa30f
link version numbers to release pages 2019-06-14 12:31:29 +02:00
Matthias Kretschmann 46e6d89057
add support for Pacific network 2019-06-13 16:59:28 +02:00
Matthias Kretschmann 97d6c2756e
link up transaction IDs with submarine, support pacific too 2019-06-13 16:48:33 +02:00
Matthias Kretschmann 01d5bf703d
fix Nile submarine links
* specifically return empty string
2019-06-13 16:37:20 +02:00
Matthias Kretschmann 305e050391
move version number components to Molecules 2019-06-13 16:35:41 +02:00
Matthias Kretschmann d8f4ebe7b4
prototype using truffle-privatekey-provider & ganache to provide accounts 2019-06-13 14:39:09 +02:00
Matthias Kretschmann 81cb06e19b
tweak CI app starting 2019-06-13 14:38:57 +02:00
Matthias Kretschmann 8f73c08fdd
cleanup, add asset fixture, add eslint-plugin-cypress 2019-06-13 14:38:37 +02:00
Matthias Kretschmann 5eee8b61d2
travis tweaks 2019-06-13 14:38:37 +02:00
Matthias Kretschmann 1ea527f2d1
return something on root of commons server 2019-06-13 14:38:06 +02:00
Matthias Kretschmann 039f5da189
setup cypress 2019-06-13 14:38:06 +02:00
Matthias Kretschmann ac16107f6b
Release 0.5.0 2019-06-12 15:39:41 +02:00
Matthias Kretschmann c1b32830f7
Merge pull request #142 from oceanprotocol/feature/price-string
make price a string, Aquarius 0.2.7 validation updates
2019-06-12 14:04:28 +02:00
Matthias Kretschmann 217eb80d0f
bump dependencies 2019-06-12 13:49:45 +02:00
Matthias Kretschmann d3bf27fddc
cleanup asset model 2019-06-12 13:38:46 +02:00
Matthias Kretschmann dd6f6966ce
bump required component versions 2019-06-12 13:38:46 +02:00
Matthias Kretschmann 7dbe383269
more Plecos validations 2019-06-12 13:38:46 +02:00
Matthias Kretschmann e5ef417025
test tweaks 2019-06-12 13:38:46 +02:00
Matthias Kretschmann 7d727bcdf9
mock file fetch request 2019-06-12 13:38:45 +02:00
Matthias Kretschmann 4150e56ba3
remove `found` attribute from all File objects before publishing 2019-06-12 13:38:45 +02:00
Matthias Kretschmann 0c10eb5665
metadata validation updates 2019-06-12 13:38:45 +02:00
Matthias Kretschmann 04e6bb0c72
make price a string 2019-06-12 13:38:22 +02:00
Matthias Kretschmann f230e3071c
Merge pull request #157 from oceanprotocol/docs/env
simplify Ocean URIs and env variables, document .env usage
2019-06-12 13:37:46 +02:00
Matthias Kretschmann 4b919f2ee8
highly simplify Ocean URIs and env variables 2019-06-12 13:30:57 +02:00
Matthias Kretschmann 97618c2ef2
document env variables usage 2019-06-12 13:09:58 +02:00
Matthias Kretschmann c9f4871ffb
Merge pull request #156 from oceanprotocol/feature/network
version number fixes
2019-06-12 13:08:21 +02:00
Matthias Kretschmann 097cf8bd63
ignore definition files for coverage reporting 2019-06-11 22:32:54 +02:00
Matthias Kretschmann 264a066874
update tests 2019-06-11 22:15:14 +02:00
Matthias Kretschmann 1b336e2e80
version number fixes
* add loading state
* add error state
* handle connection errors
* backwards compatibility for all components
* small spinner variant
2019-06-11 20:44:04 +02:00
Matthias Kretschmann 89b04e93fd
Merge pull request #155 from oceanprotocol/feature/components
additions to Ocean versions output
2019-06-11 13:07:56 +02:00
Matthias Kretschmann eb59b9dfda
v prefix fixes 2019-06-07 21:01:34 +02:00
Matthias Kretschmann ee4d1820ab
additions to Ocean versions output
* current component is now the minimal variant
* new default variant outputting all versions in a table
* show contract versions and infos about keeper-contracts (fetched from brizo)
* new structure for local state, better typings
* component splitup
2019-06-07 20:47:34 +02:00
Matthias Kretschmann e4994308ad
Release 0.4.5 2019-06-06 11:57:35 +02:00
Javier Cortejoso bf3f6e1517
Merge pull request #154 from oceanprotocol/fix/server-build
hotfix for failing server run on Docker
2019-06-06 11:55:57 +02:00
Matthias Kretschmann 0820cb0bd7
hotfix for failing server run on Docker 2019-06-06 11:49:21 +02:00
Matthias Kretschmann 5f19fbe420
Release 0.4.4 2019-06-06 11:21:33 +02:00
Matthias Kretschmann e4d2dbf772
Merge pull request #153 from oceanprotocol/fix/travis-caching
switch to new Travis caching strategy
2019-06-06 11:19:09 +02:00
Matthias Kretschmann 56f7dec9f6
Merge pull request #152 from oceanprotocol/fix/account-address
fix account address display in Firefox
2019-06-06 11:18:53 +02:00
Matthias Kretschmann f9b5ae6355
switch to new Travis caching strategy 2019-06-05 15:32:19 +02:00
Matthias Kretschmann 273761944e
fix account address display in Firefox 2019-06-03 17:01:08 +02:00
Matthias Kretschmann 303a7bf12c
Release 0.4.3 2019-06-03 10:52:48 +02:00
Matthias Kretschmann 5a0689703d
Merge pull request #151 from oceanprotocol/feature/events-publish
output event messages during publishing flow
2019-06-03 10:30:19 +02:00
Matthias Kretschmann b27c458fb2
squid-js v0.5.14 2019-05-31 21:33:12 +02:00
Matthias Kretschmann 56604b972c
update tests 2019-05-31 17:28:13 +02:00
Matthias Kretschmann 1d1399248f
output event messages during publishing flow 2019-05-31 17:14:34 +02:00
236 changed files with 26520 additions and 14367 deletions

View File

@ -1 +0,0 @@
node_modules

View File

@ -1,12 +0,0 @@
root = true
[*]
charset = utf-8
indent_size = 4
end_of_line = lf
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.{json,yml,yaml,md}]
indent_size = 2

View File

@ -1,28 +1,43 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
"project": [
"./tsconfig.json",
"./client/tsconfig.json",
"./server/tsconfig.json",
"./cypress/tsconfig.json"
]
},
"extends": [
"oceanprotocol",
"oceanprotocol/react",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier/react",
"prettier/standard",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint"
"prettier/@typescript-eslint",
"plugin:cypress/recommended"
],
"plugins": ["@typescript-eslint", "prettier"],
"plugins": ["@typescript-eslint", "prettier", "cypress"],
"rules": {
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/member-delimiter-style": [
"error",
{ "multiline": { "delimiter": "none" } }
]
],
"@typescript-eslint/no-explicit-any": "off"
},
"env": {
"es6": true,
"browser": true,
"jest": true
"node": true,
"jest": true,
"cypress/globals": true
},
"settings": {
"react": {
"version": "16.10"
}
}
}

20
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/server"
schedule:
interval: weekly
time: '03:00'
timezone: Europe/Berlin
- package-ecosystem: npm
directory: "/client"
schedule:
interval: weekly
time: '03:00'
timezone: Europe/Berlin
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
time: '03:00'
timezone: Europe/Berlin

8
.gitignore vendored
View File

@ -12,6 +12,7 @@ dist
# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
@ -20,3 +21,10 @@ dist
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# cypress
cypress/screenshots
cypress/videos
cypress/fixtures/did.txt
cypress/fixtures/did-ipfs.txt
artifacts

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
v12

View File

@ -1,3 +1,4 @@
node_modules
build
dist
coverage

View File

@ -1,5 +1,15 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "none"
}
"trailingComma": "none",
"tabWidth": 4,
"endOfLine": "lf",
"overrides": [
{
"files": ["*.{json,yml,yaml,md}"],
"options": {
"tabWidth": 2
}
}
]
}

View File

@ -1,11 +0,0 @@
{
"extends": [
"stylelint-config-bigchaindb",
"stylelint-config-css-modules",
"./node_modules/prettier-stylelint/config.js"
],
"syntax": "scss",
"rules": {
"no-descending-specificity": null
}
}

View File

@ -1,29 +1,86 @@
dist: xenial
sudo: required
language: node_js
node_js:
- '11'
- '12'
services:
- docker
addons:
# required for internal Aquarius-Brizo communication
# https://docs.travis-ci.com/user/hosts/
hosts:
- aquarius
apt:
packages:
# for Cypress
- libgconf-2-4
env:
global:
# run E2E tests against local Spree
- REACT_APP_NODE_URI="http://localhost:8545"
- REACT_APP_AQUARIUS_URI="http://aquarius:5000"
- REACT_APP_BRIZO_URI="http://localhost:8030"
- REACT_APP_SECRET_STORE_URI="http://localhost:12001"
- REACT_APP_FAUCET_URI="http://localhost:3001"
- REACT_APP_BRIZO_ADDRESS="0x068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0"
# IPFS client & server config
- REACT_APP_IPFS_GATEWAY_URI="https://ipfs.oceanprotocol.com"
- REACT_APP_IPFS_NODE_URI="https://ipfs.oceanprotocol.com:443"
- IPFS_GATEWAY_URI="https://ipfs.oceanprotocol.com"
# start Barge with these versions
- BRIZO_VERSION=v0.9.3
- AQUARIUS_VERSION=v1.0.7
- KEEPER_VERSION=v0.13.2
- EVENTS_HANDLER_VERSION=v0.4.5
- KEEPER_OWNER_ROLE_ADDRESS="0xe2DD09d719Da89e5a3D0F2549c7E24566e947260"
- FAUCET_TIMESPAN=0
before_install:
- npm install -g npm
- npm install -g codacy-coverage
# Fixes an issue where the max file watch count is exceeded, triggering ENOSPC
# https://stackoverflow.com/questions/22475849/node-js-error-enospc#32600959
- echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- git clone https://github.com/oceanprotocol/barge
- cd barge
- bash -x start_ocean.sh --no-commons 2>&1 > start_ocean.log &
- cd ..
script:
# - ./scripts/install.sh # runs automatically with npm ci
# executing `npm test` scripts individually here, so first one failing will exit the build
- npm run lint || travis_terminate 1
- ./scripts/keeper.sh
- ./scripts/test.sh
- ./scripts/coverage.sh
# Pipe the coverage data to Code Climate
- ./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.client.json client/coverage/lcov.info
- ./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.server.json server/coverage/lcov.info
- ./cc-test-reporter sum-coverage coverage/codeclimate.*.json -p 2
- if [[ "$TRAVIS_TEST_RESULT" == 0 ]]; then ./cc-test-reporter upload-coverage; fi
- npm run test:e2e || travis_terminate 1
- ./scripts/build.sh
notifications:
email: false
cache:
npm: true
directories:
- node_modules
deploy:
- provider: script
skip_cleanup: true
script: bash -ex ./scripts/deploy_on_k8s.sh
on:
tags: true
all_branches: true
# cache folder with Cypress binary
- ~/.cache
# deploy:
# - provider: script
# skip_cleanup: true
# script: bash -ex ./scripts/deploy_on_k8s.sh
# on:
# tags: true
# all_branches: true

View File

@ -4,6 +4,370 @@ All notable changes to this project will be documented in this file. Dates are d
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
#### [v2.4.1](https://github.com/oceanprotocol/commons/compare/v2.4.0...v2.4.1)
> 19 May 2020
- fix history [`#282`](https://github.com/oceanprotocol/commons/pull/282)
#### [v2.4.0](https://github.com/oceanprotocol/commons/compare/v2.3.1...v2.4.0)
> 19 May 2020
- Feature/compute [`#225`](https://github.com/oceanprotocol/commons/pull/225)
- remove stylelint & codacy [`#270`](https://github.com/oceanprotocol/commons/pull/270)
- Bump typescript from 3.8.3 to 3.9.2 in /client [`#256`](https://github.com/oceanprotocol/commons/pull/256)
- Bump @sindresorhus/slugify from 0.11.0 to 1.0.0 in /client [`#255`](https://github.com/oceanprotocol/commons/pull/255)
- Bump cypress from 4.2.0 to 4.5.0 [`#250`](https://github.com/oceanprotocol/commons/pull/250)
- Bump @types/jest from 25.1.4 to 25.2.2 in /client [`#240`](https://github.com/oceanprotocol/commons/pull/240)
- Bump @typescript-eslint/eslint-plugin from 2.24.0 to 2.33.0 [`#231`](https://github.com/oceanprotocol/commons/pull/231)
- Bump start-server-and-test from 1.10.10 to 1.11.0 [`#228`](https://github.com/oceanprotocol/commons/pull/228)
- [Security] Bump handlebars from 4.5.3 to 4.7.6 [`#227`](https://github.com/oceanprotocol/commons/pull/227)
- Bump release-it from 13.1.1 to 13.6.0 [`#226`](https://github.com/oceanprotocol/commons/pull/226)
- bump to squid-js v2.2.0 [`91821e8`](https://github.com/oceanprotocol/commons/commit/91821e88d4e4ff1bb6814338b3d9fee4746fd9a8)
- Release 2.4.0 [`c0effd4`](https://github.com/oceanprotocol/commons/commit/c0effd449f7cc01cf043ab924bb8040d0db55b9b)
- Merge pull request #281 from oceanprotocol/dependabot/npm_and_yarn/client/react-router-dom-5.2.0 [`6f05baf`](https://github.com/oceanprotocol/commons/commit/6f05baff3af9fa7490100b79b2978ed56ece02f4)
#### [v2.3.1](https://github.com/oceanprotocol/commons/compare/v2.3.0...v2.3.1)
> 20 March 2020
- package updates [`#223`](https://github.com/oceanprotocol/commons/pull/223)
- Bump acorn from 5.7.3 to 5.7.4 in /server [`#222`](https://github.com/oceanprotocol/commons/pull/222)
- Bump acorn from 5.7.3 to 5.7.4 in /client [`#221`](https://github.com/oceanprotocol/commons/pull/221)
- Bump acorn from 7.1.0 to 7.1.1 [`#220`](https://github.com/oceanprotocol/commons/pull/220)
- more package updates [`192c541`](https://github.com/oceanprotocol/commons/commit/192c54134ab7e26b85ee09ad94de01cfa8efc514)
- Release 2.3.1 [`f630771`](https://github.com/oceanprotocol/commons/commit/f63077181e8094546d68ee66dc8f6d3bd33c5df6)
- lint fixes [`b7c6543`](https://github.com/oceanprotocol/commons/commit/b7c6543fbefb6b5b701d3e879bcbd79e09255a7b)
#### [v2.3.0](https://github.com/oceanprotocol/commons/compare/v2.2.0...v2.3.0)
> 20 February 2020
- bump to squid.js v2 beta [`#218`](https://github.com/oceanprotocol/commons/pull/218)
- Release 2.3.0 [`f143a59`](https://github.com/oceanprotocol/commons/commit/f143a59b0b3f911bffdc9535ad4fe9cfd345864d)
- update ocean.assets methods [`c669089`](https://github.com/oceanprotocol/commons/commit/c669089d3b2be3d304e1ef8ed1b6827c0cb75ec8)
#### [v2.2.0](https://github.com/oceanprotocol/commons/compare/v2.1.0...v2.2.0)
> 1 February 2020
- bump to react-scripts v3.3 [`#209`](https://github.com/oceanprotocol/commons/pull/209)
- package updates [`65b72e5`](https://github.com/oceanprotocol/commons/commit/65b72e597d16f8660f74b0b3a491aba723488a56)
- fix Travis [`3e814b9`](https://github.com/oceanprotocol/commons/commit/3e814b98a7f990cfee6b910f57eb02cdd1a767f1)
- package updates [`8089a7a`](https://github.com/oceanprotocol/commons/commit/8089a7aa3e4504e1defb3a6809e4d8b4c2a823fb)
#### [v2.1.0](https://github.com/oceanprotocol/commons/compare/v2.1.0-beta.0...v2.1.0)
> 23 January 2020
- Fix search code duplication [`#216`](https://github.com/oceanprotocol/commons/pull/216)
- bump to keeper-contracts v0.13 [`#210`](https://github.com/oceanprotocol/commons/pull/210)
- more additionalInformation checks [`#213`](https://github.com/oceanprotocol/commons/pull/213)
- remove editorconfig [`#211`](https://github.com/oceanprotocol/commons/pull/211)
- bump to keeper-contracts v0.13.0 [`5ba5cd9`](https://github.com/oceanprotocol/commons/commit/5ba5cd9e20f7bc7ad7aebeb4b9c54f0aea549786)
- fix code duplication [`c5ea3b7`](https://github.com/oceanprotocol/commons/commit/c5ea3b7c8a989b7c9239cc4292de53680b36c06b)
- bump all components [`37296c5`](https://github.com/oceanprotocol/commons/commit/37296c502e24a1e0aedc021bfa666dd33dce323d)
#### [v2.1.0-beta.0](https://github.com/oceanprotocol/commons/compare/v2.0.1...v2.1.0-beta.0)
> 17 December 2019
- bump to keeper-contracts v0.13.0 [`c4219bf`](https://github.com/oceanprotocol/commons/commit/c4219bf1a839e88024c3b7a87f95833b40769d58)
- Release 2.1.0-beta.0 [`64eb7ab`](https://github.com/oceanprotocol/commons/commit/64eb7ab3f2dbd3f5b9736cab67bad4f960c914ff)
#### [v2.0.1](https://github.com/oceanprotocol/commons/compare/v2.0.0...v2.0.1)
> 7 January 2020
- more additionalInformation checks [`#213`](https://github.com/oceanprotocol/commons/pull/213)
- remove editorconfig [`#211`](https://github.com/oceanprotocol/commons/pull/211)
- remove editorconfig, define all styling in prettierrc [`f8dfaa4`](https://github.com/oceanprotocol/commons/commit/f8dfaa438c42e9d6c25ae9ac096129da95e431c3)
- Release 2.0.1 [`e9e5dd9`](https://github.com/oceanprotocol/commons/commit/e9e5dd9049bd60041d1483f102fdd6749b5a9b70)
#### [v2.0.0](https://github.com/oceanprotocol/commons/compare/v2.0.0-beta.3...v2.0.0)
> 9 December 2019
- Migrate to new v2 DDO structure [`#207`](https://github.com/oceanprotocol/commons/pull/207)
- bump dependencies [`a8c695e`](https://github.com/oceanprotocol/commons/commit/a8c695e16f07b603250aa0eae5aa64d6275072b6)
- test and package fixes [`3df046b`](https://github.com/oceanprotocol/commons/commit/3df046bbea14c0d0b4817976b8496c5af365bc0d)
- Release 2.0.0 [`70a3339`](https://github.com/oceanprotocol/commons/commit/70a3339f8b0fdbabad1475659639f145ec68ed6c)
#### [v2.0.0-beta.3](https://github.com/oceanprotocol/commons/compare/v2.0.0-beta.2...v2.0.0-beta.3)
> 22 November 2019
- bump web3 packages [`8c3262c`](https://github.com/oceanprotocol/commons/commit/8c3262c1d91727dcb514ff049d8db5f48e812fed)
- bump packages [`5800027`](https://github.com/oceanprotocol/commons/commit/5800027cbf4461cb274ce182e3350e3a1c4b708c)
- update to new DDO structure [`985803d`](https://github.com/oceanprotocol/commons/commit/985803d43e4a3d729d90196f260b128bf2e37f63)
#### [v2.0.0-beta.2](https://github.com/oceanprotocol/commons/compare/v2.0.0-beta.1...v2.0.0-beta.2)
> 15 November 2019
- bump packages [`428532e`](https://github.com/oceanprotocol/commons/commit/428532e2c624fed19bae342b40fdb0f5d9a403d3)
- Release 2.0.0-beta.2 [`9f55d0a`](https://github.com/oceanprotocol/commons/commit/9f55d0a69577ee64fe8fd6ce9889e31f90fd1562)
- bump squid-js [`b75af1b`](https://github.com/oceanprotocol/commons/commit/b75af1bae3f05006ea557c6de05dfe3ddea555eb)
#### [v2.0.0-beta.1](https://github.com/oceanprotocol/commons/compare/v2.0.0-beta.0...v2.0.0-beta.1)
> 14 November 2019
- bump web3 packages [`13a8bf8`](https://github.com/oceanprotocol/commons/commit/13a8bf86a56d3bddca44aa505a27e95507069238)
- Release 2.0.0-beta.1 [`cf9d65d`](https://github.com/oceanprotocol/commons/commit/cf9d65da3f353db60da331f8d553e3e19f849d15)
#### [v2.0.0-beta.0](https://github.com/oceanprotocol/commons/compare/v1.3.2...v2.0.0-beta.0)
> 14 November 2019
- update to new DDO structure [`e34dde1`](https://github.com/oceanprotocol/commons/commit/e34dde1a111d00943dc68d32c04b8fa230996d6d)
- Release 2.0.0-beta.0 [`0136695`](https://github.com/oceanprotocol/commons/commit/0136695051fe9f753946f1b7de4a55264e3cb174)
- contentLength as string [`3d9935b`](https://github.com/oceanprotocol/commons/commit/3d9935b46553143ed1fad6ee6e6b80c23ca6e59e)
#### [v1.3.2](https://github.com/oceanprotocol/commons/compare/v1.3.1...v1.3.2)
> 22 November 2019
- Release 1.3.2 [`b02cda0`](https://github.com/oceanprotocol/commons/commit/b02cda043c33c00174e4e4f3ec56e7d0aa5386da)
- bump to squid-js v0.8.3 [`8ca727f`](https://github.com/oceanprotocol/commons/commit/8ca727fffc2cc137b978b7d65ed586da405b015b)
#### [v1.3.1](https://github.com/oceanprotocol/commons/compare/v1.3.0...v1.3.1)
> 7 November 2019
- Bump squid [`#206`](https://github.com/oceanprotocol/commons/pull/206)
- bump squid [`ccdef81`](https://github.com/oceanprotocol/commons/commit/ccdef8143ea2f6062c4ffbe65451fdce7c5c40e3)
- downgrade @typescript-eslint packages [`afd4ec9`](https://github.com/oceanprotocol/commons/commit/afd4ec991f384596d26e63f2dcb710eda648457e)
- Release 1.3.1 [`c8a46a5`](https://github.com/oceanprotocol/commons/commit/c8a46a5316c811766907a0b5866989e750b2ff0a)
#### [v1.3.0](https://github.com/oceanprotocol/commons/compare/v1.2.2...v1.3.0)
> 1 November 2019
- bump packages [`#204`](https://github.com/oceanprotocol/commons/pull/204)
- lock to react-scripts 3.0.1 [`da9237e`](https://github.com/oceanprotocol/commons/commit/da9237ea46fd8bc5af26b168bc9a1cd1708fe122)
- web3 1.2.2 & truffle-hd-wallet updates, simplify types [`aec1f78`](https://github.com/oceanprotocol/commons/commit/aec1f782574077510fcad323e87e6c72b3cf039a)
- more test fixes [`fe4f223`](https://github.com/oceanprotocol/commons/commit/fe4f2233f09240c63351f03209d1588fcb7b0dcb)
#### [v1.2.2](https://github.com/oceanprotocol/commons/compare/v1.2.1...v1.2.2)
> 24 October 2019
- IPFS fixes [`#203`](https://github.com/oceanprotocol/commons/pull/203)
- stream files when adding [`77deaf0`](https://github.com/oceanprotocol/commons/commit/77deaf063e2ef3c6650fe7238acae3749bea2a1b)
- Release 1.2.2 [`ae34031`](https://github.com/oceanprotocol/commons/commit/ae34031e9f2cd1a6aea801d50149156baeb41609)
- lazy load IPFS component [`4319115`](https://github.com/oceanprotocol/commons/commit/4319115e0015e888587f2d6538e1301936385137)
#### [v1.2.1](https://github.com/oceanprotocol/commons/compare/v1.2.0...v1.2.1)
> 15 October 2019
- package fixes [`78d4c8b`](https://github.com/oceanprotocol/commons/commit/78d4c8b874ac1764c219a80231c6d06d02539ff7)
- hotfix for Docker build [`8aadcb9`](https://github.com/oceanprotocol/commons/commit/8aadcb9d97f3f6b4b8344718d4f5bd604de0ae39)
- Docker tweaks [`9226bf2`](https://github.com/oceanprotocol/commons/commit/9226bf2799b7c85a0c85e42c537cc53de9eabead)
#### [v1.2.0](https://github.com/oceanprotocol/commons/compare/v1.1.4...v1.2.0)
> 14 October 2019
- Add files to IPFS during publish flow [`#191`](https://github.com/oceanprotocol/commons/pull/191)
- working prototype of adding files to IPFS during publish flow [`1c59d49`](https://github.com/oceanprotocol/commons/commit/1c59d49d5dddcf28ed015ede4a132e6498e91711)
- new client package-lock [`725215b`](https://github.com/oceanprotocol/commons/commit/725215b6ee0b065855f55b7124340abf63a0b357)
- bump IPFS packages [`af8df22`](https://github.com/oceanprotocol/commons/commit/af8df224cb08e052605090f96c9a730f672a6a47)
#### [v1.1.4](https://github.com/oceanprotocol/commons/compare/v1.1.3...v1.1.4)
> 14 October 2019
- Faucet route refactor [`#202`](https://github.com/oceanprotocol/commons/pull/202)
- Put Channels behind feature switch [`#201`](https://github.com/oceanprotocol/commons/pull/201)
- put channels behind feature switch [`a7209f6`](https://github.com/oceanprotocol/commons/commit/a7209f690d925d74c57b8c61498d3cea522d8f70)
- more dynamic intro text [`e007ab2`](https://github.com/oceanprotocol/commons/commit/e007ab20901e2155bd891fd77e2d1aa98daee5f9)
- Release 1.1.4 [`10b6623`](https://github.com/oceanprotocol/commons/commit/10b662343faa4a27bc8259f1406cf622c2c8ac67)
#### [v1.1.3](https://github.com/oceanprotocol/commons/compare/v1.1.2...v1.1.3)
> 8 October 2019
- switch Barge to --no-commons flag [`#200`](https://github.com/oceanprotocol/commons/pull/200)
- added token faucet functionality [`#199`](https://github.com/oceanprotocol/commons/pull/199)
- prettier [`3235dc1`](https://github.com/oceanprotocol/commons/commit/3235dc1d5e24f314e6d9b2886d709eadc25913df)
- - increased token amount given [`aeb24aa`](https://github.com/oceanprotocol/commons/commit/aeb24aadda30934785436a0501d57e71a69f2708)
- Release 1.1.3 [`8f0988e`](https://github.com/oceanprotocol/commons/commit/8f0988e1b0978dc58a235edbd70bf742cb41e511)
#### [v1.1.2](https://github.com/oceanprotocol/commons/compare/v1.1.1...v1.1.2)
> 24 September 2019
- show web3 message on asset loading failure [`#198`](https://github.com/oceanprotocol/commons/pull/198)
- Release 1.1.2 [`29e6e8b`](https://github.com/oceanprotocol/commons/commit/29e6e8b5afdc2d085b45aa51049b9b59e501e293)
#### [v1.1.1](https://github.com/oceanprotocol/commons/compare/v1.1.0...v1.1.1)
> 13 September 2019
- fix error output on asset details loading [`#196`](https://github.com/oceanprotocol/commons/pull/196)
- fix event bubbling on wallet selector button [`#197`](https://github.com/oceanprotocol/commons/issues/197)
- asset details refactor [`821f80d`](https://github.com/oceanprotocol/commons/commit/821f80da0f6c9bda862472f2a2b094a92a73ce6e)
- Release 1.1.1 [`33b14bc`](https://github.com/oceanprotocol/commons/commit/33b14bc8e346c18e853585cd79770776d24b20ed)
- test fixes [`12f6cfc`](https://github.com/oceanprotocol/commons/commit/12f6cfcb8049fb035bcbeabe099af51329334667)
#### [v1.1.0](https://github.com/oceanprotocol/commons/compare/v1.0.2...v1.1.0)
> 11 September 2019
- bump to squid-js v0.7.2 [`#189`](https://github.com/oceanprotocol/commons/pull/189)
- get faucet network from response [`#195`](https://github.com/oceanprotocol/commons/pull/195)
- add code climate [`#194`](https://github.com/oceanprotocol/commons/pull/194)
- Disable auto-deployments for now [`#193`](https://github.com/oceanprotocol/commons/pull/193)
- code fixes [`1f7845a`](https://github.com/oceanprotocol/commons/commit/1f7845aa221b486abb0f51bdc156d2bed5c0e16a)
- Release 1.1.0 [`c4029b1`](https://github.com/oceanprotocol/commons/commit/c4029b147c2bda0a846a2365f1d96555eabb454b)
- disable auto-deployments for now [`4ae344a`](https://github.com/oceanprotocol/commons/commit/4ae344a861c76527bce8eacb55d86e83cc7c6ae9)
#### [v1.0.2](https://github.com/oceanprotocol/commons/compare/v1.0.1...v1.0.2)
> 2 September 2019
- Fix vulnerabilities [`#190`](https://github.com/oceanprotocol/commons/pull/190)
- Fix faucet on consume, publish category warning [`#185`](https://github.com/oceanprotocol/commons/pull/185)
- Consume hang fix [`#184`](https://github.com/oceanprotocol/commons/pull/184)
- Optional pricing [`#182`](https://github.com/oceanprotocol/commons/pull/182)
- package updates and test fixes [`#179`](https://github.com/oceanprotocol/commons/pull/179)
- Stop wallet event propagation [`#181`](https://github.com/oceanprotocol/commons/pull/181)
- bump packages, fresh package-lock [`e2aef49`](https://github.com/oceanprotocol/commons/commit/e2aef49256047834cee004e4c5ca2a03a6d7bf2a)
- bump packages [`b3ee23e`](https://github.com/oceanprotocol/commons/commit/b3ee23e728ab3654ad054eb166cb5e6a73ba9c4e)
- bump packages [`509a69b`](https://github.com/oceanprotocol/commons/commit/509a69b53d773a4db77e788ffc0673ed2a846633)
#### [v1.0.1](https://github.com/oceanprotocol/commons/compare/v1.0.0...v1.0.1)
> 18 July 2019
- Update About page [`#180`](https://github.com/oceanprotocol/commons/pull/180)
- update about text [`8d06a67`](https://github.com/oceanprotocol/commons/commit/8d06a67e7fe24a4e420666e78d173b40feb7818b)
- Release 1.0.1 [`3cafd60`](https://github.com/oceanprotocol/commons/commit/3cafd60b07cbe73983e898d1cd89afd1a8e7e051)
### [v1.0.0](https://github.com/oceanprotocol/commons/compare/v0.6.3...v1.0.0)
> 17 July 2019
- Wallet selection [`#176`](https://github.com/oceanprotocol/commons/pull/176)
- Updated the script to deploy on pacific-ocean [`#178`](https://github.com/oceanprotocol/commons/pull/178)
- run tests against Aquarius & Brizo pacific test instances [`#173`](https://github.com/oceanprotocol/commons/pull/173)
- Modal fixes [`#177`](https://github.com/oceanprotocol/commons/pull/177)
- remove wallet setup from Cypress [`01fb305`](https://github.com/oceanprotocol/commons/commit/01fb305612a4c85190f569870cc1ef37a2c4593d)
- allow login to wallets [`adf52ce`](https://github.com/oceanprotocol/commons/commit/adf52ceb77302d5a7ebe4e866766cc540f51a778)
- fix re-renders caused by withTracker HOC [`ca58d7d`](https://github.com/oceanprotocol/commons/commit/ca58d7d0b170913352936a47cb33661f06123abb)
#### [v0.6.3](https://github.com/oceanprotocol/commons/compare/v0.6.2...v0.6.3)
> 9 July 2019
- Release 0.6.3 [`edbc327`](https://github.com/oceanprotocol/commons/commit/edbc3276d75b5858278be050d65d5fefcf48aaae)
- server: adapt to new tsc output [`362a266`](https://github.com/oceanprotocol/commons/commit/362a26651822f450d4b9a528c7fa46d4b9bbbfba)
#### [v0.6.2](https://github.com/oceanprotocol/commons/compare/v0.6.1...v0.6.2)
> 9 July 2019
- Release 0.6.2 [`2a9d747`](https://github.com/oceanprotocol/commons/commit/2a9d7476c8a3038e2edcadc36df8861921512f2a)
- server build fix [`4ed72f3`](https://github.com/oceanprotocol/commons/commit/4ed72f382c2c0ea0ee5fedc0bdb6050555b88361)
#### [v0.6.1](https://github.com/oceanprotocol/commons/compare/v0.6.0...v0.6.1)
> 9 July 2019
- Reporting data sets [`#172`](https://github.com/oceanprotocol/commons/pull/172)
- email sending via sendgrid [`cee4997`](https://github.com/oceanprotocol/commons/commit/cee49978c495a64b20e3a5f3a3ae296dbef140dd)
- send Slack message [`fa078c6`](https://github.com/oceanprotocol/commons/commit/fa078c6c4c5677a3f7bc98751c5c726f377a1e00)
- add Modal component [`cb1e0ca`](https://github.com/oceanprotocol/commons/commit/cb1e0ca624a6a0aa72b87cf913f581efbe81d320)
#### [v0.6.0](https://github.com/oceanprotocol/commons/compare/v0.5.4...v0.6.0)
> 4 July 2019
- default all connections to Pacific [`#164`](https://github.com/oceanprotocol/commons/pull/164)
- fix version tags, fixed squid-js [`#166`](https://github.com/oceanprotocol/commons/pull/166)
- Connect to pacific [`#167`](https://github.com/oceanprotocol/commons/pull/167)
- Cypress cleanup & fixes [`#165`](https://github.com/oceanprotocol/commons/pull/165)
- End-to-end testing setup with Cypress [`#134`](https://github.com/oceanprotocol/commons/pull/134)
- fix web3 version + use truffle-hdwallet [`d364a7b`](https://github.com/oceanprotocol/commons/commit/d364a7beef5dd547b2d41f2907736481734b1c8b)
- add tests [`e5960d3`](https://github.com/oceanprotocol/commons/commit/e5960d3fd621ebe3d7af267d98cfcce1262e93fb)
- fresh package-lock [`9b9db4b`](https://github.com/oceanprotocol/commons/commit/9b9db4b655b10d2255201a2abc37b234be2e9c68)
#### [v0.5.4](https://github.com/oceanprotocol/commons/compare/v0.5.3...v0.5.4)
> 25 June 2019
- bump to squid-js v0.6.0 [`#163`](https://github.com/oceanprotocol/commons/pull/163)
- switch to axios for file url check [`#162`](https://github.com/oceanprotocol/commons/pull/162)
- switch to axios for file publish [`7043266`](https://github.com/oceanprotocol/commons/commit/70432662542a4de24133bfdd8906e569adfeb606)
- Release 0.5.4 [`9699030`](https://github.com/oceanprotocol/commons/commit/96990309e044bc2355951b9c72e0f7cefdf82feb)
- bump to squid-js v0.6.2 [`57e9cd6`](https://github.com/oceanprotocol/commons/commit/57e9cd69ffcbdb341f39349d44ea3aa785f51f65)
#### [v0.5.3](https://github.com/oceanprotocol/commons/compare/v0.5.2...v0.5.3)
> 19 June 2019
- SEO component [`#159`](https://github.com/oceanprotocol/commons/pull/159)
- Release 0.5.3 [`75a262f`](https://github.com/oceanprotocol/commons/commit/75a262f5d633bd0f053ead0b5fd44d4ad56bd029)
- add robots.txt [`3024944`](https://github.com/oceanprotocol/commons/commit/30249447ceb7ccbc2b9347d7a757a93cd690fcbd)
#### [v0.5.2](https://github.com/oceanprotocol/commons/compare/v0.5.1...v0.5.2)
> 19 June 2019
- add config values for Pacific connection [`#161`](https://github.com/oceanprotocol/commons/pull/161)
- Refactor VersionNumbers to be sourced from squid-js [`#160`](https://github.com/oceanprotocol/commons/pull/160)
- output overall status [`059ae62`](https://github.com/oceanprotocol/commons/commit/059ae62f967f40d9635cc729d31ab84fa913df8b)
- switch to using squid-js for version numbers [`c4f862b`](https://github.com/oceanprotocol/commons/commit/c4f862baa5fa835ec3ff3aafeefa60f524d011b2)
- collapse contracts by default [`838757f`](https://github.com/oceanprotocol/commons/commit/838757f5e832973f54540b0bd78fd7b6ec3fcafe)
#### [v0.5.1](https://github.com/oceanprotocol/commons/compare/v0.5.0...v0.5.1)
> 14 June 2019
- Submarine links and Pacific support [`#158`](https://github.com/oceanprotocol/commons/pull/158)
- link up transaction IDs with submarine, support pacific too [`97d6c27`](https://github.com/oceanprotocol/commons/commit/97d6c2756ed31f90f960dae21b8889d61232cd09)
- link version numbers to release pages [`6f7edfa`](https://github.com/oceanprotocol/commons/commit/6f7edfa30f3b188e87cbce3c2404db313920e305)
- Release 0.5.1 [`c063ad8`](https://github.com/oceanprotocol/commons/commit/c063ad82cb5e3a51b5083427fc50afc5b161533a)
#### [v0.5.0](https://github.com/oceanprotocol/commons/compare/v0.4.5...v0.5.0)
> 12 June 2019
- make price a string, Aquarius 0.2.7 validation updates [`#142`](https://github.com/oceanprotocol/commons/pull/142)
- simplify Ocean URIs and env variables, document .env usage [`#157`](https://github.com/oceanprotocol/commons/pull/157)
- version number fixes [`#156`](https://github.com/oceanprotocol/commons/pull/156)
- additions to Ocean versions output [`#155`](https://github.com/oceanprotocol/commons/pull/155)
- highly simplify Ocean URIs and env variables [`4b919f2`](https://github.com/oceanprotocol/commons/commit/4b919f2ee86b5e507d293fbe6684d296c2574d28)
- update tests [`264a066`](https://github.com/oceanprotocol/commons/commit/264a066874dbe55950f54754924e2a5c4d2b69ec)
- mock file fetch request [`7d727bc`](https://github.com/oceanprotocol/commons/commit/7d727bcdf95ada24304cc03a2a63c35a644d2a08)
#### [v0.4.5](https://github.com/oceanprotocol/commons/compare/v0.4.4...v0.4.5)
> 6 June 2019
- hotfix for failing server run on Docker [`#154`](https://github.com/oceanprotocol/commons/pull/154)
- Release 0.4.5 [`e499430`](https://github.com/oceanprotocol/commons/commit/e4994308ad369595d88e1d7b524d986d80c58cd7)
#### [v0.4.4](https://github.com/oceanprotocol/commons/compare/v0.4.3...v0.4.4)
> 6 June 2019
- switch to new Travis caching strategy [`#153`](https://github.com/oceanprotocol/commons/pull/153)
- fix account address display in Firefox [`#152`](https://github.com/oceanprotocol/commons/pull/152)
- Release 0.4.4 [`5f19fbe`](https://github.com/oceanprotocol/commons/commit/5f19fbe4206045a6ba086173403f1594d0806be1)
#### [v0.4.3](https://github.com/oceanprotocol/commons/compare/v0.4.2...v0.4.3)
> 3 June 2019
- output event messages during publishing flow [`#151`](https://github.com/oceanprotocol/commons/pull/151)
- squid-js v0.5.14 [`b27c458`](https://github.com/oceanprotocol/commons/commit/b27c458fb20af086063556831f8bc695c5f1c89b)
- Release 0.4.3 [`303a7bf`](https://github.com/oceanprotocol/commons/commit/303a7bf12ca26a716de38ad9a14ef274c60b661b)
- update tests [`56604b9`](https://github.com/oceanprotocol/commons/commit/56604b972c6dc99953e31cc4a4e24cd7c0e0a34e)
#### [v0.4.2](https://github.com/oceanprotocol/commons/compare/v0.4.1...v0.4.2)
> 31 May 2019
@ -30,18 +394,18 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
> 28 May 2019
- AI For Good: channels, new front-page & categories list [`#125`](https://github.com/oceanprotocol/commons/pull/125)
- asset files & fixed metadata tweaks [`be6c478`](https://github.com/oceanprotocol/commons/commit/be6c478ca723e7face0fc0d37129fd9ff183cffe)
- cleanup contentType in one central place, add more manual replacements [`5e94d73`](https://github.com/oceanprotocol/commons/commit/5e94d73197275a89e9460f98dab5408a7dc1f52a)
- fix tests [`d74a4c0`](https://github.com/oceanprotocol/commons/commit/d74a4c0cbca57e5bf0f8e687148dd0332334acfc)
- rebase fix [`90b163b`](https://github.com/oceanprotocol/commons/commit/90b163b2aa1703fd4e450e4e83076ed4522b0aad)
- category search, make multiple layouts on one page possible [`1b1ac5c`](https://github.com/oceanprotocol/commons/commit/1b1ac5c9ef75e3a67d949a07e8177245e7912fe7)
- channel teaser component, use on channels page [`1b7d343`](https://github.com/oceanprotocol/commons/commit/1b7d34398490a14a0fd62db7b28e54dab14acc30)
#### [v0.3.2](https://github.com/oceanprotocol/commons/compare/v0.3.1...v0.3.2)
> 27 May 2019
- Add range error handling [`#144`](https://github.com/oceanprotocol/commons/pull/144)
- rebase fix [`90b163b`](https://github.com/oceanprotocol/commons/commit/90b163b2aa1703fd4e450e4e83076ed4522b0aad)
- category search, make multiple layouts on one page possible [`1b1ac5c`](https://github.com/oceanprotocol/commons/commit/1b1ac5c9ef75e3a67d949a07e8177245e7912fe7)
- channel teaser component, use on channels page [`1b7d343`](https://github.com/oceanprotocol/commons/commit/1b7d34398490a14a0fd62db7b28e54dab14acc30)
- update changelog [`7669545`](https://github.com/oceanprotocol/commons/commit/7669545d1391b764fd42419c41162182b93d9118)
- Release 0.3.2 [`63b87cf`](https://github.com/oceanprotocol/commons/commit/63b87cfb82b410886baefe8a20da0b7f1d3ac34e)
- add range error handling [`2687c78`](https://github.com/oceanprotocol/commons/commit/2687c7847425c549927993ee396d8e12072ad9da)
#### [v0.3.1](https://github.com/oceanprotocol/commons/compare/v0.3.0...v0.3.1)
@ -57,17 +421,17 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- Consume feedback mesages [`#110`](https://github.com/oceanprotocol/commons/pull/110)
- fresh package-lock [`743fe53`](https://github.com/oceanprotocol/commons/commit/743fe533dc848dd1f120e6086e3ef311a23395a0)
- update changelog [`01e68b6`](https://github.com/oceanprotocol/commons/commit/01e68b6632b44c71ee8f6f0521d56355d2c4f6a7)
- bump required component versions [`d6a7800`](https://github.com/oceanprotocol/commons/commit/d6a7800cc4b408f12e2e6d4b8c5c6100536ab2d7)
- message tweaks [`0e12204`](https://github.com/oceanprotocol/commons/commit/0e12204a5a0b72b070f5b7a8cc9d14c351cff3c2)
- message output refactor, testing [`879f511`](https://github.com/oceanprotocol/commons/commit/879f51170ea0dfdf97d72a3594ac73b920d52162)
#### [v0.2.14](https://github.com/oceanprotocol/commons/compare/v0.2.13...v0.2.14)
> 20 May 2019
- AI Commons link [`#137`](https://github.com/oceanprotocol/commons/pull/137)
- message tweaks [`0e12204`](https://github.com/oceanprotocol/commons/commit/0e12204a5a0b72b070f5b7a8cc9d14c351cff3c2)
- message output refactor, testing [`879f511`](https://github.com/oceanprotocol/commons/commit/879f51170ea0dfdf97d72a3594ac73b920d52162)
- add AI Commons logo [`081772c`](https://github.com/oceanprotocol/commons/commit/081772ce3764b95d67cf685c5d71c335c7f68d47)
- clarify changelog updating [`bf3378b`](https://github.com/oceanprotocol/commons/commit/bf3378bc489b197cc2fc0d4f955e376b39dee1ca)
- update changelog [`7e2d7ac`](https://github.com/oceanprotocol/commons/commit/7e2d7ac6ad06c7acd26851d95ba3ab673f7a45b9)
#### [v0.2.13](https://github.com/oceanprotocol/commons/compare/v0.2.12...v0.2.13)
@ -75,9 +439,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- Output total assets [`#128`](https://github.com/oceanprotocol/commons/pull/128)
- Updated Telegram link [`#138`](https://github.com/oceanprotocol/commons/pull/138)
- output total assets in the marketplace, use new Market Provider for it [`2244082`](https://github.com/oceanprotocol/commons/commit/22440827cafb8ccc4621e49df12b96b1192dd5f0)
- styling, AI Commons link [`e6fc7a9`](https://github.com/oceanprotocol/commons/commit/e6fc7a9085805a18a1779de4b9628dcc96403f4f)
- update changelog [`7df6958`](https://github.com/oceanprotocol/commons/commit/7df695812325f6470cabd036f744cf2e5281ae6f)
- Release 0.2.13 [`7a6075b`](https://github.com/oceanprotocol/commons/commit/7a6075b553050a0bc9512873fad8e56a8f4f6ee3)
- remove AI Commons line for now [`21786a7`](https://github.com/oceanprotocol/commons/commit/21786a7d16a2e999835c85605dcdc4e23c6727ea)
#### [v0.2.12](https://github.com/oceanprotocol/commons/compare/v0.2.11...v0.2.12)
@ -85,9 +449,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- Fix versions vwv.y.z [`#135`](https://github.com/oceanprotocol/commons/pull/135)
- consistent AI For Good category naming [`#136`](https://github.com/oceanprotocol/commons/pull/136)
- output total assets in the marketplace, use new Market Provider for it [`2244082`](https://github.com/oceanprotocol/commons/commit/22440827cafb8ccc4621e49df12b96b1192dd5f0)
- styling, AI Commons link [`e6fc7a9`](https://github.com/oceanprotocol/commons/commit/e6fc7a9085805a18a1779de4b9628dcc96403f4f)
- update changelog [`a831848`](https://github.com/oceanprotocol/commons/commit/a83184851ca1293a684463b32bd2dbc0c59d5583)
- Release 0.2.12 [`8c4fefc`](https://github.com/oceanprotocol/commons/commit/8c4fefcee1e4c7c9e02eeb97fe90911e2bc54ef6)
#### [v0.2.11](https://github.com/oceanprotocol/commons/compare/v0.2.10...v0.2.11)
@ -105,7 +468,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- AI for Good category [`#126`](https://github.com/oceanprotocol/commons/pull/126)
- Network detection tweaks [`#122`](https://github.com/oceanprotocol/commons/pull/122)
- bump squid-js [`97b20b4`](https://github.com/oceanprotocol/commons/commit/97b20b4e9b09f3ade7d55636fb6ef169bacf4222)
- isCorrectNetwork -> isOceanNetwork [`807723b`](https://github.com/oceanprotocol/commons/commit/807723be350a60da97f25c53eed102bafcbf1c3c)
- isCorrectNetwork -&gt; isOceanNetwork [`807723b`](https://github.com/oceanprotocol/commons/commit/807723be350a60da97f25c53eed102bafcbf1c3c)
- less verbose error logging [`f49fa14`](https://github.com/oceanprotocol/commons/commit/f49fa14b2aa7d35a91f8003ddd297b4f2df8ca78)
#### [v0.2.9](https://github.com/oceanprotocol/commons/compare/v0.2.8...v0.2.9)
@ -160,7 +523,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- fix search titles [`#112`](https://github.com/oceanprotocol/commons/pull/112)
- Release 0.2.4 [`8f832b6`](https://github.com/oceanprotocol/commons/commit/8f832b63220a46a8de0061ffc2498186e2099315)
- update telegram link [`e6806f4`](https://github.com/oceanprotocol/commons/commit/e6806f467d6e2299bc0886eba53d0646dfa4df31)
#### [v0.2.3](https://github.com/oceanprotocol/commons/compare/v0.2.2...v0.2.3)
@ -317,7 +679,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- add changelog [`#33`](https://github.com/oceanprotocol/commons/pull/33)
- Front-page tweaks & user asset list [`#19`](https://github.com/oceanprotocol/commons/pull/19)
- add invoice view [`#29`](https://github.com/oceanprotocol/commons/pull/29)
- root app->/client, microservice in /server [`#28`](https://github.com/oceanprotocol/commons/pull/28)
- root app-&gt;/client, microservice in /server [`#28`](https://github.com/oceanprotocol/commons/pull/28)
- Account & Faucet UI [`#25`](https://github.com/oceanprotocol/commons/pull/25)
- New publish flow [`#23`](https://github.com/oceanprotocol/commons/pull/23)
- package updates [`#27`](https://github.com/oceanprotocol/commons/pull/27)
@ -342,4 +704,4 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- kick out prototyping stuff [`#58`](https://github.com/oceanprotocol/commons/issues/58)
- one dev interface for client & server [`7e42991`](https://github.com/oceanprotocol/commons/commit/7e42991706f139a34e425dd7c20b28b4f55d77aa)
- npm install [`07f6d22`](https://github.com/oceanprotocol/commons/commit/07f6d22a36f0f253f9a6619912489679f62218da)
- display published [`43d0847`](https://github.com/oceanprotocol/commons/commit/43d0847d48ccf3f5796f27aae6cd179770c8a8d5)
- start command [`c49fc85`](https://github.com/oceanprotocol/commons/commit/c49fc85017b0560cf96c7ed8e7d6e2c2ace1bff9)

134
README.md
View File

@ -1,3 +1,7 @@
**This repo is obsolete as of Ocean V3 (Oct 2020). Superseded by [oceanprotocol/market](https://github.com/oceanprotocol/market).**
----
[![banner](https://raw.githubusercontent.com/oceanprotocol/art/master/github/repo-banner%402x.png)](https://oceanprotocol.com)
<h1 align="center">Commons</h1>
@ -6,11 +10,10 @@
> https://commons.oceanprotocol.com
[![Build Status](https://travis-ci.com/oceanprotocol/commons.svg?branch=master)](https://travis-ci.com/oceanprotocol/commons)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/6a19987e62344b1c9c1d5bc9f315c733)](https://www.codacy.com/app/ocean-protocol/commons)
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/6a19987e62344b1c9c1d5bc9f315c733)](https://www.codacy.com/app/ocean-protocol/commons)
[![Maintainability](https://api.codeclimate.com/v1/badges/ed6e8212a8d294b6aa88/maintainability)](https://codeclimate.com/github/oceanprotocol/commons/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/ed6e8212a8d294b6aa88/test_coverage)](https://codeclimate.com/github/oceanprotocol/commons/test_coverage)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-7b1173.svg?style=flat-square)](https://github.com/prettier/prettier)
[![js oceanprotocol](https://img.shields.io/badge/js-oceanprotocol-7b1173.svg)](https://github.com/oceanprotocol/eslint-config-oceanprotocol)
[![css bigchaindb](https://img.shields.io/badge/css-bigchaindb-39BA91.svg)](https://github.com/bigchaindb/stylelint-config-bigchaindb)
<img width="1218" alt="Commons UI" src="https://user-images.githubusercontent.com/90316/55874266-296ef080-5b92-11e9-8ac6-2423cb2a80fb.png">
@ -23,9 +26,16 @@
If you're a developer and want to contribute to, or want to utilize this marketplace's code in your projects, then keep on reading.
- [🏄 Get Started](#-get-started)
- [🏖 Remote Ocean: Nile](#-remote-ocean-nile)
- [🏖 Remote Ocean: Pacific](#-remote-ocean-pacific)
- [🐳 Use with Barge](#-use-with-barge)
- [⛵️ Environment Variables](#-environment-variables)
- [Client](#client)
- [Server](#server)
- [Feature Switches](#feature-switches)
- [More Settings](#more-settings)
- [👩‍🔬 Testing](#-testing)
- [Unit Tests](#unit-tests)
- [End-to-End Integration Tests](#end-to-end-integration-tests)
- [✨ Code Style](#-code-style)
- [🛳 Production](#-production)
- [⬆️ Releases](#-releases)
@ -38,7 +48,7 @@ If you're a developer and want to contribute to, or want to utilize this marketp
This repo contains a client and a server, both written in TypeScript:
- **client**: React app setup with [squid-js](https://github.com/oceanprotocol/squid-js), bootstrapped with [Create React App](https://github.com/facebook/create-react-app)
- **server**: Node.js app, utilizing [Express](https://expressjs.com). The server provides various microservices, like remote file checking.
- **server**: Node.js app, utilizing [Express](https://expressjs.com). The server provides various microservices, like remote file checking. The endpoints are documented in [server Readme](server/).
To spin up both, the client and the server in a watch mode for local development, execute:
@ -49,39 +59,115 @@ npm start
Open [http://localhost:3000](http://localhost:3000) to view the client in the browser. The page will reload if you make edits to files in either `./client` or `./server`.
### 🏖 Remote Ocean: Nile
### 🏖 Remote Ocean: Pacific
To make use of all the functionality, you need to connect to the Ocean network. By default, the client will connect to Ocean components running within [Ocean's Nile test network](https://docs.oceanprotocol.com/concepts/testnets/#the-nile-testnet) remotely.
To make use of all the functionality, you need to connect to an Ocean network.
This means you need to connect with your MetaMask to the Nile network too. To do this:
By default, the client will connect to Ocean components running within [Ocean's Pacific network](https://docs.oceanprotocol.com/concepts/pacific-network/) remotely.
By default, the client uses a burner wallet connected to the correct network automatically. If you choose to use MetaMask, you need to connect to the Pacific network. To do this:
1. select Custom RPC in the network dropdown in MetaMask
2. under New Network, enter `https://nile.dev-ocean.com` as the custom RPC URL
3. Hit _Save_, and youre now connected to Nile
2. under New Network, enter `https://pacific.oceanprotocol.com` as the custom RPC URL
3. Hit _Save_, and youre now connected to Pacific
### 🐳 Use with Barge
If you prefer to connect to locally running components instead of remote connections to Ocean's Nile network, you can spin up [`barge`](https://github.com/oceanprotocol/barge) and use a local network:
If you prefer to connect to locally running components instead of remote connections to Ocean's Nile network, you can spin up [`barge`](https://github.com/oceanprotocol/barge) and use a local Spree network:
```bash
git clone git@github.com:oceanprotocol/barge.git
cd barge
./start_ocean.sh --latest --no-pleuston --local-spree-node
# startup with local Spree node
./start_ocean.sh --no-commons
```
Modify `./client/src/config.ts` to use those local connections.
Then set [environment variables](#-environment-variables) to use those local connections.
Finally, you need to copy the generated contract artifacts out of the Docker container. To do this, execute this script in another terminal:
```bash
./scripts/keeper.sh
```
The script will wait for all contracts to be generated in the `keeper-contracts` Docker container, then will copy the artifacts in place.
If you are on macOS, you need to additionally tweak your `/etc/hosts` file so Brizo can connect to Aquarius. This is only required on macOS and is a [known limitation of Docker for Mac](https://docs.docker.com/docker-for-mac/networking/#known-limitations-use-cases-and-workarounds):
```bash
sudo vi /etc/hosts
# add this line, and save
127.0.0.1 aquarius
```
Then use this host for the local Aquarius url in the client config:
```bash
REACT_APP_AQUARIUS_URI="http://aquarius:5000"
```
### ⛵️ Environment Variables
#### Client
The `./client/src/config.ts` file is setup to prioritize environment variables for setting each Ocean component endpoint.
By setting environment variables, you can easily switch between Ocean networks the commons client connects to, without directly modifying `./client/src/config.ts`. This is helpful e.g. for local development so you don't accidentially commit changes to the config file.
For local development, you can use a `.env.local` file. There's an example file with the most common network configurations preconfigured:
```bash
cp client/.env.local.example client/.env.local
# uncomment the config you need
vi client/.env.local
```
#### Server
The server uses its own environment variables too:
```bash
cp server/.env.example server/.env
# edit variables
vi server/.env
```
#### Feature Switches
Beside configuring the network endpopints, the client allows to activate some features with environment variables in `client/.env.local`:
| Env Variable | Feature Description |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `REACT_APP_SHOW_CHANNELS` | Show the channels feature which shows assets based on a certain tag in a prominent view. This is deeactivated by default and only activated in live Commons deployments. |
| `REACT_APP_SHOW_REQUEST_TOKENS_BUTTON` | Shows a second button on the `/faucet` route to request Ocean Tokens in addition to Ether. Will only work in Ocean testnets. |
| `REACT_APP_ALLOW_PRICING` | Activate pricing feature. Will show a price input during publish flow, and output prices for each data asset. |
#### More Settings
| Env Variable | Example | Feature Description |
| --------------------------------------------------------------------- | -------------------------------------- | ------------------------------------------------- |
| client: `REACT_APP_IPFS_GATEWAY_URI`<br /> server: `IPFS_GATEWAY_URI` | `"https://ipfs.oceanprotocol.com"` | The IPFS gateway URI. |
| `REACT_APP_IPFS_NODE_URI` | `"https://ipfs.oceanprotocol.com:443"` | The IPFS node URI used to add files to IPFS. |
| `REACT_APP_REPORT_EMAIL` | `"jelly@mcjellyfish.com"` | The email used for the _report an asset_ feature. |
## 👩‍🔬 Testing
Test suite is setup with [Jest](https://jestjs.io) and [react-testing-library](https://github.com/kentcdodds/react-testing-library).
Test suite is setup with [Jest](https://jestjs.io) and [react-testing-library](https://github.com/kentcdodds/react-testing-library) for unit testing, and [Cypress](https://www.cypress.io) for integration testing.
To run all tests, including all linting tests:
To run all linting, unit and integration tests in one go, run:
```bash
npm test
```
The endpoints the integration tests run against are defined by your [Environment Variables](#-Environment-Variables), and Cypress-specific variables in `cypress.json`.
### Unit Tests
For local development, you can start the test runners for client & server in a watch mode.
```bash
@ -98,12 +184,28 @@ cd server/
npm run test:watch
```
### End-to-End Integration Tests
To run all integration tests in headless mode, run:
```bash
npm run test:e2e
```
This will automatically spin up all required resources to run the integrations tests, and then run them.
You can also use the UI of Cypress to run and inspect the integration tests locally:
```bash
npm run cypress:open
```
## ✨ Code Style
For linting and auto-formatting you can use from the root of the project:
```bash
# auto format all ts & css with eslint & stylelint
# auto format all ts & css with eslint
npm run lint
# auto format all ts & css with prettier, taking all configs into account

View File

@ -1 +1,6 @@
node_modules
.env.local
.env
build
coverage
__mocks__

63
client/.env.local.example Normal file
View File

@ -0,0 +1,63 @@
#
# When none of the following variables are set,
# Commons will default connecting to Pacific
#
#
# Connect to Pacific
#
REACT_APP_NODE_URI="https://pacific.oceanprotocol.com"
REACT_APP_SECRET_STORE_URI="https://secret-store.oceanprotocol.com"
REACT_APP_FAUCET_URI="https://faucet.oceanprotocol.com"
# Pacific Test instances
REACT_APP_AQUARIUS_URI="https://aquarius.test.oceanprotocol.com"
REACT_APP_BRIZO_URI="https://brizo.test.oceanprotocol.com"
REACT_APP_BRIZO_ADDRESS="0x0474ed05ba757dde575dfaaaa267d9e7f3643abc"
# Pacific Commons instances
# REACT_APP_AQUARIUS_URI="https://aquarius.commons.oceanprotocol.com"
# REACT_APP_BRIZO_URI="https://brizo.commons.oceanprotocol.com"
# REACT_APP_BRIZO_ADDRESS="0x008c25ed3594e094db4592f4115d5fa74c4f41ea"
#
# Connect to Nile
#
# REACT_APP_NODE_URI="https://nile.dev-ocean.com"
# REACT_APP_SECRET_STORE_URI="https://secret-store.nile.dev-ocean.com"
# REACT_APP_FAUCET_URI="https://faucet.nile.dev-ocean.com"
# REACT_APP_BRIZO_ADDRESS="0x4aaab179035dc57b35e2ce066919048686f82972"
# Nile Test instances
# REACT_APP_AQUARIUS_URI="https://aquarius.nile.dev-ocean.com"
# REACT_APP_BRIZO_URI="https://brizo.nile.dev-ocean.com"
# Nile Commons instances
# REACT_APP_AQUARIUS_URI="https://aquarius.marketplace.dev-ocean.com"
# REACT_APP_BRIZO_URI="https://brizo.marketplace.dev-ocean.com"
#
# Connect to Duero
#
# REACT_APP_NODE_URI="https://duero.dev-ocean.com"
# REACT_APP_AQUARIUS_URI="https://aquarius.duero.dev-ocean.com"
# REACT_APP_BRIZO_URI="https://brizo.duero.dev-ocean.com"
# REACT_APP_SECRET_STORE_URI="https://secret-store.duero.dev-ocean.com"
# REACT_APP_FAUCET_URI="https://faucet.duero.dev-ocean.com"
# REACT_APP_BRIZO_ADDRESS="0x9d4ed58293f71122ad6a733c1603927a150735d0"
#
# Connect to Spree (local with Barge)
#
# REACT_APP_NODE_URI="http://localhost:8545"
# REACT_APP_AQUARIUS_URI="http://aquarius:5000"
# REACT_APP_BRIZO_URI="http://localhost:8030"
# REACT_APP_SECRET_STORE_URI="http://localhost:12001"
# REACT_APP_FAUCET_URI="http://localhost:3001"
# REACT_APP_BRIZO_ADDRESS="0x068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0"
#
# APP CONFIG
#
REACT_APP_REPORT_EMAIL="test@example.com"
# REACT_APP_SHOW_CHANNELS=true
# REACT_APP_ALLOW_PRICING=true
# REACT_APP_SHOW_REQUEST_TOKENS_BUTTON=true
REACT_APP_IPFS_GATEWAY_URI="https://ipfs.oceanprotocol.com"
REACT_APP_IPFS_NODE_URI="https://ipfs.oceanprotocol.com:443"

View File

@ -1,20 +1,23 @@
FROM node:11-alpine
LABEL maintainer="Ocean Protocol <devops@oceanprotocol.com>"
RUN apk add --no-cache --update\
bash\
g++\
gcc\
git\
gettext\
make\
python
RUN apk add --no-cache --update \
bash \
g++ \
gcc \
git \
gettext \
make \
python \
&& rm -rf /var/cache/apk/*
COPY package*.json /app/frontend/
WORKDIR /app/frontend
RUN npm install -g npm serve \
&& npm install \
&& npm cache clean --force
COPY . /app/frontend
WORKDIR /app/frontend
RUN npm install -g npm serve
RUN npm install
RUN npm run build
# Default ENV values

View File

@ -1,38 +0,0 @@
const oceanMock = {
ocean: {
accounts: {
list: () => ['xxx', 'xxx']
},
aquarius: {
queryMetadata: () => {
return {
results: [],
totalResults: 1,
totalPages: 1
}
}
},
assets: {
resolve: jest.fn(),
order: () => {
return {
next: jest.fn()
}
},
consume: jest.fn()
},
keeper: {
conditions: {
accessSecretStoreCondition: {
getGrantedDidByConsumer: () => {
return {
find: jest.fn()
}
}
}
}
}
}
}
export default oceanMock

19228
client/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,64 +1,72 @@
{
"name": "commons-client",
"description": "Ocean Protocol marketplace frontend to explore, download, and publish open data sets.",
"version": "0.4.2",
"version": "2.4.1",
"license": "Apache-2.0",
"scripts": {
"start": "react-scripts start",
"build": "react-scripts --max_old_space_size=4096 build",
"test": "react-scripts test --coverage --watchAll=false",
"build": "CI=false react-scripts --max_old_space_size=4096 build",
"test": "react-scripts test --coverage --watchAll=false --silent",
"test:watch": "react-scripts test --coverage",
"eject": "react-scripts eject",
"coverage": "cat coverage/lcov.info | codacy-coverage --token 8801f827fe1144ffa85cd7da94f2bbf7"
"analyze": "source-map-explorer 'build/static/js/*.js'"
},
"dependencies": {
"@oceanprotocol/art": "^2.2.0",
"@oceanprotocol/squid": "^0.5.12",
"@oceanprotocol/squid": "^2.2.0",
"@oceanprotocol/typographies": "^0.1.0",
"@sindresorhus/slugify": "^0.9.1",
"axios": "^0.18.0",
"@sindresorhus/slugify": "^1.0.0",
"@truffle/hdwallet-provider": "^1.0.35",
"axios": "^0.19.2",
"bip39": "^3.0.2",
"classnames": "^2.2.6",
"ethereum-blockies": "MyEtherWallet/blockies",
"filesize": "^4.1.2",
"history": "^4.9.0",
"is-url": "^1.2.4",
"moment": "^2.24.0",
"query-string": "^6.5.0",
"react": "^16.8.6",
"react-datepicker": "^2.5.0",
"react-dom": "^16.8.6",
"react-dotdotdot": "^1.3.0",
"react-ga": "^2.5.7",
"react-helmet": "^5.2.1",
"react-markdown": "^4.0.8",
"react-moment": "^0.9.2",
"react-paginate": "^6.3.0",
"react-popper": "^1.3.3",
"react-router-dom": "^5.0.0",
"react-transition-group": "^4.0.0",
"web3": "1.0.0-beta.37"
"ethereum-blockies": "github:MyEtherWallet/blockies",
"filesize": "^6.1.0",
"history": "^4.10.1",
"ipfs-http-client": "44.2.0",
"is-url-superb": "^4.0.0",
"moment": "^2.26.0",
"node-sass": "^4.14.1",
"query-string": "^6.13.1",
"react": "^16.13.1",
"react-collapsed": "^3.0.0",
"react-datepicker": "^3.0.0",
"react-dom": "^16.13.1",
"react-dotdotdot": "^1.3.1",
"react-dropzone": "^11.0.1",
"react-ga": "^3.0.0",
"react-helmet": "^6.0.0",
"react-markdown": "^4.3.1",
"react-modal": "^3.11.2",
"react-moment": "^0.9.7",
"react-paginate": "^6.3.2",
"react-popper": "^1.3.7",
"react-router-dom": "^5.2.0",
"react-transition-group": "^4.4.1",
"shortid": "^2.2.15",
"web3": "^1.2.8"
},
"devDependencies": {
"@react-mock/state": "^0.1.8",
"@testing-library/react": "^8.0.1",
"@types/classnames": "^2.2.7",
"@types/filesize": "^4.1.0",
"@sheerun/mutationobserver-shim": "^0.3.3",
"@testing-library/jest-dom": "^5.9.0",
"@testing-library/react": "^10.2.1",
"@types/classnames": "^2.2.10",
"@types/is-url": "^1.2.28",
"@types/jest": "^24.0.12",
"@types/react": "^16.8.15",
"@types/react-datepicker": "^2.3.0",
"@types/react-dom": "^16.8.4",
"@types/react-dotdotdot": "^1.2.0",
"@types/react-helmet": "^5.0.8",
"@types/jest": "^26.0.0",
"@types/react": "^16.9.35",
"@types/react-datepicker": "^2.11.0",
"@types/react-dom": "^16.9.8",
"@types/react-helmet": "^6.0.0",
"@types/react-modal": "^3.10.5",
"@types/react-paginate": "^6.2.1",
"@types/react-router-dom": "^4.3.2",
"@types/react-transition-group": "^2.9.1",
"@types/web3": "^1.0.18",
"jest-dom": "^3.1.4",
"jest-mock-axios": "^3.0.0",
"node-sass": "^4.12.0",
"react-scripts": "^3.0.0",
"typescript": "3.4.5"
"@types/react-router-dom": "^5.1.5",
"@types/react-transition-group": "^4.4.0",
"@types/shortid": "^0.0.29",
"jest-mock-axios": "^4.2.0",
"react-scripts": "^3.4.1",
"source-map-explorer": "^2.4.2",
"typescript": "^3.9.3"
},
"repository": {
"type": "git",
@ -73,7 +81,8 @@
"jest": {
"collectCoverageFrom": [
"src/**/*.{ts,tsx}",
"!src/serviceWorker.ts"
"!src/serviceWorker.ts",
"!src/**/*.d.ts"
]
}
}

View File

@ -12,39 +12,6 @@
<title>Commons</title>
<meta
content="A marketplace to find and publish open data sets in the Ocean Network."
name="description"
/>
<meta
content="https://commons.oceanprotocol.com/share.png"
name="image"
/>
<link href="https://commons.oceanprotocol.com" rel="canonical" />
<meta content="https://commons.oceanprotocol.com" property="og:url" />
<meta content="Commons" property="og:title" />
<meta
content="A marketplace to find and publish open data sets in the Ocean Network."
property="og:description"
/>
<meta
content="https://commons.oceanprotocol.com/share.png"
property="og:image"
/>
<meta content="summary_large_image" name="twitter:card" />
<meta content="@oceanprotocol" name="twitter:creator" />
<meta content="Commons" name="twitter:title" />
<meta
content="A marketplace to find and publish open data sets in the Ocean Network."
name="twitter:description"
/>
<meta
content="https://commons.oceanprotocol.com/share.png"
name="twitter:image"
/>
<style>
.loader {
display: block;

View File

@ -21,5 +21,5 @@
"start_url": ".",
"display": "standalone",
"theme_color": "#141414",
"background_color": "#141414"
"background_color": "#ffffff"
}

2
client/public/robots.txt Normal file
View File

@ -0,0 +1,2 @@
User-agent: *
Disallow: /search

9
client/src/@types/global.d.ts vendored Normal file
View File

@ -0,0 +1,9 @@
import Web3 from 'web3'
import { Eth } from 'web3/eth'
declare global {
interface Window {
web3: Web3
ethereum: Eth
}
}

View File

@ -3,3 +3,8 @@
declare module 'ethereum-blockies' {
export function toDataUrl(address: string): string
}
declare module 'ipfs'
declare module 'ipfs-http-client'
declare module 'react-collapsed'
declare module 'filesize'

View File

@ -2,7 +2,7 @@ import React from 'react'
import { render } from '@testing-library/react'
import App from './App'
import { User } from './context'
import { userMock, userMockConnected } from '../__mocks__/user-mock'
import { userMock, userMockConnected } from './__mocks__/user-mock'
describe('App', () => {
it('should be able to run tests', () => {

View File

@ -3,7 +3,7 @@ import { BrowserRouter as Router } from 'react-router-dom'
import { render } from '@testing-library/react'
import Routes from './Routes'
import { User } from './context'
import { userMockConnected } from '../__mocks__/user-mock'
import { userMockConnected } from './__mocks__/user-mock'
describe('Routes', () => {
it('renders without crashing', () => {

View File

@ -1,6 +1,6 @@
import React from 'react'
import { Route, Switch } from 'react-router-dom'
import withTracker from './hoc/withTracker'
import { showChannels } from './config'
import About from './routes/About'
import Home from './routes/Home'
@ -17,17 +17,21 @@ import Channel from './components/templates/Channel'
const Routes = () => (
<Switch>
<Route component={withTracker(Home)} exact path="/" />
<Route component={withTracker(Styleguide)} path="/styleguide" />
<Route component={withTracker(About)} path="/about" />
<Route component={withTracker(Publish)} path="/publish" />
<Route component={withTracker(Search)} path="/search" />
<Route component={withTracker(Asset)} path="/asset/:did" />
<Route component={withTracker(Faucet)} path="/faucet" />
<Route component={withTracker(History)} path="/history" />
<Route component={withTracker(Channels)} exact path="/channels" />
<Route component={withTracker(Channel)} path="/channels/:channel" />
<Route component={withTracker(NotFound)} />
<Route component={Home} exact path="/" />
<Route component={Styleguide} path="/styleguide" />
<Route component={About} path="/about" />
<Route component={Publish} path="/publish" />
<Route component={Search} path="/search" />
<Route component={Asset} path="/asset/:did" />
<Route component={Faucet} path="/faucet" />
<Route component={History} path="/history" />
{showChannels && (
<>
<Route component={Channels} exact path="/channels" />
<Route component={Channel} path="/channels/:channel" />
</>
)}
<Route component={NotFound} />
</Switch>
)

View File

@ -0,0 +1,10 @@
import { DDO } from '@oceanprotocol/squid'
const ddoMock = ({
id: 'xxx',
findServiceByType: () => {
return { index: 'xxx' }
}
} as any) as DDO
export default ddoMock

View File

@ -0,0 +1,8 @@
const marketMock = {
totalAssets: 1000,
categories: ['category'],
network: 'Pacific',
networkMatch: true
}
export { marketMock }

View File

@ -0,0 +1,76 @@
const oceanMock = {
ocean: {
accounts: {
list: () => ['xxx', 'xxx']
},
aquarius: {
queryMetadata: () => {
return {
results: [],
totalResults: 1,
totalPages: 1
}
}
},
assets: {
query: () => {
return {
results: [],
page: 1,
/* eslint-disable @typescript-eslint/camelcase */
total_pages: 1611,
total_results: 1611
/* eslint-enable @typescript-eslint/camelcase */
}
},
resolve: jest.fn(),
order: () => {
return {
next: jest.fn()
}
},
consume: jest.fn()
},
keeper: {
conditions: {
accessSecretStoreCondition: {
getGrantedDidByConsumer: () => {
return {
find: jest.fn()
}
}
}
}
},
versions: {
get: jest.fn(() =>
Promise.resolve({
squid: {
name: 'Squid-js',
status: 'Working'
},
aquarius: {
name: 'Aquarius',
status: 'Working'
},
brizo: {
name: 'Brizo',
network: 'Nile',
status: 'Working',
contracts: {
hello: 'hello',
hello2: 'hello2'
}
},
status: {
ok: true,
network: true,
contracts: true
}
})
)
}
}
}
export default oceanMock

View File

@ -3,30 +3,32 @@ import oceanMock from './ocean-mock'
const userMock = {
isLogged: false,
isLoading: false,
isWeb3: false,
isOceanNetwork: false,
isBurner: false,
isWeb3Capable: false,
account: '',
web3: {},
...oceanMock,
balance: { eth: 0, ocn: 0 },
network: '',
requestFromFaucet: jest.fn(),
unlockAccounts: jest.fn(),
loginMetamask: jest.fn(),
loginBurnerWallet: jest.fn(),
message: ''
}
const userMockConnected = {
isLogged: true,
isLoading: false,
isWeb3: true,
isOceanNetwork: true,
isBurner: false,
isWeb3Capable: true,
account: '0xxxxxx',
web3: {},
...oceanMock,
balance: { eth: 0, ocn: 0 },
network: '',
requestFromFaucet: jest.fn(),
unlockAccounts: jest.fn(),
loginMetamask: jest.fn(),
loginBurnerWallet: jest.fn(),
message: ''
}

View File

@ -2,18 +2,82 @@
.account {
display: flex;
flex-wrap: wrap;
align-items: center;
text-align: left;
> div {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-family: $font-family-monospace;
font-size: $font-size-small;
> div:first-of-type {
flex: 0 0 80%;
}
}
.accountId {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-family: $font-family-monospace;
font-size: $font-size-small;
font-weight: 700;
}
.unlock {
font-size: $font-size-small !important;
margin-left: $spacer / 2;
}
.accountType {
width: 100%;
margin-left: calc(1.5rem + #{$spacer / 3});
font-size: $font-size-small;
font-weight: $font-weight-bold;
color: $brand-grey-light;
}
.toggle {
background: none;
font-family: inherit;
font-size: inherit;
font-weight: inherit;
color: inherit;
border: none;
padding: 0;
cursor: pointer;
svg {
display: inline-block;
fill: currentColor;
margin-right: $spacer / 8;
transition: 0.2s ease-out;
}
}
.open {
transform: rotate(90deg);
}
.seedphrase {
margin-top: $spacer / 2;
margin-left: calc(1.5rem + #{$spacer / 4});
margin-right: calc(1.5rem + #{$spacer / 4});
code {
display: block;
text-align: center;
padding: $spacer / 2 $spacer;
border-radius: $border-radius;
background: $body-background;
border: 1px solid $brand-grey-lighter;
margin-bottom: $spacer / 4;
word-break: normal;
}
}
.seedphraseHelp {
color: $brand-grey-light;
font-size: $font-size-small;
margin: 0;
}
.blockies {
width: 1.5rem;
height: 1.5rem;
@ -21,4 +85,5 @@
display: inline-block;
margin-right: $spacer / 3;
margin-left: 0;
border: 1px solid $brand-grey-lighter;
}

View File

@ -1,28 +1,61 @@
import React from 'react'
import { render } from '@testing-library/react'
import { render, fireEvent } from '@testing-library/react'
import { toDataUrl } from 'ethereum-blockies'
import Account from './Account'
import { User } from '../../context'
import { userMockConnected } from '../../__mocks__/user-mock'
describe('Account', () => {
it('renders without crashing', () => {
const { container } = render(<Account account={'0xxxxxxxxxxxxxxx'} />)
const { container } = render(
<User.Provider
value={{ ...userMockConnected, account: '0xxxxxxxxxxxxxxx' }}
>
<Account />
</User.Provider>
)
expect(container.firstChild).toBeInTheDocument()
})
it('outputs empty state without account', () => {
const { container } = render(<Account account={''} />)
const { container, getByText } = render(
<User.Provider value={{ ...userMockConnected, account: '' }}>
<Account />
</User.Provider>
)
expect(container.firstChild).toHaveTextContent('No account selected')
fireEvent.click(getByText('Unlock Account'))
})
it('outputs blockie img', () => {
const account = '0xxxxxxxxxxxxxxx'
const blockies = toDataUrl(account)
const { container } = render(<Account account={account} />)
const { container } = render(
<User.Provider value={{ ...userMockConnected, account }}>
<Account />
</User.Provider>
)
expect(container.querySelector('.blockies')).toBeInTheDocument()
expect(container.querySelector('.blockies')).toHaveAttribute(
'src',
blockies
)
})
it('Account info can be toggled', () => {
const { container, getByText } = render(
<User.Provider
value={{
...userMockConnected,
isBurner: true,
account: '0xxxxxxxxxxxxxxx'
}}
>
<Account />
</User.Provider>
)
expect(container.firstChild).toBeInTheDocument()
fireEvent.click(getByText('Burner Wallet'))
})
})

View File

@ -1,19 +1,90 @@
import React from 'react'
import React, { PureComponent, MouseEvent } from 'react'
import Dotdotdot from 'react-dotdotdot'
import { toDataUrl } from 'ethereum-blockies'
import styles from './Account.module.scss'
import WalletSelector from '../organisms/WalletSelector'
import content from '../../data/web3message.json'
import { ReactComponent as Caret } from '../../img/caret.svg'
import { User } from '../../context'
import Button from './Button'
const Account = ({ account }: { account: string }) => {
const blockies = account && toDataUrl(account)
export default class Account extends PureComponent<
{},
{ isAccountInfoOpen: boolean }
> {
public static contextType = User
return account && blockies ? (
<div className={styles.account}>
<img className={styles.blockies} src={blockies} alt="Blockies" />
<Dotdotdot clamp={1}>{account}</Dotdotdot>
</div>
) : (
<em>No account selected</em>
)
public state = {
isAccountInfoOpen: false
}
private toggleAccountInfo(event: MouseEvent) {
event.preventDefault()
this.setState({ isAccountInfoOpen: !this.state.isAccountInfoOpen })
}
public render() {
const { account, isBurner, loginMetamask, isWeb3Capable } = this.context
const { isAccountInfoOpen } = this.state
const seedphrase = localStorage.getItem('seedphrase') as string
const blockies = account && toDataUrl(account)
return (
<div className={styles.account}>
{account ? (
<>
<img
className={styles.blockies}
src={blockies}
alt="Blockies"
/>
<Dotdotdot className={styles.accountId} clamp={2}>
{account}
</Dotdotdot>
</>
) : (
<>
<span className={styles.blockies} />
<em className={styles.noAccount}>
No account selected
</em>
<Button
link
className={styles.unlock}
onClick={() => loginMetamask()}
>
Unlock Account
</Button>
</>
)}
<div className={styles.accountType}>
{isBurner ? (
<button
className={styles.toggle}
onClick={(event) => this.toggleAccountInfo(event)}
title="Show More Account Info"
>
<Caret
className={isAccountInfoOpen ? styles.open : ''}
/>{' '}
Burner Wallet
</button>
) : (
'MetaMask'
)}
{isWeb3Capable && <WalletSelector />}
</div>
{isBurner && isAccountInfoOpen && (
<div className={styles.seedphrase}>
<code>{seedphrase}</code>
<p className={styles.seedphraseHelp}>
{content.seedphrase}
</p>
</div>
)}
</div>
)
}
}
export default Account

View File

@ -13,10 +13,10 @@
font-weight: $font-weight-bold;
text-transform: uppercase;
border-radius: 2px;
transition: .2s ease-out;
transition: 0.2s ease-out;
color: $brand-white;
background: $brand-grey-light;
box-shadow: 0 9px 18px 0 rgba(0, 0, 0, .1);
box-shadow: 0 9px 18px 0 rgba(0, 0, 0, 0.1);
min-height: 45px;
user-select: none;
@ -25,21 +25,21 @@
color: $brand-white;
background: $brand-grey-light;
text-decoration: none;
transform: translate3d(0, -.05rem, 0);
box-shadow: 0 12px 30px 0 rgba(0, 0, 0, .1);
transform: translate3d(0, -0.05rem, 0);
box-shadow: 0 12px 30px 0 rgba(0, 0, 0, 0.1);
}
&:active {
background: $brand-grey-light;
transition: none;
transform: none;
box-shadow: 0 5px 18px 0 rgba(0, 0, 0, .1);
box-shadow: 0 5px 18px 0 rgba(0, 0, 0, 0.1);
}
&:disabled {
cursor: not-allowed;
pointer-events: none;
opacity: .5;
opacity: 0.5;
}
}

View File

@ -1,4 +1,4 @@
import React, { PureComponent } from 'react'
import React from 'react'
import { Link } from 'react-router-dom'
import cx from 'classnames'
import styles from './Button.module.scss'
@ -12,49 +12,37 @@ interface ButtonProps {
onClick?: any
disabled?: boolean
to?: string
name?: string
}
export default class Button extends PureComponent<ButtonProps, any> {
public render() {
let classes
const {
primary,
link,
href,
children,
className,
to,
...props
} = this.props
if (primary) {
classes = styles.buttonPrimary
} else if (link) {
classes = styles.link
} else {
classes = styles.button
}
if (to) {
return (
<Link to={to} className={cx(classes, className)} {...props}>
{children}
</Link>
)
}
if (href) {
return (
<a href={href} className={cx(classes, className)} {...props}>
{children}
</a>
)
}
return (
<button className={cx(classes, className)} {...props}>
{children}
</button>
)
}
function getClasses(primary: boolean | undefined, link: boolean | undefined) {
return primary ? styles.buttonPrimary : link ? styles.link : styles.button
}
const Button = ({
primary,
link,
href,
children,
className,
to,
...props
}: ButtonProps) => {
const classes = getClasses(primary, link)
return to ? (
<Link to={to} className={cx(classes, className)} {...props}>
{children}
</Link>
) : href ? (
<a href={href} className={cx(classes, className)} {...props}>
{children}
</a>
) : (
<button className={cx(classes, className)} {...props}>
{children}
</button>
)
}
export default Button

View File

@ -8,8 +8,8 @@
background-color: $body-background;
border-radius: $border-radius;
overflow: hidden;
opacity: .85;
transition: .2s ease-out;
opacity: 0.85;
transition: 0.2s ease-out;
border: 1px solid $brand-grey-lighter;
}
@ -21,5 +21,5 @@
.dimmed {
composes: categoryImage;
opacity: .6;
opacity: 0.6;
}

View File

@ -5,7 +5,7 @@ import formPublish from '../../data/form-publish.json'
describe('CategoryImage', () => {
it('renders fallback image', () => {
const { container } = render(<CategoryImage category={''} />)
const { container } = render(<CategoryImage category="" />)
expect(container.firstChild).toBeInTheDocument()
expect(container.firstChild.style.backgroundImage).toMatch(
/jellyfish-back/

View File

@ -31,8 +31,8 @@
width: 1.25rem;
height: 1.25rem;
top: 50%;
margin-top: -.6rem;
fill: rgba($brand-grey-light, .7);
margin-top: -0.6rem;
fill: rgba($brand-grey-light, 0.7);
}
}
@ -48,7 +48,7 @@
padding: $spacer / 3;
margin: 0;
border-radius: $border-radius;
transition: .2s ease-out;
transition: 0.2s ease-out;
min-height: 43px;
appearance: none;
@ -63,8 +63,8 @@
font-size: $font-size-base;
color: $brand-grey-light;
font-weight: $font-weight-base;
transition: .2s ease-out;
opacity: .7;
transition: 0.2s ease-out;
opacity: 0.7;
}
&[readonly],
@ -95,7 +95,6 @@
border: 0;
// custom arrow
// stylelint-disable
background-image: linear-gradient(45deg, transparent 50%, $brand-purple 50%),
linear-gradient(135deg, $brand-purple 50%, transparent 50%),
linear-gradient(
@ -107,7 +106,6 @@
background-position: calc(100% - 18px) calc(1rem + 5px),
calc(100% - 13px) calc(1rem + 5px), 100% 0;
background-size: 5px 5px, 5px 5px, 2.5rem 3rem;
// stylelint-enable
background-repeat: no-repeat;
&:focus {
@ -153,7 +151,7 @@
font-size: $font-size-small;
line-height: 1.2;
border: 2px solid $brand-grey-lighter;
border-radius: .2rem;
border-radius: 0.2rem;
position: absolute;
left: 0;
right: 0;

View File

@ -1,5 +1,5 @@
import React from 'react'
import { render } from '@testing-library/react'
import { render, fireEvent } from '@testing-library/react'
import Input from './Input'
describe('Input', () => {
@ -7,10 +7,10 @@ describe('Input', () => {
const { container } = render(<Input name="my-input" label="My Input" />)
expect(container.firstChild).toBeInTheDocument()
expect(container.querySelector('.label')).toHaveTextContent('My Input')
expect(container.querySelector('.input')).toHaveAttribute(
'id',
'my-input'
)
const input = container.querySelector('.input')
expect(input).toHaveAttribute('id', 'my-input')
input && fireEvent.focus(input)
})
it('renders as text input by default', () => {
@ -25,13 +25,13 @@ describe('Input', () => {
const { container } = render(
<Input name="my-input" label="My Input" type="search" />
)
expect(container.querySelector('.input')).toHaveAttribute(
'type',
'search'
)
const input = container.querySelector('.input')
expect(input).toHaveAttribute('type', 'search')
expect(container.querySelector('label + div')).toHaveClass(
'inputWrapSearch'
)
input && fireEvent.focus(input)
})
it('renders select', () => {

View File

@ -30,6 +30,7 @@ interface InputProps {
rows?: number
group?: any
multiple?: boolean
pattern?: string
}
interface InputState {
@ -55,7 +56,7 @@ export default class Input extends PureComponent<InputProps, InputState> {
}
}
public toggleFocus = () => {
public handleFocus = () => {
this.setState({ isFocused: !this.state.isFocused })
}
@ -93,8 +94,8 @@ export default class Input extends PureComponent<InputProps, InputState> {
className={styles.select}
name={name}
required={required}
onFocus={this.toggleFocus}
onBlur={this.toggleFocus}
onFocus={this.handleFocus}
onBlur={this.handleFocus}
onChange={onChange}
value={value}
>
@ -116,8 +117,8 @@ export default class Input extends PureComponent<InputProps, InputState> {
<textarea
id={name}
className={styles.input}
onFocus={this.toggleFocus}
onBlur={this.toggleFocus}
onFocus={this.handleFocus}
onBlur={this.handleFocus}
{...this.props}
/>
</div>
@ -153,8 +154,8 @@ export default class Input extends PureComponent<InputProps, InputState> {
selected={this.state.dateCreated}
onChange={this.handleDateChange}
className={styles.input}
onFocus={this.toggleFocus}
onBlur={this.toggleFocus}
onFocus={this.handleFocus}
onBlur={this.handleFocus}
id={name}
name={name}
/>
@ -169,8 +170,8 @@ export default class Input extends PureComponent<InputProps, InputState> {
id={name}
type={type || 'text'}
className={styles.input}
onFocus={this.toggleFocus}
onBlur={this.toggleFocus}
onFocus={this.handleFocus}
onBlur={this.handleFocus}
{...this.props}
/>
{group}
@ -180,8 +181,8 @@ export default class Input extends PureComponent<InputProps, InputState> {
id={name}
type={type || 'text'}
className={styles.input}
onFocus={this.toggleFocus}
onBlur={this.toggleFocus}
onFocus={this.handleFocus}
onBlur={this.handleFocus}
{...this.props}
/>
)}

View File

@ -39,7 +39,9 @@
max-width: 16rem;
}
:global .react-datepicker-popper[data-placement^='top'] .react-datepicker__triangle:before,
:global
.react-datepicker-popper[data-placement^='top']
.react-datepicker__triangle:before,
:global .react-datepicker__year-read-view--down-arrow:before,
:global .react-datepicker__month-read-view--down-arrow:before,
:global .react-datepicker__month-year-read-view--down-arrow:before {

View File

@ -17,6 +17,6 @@
font-size: $font-size-base;
color: $brand-grey-light;
display: inline-block;
margin-left: .1rem;
margin-left: 0.1rem;
}
}

View File

@ -4,7 +4,7 @@ import Markdown from './Markdown'
describe('Markdown', () => {
it('renders without crashing', () => {
const { container } = render(<Markdown text={'#hello'} />)
const { container } = render(<Markdown text="#hello" />)
expect(container.firstChild).toBeInTheDocument()
})
})

View File

@ -0,0 +1,93 @@
@import '../../styles/variables';
// prevent background scrolling
:global(.ReactModal__Body--open) {
overflow: hidden;
}
.modalOverlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba($brand-black, 0.7);
overflow-x: hidden;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
animation: fadeIn 0.2s ease-out backwards;
}
.modal {
padding: $spacer;
border-radius: $border-radius;
background: $body-background;
margin: $spacer auto;
max-width: $break-point--small;
position: relative;
animation: moveUp 0.2s ease-out backwards;
@media (min-width: $break-point--small) {
padding: $spacer * 2 $spacer * 1.5;
}
&:focus {
outline: 0;
}
}
.header {
margin-bottom: $spacer;
}
.title {
font-size: $font-size-h3;
margin: 0;
@media (min-width: $break-point--small) {
font-size: $font-size-h2;
}
}
.description {
margin: 0;
margin-top: $spacer / 2;
}
.close {
position: absolute;
cursor: pointer;
background: none;
border: 0;
box-shadow: none;
outline: 0;
top: $spacer / 4;
right: $spacer / 2;
font-size: $font-size-h2;
color: $brand-grey;
&:hover,
&:focus {
opacity: 0.7;
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes moveUp {
from {
transform: translate3d(0, 1rem, 0);
}
to {
transform: translate3d(0, 0, 0);
}
}

View File

@ -0,0 +1,17 @@
import React from 'react'
import { render } from '@testing-library/react'
import Modal from './Modal'
import ReactModal from 'react-modal'
describe('Modal', () => {
it('renders without crashing', () => {
ReactModal.setAppElement(document.createElement('div'))
render(
<Modal title="Hello" isOpen toggleModal={() => null}>
Hello
</Modal>
)
expect(document.querySelector('.ReactModalPortal')).toBeInTheDocument()
})
})

View File

@ -0,0 +1,55 @@
import React from 'react'
import ReactModal from 'react-modal'
import styles from './Modal.module.scss'
if (process.env.NODE_ENV !== 'test') ReactModal.setAppElement('#root')
const Modal = ({
title,
description,
isOpen,
onToggleModal,
children,
onAfterOpen,
onRequestClose,
...props
}: {
title: string
description?: string
isOpen: boolean
onToggleModal: () => void
children: any
onAfterOpen?: () => void
onRequestClose?: () => void
}) => {
return (
<ReactModal
isOpen={isOpen}
onAfterOpen={onAfterOpen}
onRequestClose={onRequestClose}
contentLabel={title}
className={styles.modal}
overlayClassName={styles.modalOverlay}
{...props}
>
<button
className={styles.close}
onClick={onToggleModal}
data-testid="closeModal"
>
&times;
</button>
<header className={styles.header}>
<h2 className={styles.title}>{title}</h2>
{description && (
<p className={styles.description}>{description}</p>
)}
</header>
{children}
</ReactModal>
)
}
export default Modal

View File

@ -0,0 +1,71 @@
import React from 'react'
import { Helmet } from 'react-helmet'
import { withRouter, RouteComponentProps } from 'react-router-dom'
import meta from '../../data/meta.json'
import imageDefault from '../../img/share.png'
const MetaTags = ({
title,
description,
url,
image
}: {
title: string
description: string
url: string
image: string
}) => (
<Helmet defaultTitle={meta.title} titleTemplate={`%s - ${meta.title}`}>
<html lang="en" />
{title && <title>{title}</title>}
{/* General tags */}
<meta name="description" content={description} />
<meta name="image" content={image} />
<link rel="canonical" href={url} />
{/* OpenGraph tags */}
<meta property="og:url" content={url} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content={image} />
{/* Twitter Card tags */}
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="@oceanprotocol" />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={image} />
{/* Prevent search engine indexing except for live */}
{window.location.hostname !== 'commons.oceanprotocol.com' && (
<meta name="robots" content="noindex,nofollow" />
)}
</Helmet>
)
interface SeoProps extends RouteComponentProps {
title?: string
description?: string
shareImage?: string
}
const Seo = ({ title, description, shareImage, location }: SeoProps) => {
title = title || meta.title
description = description || meta.description
shareImage = shareImage || meta.url + imageDefault
const url = meta.url + location.pathname + location.search
return (
<MetaTags
title={title}
description={description}
url={url}
image={shareImage}
/>
)
}
export default withRouter(Seo)

View File

@ -20,7 +20,7 @@
border-radius: 50%;
border: 2px solid $brand-purple;
border-top-color: $brand-violet;
animation: spinner .6s linear infinite;
animation: spinner 0.6s linear infinite;
}
}
@ -29,6 +29,20 @@
padding-top: $spacer / 4;
}
.small {
composes: spinner;
margin: 0;
display: inline-block;
&:before {
width: $font-size-small;
height: $font-size-small;
margin-top: -($font-size-small);
margin-left: -($font-size-small / 2);
border-width: 0.1rem;
}
}
@keyframes spinner {
to {
transform: rotate(360deg);

View File

@ -0,0 +1,15 @@
import React from 'react'
import { render } from '@testing-library/react'
import Spinner from './Spinner'
describe('Spinner', () => {
it('renders without crashing', () => {
const { container } = render(<Spinner />)
expect(container.firstChild).toBeInTheDocument()
})
it('renders small variant', () => {
const { container } = render(<Spinner small />)
expect(container.firstChild).toBeInTheDocument()
})
})

View File

@ -1,15 +1,27 @@
import React from 'react'
import styles from './Spinner.module.scss'
const Spinner = ({ message }: { message?: string }) => (
<div className={styles.spinner}>
{message && (
<div
className={styles.spinnerMessage}
dangerouslySetInnerHTML={{ __html: message }}
/>
)}
</div>
)
const Spinner = ({
message,
small,
className
}: {
message?: string
small?: boolean
className?: string
}) => {
const classes = className || (small ? styles.small : styles.spinner)
return (
<div className={classes}>
{message && (
<div
className={styles.spinnerMessage}
dangerouslySetInnerHTML={{ __html: message }}
/>
)}
</div>
)
}
export default Spinner

View File

@ -1,21 +0,0 @@
@import '../../styles/variables';
.version {
font-family: $font-family-monospace;
font-size: $font-size-mini;
margin-top: $spacer;
}
.more {
cursor: help;
display: inline-block;
margin-left: $spacer / 4;
margin-bottom: -.1rem;
vertical-align: middle;
svg {
width: $font-size-mini;
height: $font-size-mini;
fill: currentColor;
}
}

View File

@ -1,22 +0,0 @@
import React from 'react'
import { render, waitForElement } from '@testing-library/react'
import mockAxios from 'jest-mock-axios'
import VersionNumbers from './VersionNumbers'
afterEach(() => {
mockAxios.reset()
})
describe('VersionNumbers', () => {
it('renders without crashing', () => {
const { container } = render(<VersionNumbers />)
expect(container.firstChild).toBeInTheDocument()
})
it('returns component versions in link title, prefixed with `v`', async () => {
const { getByTitle } = render(<VersionNumbers />)
mockAxios.mockResponse({ data: { version: '6.6.6' } })
expect(mockAxios.get).toHaveBeenCalled()
await waitForElement(() => getByTitle(/v6.6.6/))
})
})

View File

@ -1,110 +0,0 @@
import React, { PureComponent } from 'react'
import { Logger } from '@oceanprotocol/squid'
import axios from 'axios'
import { version } from '../../../package.json'
import { version as versionSquid } from '@oceanprotocol/squid/package.json'
import styles from './VersionNumbers.module.scss'
import {
aquariusHost,
aquariusPort,
aquariusScheme,
brizoHost,
brizoPort,
brizoScheme,
faucetHost,
faucetPort,
faucetScheme
} from '../../config'
const commonsVersion =
process.env.NODE_ENV === 'production' ? `v${version}` : `v${version}-dev`
interface VersionNumbersState {
commons: string
squidJs: string
aquarius: string
brizo: string
faucet: string
}
export default class VersionNumbers extends PureComponent<
{},
VersionNumbersState
> {
public state = {
commons: commonsVersion,
squidJs: `v${versionSquid}`,
aquarius: 'v0.0.0',
brizo: 'v0.0.0',
faucet: 'v0.0.0'
}
// for canceling axios requests
public signal = axios.CancelToken.source()
public componentWillMount() {
this.setComponentVersions()
}
public componentWillUnmount() {
this.signal.cancel()
}
private async setComponentVersions() {
try {
const versionAquarius = await this.getVersion(
aquariusScheme,
aquariusHost,
aquariusPort
)
this.setState({ aquarius: `v${versionAquarius}` })
const versionBrizo = await this.getVersion(
brizoScheme,
brizoHost,
brizoPort
)
this.setState({ brizo: `v${versionBrizo}` })
const versionFaucet = await this.getVersion(
faucetScheme,
faucetHost,
faucetPort
)
this.setState({ faucet: `v${versionFaucet}` })
} catch (error) {
!axios.isCancel(error) && Logger.error(error.message)
}
}
private async getVersion(
scheme: string,
host: string,
port: number | string
) {
const { data } = await axios.get(`${scheme}://${host}:${port}`, {
headers: { Accept: 'application/json' },
cancelToken: this.signal.token
})
const { version } = data
return version
}
public render() {
const { commons, squidJs, brizo, aquarius, faucet } = this.state
const componentsOutput = `Squid-js ${squidJs} \nBrizo ${brizo} \nAquarius ${aquarius} \nFaucet ${faucet}`
return (
<p className={styles.version}>
<a
title={componentsOutput}
href={`https://github.com/oceanprotocol/commons/releases/tag/${commons}`}
>
{commons}
</a>
</p>
)
}
}

View File

@ -4,10 +4,10 @@
display: inline-block;
position: relative;
cursor: help;
padding: .5rem;
padding: 0.5rem;
}
// default: red square
/* default: red square */
.statusIndicator {
width: $font-size-small;
height: $font-size-small;
@ -15,7 +15,7 @@
background: $red;
}
// yellow triangle
/* yellow triangle */
.statusIndicatorCloseEnough {
composes: statusIndicator;
background: none;
@ -26,7 +26,7 @@
border-bottom: $font-size-small solid $yellow;
}
// green circle
/* green circle */
.statusIndicatorActive {
composes: statusIndicator;
border-radius: 50%;

View File

@ -1,6 +1,6 @@
import React from 'react'
import cx from 'classnames'
import { User } from '../../../context'
import { User, Market } from '../../../context'
import styles from './Indicator.module.scss'
const Indicator = ({
@ -19,15 +19,19 @@ const Indicator = ({
ref={forwardedRef}
>
<User.Consumer>
{states =>
!states.isWeb3 ? (
<span className={styles.statusIndicator} />
) : !states.isLogged || !states.isOceanNetwork ? (
<span className={styles.statusIndicatorCloseEnough} />
) : states.isLogged ? (
<span className={styles.statusIndicatorActive} />
) : null
}
{(user) => (
<Market.Consumer>
{(market) =>
!user.isLogged || !market.networkMatch ? (
<span
className={styles.statusIndicatorCloseEnough}
/>
) : user.isLogged ? (
<span className={styles.statusIndicatorActive} />
) : null
}
</Market.Consumer>
)}
</User.Consumer>
</div>
)

View File

@ -7,12 +7,12 @@ $popoverWidth: 18rem;
width: $popoverWidth;
padding: $spacer / 2;
background: $brand-black;
border-radius: .1rem;
border: .1rem solid $brand-grey-light;
box-shadow: 0 6px 16px 0 rgba($brand-black, .3);
border-radius: 0.1rem;
border: 0.1rem solid $brand-grey-light;
box-shadow: 0 6px 16px 0 rgba($brand-black, 0.3);
color: $brand-grey-light;
font-size: $font-size-small;
animation: showPopup .2s ease-in forwards;
animation: showPopup 0.2s ease-in forwards;
white-space: initial;
text-align: left;
}
@ -28,7 +28,7 @@ $popoverWidth: 18rem;
}
.popoverInfoline {
border-bottom: .05rem solid $brand-grey;
border-bottom: 0.05rem solid $brand-grey;
padding: $spacer / 3 0;
&:first-child {
@ -41,7 +41,10 @@ $popoverWidth: 18rem;
}
button {
font-size: $font-size-small;
svg,
&[data-action] {
display: none;
}
}
}
@ -50,6 +53,10 @@ $popoverWidth: 18rem;
margin-left: $spacer / 2;
white-space: nowrap;
strong {
color: $brand-grey-lighter;
}
&:first-child {
margin-left: 0;
}

View File

@ -1,8 +1,9 @@
import React from 'react'
import { render } from '@testing-library/react'
import Popover from './Popover'
import { userMock, userMockConnected } from '../../../../__mocks__/user-mock'
import { User } from '../../../context'
import { userMock, userMockConnected } from '../../../__mocks__/user-mock'
import { marketMock } from '../../../__mocks__/market-mock'
import { User, Market } from '../../../context'
describe('Popover', () => {
it('renders without crashing', () => {
@ -25,12 +26,14 @@ describe('Popover', () => {
it('renders correct network', () => {
const { container } = render(
<User.Provider value={{ ...userMockConnected, network: 'Nile' }}>
<Popover forwardedRef={() => null} style={{}} />
<User.Provider value={{ ...userMockConnected, network: 'Pacific' }}>
<Market.Provider value={{ ...marketMock }}>
<Popover forwardedRef={() => null} style={{}} />
</Market.Provider>
</User.Provider>
)
expect(container.firstChild).toBeInTheDocument()
expect(container.firstChild).toHaveTextContent('Connected to Nile')
expect(container.firstChild).toHaveTextContent('Connected to Pacific')
})
it('renders with wrong network', () => {
@ -38,7 +41,6 @@ describe('Popover', () => {
<User.Provider
value={{
...userMockConnected,
isOceanNetwork: false,
network: '1'
}}
>

View File

@ -1,20 +1,16 @@
import React, { PureComponent } from 'react'
import Account from '../../atoms/Account'
import { User } from '../../../context'
import { User, Market } from '../../../context'
import styles from './Popover.module.scss'
export default class Popover extends PureComponent<{
forwardedRef: (ref: HTMLElement | null) => void
style: React.CSSProperties
forwardedRef?: (ref: HTMLElement | null) => void
style?: React.CSSProperties
}> {
public static contextType = User
public render() {
const {
account,
balance,
network,
isWeb3,
isOceanNetwork
} = this.context
const { account, balance, network } = this.context
return (
<div
@ -22,46 +18,46 @@ export default class Popover extends PureComponent<{
ref={this.props.forwardedRef}
style={this.props.style}
>
{!isWeb3 ? (
<div className={styles.popoverInfoline}>
<Account />
</div>
{account && balance && (
<div className={styles.popoverInfoline}>
No Web3 detected. Use a browser with MetaMask installed
to publish assets.
<span
className={styles.balance}
title={(balance.eth / 1e18).toFixed(10)}
>
<strong>
{(balance.eth / 1e18).toFixed(3).slice(0, -1)}
</strong>{' '}
ETH
</span>
<span className={styles.balance}>
<strong>{balance.ocn}</strong> OCEAN
</span>
</div>
) : (
<>
<div className={styles.popoverInfoline}>
<Account account={account} />
</div>
{account && balance && (
<div className={styles.popoverInfoline}>
<span
className={styles.balance}
title={(balance.eth / 1e18).toFixed(10)}
>
<strong>
{(balance.eth / 1e18)
.toFixed(3)
.slice(0, -1)}
</strong>{' '}
ETH
</span>
<span className={styles.balance}>
<strong>{balance.ocn}</strong> OCEAN
</span>
</div>
)}
)}
<Market.Consumer>
{(market) => (
<div className={styles.popoverInfoline}>
{network && !isOceanNetwork
? 'Please connect to Custom RPC\n https://nile.dev-ocean.com'
{network && !market.networkMatch
? `Please connect to Custom RPC
${
market.network === 'Pacific'
? 'https://pacific.oceanprotocol.com'
: market.network === 'Nile'
? 'https://nile.dev-ocean.com'
: market.network === 'Duero'
? 'https://duero.dev-ocean.com'
: 'http://localhost:8545'
}`
: network && `Connected to ${network} network`}
</div>
</>
)}
)}
</Market.Consumer>
</div>
)
}
}
Popover.contextType = User

View File

@ -10,9 +10,7 @@ describe('AccountStatus', () => {
it('togglePopover fires', () => {
const { container } = render(<AccountStatus />)
const indicator = container.querySelector('.statusIndicator')
const indicator = container.querySelector('.status')
indicator && fireEvent.mouseOver(indicator)
expect(container.querySelector('.popover')).toBeInTheDocument()
indicator && fireEvent.mouseOut(indicator)

View File

@ -20,7 +20,7 @@ export default class AccountStatus extends PureComponent<
}
private togglePopover() {
this.setState(prevState => ({
this.setState((prevState) => ({
isPopoverOpen: !prevState.isPopoverOpen
}))
}
@ -29,7 +29,7 @@ export default class AccountStatus extends PureComponent<
return (
<Manager>
<Reference>
{({ ref }) => (
{({ ref }: { ref: any }) => (
<AccountIndicator
togglePopover={() => this.togglePopover()}
className={this.props.className}
@ -39,7 +39,15 @@ export default class AccountStatus extends PureComponent<
</Reference>
{this.state.isPopoverOpen && (
<Popper placement="auto">
{({ ref, style, placement }) => (
{({
ref,
style,
placement
}: {
ref: any
style: any
placement: any
}) => (
<AccountPopover
forwardedRef={ref}
style={style}

View File

@ -32,6 +32,7 @@
h1 {
font-size: $font-size-large;
margin-top: 0;
margin-bottom: $spacer / 4;
}
}
@ -89,7 +90,18 @@
}
.assetFooter {
margin-top: $spacer / 2;
margin-top: $spacer;
font-size: $font-size-small;
color: $brand-grey-light;
display: flex;
justify-content: space-between;
}
.price {
font-size: $font-size-mini;
span {
color: $brand-grey;
font-size: $font-size-small;
}
}

View File

@ -5,6 +5,8 @@ import Dotdotdot from 'react-dotdotdot'
import cx from 'classnames'
import styles from './AssetTeaser.module.scss'
import CategoryImage from '../atoms/CategoryImage'
import { allowPricing } from '../../config'
import Web3 from 'web3'
const AssetTeaser = ({
asset,
@ -15,18 +17,18 @@ const AssetTeaser = ({
list?: boolean
minimal?: boolean
}) => {
const { metadata } = asset.findServiceByType('Metadata')
const { base } = metadata
const { attributes } = asset.findServiceByType('metadata')
const { main, additionalInformation } = attributes
return list ? (
<article className={styles.assetList}>
<Link to={`/asset/${asset.id}`}>
<h1>{base.name}</h1>
<h1>{main.name}</h1>
<div
className={styles.date}
title={`Published on ${base.datePublished}`}
title={`Published on ${main.datePublished}`}
>
{moment(base.datePublished, 'YYYYMMDD').fromNow()}
{moment(main.datePublished, 'YYYYMMDD').fromNow()}
</div>
</Link>
</article>
@ -37,18 +39,36 @@ const AssetTeaser = ({
}
>
<Link to={`/asset/${asset.id}`}>
{base.categories && !minimal && (
<CategoryImage dimmed category={base.categories[0]} />
)}
<h1>{base.name}</h1>
{additionalInformation &&
additionalInformation.categories &&
!minimal && (
<CategoryImage
dimmed
category={additionalInformation.categories[0]}
/>
)}
<h1>{main.name}</h1>
{!minimal && (
{additionalInformation && !minimal && (
<div className={styles.description}>
<Dotdotdot clamp={3}>{base.description}</Dotdotdot>
<Dotdotdot clamp={3}>
{additionalInformation.description}
</Dotdotdot>
</div>
)}
<footer className={styles.assetFooter}>
{base.categories && <div>{base.categories[0]}</div>}
{additionalInformation &&
additionalInformation.categories && (
<div>{additionalInformation.categories[0]}</div>
)}
{allowPricing && (
<div className={styles.price}>
<span>
{Web3.utils.fromWei(main.price.toString())}
</span>{' '}
OCEAN
</div>
)}
</footer>
</Link>
</article>

View File

@ -0,0 +1,45 @@
@import '../../styles/variables';
.dropzone {
margin-top: $spacer;
margin-bottom: $spacer;
border: 0.2rem dashed $brand-grey-lighter;
border-radius: $border-radius * 2;
padding: $spacer;
background: $brand-white;
transition: 0.2s ease-out;
cursor: pointer;
p {
text-align: center;
margin-bottom: 0;
font-size: $font-size-small;
color: $brand-grey-light;
}
&:hover,
&:focus,
&:active {
border-color: $brand-grey-light;
outline: 0;
}
}
.dragover {
composes: dropzone;
border-color: $brand-pink;
}
.disabled {
composes: dropzone;
opacity: 0.5;
pointer-events: none;
}
.dropzoneFiles {
padding: $spacer 0;
ul {
margin: 0;
}
}

View File

@ -0,0 +1,54 @@
import React from 'react'
import { fireEvent, render, act } from '@testing-library/react'
import Dropzone from './Dropzone'
function mockData(files: any) {
return {
dataTransfer: {
files,
items: files.map((file: any) => ({
kind: 'file',
type: file.type,
getAsFile: () => file
})),
types: ['Files']
}
}
}
function flushPromises(ui: any, container: any) {
return new Promise((resolve) =>
setImmediate(() => {
render(ui, { container })
resolve(container)
})
)
}
function dispatchEvt(node: any, type: string, data: any) {
const event = new Event(type, { bubbles: true })
Object.assign(event, data)
fireEvent(node, event)
}
test('invoke onDragEnter when dragenter event occurs', async () => {
const file = new File([JSON.stringify({ ping: true })], 'ping.json', {
type: 'application/json'
})
const data = mockData([file])
const handleOnDrop = jest.fn()
await act(async () => {
const ui = <Dropzone handleOnDrop={handleOnDrop} />
const { container } = render(ui)
// drop a file
const dropzone = container.querySelector('div')
dispatchEvt(dropzone, 'dragenter', data)
dispatchEvt(dropzone, 'dragover', data)
dispatchEvt(dropzone, 'drop', data)
await flushPromises(ui, container)
})
expect(handleOnDrop).toHaveBeenCalled()
})

View File

@ -0,0 +1,62 @@
import React, { useCallback } from 'react'
import { useDropzone } from 'react-dropzone'
import styles from './Dropzone.module.scss'
import { formatBytes } from '../../utils/utils'
export default function Dropzone({
handleOnDrop,
disabled,
multiple
}: {
handleOnDrop(files: File[]): void
disabled?: boolean
multiple?: boolean
}) {
const onDrop = useCallback((acceptedFiles) => handleOnDrop(acceptedFiles), [
handleOnDrop
])
const {
acceptedFiles,
getRootProps,
getInputProps,
isDragActive,
isDragReject
} = useDropzone({ onDrop })
const files = acceptedFiles.map((file: any) => (
<li key={file.path}>
{file.path} - {formatBytes(file.size, 0)}
</li>
))
return (
<>
{acceptedFiles.length > 0 ? (
<aside className={styles.dropzoneFiles}>
<ul>{files}</ul>
</aside>
) : (
<div
{...getRootProps({
className: isDragActive
? styles.dragover
: disabled
? styles.disabled
: styles.dropzone
})}
>
<input {...getInputProps({ multiple })} />
<p>
{isDragActive && !isDragReject
? `Drop it like it's hot!`
: multiple
? `Drag 'n' drop some files here, or click to select files`
: `Drag 'n' drop a file here, or click to select a file`}
{}
</p>
</div>
)}
</>
)
}

View File

@ -0,0 +1,25 @@
@import '../../styles/variables';
.assetList {
color: $brand-grey-dark;
border-bottom: 1px solid $brand-grey-lighter;
padding-top: $spacer / 2;
padding-bottom: $spacer / 2;
h1 {
font-size: $font-size-base;
color: inherit;
margin: 0;
}
}
.listRow {
display: flex;
justify-content: space-between;
align-items: center;
}
.date {
font-size: $font-size-small;
color: $brand-grey-light;
}

View File

@ -0,0 +1,75 @@
import React, { useEffect, useState, useContext } from 'react'
import { User } from '../../context'
import moment from 'moment'
import shortid from 'shortid'
import styles from './JobTeaser.module.scss'
import Dotdotdot from 'react-dotdotdot'
export default function JobTeaser({ job }: { job: any }) {
const { ocean } = useContext(User)
const [assetName, setAssetName] = useState()
const [assetUrl, setAssetUrl] = useState()
useEffect(() => {
async function getAsset() {
try {
const {
did
} = await (ocean as any).keeper.agreementStoreManager.getAgreement(
job.agreementId
)
const asset = await (ocean as any).assets.resolve(did)
const { attributes } = asset.findServiceByType('metadata')
const { main } = attributes
const link = '/asset/did:op:' + did
setAssetName(main.name)
setAssetUrl(link as any)
} catch (error) {
console.log(error)
}
}
getAsset()
}, [ocean, job.agreementId])
return (
<article className={styles.assetList}>
<div className={styles.listRow}>
<h1>
<a href={assetUrl}>{assetName}</a>
</h1>
<div
className={styles.date}
title={`Created on ${job.dateCreated}`}
>
{moment.unix(job.dateCreated).fromNow()}
</div>
</div>
<div className={styles.listRow}>
<div>Job status</div>
<div>{job.statusText}</div>
</div>
<div>
{job.algorithmLogUrl ? (
<a href={job.algorithmLogUrl}> Algorithm log</a>
) : (
''
)}
</div>
<div>
{job.resultsUrl ? (
<>
<div>Output URL</div>
{job.resultsUrl.map((result: string) => (
<a href={result} key={shortid.generate()}>
{' '}
{result.substring(0, 52)}...
</a>
))}
</>
) : (
''
)}
</div>
</article>
)
}

View File

@ -17,17 +17,18 @@ export default class Pagination extends PureComponent<
PaginationState
> {
public state = { smallViewport: true }
private mq = window.matchMedia && window.matchMedia('(min-width: 600px)')
public componentDidMount() {
if (window.matchMedia) {
if (window && window.matchMedia) {
this.mq.addListener(this.viewportChange)
this.viewportChange(this.mq)
}
}
public componentWillUnmount() {
if (window.matchMedia) {
if (window && window.matchMedia) {
this.mq.removeListener(this.viewportChange)
}
}
@ -53,11 +54,11 @@ export default class Pagination extends PureComponent<
// adapt based on media query match
marginPagesDisplayed={smallViewport ? 0 : 1}
pageRangeDisplayed={smallViewport ? 3 : 6}
onPageChange={data => handlePageClick(data)}
onPageChange={(data) => handlePageClick(data)}
disableInitialCallback
previousLabel={'←'}
nextLabel={'→'}
breakLabel={'...'}
previousLabel="←"
nextLabel="→"
breakLabel="..."
containerClassName={styles.pagination}
pageLinkClassName={styles.number}
activeLinkClassName={styles.current}

View File

@ -0,0 +1,36 @@
@import '../../styles/variables';
.results {
display: grid;
grid-template-columns: 1fr;
grid-gap: $spacer;
max-width: calc(18rem + #{$spacer * 2});
margin: auto;
margin-top: $spacer * 2;
@media (min-width: $break-point--small) {
margin-left: 0;
margin-right: 0;
max-width: none;
grid-template-columns: repeat(2, 1fr);
}
@media (min-width: $break-point--medium) {
grid-template-columns: repeat(3, 1fr);
}
}
.simple {
composes: results;
margin-top: 0;
@media (min-width: $break-point--medium) {
grid-template-columns: repeat(2, 1fr);
}
}
.empty {
text-align: center;
margin-top: $spacer * 4;
color: $brand-grey-light;
}

View File

@ -0,0 +1,40 @@
import React from 'react'
import { Link } from 'react-router-dom'
import { DDO } from '@oceanprotocol/squid'
import Spinner from '../atoms/Spinner'
import AssetTeaser from './AssetTeaser'
import styles from './SearchResults.module.scss'
export interface SearchResultsState {
results: DDO[]
totalResults: number
offset: number
totalPages: number
currentPage: number
isLoading: boolean
}
export default function SearchResults({
isLoading,
results,
simpleGrid
}: {
isLoading: boolean
results: DDO[]
simpleGrid?: boolean
}) {
return isLoading ? (
<Spinner message="Searching..." />
) : results && results.length ? (
<div className={simpleGrid ? styles.simple : styles.results}>
{results.map((asset: any) => (
<AssetTeaser key={asset.id} asset={asset} />
))}
</div>
) : (
<div className={styles.empty}>
<p>No Data Sets Found.</p>
<Link to="/publish">+ Publish A Data Set</Link>
</div>
)
}

View File

@ -0,0 +1,22 @@
@import '../../../styles/variables';
.spinner {
composes: spinner, small from '../../atoms/Spinner.module.scss';
margin-right: $spacer;
}
.commit {
margin-left: $spacer / 8;
code {
color: $brand-grey-light;
font-size: $font-size-mini;
}
}
.network {
color: $brand-grey-light;
text-transform: capitalize;
margin-left: $spacer / 8;
font-size: $font-size-mini;
}

View File

@ -0,0 +1,23 @@
import React from 'react'
import { render } from '@testing-library/react'
import VersionNumber from './VersionNumber'
describe('VersionNumber', () => {
it('renders without crashing', () => {
const { container } = render(<VersionNumber name="Commons" />)
expect(container.firstChild).toBeInTheDocument()
})
it('renders with all props set', () => {
const { container } = render(
<VersionNumber
name="Commons"
version="6.6.6"
network="Nile"
commit="xxxxxxxxxxx"
/>
)
expect(container.firstChild).toBeInTheDocument()
expect(container.firstChild).toHaveTextContent('6.6.6')
})
})

View File

@ -0,0 +1,53 @@
import React from 'react'
import { OceanPlatformTechStatus } from '@oceanprotocol/squid'
import slugify from '@sindresorhus/slugify'
import Spinner from '../../atoms/Spinner'
import styles from './VersionNumber.module.scss'
const VersionNumber = ({
name,
version,
network,
status,
commit
}: {
name: string
version?: string
network?: string
status?: OceanPlatformTechStatus
commit?: string
}) =>
version ? (
<>
<a
href={`https://github.com/oceanprotocol/${slugify(
name
)}/releases/tag/v${version}`}
title="Go to release on GitHub"
>
<code>v{version}</code>
</a>
{commit && (
<a
href={`https://github.com/oceanprotocol/${slugify(
name
)}/commit/${commit}`}
className={styles.commit}
title={`Go to commit ${commit} on GitHub`}
>
<code>{commit.substring(0, 7)}</code>
</a>
)}
{network && <span className={styles.network}>{` ${network}`}</span>}
</>
) : (
<span>
{status === OceanPlatformTechStatus.Loading ? (
<Spinner className={styles.spinner} small />
) : (
status || 'Could not get version'
)}
</span>
)
export default VersionNumber

View File

@ -0,0 +1,37 @@
@import '../../../styles/variables';
.status {
text-align: center;
padding-top: $spacer / 2;
padding-bottom: $spacer;
display: flex;
justify-content: space-between;
}
.element {
display: inline-block;
margin-left: $spacer / 1.5;
margin-right: $spacer / 1.5;
text-align: center;
}
.indicator,
.indicatorActive {
display: inline-block;
margin-right: $spacer / 4;
margin-bottom: -0.1rem;
}
.indicator {
composes: statusindicator from '../AccountStatus/Indicator.module.scss';
}
.indicatorActive {
composes: statusindicatoractive from '../AccountStatus/Indicator.module.scss';
}
.indicatorLabel {
font-family: $font-family-title;
color: $brand-grey;
text-transform: capitalize;
}

View File

@ -0,0 +1,23 @@
import React from 'react'
import { render } from '@testing-library/react'
import VersionStatus from './VersionStatus'
describe('VersionStatus', () => {
it('renders without crashing', () => {
const { container } = render(
<VersionStatus
status={{ ok: false, contracts: false, network: false }}
/>
)
expect(container.firstChild).toBeInTheDocument()
})
it('renders true states', () => {
const { container } = render(
<VersionStatus
status={{ ok: true, contracts: false, network: false }}
/>
)
expect(container.firstChild).toBeInTheDocument()
})
})

View File

@ -0,0 +1,41 @@
import React from 'react'
import styles from './VersionStatus.module.scss'
const statusInfo: { [key: string]: string } = {
ok: 'Shows if connection to all component endpoints can be established.',
network: 'Shows if all components are on the same network.',
contracts: 'Shows if contracts loaded by components are the same version.'
}
const VersionStatus = ({
status
}: {
status: { ok: boolean; network: boolean; contracts: boolean }
}) => {
return (
<div className={styles.status}>
{Object.entries(status).map(([key, value]) => (
<div
className={styles.element}
key={key}
title={statusInfo[key]}
>
<span
className={
value === true
? styles.indicatorActive
: styles.indicator
}
>
{value}
</span>
<span className={styles.indicatorLabel}>
{key === 'ok' ? 'components' : key}
</span>
</div>
))}
</div>
)
}
export default VersionStatus

View File

@ -0,0 +1,58 @@
@import '../../../styles/variables';
.tableWrap {
// make 'em scrollable
overflow: auto;
-webkit-overflow-scrolling: touch;
}
.table {
border-top: 1px solid $brand-grey-lighter;
table {
margin-left: $spacer;
width: calc(100% - #{$spacer});
margin-bottom: -1px;
td {
padding: $spacer / 6 $spacer / 2;
&,
code {
font-size: $font-size-mini;
}
}
}
td {
padding: $spacer / 4 $spacer / 2 $spacer / 4 $spacer * 1.3;
vertical-align: top;
&:last-child {
text-align: right;
}
&[colspan] {
padding: 0;
}
}
a {
&,
code {
color: $brand-grey;
}
&:hover,
&:focus {
&,
code {
color: $brand-pink;
}
}
}
}
.label {
min-width: 15rem;
}

View File

@ -0,0 +1,51 @@
import React from 'react'
import { render } from '@testing-library/react'
import { VersionTableContracts } from './VersionTable'
describe('VersionTableContracts', () => {
it('renders without crashing', () => {
const { container } = render(
<VersionTableContracts
contracts={{ hello: 'hello', hello2: 'hello2' }}
network="nile"
keeperVersion="6.6.6"
/>
)
expect(container.firstChild).toBeInTheDocument()
})
it('renders correct Submarine links', () => {
const { container, rerender } = render(
<VersionTableContracts
contracts={{ hello: 'hello', hello2: 'hello2' }}
network="duero"
keeperVersion="6.6.6"
/>
)
expect(container.querySelector('tr:last-child a').href).toMatch(
/submarine.duero.dev-ocean/
)
rerender(
<VersionTableContracts
contracts={{ hello: 'hello', hello2: 'hello2' }}
network="nile"
keeperVersion="6.6.6"
/>
)
expect(container.querySelector('tr:last-child a').href).toMatch(
/submarine.nile.dev-ocean/
)
rerender(
<VersionTableContracts
contracts={{ hello: 'hello', hello2: 'hello2' }}
network="pacific"
keeperVersion="6.6.6"
/>
)
expect(container.querySelector('tr:last-child a').href).toMatch(
/submarine.oceanprotocol/
)
})
})

View File

@ -0,0 +1,112 @@
import React from 'react'
import { VersionNumbersState } from '.'
import VersionTableRow from './VersionTableRow'
import styles from './VersionTable.module.scss'
import VersionNumber from './VersionNumber'
import {
serviceUri,
nodeUri,
aquariusUri,
brizoUri,
brizoAddress,
secretStoreUri,
faucetUri
} from '../../../config'
const commonsConfig = {
serviceUri,
nodeUri,
aquariusUri,
brizoUri,
brizoAddress,
secretStoreUri,
faucetUri
}
export const VersionTableContracts = ({
contracts,
network,
keeperVersion
}: {
contracts: {
[contractName: string]: string
}
network: string
keeperVersion?: string
}) => (
<table>
<tbody>
<tr>
<td>
<strong>Keeper Contracts</strong>
</td>
<td>
<VersionNumber
name="Keeper Contracts"
version={keeperVersion}
/>
</td>
</tr>
{contracts &&
Object.keys(contracts)
// sort alphabetically
.sort((a, b) => a.localeCompare(b))
.map((key) => {
const submarineLink = `https://submarine.${
network === 'pacific'
? 'oceanprotocol'
: `${network}.dev-ocean`
}.com/address/${contracts[key]}`
return (
<tr key={key}>
<td>
<code className={styles.label}>{key}</code>
</td>
<td>
<a href={submarineLink}>
<code>{contracts[key]}</code>
</a>
</td>
</tr>
)
})}
</tbody>
</table>
)
export const VersionTableCommons = () => (
<table>
<tbody>
{Object.entries(commonsConfig).map(([key, value]) => (
<tr key={key}>
<td>
<code className={styles.label}>{key}</code>
</td>
<td>
<code>{value}</code>
</td>
</tr>
))}
</tbody>
</table>
)
const VersionTable = ({ data }: { data: VersionNumbersState }) => {
return (
<div className={styles.tableWrap}>
<table className={styles.table}>
<tbody>
{Object.entries(data)
.filter(([key]) => key !== 'status')
.map(([key, value]) => (
<VersionTableRow key={key} value={value} />
))}
</tbody>
</table>
</div>
)
}
export default VersionTable

View File

@ -0,0 +1,23 @@
@import '../../../styles/variables';
.handle {
display: inline-block;
border: 0;
background: none;
box-shadow: none;
padding: 0;
margin: 0;
margin-left: -1rem;
margin-top: -0.1rem;
padding-right: 0.5rem;
cursor: pointer;
svg {
fill: $brand-grey-light;
transition: 0.2s ease-out;
}
}
.open {
transform: rotate(90deg);
}

View File

@ -0,0 +1,73 @@
import React from 'react'
import useCollapse from 'react-collapsed'
import slugify from '@sindresorhus/slugify'
import styles from './VersionTableRow.module.scss'
import { VersionTableContracts, VersionTableCommons } from './VersionTable'
import VersionNumber from './VersionNumber'
import { ReactComponent as Caret } from '../../../img/caret.svg'
const VersionTableRow = ({ value }: { value: any }) => {
const collapseStyles = {
transitionDuration: '0.01s'
}
const expandStyles = {
transitionDuration: '0.01s',
transitionTimingFunction: 'ease-out'
}
const { getCollapseProps, getToggleProps, isOpen } = useCollapse({
collapseStyles,
expandStyles
})
return (
<>
<tr>
<td>
{(value.name === 'Commons' || value.contracts) && (
<button className={styles.handle} {...getToggleProps()}>
<Caret className={isOpen ? styles.open : ''} />
</button>
)}
<a
href={`https://github.com/oceanprotocol/${slugify(
value.name || value.software
)}`}
>
<strong>{value.name || value.software}</strong>
</a>
</td>
<td>
<VersionNumber
name={value.name || value.software}
version={value.version}
status={value.status}
network={value.network}
commit={value.commit}
/>
</td>
</tr>
{value.name === 'Commons' && (
<tr {...getCollapseProps()}>
<td colSpan={2}>
<VersionTableCommons />
</td>
</tr>
)}
{value.contracts && (
<tr {...getCollapseProps()}>
<td colSpan={2}>
<VersionTableContracts
contracts={value.contracts}
network={value.network || ''}
keeperVersion={value.keeperVersion}
/>
</td>
</tr>
)}
</>
)
}
export default VersionTableRow

View File

@ -0,0 +1,13 @@
@import '../../../styles/variables';
.versionsTitle {
font-size: $font-size-large;
margin-bottom: $spacer / 2;
margin-top: $spacer * 2;
}
.versionsMinimal {
font-family: $font-family-monospace;
font-size: $font-size-mini;
margin-top: $spacer;
}

View File

@ -0,0 +1,95 @@
import React from 'react'
import { render } from '@testing-library/react'
import mockAxios from 'jest-mock-axios'
import { StateMock } from '@react-mock/state'
import VersionNumbers from '.'
import { User } from '../../../context'
import { userMockConnected } from '../../../__mocks__/user-mock'
afterEach(() => {
mockAxios.reset()
})
const stateMockIncomplete = {
commons: {
name: 'Commons',
version: undefined
},
squid: {
name: 'Squid-js',
version: undefined
},
aquarius: {
name: 'Aquarius',
version: undefined
},
brizo: {
name: 'Brizo',
version: undefined,
contracts: undefined,
network: undefined,
keeperVersion: undefined,
keeperUrl: undefined
},
faucet: {
name: 'Faucet',
version: undefined,
network: undefined
},
status: {
ok: false,
network: false,
contracts: false
}
}
const mockResponse = {
data: {
software: 'Faucet',
version: '6.6.6',
network: 'Pacific'
}
}
const mockResponseFaulty = {
status: 404,
statusText: 'Not Found',
data: {}
}
describe('VersionNumbers', () => {
it('renders without crashing', () => {
const { container, rerender } = render(
<User.Provider value={userMockConnected}>
<VersionNumbers account="0x00000" />
</User.Provider>
)
mockAxios.mockResponse(mockResponse)
expect(mockAxios.get).toHaveBeenCalled()
expect(container.firstChild).toBeInTheDocument()
rerender(
<User.Provider value={userMockConnected}>
<VersionNumbers account="0x99999" />
</User.Provider>
)
mockAxios.mockResponse(mockResponse)
expect(mockAxios.get).toHaveBeenCalled()
})
it('renders without proper component response', () => {
const { container } = render(
<User.Provider value={userMockConnected}>
<StateMock state={stateMockIncomplete}>
<VersionNumbers account="0x00000" />
</StateMock>
</User.Provider>
)
mockAxios.mockResponse(mockResponseFaulty)
expect(mockAxios.get).toHaveBeenCalled()
expect(container.querySelector('table')).toHaveTextContent(
'Could not get version'
)
})
})

View File

@ -0,0 +1,181 @@
import React, { PureComponent } from 'react'
import {
OceanPlatformVersions,
OceanPlatformTechStatus,
Logger
} from '@oceanprotocol/squid'
import axios from 'axios'
import { version } from '../../../../package.json'
import styles from './index.module.scss'
import { nodeUri, faucetUri } from '../../../config'
import { User, Market } from '../../../context'
import VersionTable from './VersionTable'
import VersionStatus from './VersionStatus'
interface VersionNumbersProps {
minimal?: boolean
account: string
}
export interface VersionNumbersState extends OceanPlatformVersions {
commons: {
name: string
version: string
network: string
}
faucet: {
name: string
version: string
network: string
status: OceanPlatformTechStatus
}
}
export default class VersionNumbers extends PureComponent<
VersionNumbersProps,
VersionNumbersState
> {
public static contextType = User
// construct values which are not part of any response
public commonsVersion =
process.env.NODE_ENV === 'production' ? version : `${version}-dev`
public commonsNetwork = faucetUri.includes('localhost')
? 'Spree'
: new URL(nodeUri).hostname.split('.')[0]
// define a minimal default state to fill UI
public state: VersionNumbersState = {
commons: {
name: 'Commons',
network: this.commonsNetwork,
version: this.commonsVersion
},
squid: {
name: 'Squid-js',
status: OceanPlatformTechStatus.Loading
},
aquarius: {
name: 'Aquarius',
status: OceanPlatformTechStatus.Loading
},
brizo: {
name: 'Brizo',
status: OceanPlatformTechStatus.Loading
},
faucet: {
name: 'Faucet',
version: '',
network: '',
status: OceanPlatformTechStatus.Loading
},
status: {
ok: false,
network: false,
contracts: false
}
}
// for canceling axios requests
public signal = axios.CancelToken.source()
public componentDidMount() {
this.getOceanVersions()
this.getFaucetVersion()
}
public async componentDidUpdate(prevProps: any) {
// Workaround: Using account prop instead of getting it from
// context to be able to compare. Cause there is no `prevContext`.
if (prevProps.account !== this.props.account) {
this.getOceanVersions()
this.getFaucetVersion()
}
}
public componentWillUnmount() {
this.signal.cancel()
}
private async getOceanVersions() {
const { ocean } = this.context
// wait until ocean object is properly populated
if (ocean.versions === undefined) return
const response = await ocean.versions.get()
const { squid, brizo, aquarius, status } = response
this.setState({
...this.state,
squid,
brizo,
aquarius,
status
})
}
private async getFaucetVersion() {
try {
const response = await axios.get(faucetUri, {
headers: { Accept: 'application/json' },
cancelToken: this.signal.token
})
// fail silently
if (response.status !== 200) return
const { version, network } = response.data
this.setState({
...this.state,
faucet: {
...this.state.faucet,
version,
network,
status: OceanPlatformTechStatus.Working
}
})
} catch (error) {
!axios.isCancel(error) && Logger.error(error.message)
}
}
private MinimalOutput = () => {
const { commons, squid, brizo, aquarius } = this.state
return (
<Market.Consumer>
{(market) => (
<p className={styles.versionsMinimal}>
<a
title={`${squid.name} v${squid.version}\n${brizo.name} v${brizo.version}\n${aquarius.name} v${aquarius.version}`}
href="/about"
>
v{commons.version}{' '}
{market.network && `(${market.network})`}
</a>
</p>
)}
</Market.Consumer>
)
}
public render() {
const { minimal } = this.props
return minimal ? (
<this.MinimalOutput />
) : (
<>
<h2 className={styles.versionsTitle} id="#oceanversions">
Ocean Components Status
</h2>
<VersionStatus status={this.state.status} />
<VersionTable data={this.state} />
</>
)
}
}

View File

@ -2,7 +2,7 @@
.latestAssetsWrap {
// full width break out of container
margin-right: calc(-50vw + 50%);
// margin-right: calc(-50vw + 50%);
}
.latestAssets {

View File

@ -3,7 +3,7 @@ import { BrowserRouter } from 'react-router-dom'
import { render } from '@testing-library/react'
import AssetsLatest from './AssetsLatest'
import { User } from '../../context'
import { userMockConnected } from '../../../__mocks__/user-mock'
import { userMockConnected } from '../../__mocks__/user-mock'
describe('AssetsLatest', () => {
it('renders without crashing', () => {

View File

@ -13,7 +13,7 @@ interface AssetsLatestState {
export default class AssetsLatest extends PureComponent<{}, AssetsLatestState> {
public state = { latestAssets: [], isLoadingLatest: true }
public _isMounted: boolean = false
public _isMounted = false
public componentDidMount() {
this._isMounted = true
@ -37,7 +37,7 @@ export default class AssetsLatest extends PureComponent<{}, AssetsLatestState> {
}
try {
const search = await ocean.aquarius.queryMetadata(searchQuery)
const search = await ocean.assets.query(searchQuery)
this.setState({
latestAssets: search.results,
isLoadingLatest: false

View File

@ -10,9 +10,11 @@ export default class AssetsUser extends PureComponent<
{ list?: boolean; recent?: number },
{ results: any[]; isLoading: boolean }
> {
public static contextType = User
public state = { results: [], isLoading: true }
public _isMounted: boolean = false
public _isMounted = false
public componentDidMount() {
this._isMounted = true
@ -57,53 +59,47 @@ export default class AssetsUser extends PureComponent<
}
public render() {
const { account, isOceanNetwork } = this.context
const { account } = this.context
const { recent, list } = this.props
const { isLoading, results } = this.state
if (!account) return null
return (
isOceanNetwork &&
account && (
<div className={styles.assetsUser}>
{this.props.recent && (
<h2 className={styles.subTitle}>
Your Latest Published Data Sets
</h2>
)}
<div className={styles.assetsUser}>
{this.props.recent && (
<h2 className={styles.subTitle}>
Your Latest Published Data Sets
</h2>
)}
{this.state.isLoading ? (
<Spinner />
) : this.state.results.length ? (
<>
{this.state.results
.slice(
0,
this.props.recent
? this.props.recent
: undefined
)
.filter(asset => !!asset)
.map((asset: any) => (
<AssetTeaser
list={this.props.list}
key={asset.id}
asset={asset}
/>
))}
{this.props.recent && (
<Link className={styles.link} to={'/history'}>
All Data Sets
</Link>
)}
</>
) : (
<div className={styles.empty}>
<p>No Data Sets Yet.</p>
<Link to="/publish">+ Publish A Data Set</Link>
</div>
)}
</div>
)
{isLoading ? (
<Spinner />
) : results.length ? (
<>
{results
.slice(0, recent || undefined)
.filter((asset) => !!asset)
.map((asset: any) => (
<AssetTeaser
list={list}
key={asset.id}
asset={asset}
/>
))}
{recent && (
<Link className={styles.link} to="/history">
All Data Sets
</Link>
)}
</>
) : (
<div className={styles.empty}>
<p>No Data Sets Yet.</p>
<Link to="/publish">+ Publish A Data Set</Link>
</div>
)}
</div>
)
}
}
AssetsUser.contextType = User

View File

@ -62,7 +62,6 @@
transform: none;
// category image
// stylelint-disable-next-line
.channelTitle + div {
opacity: 1;
background-size: 105%;
@ -74,13 +73,3 @@
.channelTeaser {
color: $brand-grey;
}
.channelResults {
display: grid;
grid-template-columns: 1fr;
grid-gap: $spacer;
@media (min-width: $break-point--small) {
grid-template-columns: 1fr 1fr;
}
}

View File

@ -3,7 +3,7 @@ import { render } from '@testing-library/react'
import ChannelTeaser from './ChannelTeaser'
import { BrowserRouter } from 'react-router-dom'
import { User } from '../../context'
import { userMockConnected } from '../../../__mocks__/user-mock'
import { userMockConnected } from '../../__mocks__/user-mock'
describe('ChannelTeaser', () => {
it('renders without crashing', () => {

View File

@ -1,19 +1,18 @@
import React, { Component } from 'react'
import { Link } from 'react-router-dom'
import { User } from '../../context'
import { Logger } from '@oceanprotocol/squid'
import Spinner from '../atoms/Spinner'
import AssetTeaser from '../molecules/AssetTeaser'
import { Logger, DDO } from '@oceanprotocol/squid'
import CategoryImage from '../atoms/CategoryImage'
import SearchResults from '../molecules/SearchResults'
import styles from './ChannelTeaser.module.scss'
import channels from '../../data/channels.json'
import CategoryImage from '../atoms/CategoryImage'
interface ChannelTeaserProps {
channel: string
}
interface ChannelTeaserState {
channelAssets?: any[]
channelAssets?: DDO[]
isLoadingChannel?: boolean
}
@ -26,7 +25,7 @@ export default class ChannelTeaser extends Component<
// Get channel content
public channel = channels.items
.filter(({ tag }) => tag === this.props.channel)
.map(channel => channel)[0]
.map((channel) => channel)[0]
public state = {
channelAssets: [],
@ -52,7 +51,7 @@ export default class ChannelTeaser extends Component<
}
try {
const search = await ocean.aquarius.queryMetadata(searchQuery)
const search = await ocean.assets.query(searchQuery)
this.setState({
channelAssets: search.results,
isLoadingChannel: false
@ -81,17 +80,11 @@ export default class ChannelTeaser extends Component<
</header>
</div>
<div>
{isLoadingChannel ? (
<Spinner message="Loading..." />
) : channelAssets && channelAssets.length ? (
<div className={styles.channelResults}>
{channelAssets.map((asset: any) => (
<AssetTeaser key={asset.id} asset={asset} />
))}
</div>
) : (
<div>No data sets found.</div>
)}
<SearchResults
isLoading={isLoadingChannel}
results={channelAssets}
simpleGrid
/>
</div>
</div>
)

View File

@ -77,7 +77,7 @@
width: 100px;
height: auto;
vertical-align: middle;
margin-top: -.05rem;
margin-top: -0.05rem;
margin-left: $spacer / 6;
fill: currentColor;
}

View File

@ -1,56 +1,53 @@
import React from 'react'
import { Market } from '../../context'
import React, { useContext } from 'react'
import { Market, User } from '../../context'
import Content from '../atoms/Content'
import { ReactComponent as AiCommons } from '../../img/aicommons.svg'
import styles from './Footer.module.scss'
import meta from '../../data/meta.json'
import VersionNumbers from '../atoms/VersionNumbers'
import VersionNumbers from '../molecules/VersionNumbers'
export default function Footer() {
const market = useContext(Market)
const user = useContext(User)
return (
<footer className={styles.footer}>
<aside className={styles.stats}>
<Content wide>
<p>
Online since March 2019.
{market.totalAssets > 0 &&
` With a total of ${market.totalAssets} registered assets.`}
</p>
<p className={styles.aicommons}>
Proud supporter of{' '}
<a
href="https://aicommons.com/?utm_source=commons.oceanprotocol.com"
title="AI Commons"
>
<AiCommons />
</a>
</p>
<VersionNumbers account={user.account} minimal />
</Content>
</aside>
const Footer = () => (
<footer className={styles.footer}>
<aside className={styles.stats}>
<Content wide>
<p>
Online since March 2019.
<Market.Consumer>
{state =>
state.totalAssets > 0 &&
` With a total of ${
state.totalAssets
} registered assets.`
}
</Market.Consumer>
</p>
<p className={styles.aicommons}>
Proud supporter of{' '}
<a
href="https://aicommons.com/?utm_source=commons.oceanprotocol.com"
title="AI Commons"
>
<AiCommons />
</a>
</p>
<VersionNumbers />
<small>
&copy; {new Date().getFullYear()}{' '}
<a href={meta.social[0].url}>{meta.company}</a> &mdash; All
Rights Reserved
</small>
<nav className={styles.links}>
{meta.social.map((site) => (
<a key={site.title} href={site.url}>
{site.title}
</a>
))}
</nav>
</Content>
</aside>
<Content wide>
<small>
&copy; {new Date().getFullYear()}{' '}
<a href={meta.social[0].url}>{meta.company}</a> &mdash; All
Rights Reserved
</small>
<nav className={styles.links}>
{meta.social.map(site => (
<a key={site.title} href={site.url}>
{site.title}
</a>
))}
</nav>
</Content>
</footer>
)
export default Footer
</footer>
)
}

View File

@ -70,7 +70,7 @@
&::-webkit-scrollbar {
width: 3px;
height: 3px;
transition: opacity .2s ease-out;
transition: opacity 0.2s ease-out;
}
}
@ -99,5 +99,5 @@
.accountStatus {
margin-left: $spacer / 2;
margin-bottom: -.5rem;
margin-bottom: -0.5rem;
}

View File

@ -1,11 +1,10 @@
import React, { PureComponent } from 'react'
import { NavLink } from 'react-router-dom'
import { ReactComponent as Logo } from '@oceanprotocol/art/logo/logo.svg'
import { User } from '../../context'
import AccountStatus from '../molecules/AccountStatus'
import styles from './Header.module.scss'
import menu from '../../data/menu.json'
import menu from '../../data/menu'
import meta from '../../data/meta.json'
const MenuItem = ({ item }: { item: any }) => (
@ -24,13 +23,13 @@ export default class Header extends PureComponent {
return (
<header className={styles.header}>
<div className={styles.headerContent}>
<NavLink to={'/'} className={styles.headerLogo}>
<NavLink to="/" className={styles.headerLogo}>
<Logo className={styles.headerLogoImage} />
<h1 className={styles.headerTitle}>{meta.title}</h1>
</NavLink>
<nav className={styles.headerMenu}>
{menu.map(item => (
{menu.map((item) => (
<MenuItem key={item.title} item={item} />
))}
<AccountStatus className={styles.accountStatus} />
@ -40,5 +39,3 @@ export default class Header extends PureComponent {
)
}
}
Header.contextType = User

View File

@ -0,0 +1,34 @@
import React, { useEffect, useState } from 'react'
import { getUserJobs } from '../../utils/getUserJobs'
import { User } from '../../context'
import Spinner from '../atoms/Spinner'
import JobTeaser from '../molecules/JobTeaser'
export default function JobsUser() {
const { ocean, account } = React.useContext(User)
const [jobList, setJobList] = useState<any[]>([])
const [isLoading, setIsLoading] = useState(false)
useEffect(() => {
setIsLoading(true)
async function getJobs() {
const userJobs = await getUserJobs(ocean, account)
setJobList(userJobs as any)
setIsLoading(false)
}
getJobs()
}, [account, ocean])
return (
<>
{isLoading ? (
<Spinner />
) : jobList && jobList.length ? (
jobList
.reverse()
.map((job: any) => <JobTeaser key={job.jobId} job={job} />)
) : (
''
)}
</>
)
}

View File

@ -0,0 +1,73 @@
@import '../../styles/variables';
.openLink {
font-size: $font-size-small !important;
margin-left: $spacer / 2;
}
.info {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.button {
flex: 0 0 100%;
background: $brand-white;
border: 1px solid $brand-grey-lighter;
border-radius: $border-radius;
line-height: 1.5;
padding: $spacer / 1.5;
font-family: $font-family-base;
display: flex;
flex-wrap: wrap;
align-items: flex-start;
text-align: left;
cursor: pointer;
transition: border 0.2s ease-out;
margin-bottom: $spacer;
position: relative;
@media (min-width: $break-point--small) {
flex-basis: 48%;
margin-bottom: 0;
}
&:hover,
&:focus {
border-color: $brand-pink;
}
}
.buttonActive {
composes: button;
pointer-events: none;
background: $body-background;
}
.selected {
position: absolute;
right: $spacer / 3;
top: $spacer / 4;
color: $brand-grey-light;
font-weight: $font-weight-bold;
}
.buttonIcon {
font-size: $font-size-h4;
display: inline-block;
margin-right: $spacer / 4;
}
.buttonTitle {
font-size: $font-size-base;
margin-bottom: $spacer / 2;
font-weight: $font-weight-bold;
margin-top: 0;
}
.buttonDescription {
font-size: $font-size-small;
font-weight: $font-weight-bold;
color: $brand-grey-light;
}

View File

@ -0,0 +1,30 @@
import React from 'react'
import { render, fireEvent } from '@testing-library/react'
import ReactModal from 'react-modal'
import WalletSelector from './WalletSelector'
import { User, Market } from '../../context'
import { userMockConnected } from '../../__mocks__/user-mock'
import { marketMock } from '../../__mocks__/market-mock'
describe('WalletSelector', () => {
it('renders without crashing', () => {
ReactModal.setAppElement(document.createElement('div'))
const { container, getByText } = render(
<User.Provider value={userMockConnected}>
<Market.Provider value={marketMock}>
<WalletSelector />
</Market.Provider>
</User.Provider>
)
expect(container.firstChild).toBeInTheDocument()
fireEvent.click(getByText('Select wallet'))
const burnerButton = getByText('Burner Wallet')
fireEvent.click(burnerButton)
fireEvent.click(getByText('Select wallet'))
// const metamaskButton = getByText('MetaMask')
// fireEvent.click(metamaskButton)
})
})

View File

@ -0,0 +1,109 @@
import React, { PureComponent } from 'react'
import Modal from '../atoms/Modal'
import { User } from '../../context'
import styles from './WalletSelector.module.scss'
import Button from '../atoms/Button'
import content from '../../data/wallets.json'
export default class WalletSelector extends PureComponent<
{},
{ isModalOpen: boolean }
> {
public static contextType = User
public state = {
isModalOpen: false
}
private handleToggleModal = (e?: Event) => {
e && e.preventDefault()
this.setState({ isModalOpen: !this.state.isModalOpen })
}
private loginBurnerWallet = () => {
this.context.loginBurnerWallet()
this.handleToggleModal()
}
private loginMetamask = () => {
this.context.loginMetamask()
this.context.logoutBurnerWallet()
this.handleToggleModal()
}
private WalletButton = ({
title,
description,
icon
}: {
title: string
description: string
icon: string
}) => {
const active =
(title === 'Burner Wallet' && this.context.isBurner) ||
(title === 'MetaMask' && !this.context.isBurner)
return (
<button
className={active ? styles.buttonActive : styles.button}
onClick={
title === 'MetaMask'
? this.loginMetamask
: this.loginBurnerWallet
}
>
<div>
<h3 className={styles.buttonTitle}>
<span
className={styles.buttonIcon}
role="img"
aria-label={title}
>
{icon}
</span>
{title}
</h3>
<span className={styles.buttonDescription}>
{description}
</span>
{active && (
<span className={styles.selected}>Selected</span>
)}
</div>
</button>
)
}
public render() {
return (
<>
<Button
link
className={styles.openLink}
onClick={this.handleToggleModal}
data-action="wallet"
>
{content.title}
</Button>
<Modal
title={content.title}
description={content.description}
isOpen={this.state.isModalOpen}
onToggleModal={this.handleToggleModal}
>
<div className={styles.info}>
{content.buttons.map(({ title, description, icon }) => (
<this.WalletButton
key={title}
title={title}
icon={icon}
description={description}
/>
))}
</div>
</Modal>
</>
)
}
}

Some files were not shown because too many files have changed in this diff Show More