Fix resolves

master
Rohan Vazarkar 2016-07-26 20:34:53 -04:00
parent d693573a6b
commit 501f43979e
9 changed files with 150 additions and 141 deletions

View File

@ -1,5 +1,5 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import { collapseEdgeNodes, setNodeData, collapseSiblingNodes } from '../js/utils.js'; import { collapseEdgeNodes, setNodeData, collapseSiblingNodes } from 'utils';
export default class GraphContainer extends Component { export default class GraphContainer extends Component {
constructor(props){ constructor(props){
@ -133,6 +133,10 @@ export default class GraphContainer extends Component {
barnesHutOptimize: true barnesHutOptimize: true
}); });
fa.bind('stop', function(event) {
sigmaInstance.startNoverlap();
})
var lowgfx = appStore.performance.lowGraphics var lowgfx = appStore.performance.lowGraphics
design = sigma.plugins.design(sigmaInstance); design = sigma.plugins.design(sigmaInstance);

View File

@ -1,7 +1,7 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import GlyphiconSpan from '../glyphiconspan' import GlyphiconSpan from '../glyphiconspan'
import Icon from '../icon' import Icon from '../icon'
import { escapeRegExp } from '../../js/utils.js'; import { escapeRegExp } from 'utils';
import TabContainer from './tabcontainer' import TabContainer from './tabcontainer'
export default class SearchContainer extends Component { export default class SearchContainer extends Component {

View File

@ -1,8 +1,8 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import DatabaseDataDisplay from './databasedatadisplay' import DatabaseDataDisplay from './Tabs/databasedatadisplay'
import PrebuiltQueriesDisplay from './prebuiltqueriesdisplay' import PrebuiltQueriesDisplay from './Tabs/prebuiltqueriesdisplay'
import NoNodeData from './nonodedata' import NoNodeData from './Tabs/nonodedata'
import UserNodeData from './usernodedata' import UserNodeData from './Tabs/usernodedata'
import { Tabs, Tab } from 'react-bootstrap'; import { Tabs, Tab } from 'react-bootstrap';
export default class TabContainer extends Component { export default class TabContainer extends Component {

View File

@ -1,6 +1,6 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import { defaultAjaxSettings } from '../../js/utils.js'; import { defaultAjaxSettings } from 'utils';
import LogoutModal from '../Modals/logoutmodal'; import LogoutModal from 'modals/logoutmodal';
export default class DatabaseDataDisplay extends Component { export default class DatabaseDataDisplay extends Component {
constructor(){ constructor(){

View File

@ -1,6 +1,6 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import NodeALink from './nodealink' import NodeALink from './nodealink'
import { fullAjax } from '../../js/utils.js' import { fullAjax } from 'utils'
export default class UserNodeData extends Component { export default class UserNodeData extends Component {
propTypes: { propTypes: {

View File

@ -1,5 +1,6 @@
var webpack = require('webpack'); var webpack = require('webpack');
var webpackTargetElectronRenderer = require('webpack-target-electron-renderer'); var webpackTargetElectronRenderer = require('webpack-target-electron-renderer');
var path = require('path')
var config = { var config = {
entry: [ entry: [
@ -20,6 +21,10 @@ var config = {
}, },
resolve: { resolve: {
extensions: ['', '.js', '.jsx'], extensions: ['', '.js', '.jsx'],
alias: {
utils: path.resolve(__dirname, 'src', 'js', 'utils.js'),
modals: path.resolve(__dirname, 'src', 'components', 'Modals')
}
}, },
plugins: [ plugins: [
new webpack.HotModuleReplacementPlugin(), new webpack.HotModuleReplacementPlugin(),