-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06db702
commit c462f66
Showing
37 changed files
with
1,545 additions
and
163 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% extends "dtale/base.html" %} | ||
|
||
{% set network = True %} | ||
{% block full_content %} | ||
<div class="container-fluid network"> | ||
<div id="content"> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block js %} | ||
<script type="text/javascript" src="{{ url_for('static', filename='dist/network_bundle.js') }}"></script> | ||
{% endblock %} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import _ from "lodash"; | ||
import PropTypes from "prop-types"; | ||
import React from "react"; | ||
|
||
require("./Collapsible.scss"); | ||
|
||
class Collapsible extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
this.state = { isOpen: false }; | ||
} | ||
|
||
render() { | ||
const { title, content } = this.props; | ||
if (!content) { | ||
return null; | ||
} | ||
const { isOpen } = this.state; | ||
const onClick = () => this.setState({ isOpen: !this.state.isOpen }, this.props.onExpand ?? _.noop); | ||
return ( | ||
<dl className="accordion pt-3"> | ||
<dt className={`accordion-title${isOpen ? " is-expanded" : ""} pointer pl-3`} onClick={onClick}> | ||
{title} | ||
</dt> | ||
<dd className={`accordion-content${isOpen ? " is-expanded" : ""}`} onClick={onClick}> | ||
{content} | ||
</dd> | ||
</dl> | ||
); | ||
} | ||
} | ||
Collapsible.displayName = "Collapsible"; | ||
Collapsible.propTypes = { | ||
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]), | ||
content: PropTypes.node, | ||
onExpand: PropTypes.func, | ||
}; | ||
|
||
export default Collapsible; |
File renamed without changes.
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
Oops, something went wrong.