From 36406f22795a2a3a501bab3b0a2dcc5aa67e331f Mon Sep 17 00:00:00 2001 From: Rashmi V Abbigeri Date: Thu, 15 Dec 2022 08:19:46 +0530 Subject: [PATCH] create blacklist page --- content/pages/blacklist/feedback.json | 7 +++ content/pages/blacklist/form.json | 88 +++++++++++++++++++++++++++ content/pages/blacklist/index.json | 6 ++ src/pages/blacklist/index.tsx | 20 ++++++ 4 files changed, 121 insertions(+) create mode 100644 content/pages/blacklist/feedback.json create mode 100644 content/pages/blacklist/form.json create mode 100644 content/pages/blacklist/index.json create mode 100644 src/pages/blacklist/index.tsx diff --git a/content/pages/blacklist/feedback.json b/content/pages/blacklist/feedback.json new file mode 100644 index 00000000..11151c77 --- /dev/null +++ b/content/pages/blacklist/feedback.json @@ -0,0 +1,7 @@ +{ + "1": { + "name": "Publish", + "description": "Make the dataset available for anyone to find and download.", + "status": "pending" + } +} diff --git a/content/pages/blacklist/form.json b/content/pages/blacklist/form.json new file mode 100644 index 00000000..5073d3e4 --- /dev/null +++ b/content/pages/blacklist/form.json @@ -0,0 +1,88 @@ +{ + "metadata": { + "title": "Metadata", + "fields": [ + { + "name": "title", + "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": "authors", + "label": "Authors", + "placeholder": "e.g. Jelly McJellyfish", + "help": "Comma separated list. Give proper attribution for your data set. 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).", + "required": true + }, + { + "name": "license", + "label": "License", + "placeholder": "e.g. CC0 Public Domain", + "help": "A dataset license should clearly describe how to properly and responsibly use a dataset. See https://paperswithcode.com/datasets/license", + "required": true, + "type": "radio", + "options": [ + "CC0 Public Domain", + "CC BY", + "CC BY-SA", + "CC BY-NC", + "CC BY-NC-SA", + "CC BY-ND", + "CC BY-NC-ND", + "MIT", + "GPL", + "Apache License, Version 2.0", + "BSD-3-Clause", + "Unknown" + ] + }, + { + "name": "doi", + "label": "DOI", + "placeholder": "e.g. https://doi.org/10.1109/5.771073", + "help": "A link of your Digital Object Identifier, see https://www.doi.org/hb.html" + }, + { + "name": "keywords", + "label": "Keywords", + "placeholder": "e.g. logistics, ai", + "help": "Separate keywords with comma." + }, + { + "name": "termsAndConditions", + "label": "Terms & Conditions", + "type": "checkbox", + "options": ["I agree to the Terms and Conditions"], + "required": true + } + ] + }, + "datasets": { + "title": "Dataset", + "fields": [ + { + "name": "datasetId", + "label": "Dataset", + "placeholder": "dataset1/", + "help": "Select a dataset from your Data Locker to publish to Commons. This will allow others to search for and download your dataset.", + "prominentHelp": true, + "type": "dataset", + "required": true + } + ] + }, + "preview": { + "title": "Preview" + }, + "submission": { + "title": "Submit" + } +} diff --git a/content/pages/blacklist/index.json b/content/pages/blacklist/index.json new file mode 100644 index 00000000..893f13cb --- /dev/null +++ b/content/pages/blacklist/index.json @@ -0,0 +1,6 @@ +{ + "title": "Blacklist", + "description": "Blacklist datasets which violate licenses and privacy", + "warning": "By blacklisting a dataset would make it inaccessible", + "tooltipAvailableNetworks": "Assets are published to the network your wallet is connected to. These networks are currently supported:" +} diff --git a/src/pages/blacklist/index.tsx b/src/pages/blacklist/index.tsx new file mode 100644 index 00000000..9d8b533a --- /dev/null +++ b/src/pages/blacklist/index.tsx @@ -0,0 +1,20 @@ +import React, { ReactElement } from 'react' +import Publish from '../../components/Publish' +import Page from '@shared/Page' +import content from '../../../content/publish/index.json' +import router from 'next/router' + +export default function BlacklistDataset(): ReactElement { + const { title, description } = content + + return ( + + + + ) +}