Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
299b04c
(ADDED) Dynamic User Session Management
RichardMcCarty1 Feb 1, 2021
86ff0ae
Merge pull request #1 from RichardMcCarty1/dynamicUserSessionFeature
RichardMcCarty1 Feb 11, 2021
f2b3939
Merge pull request #2 from CIRDLES/master
RichardMcCarty1 Feb 11, 2021
0f6144a
(REMOVE) Outdated Architecture
RichardMcCarty1 Feb 11, 2021
225f147
Merge pull request #3 from RichardMcCarty1/RichardMcCarty1-OutdatedAr…
RichardMcCarty1 Feb 11, 2021
4b9090b
Merge pull request #4 from CIRDLES/master
RichardMcCarty1 Mar 22, 2021
272b008
Remove SQUIDINK External Links
RichardMcCarty1 Mar 22, 2021
a7efca9
Hide SquidInk
RichardMcCarty1 Mar 22, 2021
8096f22
Merge pull request #5 from RichardMcCarty1/RichardMcCarty1-Hide-Squidink
RichardMcCarty1 Mar 22, 2021
9f7a3ca
Merge pull request #6 from CIRDLES/master
RichardMcCarty1 May 5, 2021
6bf541d
(ADDED) Squidink-Frontend Components
RichardMcCarty1 May 12, 2021
e6e33ec
Fixed Default Filebrowser URL
RichardMcCarty1 May 12, 2021
4893864
Origin check for event-listener message
RichardMcCarty1 May 12, 2021
0773505
Timeout to prevent constant message event loop
RichardMcCarty1 May 12, 2021
ab07b6c
(ADDED) Constants option to disable/enable Squidink
RichardMcCarty1 May 14, 2021
8f49950
(ADDED) Close dropdowns when click action is not within dropdown
RichardMcCarty1 May 14, 2021
3a4c783
API Management Rework
RichardMcCarty1 May 16, 2021
c74d0fe
Merge branch 'master' into packageConflictFix
RichardMcCarty1 May 16, 2021
b43aacd
Merge pull request #7 from RichardMcCarty1/packageConflictFix
RichardMcCarty1 May 16, 2021
d636ca8
Change localStorage stored user
RichardMcCarty1 May 17, 2021
abfae1c
Merge branch 'master' of github.com:RichardMcCarty1/CirdlesWebUI
RichardMcCarty1 May 17, 2021
42f3d5d
Change localStorage stored user
RichardMcCarty1 May 17, 2021
1d98e32
Change localStorage stored user
RichardMcCarty1 May 17, 2021
391c635
Updated Dropdown Hover and function-overrides for Open-Modal actions
RichardMcCarty1 May 20, 2021
9f5687e
Merge branch 'packageConflictFix'
RichardMcCarty1 May 20, 2021
a5ca06f
Merge branch 'master' of github.com:RichardMcCarty1/CirdlesWebUI into…
RichardMcCarty1 May 20, 2021
b12f4e2
Spot Management Page and Project Management Page
RichardMcCarty1 Jun 21, 2021
4938a15
Delete package-lock.json
RichardMcCarty1 Jun 25, 2021
84cfc06
Clarified Menu Actions with Cursor Change and Removing Menu On Click
RichardMcCarty1 Jun 26, 2021
e7b4efb
Merge branch 'packageConflictFix' of github.com:RichardMcCarty1/Cirdl…
RichardMcCarty1 Jun 26, 2021
ff4a005
Clarified Menu Actions with Cursor Change and Removing Menu On Click
RichardMcCarty1 Jun 26, 2021
0ab4dc4
Merge branch 'packageConflictFix' of https://github.com/RichardMcCart…
bowring Jun 29, 2021
b7f4eef
Added Model Lists and dynamically pull selected models from pmpull
RichardMcCarty1 Jun 30, 2021
a92f62b
Merge branch 'packageConflictFix' of https://github.com/RichardMcCart…
bowring Jun 30, 2021
f6af2d7
Added Project Management Setter Functions
RichardMcCarty1 Jul 8, 2021
2a35fae
Merge branch 'packageConflictFix' of https://github.com/RichardMcCart…
bowring Jul 8, 2021
936d0ed
Added timeout for project updates to prevent state mismatch
RichardMcCarty1 Jul 8, 2021
0796876
Merge branch 'packageConflictFix' of https://github.com/RichardMcCart…
bowring Jul 8, 2021
25450ae
Fixed Dropdown Z-index, Project File Route, and LinFit not sticking b…
RichardMcCarty1 Jul 9, 2021
f560fce
Changed Skeleton Route to Manageproject
RichardMcCarty1 Jul 9, 2021
712e9ac
Merge branch 'packageConflictFix' of https://github.com/RichardMcCart…
bowring Jul 9, 2021
5e4554b
Sticky navigation bars, Demonstration-click redirect to project page
RichardMcCarty1 Jul 11, 2021
8787458
Merge branch 'packageConflictFix' of https://github.com/RichardMcCart…
bowring Jul 12, 2021
8d4f004
Added check for manageproject route for demo file action
RichardMcCarty1 Jul 12, 2021
7551a7e
Merge branch 'packageConflictFix' of https://github.com/RichardMcCart…
bowring Jul 12, 2021
6a1ed88
Fixed Navbar covering filebrowser
RichardMcCarty1 Jul 12, 2021
69bd31a
Merge branch 'packageConflictFix' of https://github.com/RichardMcCart…
bowring Jul 12, 2021
699a279
UI Tweaks
RichardMcCarty1 Jul 16, 2021
d375adb
Merge branch 'packageConflictFix' of https://github.com/RichardMcCart…
bowring Jul 16, 2021
5ed205c
Added Filebrowser and Filebrowser toggle to manage project page
RichardMcCarty1 Jul 18, 2021
128acfe
Added loading screen and potential project file fix for project manag…
RichardMcCarty1 Jul 18, 2021
edf6758
Secondary File Open in PM appropriately updates page info
RichardMcCarty1 Jul 18, 2021
5739465
Merge branch 'packageConflictFix' of https://github.com/RichardMcCart…
bowring Jul 19, 2021
ba01e5d
Project Name Setter
RichardMcCarty1 Jul 19, 2021
42e7b8c
Merge branch 'packageConflictFix' of https://github.com/RichardMcCart…
bowring Jul 19, 2021
31bda71
Demo Project Path Fix
RichardMcCarty1 Jul 19, 2021
bd5912d
Merge branch 'packageConflictFix' of https://github.com/RichardMcCart…
bowring Jul 19, 2021
0d33649
Provided about page and various refactoring
bowring Jul 23, 2021
47baca9
Added Wrapping Component and Various Improvements
RichardMcCarty1 Jul 24, 2021
b1d83c5
Updated to resolve conflicts
bowring Jul 24, 2021
11ad26a
Scrolling and potential top-bar overlap fix
RichardMcCarty1 Jul 24, 2021
a9e8d68
Shift Refresh Models Button
RichardMcCarty1 Jul 24, 2021
8df0f39
Added regex for analyst/project names to filter unsupported characters
RichardMcCarty1 Jul 25, 2021
86f2aa7
Update no 2
bowring Jul 25, 2021
b45c2c5
Merge pull request #9 from bowring/aboutsi
RichardMcCarty1 Jul 26, 2021
c71012f
Reconfigured Wrapper to include componentDidMount and accompanying st…
RichardMcCarty1 Jul 29, 2021
8f215ae
Fixed accidental MARS removal
RichardMcCarty1 Jul 29, 2021
e0e6155
Update Save Function for File-Renaming in Servlet and Clean-up
RichardMcCarty1 Jul 31, 2021
fc6c995
Analyst Name Fix and Save Fix
RichardMcCarty1 Aug 3, 2021
3d25510
Spinner updates for % err
RichardMcCarty1 Aug 6, 2021
ef6f841
Catch API/Click Action errors from WrapperComponent messageFunction/(…
RichardMcCarty1 Aug 7, 2021
9302f45
Integrated SampleNameArray + SpotSummaryFromSamples into ManageSpots
RichardMcCarty1 Aug 12, 2021
6986116
Additional Project Spots Functionalities
RichardMcCarty1 Aug 12, 2021
20287f7
Fixed styling issues for various resolutions in Spots page
RichardMcCarty1 Aug 15, 2021
0540413
Additional Spot Management Functionalities
RichardMcCarty1 Aug 19, 2021
08d515e
Additional Spots Functionalities
RichardMcCarty1 Aug 23, 2021
1e9e3ef
RM Table's spot filter fix
RichardMcCarty1 Aug 24, 2021
0f3fa74
Spots Name Functionalities
RichardMcCarty1 Aug 27, 2021
6361276
Remove CORS Header for request
RichardMcCarty1 Aug 30, 2021
abbb252
Close Squid Project Functionality
RichardMcCarty1 Aug 31, 2021
95d4762
Various Spot Management Functionalities
RichardMcCarty1 Sep 8, 2021
8ff2349
Dropdown State Addition
RichardMcCarty1 Sep 20, 2021
e44d1c5
Mars Header Fix
RichardMcCarty1 Sep 22, 2021
337a609
Dropdown Fixes and ManageProject Refactoring
RichardMcCarty1 Oct 3, 2021
520e8cd
Final ManageProject Rework
RichardMcCarty1 Oct 4, 2021
670993f
ManageProject and ManageSpots rework
RichardMcCarty1 Oct 12, 2021
29b38a5
ManageProject Not Refreshing on Open File Fix
RichardMcCarty1 Oct 14, 2021
57015c7
Added Preflight Check for SaveAs Actions to Warn User Before Overwrit…
RichardMcCarty1 Oct 19, 2021
79d396b
Added Preflight Check for SaveAs to Warn User Before Overwriting, see…
RichardMcCarty1 Oct 19, 2021
374b413
Added Preflight Check for SaveAs to Warn User Before Overwriting, see…
RichardMcCarty1 Oct 19, 2021
fc1a05b
Added Preflight Check for SaveAs to Warn User Before Overwriting, see…
RichardMcCarty1 Oct 20, 2021
941292e
Made routes into constants
RichardMcCarty1 Oct 21, 2021
f4b87f2
Made routes into constants
RichardMcCarty1 Oct 21, 2021
2a846db
Makes Filebrowser Dragging More Consistent
RichardMcCarty1 Oct 22, 2021
793b20a
profilePath Null Fix and more Route->Constant changes
RichardMcCarty1 Oct 22, 2021
b205001
ManageSpots Rework for .xml/.zip files
RichardMcCarty1 Oct 22, 2021
9c9ed10
Various Fixes
RichardMcCarty1 Oct 24, 2021
0635dc0
File Save As Issues
RichardMcCarty1 Oct 25, 2021
c616d35
Added state constant for .xml/.zip files
RichardMcCarty1 Oct 25, 2021
ab4ac1b
Potential NaN CRM value fix
RichardMcCarty1 Nov 3, 2021
f8f6824
Remove RefMat Audit Warning for NONE models
RichardMcCarty1 Nov 3, 2021
0b57210
CRM NaN Values fix
RichardMcCarty1 Nov 3, 2021
adfdcd1
Added RefMatWarning for eventual Task page redirect
RichardMcCarty1 Nov 3, 2021
8067b4a
Fix NONE not anticipating <Built-in> flag
RichardMcCarty1 Nov 5, 2021
dcfbf1d
Filebrowser width persisted between sessions/refreshes
RichardMcCarty1 Nov 5, 2021
5e0ab5c
Add additional conditional for FB Close actions when not logged in
RichardMcCarty1 Nov 6, 2021
7296039
Fix logout not reloading
RichardMcCarty1 Nov 7, 2021
168416f
Dependency Updates and CurrentTask Skeleton
RichardMcCarty1 Nov 14, 2021
be55fed
Dependency Updates and CurrentTask Skeleton
RichardMcCarty1 Nov 14, 2021
a19e797
Completed Current Task Skeleton
RichardMcCarty1 Nov 15, 2021
ff6b457
Finalizing Currenttask Skeleton
RichardMcCarty1 Nov 17, 2021
e75f12d
Add in currenttask forwarding
RichardMcCarty1 Nov 17, 2021
172fcff
Current Task Default Strings
RichardMcCarty1 Nov 19, 2021
f1d5e20
Wrapping LocalStorage instances with try/catch
RichardMcCarty1 Nov 22, 2021
517062d
Default Current Task Functionalities, see InkWebServices
RichardMcCarty1 Nov 28, 2021
620609c
Font changes for Audit/Expressions
RichardMcCarty1 Dec 1, 2021
0e1a870
Bracket Fix and +/- for audit
RichardMcCarty1 Dec 4, 2021
33ac7ba
Built-in task library skeleton at /tasklibrary
RichardMcCarty1 Dec 26, 2021
ce1d71a
Full TaskLibrary rendering sans colors/customEXP
RichardMcCarty1 Dec 28, 2021
35a980a
Task list coloring, button and navigation
RichardMcCarty1 Jan 1, 2022
8bd62ca
Merge branch 'packageConflictFix'
RichardMcCarty1 Jan 8, 2022
5ec674e
Custom Expression Fix
RichardMcCarty1 Jan 13, 2022
9671441
Pulling upstream
RichardMcCarty1 Jan 13, 2022
2c84c3f
conflict fix
RichardMcCarty1 Jan 13, 2022
219477f
Merge pull request #11 from RichardMcCarty1/master
RichardMcCarty1 Jan 13, 2022
e05cbde
Fixed spacing issue for custom exp.
RichardMcCarty1 Jan 15, 2022
ce5100b
Merge branch 'CustomExpFix' of github.com:RichardMcCarty1/CirdlesWebU…
RichardMcCarty1 Jan 15, 2022
5bd2171
Init TaskLibrary to first entry onload
RichardMcCarty1 Jan 15, 2022
b7f3ea8
Changed constants to accomodate switch to cirdles server
RichardMcCarty1 Jan 27, 2022
f3c3bd8
Removing Console logging
RichardMcCarty1 Feb 5, 2022
bf0a6f0
Dropdown Positioning Fix
RichardMcCarty1 Feb 13, 2022
c1b6f28
CustomTaskLibrary Page and Functionalities
RichardMcCarty1 Feb 19, 2022
1be7e40
Merging masters
RichardMcCarty1 Feb 19, 2022
cff34bf
Merge Conflict fix
RichardMcCarty1 Feb 19, 2022
eb9f1de
Matching WebUI Repo to server status
RichardMcCarty1 Feb 25, 2022
b4451d6
Merge pull request #1 from CIRDLES/master
RichardMcCarty1 Feb 25, 2022
b02c506
Save Task as XML
RichardMcCarty1 Mar 18, 2022
e18ab26
Route change
RichardMcCarty1 Mar 18, 2022
97fb733
Reverting api file
RichardMcCarty1 Mar 18, 2022
5737704
Task Save as XML, UI Changes, Isotopes page
RichardMcCarty1 Jun 5, 2022
4530941
Fixing merge conflict
RichardMcCarty1 Jun 5, 2022
c120662
Include constants file
RichardMcCarty1 Jun 5, 2022
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
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{
"name": "cirdlesweb",
"version": "0.1.0",
Expand All @@ -20,7 +19,7 @@
"@babel/polyfill": "^7.12.1",
"@material-ui/core": "^4.11.4",
"@material-ui/icons": "^4.11.2",
"axios": "^0.24.0",
"axios": "^0.25.0",
"babel-core": "^6.26.3",
"bootstrap": "^4.5.0",
"classnames": "^2.2.6",
Expand Down Expand Up @@ -109,4 +108,3 @@
"worker-loader": "^2.0.0"
}
}

