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

165 lines
6.4 KiB
JSON
Raw Normal View History

2021-10-21 20:58:55 +02:00
{
"metadata": {
"title": "Metadata",
2021-10-21 20:58:55 +02:00
"fields": [
2021-11-15 16:02:13 +01:00
{
"name": "nft",
"label": "Data NFT",
"type": "nft",
"help": "All metadata is stored on-chain in a newly deployed ERC-721 contract representing this asset, created with this name, symbol, description and image.",
2021-11-15 16:02:13 +01:00
"required": true
},
{
"name": "type",
"label": "Asset Type",
"type": "boxSelection",
"options": ["Dataset", "Algorithm"],
"required": true
},
2021-10-21 20:58:55 +02:00
{
"name": "name",
"label": "Title",
"placeholder": "e.g. Shapes of Desert Plants",
"required": true
},
{
"name": "description",
"label": "Description",
"help": "Add a thorough description with as much detail as possible. You can use [Markdown](https://daringfireball.net/projects/markdown/basics). You can change the description at any time. If you provide personal data, please note that it will remain in the transaction history. For more information on how personal data is handled within the metadata, please refer to our [privacy policy](/privacy/en).",
"type": "textarea",
"required": true
},
{
"name": "author",
"label": "Author",
"placeholder": "e.g. Jelly McJellyfish",
2022-08-15 15:57:53 +02:00
"help": "Give proper attribution for your dataset. You are welcome to use a pseudonym, and you can change your author name at any time. Please note that it will remain in the transaction history. For more information on how personal data is handled within the metadata, please refer to our [privacy policy](/privacy/en).",
2021-10-21 20:58:55 +02:00
"required": true
},
{
"name": "tags",
"label": "Tags",
Feat: autocomplete tags functionality (#1471) * feat: add autocomplete tag component * feat: pass tags aggregated list to autocomplete component * feat: add initial styling to autocomplete tag component * fix: autocomplete style types * feat: move styling elements to module.css file * feat: update placeholder text for tag input field * feat: add default value to tags if present * feat: add edit tags functionality * fix: default tag value * fix: style for automplete menu's keyboard navigation * fix: tags aggregation query size * feat: return sorted tags aggregated list suggestion in publish * fix: set tags value touched state in edit mode * add package back * enhancement: autocomplete tag component config (#1679) * fix publishing when connecting wallet on publish form * fix reset pricing on tx execution * removed changing steps * cleanup * Fix headers (#1663) * test * test * test * test * test * test * test * remove link * enhancement: tag autocomplete settings * feat: add cursor type text * feat: tweak filter and sort for matched tags * fix: tags input font color * fix: tag autocomplete component input color Co-authored-by: EnzoVezzaro <enzo-vezzaro@live.it> Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro> Co-authored-by: Ana <84312885+AnaLoznianu@users.noreply.github.com> * fix lock * test * fix * fix * minor fixes * fix cursor on remove item (x) * style updates * UX tweaks * start suggestions upon first key stroke * remove redundant help tooltip * change placeholder copy * remove input clear action * edit updates Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro> Co-authored-by: EnzoVezzaro <enzo-vezzaro@live.it> Co-authored-by: Ana <84312885+AnaLoznianu@users.noreply.github.com> Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-10-05 16:40:00 +02:00
"type": "tags",
"placeholder": "e.g. logistics"
2021-10-21 20:58:55 +02:00
},
{
"name": "dockerImage",
"label": "Docker Image",
"help": "Please select an image to run your algorithm.",
"type": "boxSelection",
"options": [
"populated from algorithmContainerPresets in Publish/_constants"
],
"required": true
},
{
"name": "dockerImageCustom",
2022-10-10 14:59:32 +02:00
"label": "Custom Docker Image",
"placeholder": "e.g. oceanprotocol/algo_dockers:node-vibrant or quay.io/startx/mariadb",
"help": "Provide the name and the tag of a public Docker hub image or the custom image if you have it hosted in a 3rd party repository",
2022-09-19 14:54:07 +02:00
"type": "container",
"required": true
},
{
2022-09-19 14:54:07 +02:00
"name": "dockerImageChecksum",
2022-09-20 21:24:16 +02:00
"label": "Docker Image Checksum",
2022-09-19 14:54:07 +02:00
"placeholder": "e.g. sha256:xiXqb7Vet0FbN9q0GFMgUdi5C22wjJT0i2G6lYKC2jl6QxkKzVz7KaPDgqfTMjNF",
2022-09-20 21:24:16 +02:00
"help": "Provide the checksum(DIGEST) of your docker image.",
"required": true
},
{
"name": "dockerImageCustomEntrypoint",
2022-10-10 14:59:32 +02:00
"label": "Docker Image Entrypoint",
"placeholder": "e.g. python $ALGO",
"help": "Provide the entrypoint for your algorithm.",
"required": true
},
2021-10-21 20:58:55 +02:00
{
"name": "termsAndConditions",
"label": "Terms & Conditions",
"type": "checkbox",
2021-11-25 15:36:01 +01:00
"options": ["I agree to the Terms and Conditions"],
2021-10-21 20:58:55 +02:00
"required": true
}
]
},
"services": {
"title": "Access",
2021-10-21 20:58:55 +02:00
"fields": [
{
"name": "dataTokenOptions",
2021-11-15 16:42:50 +01:00
"label": "Datatoken",
"type": "datatoken",
2021-11-15 16:42:50 +01:00
"help": "The datatoken used for accessing this asset will be created with this name & symbol.",
"required": true
},
{
"name": "providerUrl",
2021-11-23 16:34:43 +01:00
"label": "Provider URL",
"type": "providerUrl",
2021-11-23 16:34:43 +01:00
"help": "Enter the URL for your custom [provider](https://github.com/oceanprotocol/provider/) or leave as is to use the default one. If you change your provider URL after adding your file, please add & validate your file again.",
"placeholder": "e.g. https://provider.oceanprotocol.com/",
"required": true
},
{
"name": "files",
"label": "File",
"placeholder": "e.g. https://file.com/file.json",
2022-08-15 15:57:53 +02:00
"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.** 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
},
{
"name": "links",
"label": "Sample file",
"placeholder": "e.g. https://file.com/samplefile.json",
2022-08-15 15:57:53 +02:00
"help": "This file should reveal the data structure of your dataset, e.g. by including the header and one line of a CSV file. This file URL will be publicly available after publishing. **Please make sure that the endpoint is accessible over the internet and is not protected by a firewall or by credentials.**",
"prominentHelp": true,
"type": "files"
},
{
"name": "algorithmPrivacy",
"label": "Algorithm Privacy",
"type": "checkbox",
"options": ["Keep my algorithm private"],
2022-08-15 15:57:53 +02:00
"help": "By default, your algorithm can be downloaded for free or a fixed price, in addition to running in compute jobs. Enabling this option will prevent downloading, so your algorithm can only be run as part of a compute job on a dataset.",
"required": false
},
2021-10-21 20:58:55 +02:00
{
"name": "access",
"label": "Access Type",
"help": "Choose how you want your files to be accessible for the specified price.",
"type": "boxSelection",
2021-12-21 21:26:08 +01:00
"options": ["Access", "Compute"],
2021-10-21 20:58:55 +02:00
"required": true,
"disclaimer": "Please do not provide downloadable personal data without the consent of the data subjects.",
"disclaimerValues": ["Download"]
},
{
"name": "timeout",
"label": "Timeout",
2022-08-15 15:57:53 +02:00
"help": "Define how long buyers should be able to download the dataset again after the initial purchase.",
2021-10-21 20:58:55 +02:00
"type": "select",
"options": ["Forever", "1 day", "1 week", "1 month", "1 year"],
"sortOptions": false,
"required": true
}
]
},
"pricing": {
"title": "Pricing",
"fields": [
{
"name": "dummy content, actual content is defined under 'create' key in ../price.json"
}
]
},
"preview": {
"title": "Preview"
},
"submission": {
"title": "Submit"
2021-10-21 20:58:55 +02:00
}
}