1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
Commit Graph

2126 Commits

Author SHA1 Message Date
dcfae1332c
remove tabs, more rel for all links 2022-12-06 10:21:01 +00:00
85e183929f
Merge branch 'main' into feature/calica-integration 2022-12-06 10:07:50 +00:00
cb25c20123
fix search (#1822) 2022-12-06 08:30:18 +00:00
0a86abbc84
Revert "default to static build (#1812)" (#1819) 2022-12-05 11:50:53 +00:00
dependabot[bot]
4aa85e9052
Bump decode-uri-component from 0.2.0 to 0.2.2 (#1814)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-05 10:27:45 +00:00
28376404a8
default to static build (#1812) 2022-12-05 09:59:57 +00:00
4ae4740ec8
set S3 deploy script to Node.js v18 too (#1805) 2022-12-01 12:11:52 +00:00
dependabot[bot]
5850091d45
Bump loader-utils from 1.4.1 to 1.4.2 (#1806)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-01 09:29:17 +00:00
1b612e4194
package updates & technical debt cleanup (#1771)
* package updates

* bump Next.js

* update for Next.js v13 new `Link` behavior

* see https://nextjs.org/docs/upgrading#link-component

* test tweaks, simplify getNetworkDisplayName()

* modify codeclimate excludes

* test tweaks and cleanup

* more cleanup

* switch to Node.js v18

* back to Node.js v16

* temporarily run CI against Node.js v16 & v18

* update codeowners

* fixtures fixes for asset price

* switch to Node.js v18

* package updates

* remark updates, typescript and test fixes

* fix

* test run fixes

* yet another lockfileVersion update

* package updates

* test run fixes
2022-12-01 09:09:40 +00:00
Jamie Hewitt
b58cb36e00
Adding paymentCollector back into edit form (#1799) 2022-11-29 02:20:51 +00:00
EnzoVezzaro
aa8dcdaa79
fix edit form validation (#1797)
* fix edit form validation

* more validation edit form
2022-11-25 17:41:17 +01:00
EnzoVezzaro
f6d11e5e6f
adding ipfs / arweave support (#1765)
* support storage type publish

* adding storageType to edit form

* add IPFS type

* fix testst and rollback ipfs typing

* update oceanjs lib

* fix Ipfs type

* Update package-lock.json

* added graphql and smartcontract options UI (WIP)

* update package.json

* removed graphql and smartcontracts

* make various fixes for edit and publish with IPFS (missing Arweave)

* removed no-case-declarations lines

* moved ipfs utils

* renamed getFileUrlInfo to getFileInfo

* added is-ipfs to jest mock

* Update package-lock.json

* fix things

* npm is fun

* rename url to file in getFileInfo

* refactor publish form (storage type field)

* fix tab value when changing tabs

* refactoring edit form

* more refactor edit form

* fix edit validation

* fix validation when input is empty on edit form

* fix validation when loading asset in edit form

* change URL to file confirmed

* change messages based on service type

* Update form.json

* fix FileInput tests and added ipfs / arweave tests

* removed unnecessary comment

* Update index.tsx

* cleanup logic

* update @oceanprotocol/lib

* Update package-lock.json

* fix test error

* fix test assetsWithAccessDetails

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-11-25 15:07:55 +01:00
dependabot[bot]
071948e0e6
Bump loader-utils from 1.4.1 to 1.4.2 (#1792)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-20 15:03:35 +00:00
EnzoVezzaro
8d17c30f41
Merge pull request #1786 from oceanprotocol/issue-1775-edit-paymentCollector
Allowing publisher to edit payment collector
2022-11-17 10:35:17 -04:00
EnzoVezzaro
35ead98cbf
Merge pull request #1766 from oceanprotocol/fix/issue-validation-g-drive-links
fix validation link field on edit view when the asset is already hosted on g drive
2022-11-17 06:58:25 -04:00
Jamie Hewitt
d51538a32f Only showing payment collector if it is different to the owner 2022-11-17 13:39:49 +03:00
Jamie Hewitt
5ab6b7dc66 Setting payment collector inline 2022-11-17 13:36:58 +03:00
Jamie Hewitt
2265d750a5 Replacing console.error with loggerinstance.error 2022-11-16 18:08:59 +03:00
Jamie Hewitt
105343435c Showing revenue account on asset detail page if it is different to the owner account 2022-11-16 18:05:16 +03:00
Jamie Hewitt
c65a1070aa Updating link to the docs 2022-11-16 14:29:33 +03:00
mihaisc
daf7865fec add integration link 2022-11-16 11:39:28 +02:00
Jamie Hewitt
36a88674b4 Deleting unused test 2022-11-16 11:03:51 +03:00
Jamie Hewitt
c2514debf0 Adding test for FormActions 2022-11-15 18:58:07 +03:00
mihaisc
131f1f15e3
Change datatoken template and ensure compatibility with both (#1728)
* change template

* fix build

* add template config

* test fixes

* Update app.config.js

Co-authored-by: Alex Coseru <alex.coseru@gmail.com>

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
Co-authored-by: Alex Coseru <alex.coseru@gmail.com>
2022-11-15 16:35:26 +02:00
EnzoVezzaro
8225775828
Merge pull request #1487 from oceanprotocol/fix/issue-1069-c2d-unsupported-networks
allow price calculation when users are on unsupported network / not connected
2022-11-15 05:58:40 -04:00
Jamie Hewitt
6776ffe34d Adding inital outline for test 2022-11-15 12:40:14 +03:00
Jamie Hewitt
9fca971d77 Adding placeholder for link to the docs 2022-11-15 11:55:06 +03:00
Jamie Hewitt
40f3335cfc removing unused imports 2022-11-15 11:48:26 +03:00
Jamie Hewitt
fd30d5e138 Updating paymentCollector on submit 2022-11-15 11:38:43 +03:00
Jamie Hewitt
e22407ad43 setting inital payment collector from EditMetadata 2022-11-15 10:45:14 +03:00
Jamie Hewitt
9429af22e2 Populating the edit form with the current payment collector 2022-11-15 10:05:12 +03:00
EnzoVezzaro
072d346932 Revert "fix text and added ipfs and arweave tests"
This reverts commit 23d8002ce8.
2022-11-14 12:18:35 -04:00
EnzoVezzaro
23d8002ce8 fix text and added ipfs and arweave tests 2022-11-14 12:17:29 -04:00
EnzoVezzaro
1649e075e2 Merge branch 'main' into fix/issue-1069-c2d-unsupported-networks 2022-11-14 11:47:44 -04:00
Jamie Hewitt
cbdc81b836 Checking if payment collector address is valid using form validation 2022-11-14 18:09:29 +03:00
Jamie Hewitt
11cf51d85b Adding paymentCOllector to content/pages/editMetadata.json 2022-11-14 17:54:37 +03:00
mihaisc
6ba95fe4d5
fix loading in preview (#1785) 2022-11-11 12:27:30 +00:00
Jamie Hewitt
4ff84b0871
Handle provider error & showing Retry button (#1770)
* adding error handling for button onCLick

* Updating butoon to show retry & updating toast message

* Logging provider error

* Removing unused imports

* Using early return when provider fees are present to prevent unneccessary nesting

* Adding retry logic for compute

* Removing duplicate teast message

* Adding tests for rendering Buy button

* Additional tests for BuyButton

* Refactoring BuyButton tests for download

* Fix failing tests

* Refactoring compute tests

* Refactoring tests

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-11-11 12:54:21 +03:00
4b4a926f89
special veOCEAN number treatment (#1782)
* special veOCEAN number treatment

* path fix

* fix duplicate AllLocked declarations

* so many duplicate declarations

* bold numbers on asset teasers

* update test

* unify number formatting in more generic `formatNumber()` method
2022-11-09 14:14:57 +00:00
b99634a3b3
filter out className from Tippy (#1783) 2022-11-09 12:23:26 +00:00
482af1be0c
NFT image & faulty metadata fixes (#1779)
* safeguard against faults in metadata.tags

* properly handle image strings in tokenURI

* keep image ratios

* render test for faulty tags

* tweak fallback in popover
2022-11-09 12:22:30 +00:00
dependabot[bot]
ee4e5c3b4d
Bump loader-utils from 1.4.0 to 1.4.1 (#1780)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.1/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-09 09:02:18 +00:00
mihaisc
c302122795
Add most viewed (#1754)
* add most viewed

* Update src/components/Home/index.tsx

Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>

* add views in teasers

* typo

* add test

* switch to axios

* test tweaks

* fix

* add 30 days label

Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-11-08 17:17:22 +00:00
EnzoVezzaro
8363b9f2bb fix tests 2022-11-08 05:25:01 -04:00
EnzoVezzaro
606a32065c Merge branch 'main' into fix/issue-1069-c2d-unsupported-networks 2022-11-08 05:15:39 -04:00
EnzoVezzaro
ceb055af36 Merge branch 'main' into fix/issue-validation-g-drive-links 2022-11-07 17:15:25 -04:00
EnzoVezzaro
0246113295 Merge branch 'fix/issue-validation-g-drive-links' of https://github.com/oceanprotocol/market into fix/issue-validation-g-drive-links 2022-11-07 16:35:18 -04:00
EnzoVezzaro
9c5cba4e05 Merge branch 'main' into fix/issue-validation-g-drive-links 2022-11-07 16:28:31 -04:00
Jamie Hewitt
81341cd914
Showing related assets (#1748)
* Creating related assets component

* Ensuring that related assets doesn't show the same asset

* Adjusting query to show assets from the same publisher but not the exact same asset

* modifying search term

* Removing logs and unused import

* Removing log

* Updating query

* Fixes

* updating query

* Updating query to include both related tag assets anbd related owner assests when <3. SHowing results as a list of links

* creating minimal asset teaser

* removing duplicate filters

* Changing minimal to noDescription

* Removing unneccessary use of noDescription prop

* Adding minimal prop back into Publisher

* Removing props from RelatedAssets component

* Getting data from asset context

* refactor

* space-saving asset teaser changes
* remove price from output
* increase to 4
* refactor for better loading experience

* css cleanup

* filter out duplicates when merging results

* basic render test

* try/catch, secure against null query responses

* different test tactic

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-11-07 20:09:19 +00:00
Bogdan Fazakas
cd20fa0d53 merge main 2022-11-07 17:10:43 +02:00