10 changes: 5 additions & 5 deletions src/constants/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const AMBAPO_ENDPOINT = BASE_URL + "/ambapo";
export const SQUID_ENDPOINT = BASE_URL + "/prawn";
export const TOPSOIL_ENDPOINT = BASE_URL + "/topsoil";
export const MARS_ENDPOINT = BASE_URL + "/mars";
export const SQUIDINK_ENDPOINT = "https://cirdles.cs.cofc.edu/sservlet";
export const SQUIDINK_ENDPOINT = "http://localhost:8080/squid_servlet-1.0.0";
export const PORTEDSQUID_ENDPOINT = BASE_URL + "/portedsquid";

// Sesar APIs
Expand All @@ -14,10 +14,10 @@ export const PORTEDSQUID_ENDPOINT = BASE_URL + "/portedsquid";
export const SESAR_BASE_URL = "https://app.geosamples.org";

export const SESAR_LOGIN =
SESAR_BASE_URL + "/webservices/credentials_service_v2.php";
SESAR_BASE_URL + "/webservices/credentials_service_v2.php";

export const SESAR_SAMPLE_PROFILE =
SESAR_BASE_URL + "/webservices/display.php?igsn=";
SESAR_BASE_URL + "/webservices/display.php?igsn=";
// added oct 2020 to show sample profile with bar code
export const SESAR_SAMPLE_DISPLAY = SESAR_BASE_URL + "/sample/igsn/";
export const SESAR_USER_SAMPLES = SESAR_BASE_URL + "/samples/user_code/";
Expand All @@ -28,6 +28,6 @@ export const POST_HEADERS = {
};

