-
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.
Merge remote-tracking branch 'origin/development'
- Loading branch information
Showing
3 changed files
with
87 additions
and
7 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 @@ | ||
Disclaimer: The public server https://pamled.sift.net is currently intended to serve as an evaluation version of PAMLED, and users should assume that user data will NOT be preserved in perpetuity (yet, protocols can be downloaded). PAMLED manages account credentials through Django (using PBKDF2 encryption) and stores protocol-related data in clear text within a publicly-inaccessible database. The web application also uses cookies to record session ids. |
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,56 @@ | ||
import React, { Component } from 'react'; | ||
import { Modal, Button, Alert, Spinner, Row, Col } from 'react-bootstrap'; | ||
import ReactMarkdown from 'react-markdown'; | ||
import remarkGfm from 'remark-gfm'; | ||
import marked from "marked"; | ||
|
||
|
||
export default class DisclaimerModal extends Component { | ||
|
||
state = {}; | ||
|
||
componentDidMount() { | ||
const readmePath = require("../DISCLAIMER.md"); | ||
|
||
fetch(readmePath) | ||
.then(response => { | ||
return response.text() | ||
}) | ||
.then(text => { | ||
this.setState({ | ||
markdown: text | ||
}) | ||
}) | ||
} | ||
|
||
|
||
render() { | ||
|
||
const { markdown } = this.state; | ||
return ( | ||
|
||
<Modal | ||
show={this.props.show} | ||
size="lg" | ||
aria-labelledby="contained-modal-title-vcenter" | ||
centered | ||
> | ||
<Modal.Header> | ||
{/* <Modal.Title id="contained-modal-title-vcenter"> | ||
PAMLED User Guide | ||
</Modal.Title> */} | ||
</Modal.Header> | ||
<Modal.Body> | ||
<ReactMarkdown children={markdown} /> | ||
|
||
</Modal.Body> | ||
<Modal.Footer> | ||
<Button className="user-guide" variant="primary" onClick={() => this.props.handleDone()}> | ||
Done | ||
</Button> | ||
</Modal.Footer> | ||
</Modal> | ||
); | ||
} | ||
} | ||
|
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