mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
texts
This commit is contained in:
parent
027b3b426e
commit
d3f6d98ab6
26
client/package-lock.json
generated
26
client/package-lock.json
generated
@ -16073,14 +16073,6 @@
|
|||||||
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=",
|
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"typedarray-to-buffer": {
|
|
||||||
"version": "3.1.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz",
|
|
||||||
"integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==",
|
|
||||||
"requires": {
|
|
||||||
"is-typedarray": "^1.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"version": "3.4.5",
|
"version": "3.4.5",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.4.5.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.4.5.tgz",
|
||||||
@ -17001,8 +16993,7 @@
|
|||||||
"integrity": "sha512-8p6ZLv+1JYa5Vs8oBn33Nn3VGFBbF+wVfO+b78RJS1Qf1uIOzjFVDk3XwYDD7rlz9G5BKpxhaQw+6EGQ7L02aw==",
|
"integrity": "sha512-8p6ZLv+1JYa5Vs8oBn33Nn3VGFBbF+wVfO+b78RJS1Qf1uIOzjFVDk3XwYDD7rlz9G5BKpxhaQw+6EGQ7L02aw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"underscore": "1.8.3",
|
"underscore": "1.8.3",
|
||||||
"web3-core-helpers": "1.0.0-beta.37",
|
"web3-core-helpers": "1.0.0-beta.37"
|
||||||
"websocket": "git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bn.js": {
|
"bn.js": {
|
||||||
@ -17042,16 +17033,6 @@
|
|||||||
"underscore": "1.8.3",
|
"underscore": "1.8.3",
|
||||||
"utf8": "2.1.1"
|
"utf8": "2.1.1"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"websocket": {
|
|
||||||
"version": "git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2",
|
|
||||||
"from": "git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible",
|
|
||||||
"requires": {
|
|
||||||
"debug": "^2.2.0",
|
|
||||||
"nan": "^2.3.3",
|
|
||||||
"typedarray-to-buffer": "^3.1.2",
|
|
||||||
"yaeti": "^0.0.6"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -17809,11 +17790,6 @@
|
|||||||
"integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=",
|
"integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"yaeti": {
|
|
||||||
"version": "0.0.6",
|
|
||||||
"resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz",
|
|
||||||
"integrity": "sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc="
|
|
||||||
},
|
|
||||||
"yallist": {
|
"yallist": {
|
||||||
"version": "2.1.2",
|
"version": "2.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
.areaButton {
|
.areaButton {
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
word-break: break-all;
|
|
||||||
|
|
||||||
> div {
|
> div {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -158,7 +158,7 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"algorithm": {
|
"script": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"name": "",
|
"name": "",
|
||||||
"dateCreated": "",
|
"dateCreated": "",
|
||||||
@ -193,7 +193,7 @@
|
|||||||
"steps": [
|
"steps": [
|
||||||
{
|
{
|
||||||
"title": "Essentials",
|
"title": "Essentials",
|
||||||
"description": "Start by adding a title and URLs for your algorithm.",
|
"description": "Start by adding a title and URLs for your script.",
|
||||||
"fields": {
|
"fields": {
|
||||||
"name": {
|
"name": {
|
||||||
"label": "Title",
|
"label": "Title",
|
||||||
|
@ -18,20 +18,11 @@ class Publish extends Component<{}, PublishState> {
|
|||||||
public state = {
|
public state = {
|
||||||
type: 'start'
|
type: 'start'
|
||||||
}
|
}
|
||||||
public publishDataset = () => {
|
public publishType = (type: string) => {
|
||||||
this.setState({ type: 'dataset' })
|
this.setState({ type })
|
||||||
}
|
|
||||||
public publishContainer = () => {
|
|
||||||
this.setState({ type: 'container' })
|
|
||||||
}
|
|
||||||
public publishWorkflow = () => {
|
|
||||||
this.setState({ type: 'workflow' })
|
|
||||||
}
|
|
||||||
public publishAlgorithm = () => {
|
|
||||||
this.setState({ type: 'script' })
|
|
||||||
}
|
}
|
||||||
public toSelect = () => {
|
public toSelect = () => {
|
||||||
this.setState({ type: 'start' })
|
this.publishType('start')
|
||||||
}
|
}
|
||||||
public render() {
|
public render() {
|
||||||
return (
|
return (
|
||||||
@ -47,26 +38,26 @@ class Publish extends Component<{}, PublishState> {
|
|||||||
<div className={styles.typeGrid}>
|
<div className={styles.typeGrid}>
|
||||||
<AreaButton
|
<AreaButton
|
||||||
title={'Dataset'}
|
title={'Dataset'}
|
||||||
description={'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ipsum leo, posuere vitae sem vel.'}
|
description={'Tabular, image, and other formatted data across various domains.'}
|
||||||
action={this.publishDataset}
|
action={() => this.publishType('dataset')}
|
||||||
image={Dataset}
|
image={Dataset}
|
||||||
/>
|
/>
|
||||||
<AreaButton
|
<AreaButton
|
||||||
title={'Container'}
|
title={'Container'}
|
||||||
description={'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ipsum leo, posuere vitae sem vel.'}
|
description={'A pre-defined computation environment specifying libraries and resources.'}
|
||||||
action={this.publishContainer}
|
action={() => this.publishType('container')}
|
||||||
image={Container}
|
image={Container}
|
||||||
/>
|
/>
|
||||||
<AreaButton
|
<AreaButton
|
||||||
title={'Workflow'}
|
title={'Workflow'}
|
||||||
description={'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ipsum leo, posuere vitae sem vel.'}
|
description={'A composite of data loading, transformation, machine learning scripts and other base assets in a directed acyclical graph.'}
|
||||||
action={this.publishWorkflow}
|
action={() => this.publishType('workflow')}
|
||||||
image={Workflow}
|
image={Workflow}
|
||||||
/>
|
/>
|
||||||
<AreaButton
|
<AreaButton
|
||||||
title={'Script'}
|
title={'Script'}
|
||||||
description={'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ipsum leo, posuere vitae sem vel.'}
|
description={'A single programming script (for example, a python notebook or file) to accomplish tasks such as transforming data or training a machine learning model.'}
|
||||||
action={this.publishAlgorithm}
|
action={() => this.publishType('script')}
|
||||||
image={Script}
|
image={Script}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -223,6 +223,7 @@ class Loader extends Component<LoaderProps, LoaderState> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public render() {
|
public render() {
|
||||||
|
const loadedType = (dataPublishForm as any)[this.props.loadType]
|
||||||
return (
|
return (
|
||||||
<Route
|
<Route
|
||||||
title="Publish"
|
title="Publish"
|
||||||
@ -233,12 +234,12 @@ class Loader extends Component<LoaderProps, LoaderState> {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
<Progress
|
<Progress
|
||||||
steps={(dataPublishForm as any)[this.props.loadType].steps}
|
steps={loadedType.steps}
|
||||||
currentStep={this.state.currentStep}
|
currentStep={this.state.currentStep}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Form onSubmit={this.submitAction}>
|
<Form onSubmit={this.submitAction}>
|
||||||
{(dataPublishForm as any)[this.props.loadType].steps.map(
|
{loadedType.steps.map(
|
||||||
(step: any, index: number) => (
|
(step: any, index: number) => (
|
||||||
<Step
|
<Step
|
||||||
key={index}
|
key={index}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user