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
import Perf from 'react-addons-perf' | |
window.Perf = Perf |
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
import React from "react"; | |
import {parseUri} from "../../../utils"; | |
export default class AutocompleteItem extends React.Component { | |
shouldComponentUpdate(nextProps, nextState) { | |
if( | |
nextProps.url !== this.props.url || | |
nextProps.selected !== this.props.selected | |
){ |
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
import React from "react"; | |
import {parseUri} from "../../../utils"; | |
const AutocompleteItem = (props) => { | |
const {props} = this; | |
const selectedClass = props.selected === true ? "selected" : ""; | |
var path = parseUri(props.url).path; | |
path = path.length <= 0 ? props.url : "..." + path; | |
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
import React from "react"; | |
export default class Tooltip extends React.Component { | |
state = { | |
visible: false, | |
imageStatus: null | |
} | |
handleImageLoaded = () => { |
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
import {createReducer} from '../utils'; | |
import {LOGIN_USER_REQUEST, LOGIN_USER_SUCCESS, LOGIN_USER_FAILURE, LOGOUT_USER} from '../constants'; | |
import {pushState} from 'redux-router'; | |
import jwtDecode from 'jwt-decode'; | |
const initialState = { | |
token: null, | |
userName: null, | |
isAuthenticated: false, | |
isAuthenticating: false, |
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
import { checkHttpStatus, parseJSON } from '../utils'; | |
import {LOGIN_USER_REQUEST, LOGIN_USER_FAILURE, LOGIN_USER_SUCCESS, LOGOUT_USER, FETCH_PROTECTED_DATA_REQUEST, RECEIVE_PROTECTED_DATA} from '../constants'; | |
import { pushState } from 'redux-router'; | |
import jwtDecode from 'jwt-decode'; | |
export function loginUserSuccess(token) { | |
localStorage.setItem('token', token); | |
return { | |
type: LOGIN_USER_SUCCESS, | |
payload: { |
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
import React from "react"; | |
import {connect} from "react-redux"; | |
import {bindActionCreators} from "redux"; | |
import { push, replace } from "react-router-redux"; | |
class AuthContainer extends React.Component { | |
componentWillReceiveProps(nextProps) { | |
this.isAuthenticated(); | |
} |
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
import React from "react"; | |
import * as d3 from "d3"; | |
import Tooltip from "./Tooltip" | |
import Icon from "./Icon" | |
import Spinner from "./Spinner2" | |
import Network from "./galaxy/Network" | |
var simulation; | |
var svg; | |
export default class Galaxy extends React.Component { |
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
import React from "react"; | |
import * as d3 from "d3"; | |
var simulation; | |
var svg; | |
export default class Network extends React.Component { | |
shouldComponentUpdate(nextProps, nextState) { | |
return false; | |
} |
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
import React from "react"; | |
import * as d3 from "d3"; | |
import Tooltip from "./Tooltip" | |
import Icon from "./Icon" | |
import Spinner from "./Spinner2" | |
import Network from "./galaxy/Network" | |
var simulation; | |
export default class Galaxy extends React.Component { |