// Filebrowser
export const FILEBROWSER_URL = "https://cirdles.cs.cofc.edu/filebrowser"
export const FILEBROWSER_URL = "http://localhost:8081"

export const SQUIDINK_ENABLED = false;
export const SQUIDINK_ENABLED = false;
2 changes: 1 addition & 1 deletion src/scenes/Squidink/components/ContextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class DropdownCustom extends React.Component {
<>
{
this.props.menuActive ?
<ul className="menu" style={{top: this.props.yPos, left: this.props.xPos, position: "absolute"}}>
<ul className="menu" style={{top: this.props.yPos, left: this.props.xPos, position: "absolute", zIndex: 100}}>
{
this.state.outputMap.map((content) => {
return content
Expand Down
60 changes: 56 additions & 4 deletions src/scenes/Squidink/components/CurrentTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import ButtonGroup from "@material-ui/core/ButtonGroup";
import Select from "@material-ui/core/Select";
import MenuItem from "@material-ui/core/MenuItem";
import {requestSender} from "../util/constants";
import {FILEBROWSER_URL} from "constants/api";
import Modal from "@material-ui/core/Modal";

let cx = classNames.bind(style);

Expand All @@ -41,12 +43,17 @@ export class CurrentTask extends React.Component {
Uncor206Styling: true,
Uncor208Styling: true,
THUStyling: true,
ParEleStyling: true
ParEleStyling: true,
modal: false,
routeVal: "",

};
//If a component requires 'this.' context, it's easiest to bind it, i.e.
this.pullStrings = this.pullStrings.bind(this)
this.componentDidMount = this.componentDidMount.bind(this)
this.saveCurrentXML = this.saveCurrentXML.bind(this)
this.modal = this.modal.bind(this)
this.closeBrowseAction = this.closeBrowseAction.bind(this)

}
componentDidMount() {
Expand Down Expand Up @@ -78,6 +85,23 @@ export class CurrentTask extends React.Component {
})
})
}
saveCurrentXML(fileRoute) {

//Pulls Filebrowser route from WrapperComponent, trims off everything from /files/ and before to get the raw path
let presentRoute = localStorage.getItem("fborigin")
//If present route has a legitimate value, concat with filename, otherwise just leave filename raw
let finalRoute = presentRoute ? presentRoute + this.state.routeVal + ".xml" : this.state.routeVal + ".xml"
requestSender('/savexml', localStorage.getItem('user') + ":" + finalRoute + ":current").then(() => {
this.closeBrowseAction();
})

}
async modal() {
this.setState({modal: true})
}
async closeBrowseAction() {
this.setState({modal: false})
}
flipPrimary = () => {
if(this.state.primaryRadio == "238") {
this.setState({primaryRadio: "232"}, this.saveStrings)
Expand Down Expand Up @@ -121,16 +145,44 @@ export class CurrentTask extends React.Component {
//All functions are self-contained to the wrapper with the exception of the history.push to reroute the user, which requires a reference to the React-Router
//Because WrapperComponent is not instantiated from the router but from its child, we have to pass in the history as a prop
<WrapperComponent stateNum={1}history={this.props.history}>
<Modal open={this.state.modal} onClose={this.modal}>{
<div style={{position: 'absolute', width: '600px', height: "70%", top: '50%', left: '50%', transform: 'translate(-50%, -50%)', border: '2px solid #000', backgroundColor: 'white', padding: '4px'}} className={'paper'}>
<div style={{height: "90%", width: "100%"}}>
<div>
<iframe id='iframeee'
style={{
display: 'flex',
flexGrow: '1',
overflow: 'auto',
height: '100%',
width: `100%`
}}
src={FILEBROWSER_URL}></iframe>
</div>
<div style={{paddingRight: "10px", display: "inline"}}>
<TextField value={this.state.routeVal} onChange={(e) => {
if (!e.target.value.includes('.')) {
this.setState({
routeVal: e.target.value
})
}
}}label="File Name Here:" />
<Button style={{marginTop: "10px"}}variant="contained" color="primary" onClick={this.saveCurrentXML}>Save</Button>
</div>
<Button style={{marginTop: "10px"}} variant="contained" color="primary"
onClick={()=>this.setState({modal: false})}>Cancel</Button>
</div>
</div>}</Modal>
<div className={cx('grid-container-custom-t')}>
<div className={cx('task-name-label')}>
<h3>Task Name:</h3>
</div>
<div className={cx('task-name-text')}>
<TextField defaultValue={this.state.taskName}
label="Task name"style={{width: '80%'}} onChange={(e) => {
label="Task name"style={{width: '70%'}} onChange={(e) => {
this.setState({taskName: e.target.value}, this.saveStrings)
}}/>
<h5 className={cx('geochron-label')} style={{display: "inline", paddingTop: "10px", paddingLeft: "30px"}}>Geochron Mode</h5>
<h5 className={cx('geochron-label')} style={{display: "inline", paddingTop: "10px", paddingLeft: "30px", fontSize: "2.5vmin"}}>Geochron Mode</h5>
</div>
<div className={cx('description-label')}>
<h3>Description:</h3>
Expand Down Expand Up @@ -266,7 +318,7 @@ export class CurrentTask extends React.Component {
</Button>
</div>
<Button variant="contained" color={"primary"} style={{display: "inline"}}
onClick={() => {console.log("")}}>
onClick={this.modal}>
Save Current Task as a Squid Task '.xml' file
</Button>
</div>
Expand Down
57 changes: 54 additions & 3 deletions src/scenes/Squidink/components/CustomLibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import FormControlLabel from "@material-ui/core/FormControlLabel";
import Radio from "@material-ui/core/Radio";
import Button from "@material-ui/core/Button";

import Modal from "@material-ui/core/Modal";
import {FILEBROWSER_URL} from "constants/api";


let cx = classNames.bind(style);

export class CustomLibrary extends React.Component {
Expand Down Expand Up @@ -43,12 +47,15 @@ export class CustomLibrary extends React.Component {
mass: [],
ratios: [],
selected: false,

modal: false,
routeVal: "",
};
//If a component requires 'this.' context, it's easiest to bind it, i.e.
this.pullTaskList = this.pullTaskList.bind(this)
this.componentDidMount = this.componentDidMount.bind(this)

this.saveCurrentXML = this.saveCurrentXML.bind(this)
this.modal = this.modal.bind(this)
this.closeBrowseAction = this.closeBrowseAction.bind(this)
}
componentDidMount() {
this.pullTaskList()
Expand All @@ -59,6 +66,16 @@ export class CustomLibrary extends React.Component {
this.setState({mount: true, taskList: body}, () => {this.taskListSelect(null, this.state.taskList[0].trimStart().trim())})
})
}
saveCurrentXML(fileRoute) {

//Pulls Filebrowser route from WrapperComponent, trims off everything from /files/ and before to get the raw path
let presentRoute = localStorage.getItem("fborigin")
//If present route has a legitimate value, concat with filename, otherwise just leave filename raw
let finalRoute = presentRoute ? presentRoute + this.state.routeVal + ".xml" : this.state.routeVal + ".xml"
requestSender('/savexml', localStorage.getItem('user') + ":" + finalRoute).then(() => {
this.closeBrowseAction();
})
}

saveStrings = () => {
let bodyData = localStorage.getItem("user") + "!@#" + this.state.taskName + "!@#" + this.state.taskDesc + "!@#" + this.state.taskAuthor + "!@#" +
Expand All @@ -77,6 +94,12 @@ export class CustomLibrary extends React.Component {
document.getElementsByClassName("thor-ur-box")[0].style.backgroundColor = (this.state.THUStyling ? "#00FF0033" : "#ff00004d")
document.getElementsByClassName("p-ele-const-box")[0].style.backgroundColor = (this.state.ParEleStyling ? "#00FF0033" : "#ff00004d")
}
async modal() {
this.setState({modal: true})
}
async closeBrowseAction() {
this.setState({modal: false})
}

taskListSelect = (e, initialCall) => {
if(this.state.selectedTask) {
Expand Down Expand Up @@ -272,7 +295,34 @@ export class CustomLibrary extends React.Component {
//All functions are self-contained to the wrapper with the exception of the history.push to reroute the user, which requires a reference to the React-Router
//Because WrapperComponent is not instantiated from the router but from its child, we have to pass in the history as a prop
<WrapperComponent stateNum={1}history={this.props.history}>

<Modal open={this.state.modal} onClose={this.modal}>{
<div style={{position: 'absolute', width: '600px', height: "70%", top: '50%', left: '50%', transform: 'translate(-50%, -50%)', border: '2px solid #000', backgroundColor: 'white', padding: '4px'}} className={'paper'}>
<div style={{height: "90%", width: "100%"}}>
<div>
<iframe id='iframeee'
style={{
display: 'flex',
flexGrow: '1',
overflow: 'auto',
height: '100%',
width: `100%`
}}
src={FILEBROWSER_URL}></iframe>
</div>
<div style={{paddingRight: "10px", display: "inline"}}>
<TextField value={this.state.routeVal} onChange={(e) => {
if (!e.target.value.includes('.')) {
this.setState({
routeVal: e.target.value
})
}
}}label="File Name Here:" />
<Button style={{marginTop: "10px"}}variant="contained" color="primary" onClick={this.saveCurrentXML}>Save</Button>
</div>
<Button style={{marginTop: "10px"}} variant="contained" color="primary"
onClick={()=>this.setState({modal: false})}>Cancel</Button>
</div>
</div>}</Modal>
<div className={cx('grid-container-custom-tl')}>
<div className={cx('task-list')}>
{this.state.taskList.map((entry) => {
Expand Down Expand Up @@ -457,6 +507,7 @@ export class CustomLibrary extends React.Component {
</div>

<Button variant="contained" color={"primary"} style={{display: "inline"}}
onClick={this.modal}>
onClick={() => {
console.log("")
}}>
Expand Down
Loading