mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
define categories in data file
This commit is contained in:
parent
a7cdbd59d7
commit
06925ced37
@ -38,14 +38,7 @@
|
||||
"label": "Type",
|
||||
"type": "select",
|
||||
"required": true,
|
||||
"options": [
|
||||
"---",
|
||||
"Data set",
|
||||
"Algorithm",
|
||||
"Container",
|
||||
"Workflow",
|
||||
"Other"
|
||||
]
|
||||
"options": ["", "Data set", "Algorithm", "Container", "Workflow", "Other"]
|
||||
},
|
||||
"license": {
|
||||
"label": "License",
|
||||
@ -72,7 +65,40 @@
|
||||
"label": "Categories",
|
||||
"type": "select",
|
||||
"required": true,
|
||||
"options": ["No Category Specified"]
|
||||
"options": [
|
||||
"",
|
||||
"Image Recognition",
|
||||
"Dataset Of Datasets",
|
||||
"Language",
|
||||
"Performing Arts",
|
||||
"Visual Arts & Design",
|
||||
"Philosophy",
|
||||
"History",
|
||||
"Theology",
|
||||
"Anthropology & Archeology",
|
||||
"Sociology",
|
||||
"Psychology",
|
||||
"Politics",
|
||||
"Interdisciplinary",
|
||||
"Economics & Finance",
|
||||
"Demography",
|
||||
"Biology",
|
||||
"Chemistry",
|
||||
"Physics & Energy",
|
||||
"Earth & Climate",
|
||||
"Space & Astronomy",
|
||||
"Mathematics",
|
||||
"Computer Technology",
|
||||
"Engineering",
|
||||
"Agriculture & Bio Engineering",
|
||||
"Transportation",
|
||||
"Urban Planning",
|
||||
"Medicine",
|
||||
"Business & Management",
|
||||
"Sports & Recreation",
|
||||
"Communication & Journalism",
|
||||
"Other"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -124,89 +124,9 @@ class Publish extends Component<{}, PublishState> {
|
||||
>
|
||||
{this.formFields(entries)}
|
||||
|
||||
<div>
|
||||
Category:
|
||||
<select
|
||||
name="categories"
|
||||
value={this.state.categories[0]}
|
||||
onChange={this.inputToArrayChange}
|
||||
>
|
||||
<option value="No Category Specified">
|
||||
No Category Specified
|
||||
</option>
|
||||
<option value="Image Recognition">
|
||||
Image Recognition
|
||||
</option>
|
||||
<option value="Dataset Of Datasets">
|
||||
Dataset Of Datasets
|
||||
</option>
|
||||
<option value="Language">Language</option>
|
||||
<option value="Performing Arts">
|
||||
Performing Arts
|
||||
</option>
|
||||
<option value="Visual Arts & Design">
|
||||
Visual Arts & Design
|
||||
</option>
|
||||
<option value="Philosophy">Philosophy</option>
|
||||
<option value="History">History</option>
|
||||
<option value="Theology">Theology</option>
|
||||
<option value="Anthropology & Archeology">
|
||||
Anthropology & Archeology
|
||||
</option>
|
||||
<option value="Sociology">Sociology</option>
|
||||
<option value="Psychology">Psychology</option>
|
||||
<option value="Politics">Politics</option>
|
||||
<option value="Interdisciplinary">
|
||||
Interdisciplinary
|
||||
</option>
|
||||
<option value="Economics & Finance">
|
||||
Economics & Finance
|
||||
</option>
|
||||
<option value="Demography">Demography</option>
|
||||
<option value="Biology">Biology</option>
|
||||
<option value="Chemistry">Chemistry</option>
|
||||
<option value="Physics & Energy">
|
||||
Physics & Energy
|
||||
</option>
|
||||
<option value="Earth & Climate">
|
||||
Earth & Climate
|
||||
</option>
|
||||
<option value="Space & Astronomy">
|
||||
Space & Astronomy
|
||||
</option>
|
||||
<option value="Mathematics">Mathematics</option>
|
||||
<option value="Computer Technology">
|
||||
Computer Technology
|
||||
</option>
|
||||
<option value="Engineering">Engineering</option>
|
||||
<option value="Agriculture & Bio Engineering">
|
||||
Agriculture & Bio Engineering
|
||||
</option>
|
||||
<option value="Transportation">
|
||||
Transportation
|
||||
</option>
|
||||
<option value="Urban Planning">
|
||||
Urban Planning
|
||||
</option>
|
||||
<option value="Medicine">Medicine</option>
|
||||
<option value="Language">Language</option>
|
||||
<option value="Business & Management">
|
||||
Business & Management
|
||||
</option>
|
||||
<option value="Sports & Recreation">
|
||||
Sports & Recreation
|
||||
</option>
|
||||
<option value="Communication & Journalism">
|
||||
Communication & Journalism
|
||||
</option>
|
||||
<option value="Other">Other</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<User.Consumer>
|
||||
{states => (
|
||||
<div>
|
||||
{states.isLogged ? (
|
||||
{states =>
|
||||
states.isLogged ? (
|
||||
<Button primary>
|
||||
Register asset (we are logged)
|
||||
</Button>
|
||||
@ -214,9 +134,8 @@ class Publish extends Component<{}, PublishState> {
|
||||
<Button primary onClick={states.startLogin}>
|
||||
Register asset (login first)
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
)
|
||||
}
|
||||
</User.Consumer>
|
||||
</Form>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user