-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #320 from salimkanoun/dev
Dev
- Loading branch information
Showing
38 changed files
with
664 additions
and
322 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
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
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
2 changes: 1 addition & 1 deletion
2
FrontEnd/src/components/Admin/AetForm.js → FrontEnd/src/components/Admin/AET/AetForm.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
2 changes: 1 addition & 1 deletion
2
...tEnd/src/components/Admin/AetRootPanel.js → .../src/components/Admin/AET/AetRootPanel.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
2 changes: 1 addition & 1 deletion
2
...End/src/components/Admin/AetsListTable.js → ...src/components/Admin/AET/AetsListTable.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import React, { Component } from 'react' | ||
import Modal from "react-bootstrap/Modal"; | ||
import BootstrapTable from "react-bootstrap-table-next"; | ||
|
||
class ModalDetails extends Component { | ||
|
||
columnDetails = [ | ||
{ | ||
dataField: 'ID', | ||
hidden: true | ||
}, { | ||
dataField: 'ErrorCode', | ||
text: 'Error Code' | ||
}, | ||
{ | ||
dataField: 'ErrorDescription', | ||
text: 'Error Description' | ||
}, { | ||
dataField: 'Priority', | ||
text: 'Priority' | ||
}, { | ||
dataField: 'Type', | ||
text: 'Type' | ||
}, { | ||
dataField: 'EffectiveRuntime', | ||
text: 'Effective Runtime' | ||
}, { | ||
dataField: 'Content', | ||
text: 'Details', | ||
formatter: (cell, row, index) => { | ||
return ( | ||
<pre> | ||
{JSON.stringify(row.Content , null, 2)} | ||
</pre> | ||
) | ||
} | ||
} | ||
] | ||
|
||
render() { | ||
return ( | ||
<Modal show={this.props.show} onHide={this.props.onHide} size='xl'> | ||
<Modal.Header closeButton> | ||
<Modal.Title>Job Details</Modal.Title> | ||
</Modal.Header> | ||
<Modal.Body> | ||
<BootstrapTable | ||
keyField='ID' | ||
data={this.props.data} | ||
columns={this.columnDetails} | ||
striped={true} | ||
wrapperClasses="table-responsive" | ||
/> | ||
</Modal.Body> | ||
<Modal.Footer> | ||
<button type='button' | ||
className='btn btn-primary' | ||
onClick={this.props.onHide}> | ||
Close | ||
</button> | ||
</Modal.Footer> | ||
</Modal> | ||
); | ||
} | ||
} | ||
|
||
export default ModalDetails; |
34 changes: 34 additions & 0 deletions
34
FrontEnd/src/components/Admin/OrthancSettings/ModalRestart.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React, { Component } from 'react' | ||
import Modal from 'react-bootstrap/Modal' | ||
|
||
import apis from '../../../services/apis' | ||
|
||
class ModalRestart extends Component { | ||
|
||
constructor(props){ | ||
super(props) | ||
this.reset = this.reset.bind(this) | ||
} | ||
|
||
reset(){ | ||
apis.options.resetOrthanc() | ||
this.props.onHide() | ||
} | ||
|
||
render() { | ||
return ( | ||
<Modal show={this.props.show} onHide={this.props.onHide}> | ||
<Modal.Header closeButton> | ||
<Modal.Title>Confirm restart</Modal.Title> | ||
</Modal.Header> | ||
<Modal.Body>Are you sure to restart Orthanc system ?</Modal.Body> | ||
<Modal.Footer> | ||
<input type='button' className='btn btn-secondary' onClick={this.props.onHide} value="Close" /> | ||
<input type='button' className='btn btn-warning' onClick={this.reset} value="Restart" /> | ||
</Modal.Footer> | ||
</Modal> | ||
); | ||
} | ||
} | ||
|
||
export default ModalRestart; |
34 changes: 34 additions & 0 deletions
34
FrontEnd/src/components/Admin/OrthancSettings/ModalShutdown.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React, { Component } from 'react' | ||
import Modal from 'react-bootstrap/Modal' | ||
|
||
import apis from '../../../services/apis' | ||
|
||
class ModalShutdown extends Component { | ||
|
||
constructor(props) { | ||
super(props) | ||
this.shutdown = this.shutdown.bind(this) | ||
} | ||
|
||
shutdown(){ | ||
apis.options.shutdownOrthanc() | ||
this.props.onHide() | ||
} | ||
|
||
render() { | ||
return ( | ||
<Modal show={this.props.show} onHide={this.props.onHide}> | ||
<Modal.Header closeButton> | ||
<Modal.Title>Confirm Shutdown</Modal.Title> | ||
</Modal.Header> | ||
<Modal.Body>Are you sure to shutdown Orthanc system ?</Modal.Body> | ||
<Modal.Footer> | ||
<input type='button' className='btn btn-secondary' onClick={this.props.onHide} value="Close" /> | ||
<input type='button' className='btn btn-danger' onClick={this.shutdown} value="Shutdown" /> | ||
</Modal.Footer> | ||
</Modal> | ||
); | ||
} | ||
} | ||
|
||
export default ModalShutdown; |
Oops, something went wrong.