1
0
Fork 0

Add dashboard app skeleton

This commit is contained in:
Gregory Eremin 2015-10-28 22:42:01 +03:00
parent 663eca857f
commit 123d3b0bdb
4 changed files with 73 additions and 0 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
tmp
dashboard/node_modules
dashboard/jsx/build

43
dashboard/css/app.css Normal file
View File

@ -0,0 +1,43 @@
body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 13px;
}
#app {
width: 1000px;
margin: 0 auto;
/*background-color: #eee;*/
}
.daemon {
margin-top: 40px;
}
.daemon h1 {
padding: 0;
margin: 0;
font-weight: 400;
}
.daemon .stats {
width: 305px;
height: 60px;
}
.daemon dt, .daemon dd {
margin: 0;
float: left;
line-height: 20px;
}
.daemon dt {
width: 75px;
color: #aaa;
}
.daemon dt.narrow {
width: 50px;
}
.daemon dd {
width: 80px;
margin-right: 10px;
font-family: monospace;
text-align: right;
}

16
dashboard/index.html Normal file
View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<title>Daemons</title>
<link rel="stylesheet" type="text/css" href="node_modules/normalize.css/normalize.css">
<link rel="stylesheet" type="text/css" href="css/app.css">
</head>
<body>
<div id="app"></div>
<script type="text/javascript" src="node_modules/react/dist/react.js"></script>
<script type="text/javascript" src="node_modules/react-dom/dist/react-dom.js"></script>
<script type="text/javascript" src="js/http.js"></script>
<script type="text/javascript" src="js/format.js"></script>
<script type="text/javascript" src="jsx/build/app.js"></script>
</body>
</html>

12
dashboard/package.json Normal file
View File

@ -0,0 +1,12 @@
{
"name": "satan",
"private": true,
"dependencies": {
"react": "0.14.0",
"react-dom": "0.14.0",
"react-tools": "0.13.3",
"normalize.css": "3.0.3",
"uglify-js": "2.5.0",
"clean-css": "3.4.6"
}
}