mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
f6d11e5e6f
* 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>
123 lines
4.6 KiB
JSON
123 lines
4.6 KiB
JSON
{
|
|
"form": {
|
|
"success": "🎉 Successfully updated. 🎉\n\nUpdates might not show up right away on your asset. In this case, wait some seconds and reload your asset details page in your browser.",
|
|
"error": "Updating DDO failed.",
|
|
"data": [
|
|
{
|
|
"name": "name",
|
|
"label": "New Title",
|
|
"placeholder": "e.g. Shapes of Desert Plants",
|
|
"help": "Enter a concise title.",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "description",
|
|
"label": "New Description",
|
|
"help": "Add a thorough description with as much detail as possible. You can use [Markdown](https://daringfireball.net/projects/markdown/basics).",
|
|
"type": "textarea",
|
|
"rows": 10,
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "price",
|
|
"label": "New Price",
|
|
"type": "number",
|
|
"min": "1",
|
|
"placeholder": "0",
|
|
"help": "Enter a new price.",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "files",
|
|
"label": "File",
|
|
"prominentHelp": false,
|
|
"type": "tabs",
|
|
"fields": [{
|
|
"value": "ipfs",
|
|
"title": "IPFS",
|
|
"label": "CID",
|
|
"placeholder": "e.g. bafkreidgvpkjawlxz6sffxzwgooowe5yt7i6wsyg236mfoks77nywkptdq",
|
|
"help": "This CID will be stored encrypted after publishing.",
|
|
"computeHelp": "For a compute dataset, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size. ",
|
|
"prominentHelp": true,
|
|
"type": "files",
|
|
"required": true
|
|
},
|
|
{
|
|
"value": "arweave",
|
|
"title": "Arweave",
|
|
"label": "Transaction ID",
|
|
"placeholder": "e.g. DBRCL94j3QqdPaUtt4VWRen8rZfJZBb7Ey40iMpXfhtd",
|
|
"help": "This Transaction ID will be stored encrypted after publishing.",
|
|
"computeHelp": "For a compute dataset, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size. ",
|
|
"prominentHelp": true,
|
|
"type": "files",
|
|
"required": true
|
|
},
|
|
{
|
|
"value": "url",
|
|
"title": "URL",
|
|
"label": "File",
|
|
"placeholder": "e.g. https://file.com/file.json",
|
|
"help": "This URL will be stored encrypted after publishing. **Please make sure that the endpoint is accessible over the internet and is not protected by a firewall or by credentials.**",
|
|
"computeHelp": "For a compute dataset, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size. ",
|
|
"prominentHelp": true,
|
|
"type": "files",
|
|
"required": true
|
|
}],
|
|
"sortOptions": false,
|
|
"required": true
|
|
},{
|
|
"name": "links",
|
|
"label": "Sample file",
|
|
"prominentHelp": false,
|
|
"type": "tabs",
|
|
"fields": [
|
|
{
|
|
"value": "url",
|
|
"title": "URL",
|
|
"label": "File",
|
|
"placeholder": "e.g. https://file.com/file.json",
|
|
"help": "This URL will be stored encrypted after publishing. **Please make sure that the endpoint is accessible over the internet and is not protected by a firewall or by credentials.**",
|
|
"computeHelp": "For a compute dataset, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size. ",
|
|
"prominentHelp": true,
|
|
"type": "files",
|
|
"required": false
|
|
}],
|
|
"required": false
|
|
},
|
|
|
|
{
|
|
"name": "timeout",
|
|
"label": "Timeout",
|
|
"help": "Define how long buyers should be able to download the dataset again after the initial purchase.",
|
|
"type": "select",
|
|
"options": ["Forever", "1 day", "1 week", "1 month", "1 year"],
|
|
"sortOptions": false,
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "author",
|
|
"label": "New Author",
|
|
"placeholder": "e.g. Mrs McJellyfish",
|
|
"help": "Give proper attribution for your dataset.",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "tags",
|
|
"label": "New Tags",
|
|
"type": "tags",
|
|
"placeholder": "e.g. logistics",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "paymentCollector",
|
|
"label": "Payment Collector Address",
|
|
"placeholder": "e.g. 0X123ABC...",
|
|
"help": "This address will receive the revenue from all sales. More info available in our [docs](https://docs.oceanprotocol.com/core-concepts/datanft-and-datatoken#revenue).",
|
|
"required": false
|
|
}
|
|
]
|
|
}
|
|
}
|