Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/1181 #1194

Merged
merged 16 commits into from
Oct 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions components/VFBMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import VFBTermInfoWidget from './interface/VFBTermInfo/VFBTermInfo';
import Logo from '@geppettoengine/geppetto-client/components/interface/logo/Logo';
import Canvas from '@geppettoengine/geppetto-client/components/interface/3dCanvas/Canvas';
import QueryBuilder from '@geppettoengine/geppetto-client/components/interface/query/queryBuilder';
import VFBDownloadContents from './interface/VFBDownloadContents/VFBDownloadContents';
import VFBUploader from './interface/VFBUploader/VFBUploader';
import HTMLViewer from '@geppettoengine/geppetto-ui/html-viewer/HTMLViewer';
import VFBListViewer from './interface/VFBListViewer/VFBListViewer';
Expand Down Expand Up @@ -52,6 +53,7 @@ class VFBMain extends React.Component {
quickHelpVisible: undefined,
UIUpdated: true,
wireframeVisible: false,
downloadContentsVisible : true,
uploaderContentsVisible : true
};

Expand Down Expand Up @@ -488,6 +490,9 @@ class VFBMain extends React.Component {
[buttonState]: !this.state[buttonState]
});
break;
case 'downloadContentsVisible':
this.refs.downloadContentsRef?.openDialog();
break;
case 'quickHelpVisible':
if (this.state[buttonState] === undefined) {
this.setState({
Expand Down Expand Up @@ -527,6 +532,9 @@ class VFBMain extends React.Component {
case 'triggerSetTermInfo':
this.handlerInstanceUpdate(click.value[0]);
break;
case 'downloadContentsVisible':
this.refs.downloadContentsRef?.openDialog();
break;
case 'uploaderContentsVisible':
this.refs.uploaderContentsRef?.openDialog();
break;
Expand Down Expand Up @@ -1752,7 +1760,10 @@ class VFBMain extends React.Component {
searchConfiguration={this.searchConfiguration}
datasourceConfiguration={this.datasourceConfiguration} />

<VFBDownloadContents ref="downloadContentsRef" open={false} />

<VFBUploader ref="uploaderContentsRef" open={false} />

{this.htmlToolbarRender}
</div>
);
Expand Down
30 changes: 30 additions & 0 deletions components/configuration/VFBDownloadContents/configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"postURL":"https://zip.virtualflybrain.org/download",
"contentType": "application/json",
"zipName" : "VFB Files.zip",
"options" :{
"obj": {
"label" : "OBJ"
},
"swc": {
"label" : "SWC"
},
"nrrd": {
"label" : "NRRD"
},
"reference": {
"label" : "References"
}
},
"text" : {
"title" : "Download Data",
"typesSubtitle" : "Please select the desired types",
"variablesSubtitle" : "Please select Variables:",
"noVariablesSubtitle" : "No loaded variables",
"errorMessage" : "Something went wrong... We were not able to download the data. Please try again.",
"noEntriesFound" : "No entries found for the types and variables selected.",
"cancelButton" : "Cancel",
"downloadButton" : "Download",
"tryAgainButton" : "Try Again"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added components/configuration/VFBDownloadContents/obj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,14 @@ var toolbarMenu = {
parameters: ["circuitBrowserVisible"]
}
},
{
label: "Download Contents",
icon: "fa fa-download",
action: {
handlerAction: "downloadContentsVisible",
parameters: []
}
},
{
label: "NBLAST Uploader",
icon: "fa fa-upload",
Expand Down
Loading