Skip to content
Snippets Groups Projects
Unverified Commit b9db1ce8 authored by Pawan Rawal's avatar Pawan Rawal
Browse files

UI: Store previous queries, add fullscreen mode and more consistent expand, collapse of nodes.

parent fd6db92e
No related branches found
No related tags found
No related merge requests found
Showing
with 1672 additions and 144 deletions
/build /build
/installs /installs
/coverage.out /coverage.out
dashboard/node_modules
dashboard/npm-debug.log
...@@ -72,7 +72,7 @@ var ( ...@@ -72,7 +72,7 @@ var (
cpuprofile = flag.String("cpu", "", "write cpu profile to file") cpuprofile = flag.String("cpu", "", "write cpu profile to file")
memprofile = flag.String("mem", "", "write memory profile to file") memprofile = flag.String("mem", "", "write memory profile to file")
dumpSubgraph = flag.String("dumpsg", "", "Directory to save subgraph for testing, debugging") dumpSubgraph = flag.String("dumpsg", "", "Directory to save subgraph for testing, debugging")
uiDir = flag.String("ui", os.Getenv("GOPATH")+"/src/github.com/dgraph-io/dgraph/dashboard/dist", "Directory which contains assets for the user interface") uiDir = flag.String("ui", os.Getenv("GOPATH")+"/src/github.com/dgraph-io/dgraph/dashboard/build", "Directory which contains assets for the user interface")
finishCh = make(chan struct{}) // channel to wait for all pending reqs to finish. finishCh = make(chan struct{}) // channel to wait for all pending reqs to finish.
shutdownCh = make(chan struct{}) // channel to signal shutdown. shutdownCh = make(chan struct{}) // channel to signal shutdown.
pendingQueries = make(chan struct{}, 10000*runtime.NumCPU()) pendingQueries = make(chan struct{}, 10000*runtime.NumCPU())
......
{
"presets": [
"react"
]
}
# See http://help.github.com/ignore-files/ for more about ignoring files.
# dependencies
/node_modules
# testing
/coverage
# production
/build
# misc
.DS_Store
.env
npm-debug.log*
yarn-debug.log*
yarn-error.log*
This diff is collapsed.
.hourglass {
background: url(../images/hourglass.svg) no-repeat center center;
width: 32px;
height: 32px;
}
.error-res {
padding-left: 10px;
padding-top: 20px;
color: red;
}
.success-res {
padding-left: 10px;
padding-top: 20px;
color: green;
}
var React = require('react');
var Main = React.createClass({
render: function() {
return (
<div className='main-container'>
{this.props.children}
</div>
)
}
});
module.exports = Main;
var React = require('react');
var stats = require('../styles').statistics;
var Stats = React.createClass({
render: function() {
return (
<div style={stats} className={this.props.class}>
<span>{this.props.latency != '' && this.props.rendering != '' ? '* Server Latency - ' + this.props.latency + ', Rendering - ' + this.props.rendering : ''}</span>
</div>
)
}
});
module.exports = Stats;
var React = require('react')
var ReactRouter = require('react-router');
var Router = ReactRouter.Router;
var Route = ReactRouter.Route;
var hashHistory = ReactRouter.hashHistory;
var IndexRoute = ReactRouter.IndexRoute;
var Main = require('../components/Main')
var Home = require('../components/Home')
var routes = (
<Router history={hashHistory}>
<Route path='/' component={Main}>
<IndexRoute component={Home}/>
</Route>
</Router>
);
module.exports = routes;
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dgraph UI</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/custom.css">
</head>
<body>
<div id="app"></div>
<div id="example"></div>
</body>
</html>
var React = require('react');
var ReactDOM = require('react-dom');
var routes = require('./config/routes')
ReactDOM.render(routes,
document.getElementById('app')
)
var styles = {
editor: {
marginBottom: '10px',
border: '1px solid gray'
},
graph: {
fontSize: '12px',
wordBreak: 'break-all',
marginTop: '14px',
marginBottom: '10px',
width: '100%',
height: '500px',
border: '1px solid gray',
position: 'relative'
},
statistics: {
display: 'inline-block',
padding: '5px',
marginTop: '10px',
marginBottom: '100px',
},
properties: {
display: 'flex',
justifyContent: 'center',
alignContent: 'center',
flexDirection: 'column',
marginTop: '10px',
marginBottom: '10px',
height: 'auto',
border: '1px solid gray',
padding: '5px',
overflow: 'hidden'
},
fullscreen: {
position: 'absolute',
top: '10px',
right: '10px'
}
}
module.exports = styles;
{
"main.css": "static/css/main.e659d6fd.css",
"main.css.map": "static/css/main.e659d6fd.css.map",
"main.js": "static/js/main.b1db2a6e.js",
"main.js.map": "static/js/main.b1db2a6e.js.map",
"static/media/glyphicons-halflings-regular.eot": "static/media/glyphicons-halflings-regular.f4769f9b.eot",
"static/media/glyphicons-halflings-regular.svg": "static/media/glyphicons-halflings-regular.89889688.svg",
"static/media/glyphicons-halflings-regular.ttf": "static/media/glyphicons-halflings-regular.e18bbf61.ttf",
"static/media/glyphicons-halflings-regular.woff": "static/media/glyphicons-halflings-regular.fa277232.woff",
"static/media/glyphicons-halflings-regular.woff2": "static/media/glyphicons-halflings-regular.448c34a5.woff2",
"static/media/hourglass.svg": "static/media/hourglass.4cb9d9d2.svg",
"static/media/logo.svg": "static/media/logo.d93b077d.svg"
}
\ No newline at end of file
dashboard/build/favicon.ico

14.7 KiB

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="shortcut icon" href="/favicon.ico"><title>Dgraph UI</title><link href="/static/css/main.e659d6fd.css" rel="stylesheet"></head><body><div id="root"></div><script type="text/javascript" src="/static/js/main.b1db2a6e.js"></script></body></html>
\ No newline at end of file
File added
This diff is collapsed.
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment