-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Get Demos Initial Commit Added a text box, moved requesting s3 demos to an internal function from the bucket url. "https://nih-demos.s3.us-west-2.amazonaws.com/" fro reference. Added CORS policy to aws to accomodate. * Dynamic + Customizable S3 Bucket Pulling, Minor State Fixes for autogen Added javascript-side ajax request for buckets to s3 bucket. added parser for ajax request for s3 xml data. added xml->json converter for s3 bucket data to autogen s3 bucket object. object is nested for device[] --> projects[] -> files[] Added tabs for each device to aid in project visibility, and clutter management. Removed current s3 bucket parsing from client application (injected ajax request in-place). Added minor fix to autogen behavior on loading configurations. Added minor logic to attempt to update configuration when incoming data is empty. * AvailableDemos Update. Fixed Spinner Added fix for spinner to autogendemos. Added additional null checks etc, for autogen objects. * Added dynamic bucket input to proxy server, and download request. ^ * Added fix for s3 download not sending proper json.41 Updated Download S3 configuration parser to accept any json, and pass through to user. Added call to update json from download s3 demos. Temporary. * Added update Button Commit for Update Button. Added Update Button for bucket query. Avail. Demos is now Avail Projects. * Added FrostProjects nih-demos --> frost-projects * Minor Convention update (AutogenDemos -> S3ProjectsContainer) Added dynamic, bootstrap compatible (start) for typing, and use. AutogenDemos is now S3ProjectsContainer since it is a container for S3Projects :) Added additional props and handling for defaults such as className, and defaultBucket. This will allow us to reuse this component (potentially), or update for specific builds, or pages on the component declaration itself as opposed to within the component. Available projects can now be hidden from the component level. Co-authored-by: adventure <[email protected]>
- Loading branch information
1 parent
2090ba4
commit 251ff2d
Showing
28 changed files
with
4,026 additions
and
3,481 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": ".NET Core Launch (web)", | ||
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "build", | ||
"program": "${workspaceFolder}/bin/Debug/netcoreapp3.1/OpenSpeechTools.dll", | ||
"args": [], | ||
"cwd": "${workspaceFolder}", | ||
"stopAtEntry": false, | ||
"serverReadyAction": { | ||
"action": "openExternally", | ||
"pattern": "\\bNow listening on:\\s+(https?://\\S+)" | ||
}, | ||
"env": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
}, | ||
"sourceFileMap": { | ||
"/Views": "${workspaceFolder}/Views" | ||
} | ||
}, | ||
{ | ||
"name": ".NET Core Attach", | ||
"type": "coreclr", | ||
"request": "attach", | ||
"processId": "${command:pickProcess}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"build", | ||
"${workspaceFolder}/OpenSpeechTools.csproj", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "publish", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"publish", | ||
"${workspaceFolder}/OpenSpeechTools.csproj", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "watch", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"watch", | ||
"run", | ||
"${workspaceFolder}/OpenSpeechTools.csproj", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
} | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 29 additions & 7 deletions
36
ClientApp/src/Components/FileManagement/FileUploaderPresentationalComponent.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,39 @@ | ||
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var React = require("react"); | ||
exports.FileUploaderPresentationalComponent = void 0; | ||
var React = __importStar(require("react")); | ||
var react_bootstrap_1 = require("react-bootstrap"); | ||
exports.FileUploaderPresentationalComponent = function (props) { | ||
var dragging = props.dragging, file = props.file, onSelectFileClick = props.onSelectFileClick, onDrag = props.onDrag, onDragStart = props.onDragStart, onDragEnd = props.onDragEnd, onDragOver = props.onDragOver, onDragEnter = props.onDragEnter, onDragLeave = props.onDragLeave, onDrop = props.onDrop; | ||
var uploaderClasses = "file-uploader flex-right"; | ||
if (dragging) { | ||
uploaderClasses += " file-uploader--dragging"; | ||
} | ||
return (React.createElement("div", { className: uploaderClasses, onDrag: onDrag, onDragStart: onDragStart, onDragEnd: onDragEnd, onDragOver: onDragOver, onDragEnter: onDragEnter, onDragLeave: onDragLeave, onDrop: onDrop }, | ||
React.createElement("div", { className: "file-uploader__contents" }, | ||
React.createElement(react_bootstrap_1.Button, { variant: "primary", className: "float-right btn-simple btn-icon", onClick: onSelectFileClick }, | ||
React.createElement("i", { className: "fa fa-upload large-icon" }))), | ||
props.children)); | ||
return (<div className={uploaderClasses} onDrag={onDrag} onDragStart={onDragStart} onDragEnd={onDragEnd} onDragOver={onDragOver} onDragEnter={onDragEnter} onDragLeave={onDragLeave} onDrop={onDrop}> | ||
<div className="file-uploader__contents"> | ||
<react_bootstrap_1.Button variant="primary" className="float-right btn-simple btn-icon" onClick={onSelectFileClick}> | ||
<i className="fa fa-upload large-icon"/> | ||
</react_bootstrap_1.Button> | ||
</div> | ||
{props.children} | ||
</div>); | ||
}; | ||
//# sourceMappingURL=FileUploaderPresentationalComponent.js.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.