Added files to frontend

feature/node-rewrite
Sven Slootweg 13 years ago
parent 433c02c609
commit a7408bd659

@ -0,0 +1,262 @@
html, body
{
font-family: 'Open Sans', sans-serif;
background-color: #E4EAEA;
}
h1, h2, h3, h4, h5
{
margin: 0px;
color: #343352;
}
h1
{
margin-bottom: 7px;
}
h2
{
margin-bottom: 9px;
}
h3
{
font-size: 20px;
}
p
{
margin: 5px 0px;
}
table
{
}
th
{
text-align: left;
}
table.vpsinfo td
{
padding: 2px 13px;
}
.clear
{
clear: both;
}
.wrapper
{
width: 900px;
margin: 0px auto;
}
.header
{
font-size: 40px;
font-weight: bold;
}
.main
{
position: relative;
background-color: #F1F1F1;
padding: 9px 13px;
border: 2px solid #817F9D;
padding-left: 225px;
min-height: 400px;
}
.sidebar
{
position: absolute;
top: 16px;
left: 8px;
width: 200px;
background-color: #DCDCDC;
}
.sidebar a.button
{
display: block;
padding: 5px 8px;
text-decoration: none;
color: #343352;
font-size: 18px;
font-weight: bold;
padding-left: 30px;
background-repeat: no-repeat;
background-position: 8px 10px;
}
.sidebar a.button:hover
{
background-color: #CDCCDE;
}
#button_overview
{
background-image: url(../images/icon_overview.png);
}
#button_statistics
{
background-image: url(../images/icon_statistics.png);
}
#button_webshell
{
background-image: url(../images/icon_webshell.png);
}
#button_ip
{
background-image: url(../images/icon_ip.png);
}
#button_reinstall
{
background-image: url(../images/icon_reinstall.png);
}
#button_backup
{
background-image: url(../images/icon_backup.png);
}
#button_api
{
background-image: url(../images/icon_api.png);
}
#button_alerts
{
background-image: url(../images/icon_alerts.png);
}
.quota-item
{
float: left;
width: 203px;
margin-right: 23px;
margin-bottom: 10px;
}
.quota-bar
{
position: relative;
border: 1px solid #343352;
width: 100%;
height: 18px;
}
.quota-bar-inner
{
background-color: #12005E;
height: 100%;
}
.quota-bar-label
{
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
font-size: 13px;
font-weight: bold;
color: white;
padding-left: 5px;
text-shadow: 0px 0px 3px #000673, 0px 0px 1px #000000, 0px 0px 3px #000000, 0px 0px 2px #000673;
-webkit-text-shadow: 0px 0px 3px #000673, 0px 0px 1px #000000, 0px 0px 3px #000000, 0px 0px 2px #000673;
-moz-text-shadow: 0px 0px 3px #000673, 0px 0px 1px #000000, 0px 0px 3px #000000, 0px 0px 2px #000673;
-o-text-shadow: 0px 0px 3px #000673, 0px 0px 1px #000000, 0px 0px 3px #000000, 0px 0px 2px #000673;
-ms-text-shadow: 0px 0px 3px #000673, 0px 0px 1px #000000, 0px 0px 3px #000000, 0px 0px 2px #000673;
}
.quota-item.wide
{
width: 316px;
}
.quota-item.last
{
margin-right: 0px;
}
.quota
{
margin-bottom: 19px;
}
.infobox
{
border: 1px solid #B0B0B0;
background-color: #EDEDED;
padding: 6px 9px;
}
.controlbox
{
margin-bottom: 23px;
}
.controlbutton
{
border: 2px solid #343352;
font-size: 24px;
color: #343352;
text-align: center;
font-weight: bold;
float: left;
text-decoration: none;
padding: 9px;
margin-right: 12px;
width: 189px;
}
.controlbutton.last
{
margin-right: 0px;
}
.controlbutton img
{
display: block;
margin: 0px auto;
}
.controlbutton:hover
{
background-color: #CDD0E1;
}
.controlbutton.disabled, .constrolbutton.disabled:hover
{
border: 2px solid #737379;
background-color: #9B9B9B;
cursor: default;
}
.online
{
color: #078812;
font-weight: bold;
}
.offline
{
color: #A7101C;
font-weight: bold;
}
.suspended
{
color: #5B5F6B;
font-weight: bold;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 493 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

@ -0,0 +1,25 @@
<?php
$_CVM = true;
require("includes/include.base.php");
$settings['master_privkey'] = "/etc/cvm/key";
$settings['master_pubkey'] = "/etc/cvm/key.pub";
$settings['salt'] = "kAU0qM";
$sContainer = new Container(1);
$template_main = new Templater();
$template_main->Load("main");
$template_main->Localize($locale->strings);
$template_main->Compile(array(
'server-location' => $sContainer->sNode->sPhysicalLocation,
'operating-system' => $sContainer->sTemplate->sName,
'guaranteed-ram' => "{$sContainer->sGuaranteedRam}MB",
'burstable-ram' => "{$sContainer->sBurstableRam}MB",
'disk-space' => "{$sContainer->sDiskSpace}MB",
'total-traffic-limit' => "{$sContainer->sTotalTrafficLimit} bytes",
'bandwidth-limit' => "100mbit",
));
$template_main->Output();
?>

@ -0,0 +1,17 @@
var command_running = false;
$(function(){
$('.button-loader').click(function(){
if(command_running === false)
{
$('.button-loader').addClass('disabled').click(function(event){
event.preventDefault();
event.stopPropagation();
return false;
});
$(this).children('.button-icon').addClass('running')[0].src = "images/loading.gif";
command_running = true;
}
});
});

@ -0,0 +1,118 @@
<!doctype html>
<html>
<head>
<title>CVM</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/cvm.css" type="text/css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="js/cvm.js?1"></script>
</head>
<body>
<div class="wrapper">
<div class="header">
<img src="images/logo.png">
</div>
<div class="main">
<div class="sidebar">
<a class="button" id="button_overview" href="#">Overview</a>
<a class="button" id="button_statistics" href="#">Statistics</a>
<a class="button" id="button_reinstall" href="#">Reinstall</a>
<a class="button" id="button_backup" href="#">Backups</a>
<a class="button" id="button_webshell" href="#">WebShell</a>
<a class="button" id="button_ip" href="#">IP Allocation</a>
<a class="button" id="button_alerts" href="#">Alerts</a>
<a class="button" id="button_api" href="#">API</a>
</div>
<h1>Overview</h1>
<!-- <h2>Consolidated traffic example</h2> -->
<div class="quota">
<div class="quota-item">
<h3>Disk space</h3>
<div class="quota-bar">
<div class="quota-bar-inner" style="width: 55%;"></div>
<div class="quota-bar-label">55/100GB</div>
</div>
</div>
<div class="quota-item">
<h3>RAM</h3>
<div class="quota-bar">
<div class="quota-bar-inner" style="width: 24%;"></div>
<div class="quota-bar-label">241/1024MB</div>
</div>
</div>
<div class="quota-item last">
<h3>Traffic</h3>
<div class="quota-bar">
<div class="quota-bar-inner" style="width: 8%;"></div>
<div class="quota-bar-label">80/1000GB</div>
</div>
</div>
<div class="clear"></div>
</div>
<div class="controlbox">
<a class="controlbutton button-loader" href="?action=start">
<img src="images/button_start.png" class="button-icon">
Start VPS
</a>
<a class="controlbutton button-loader" href="?action=restart">
<img src="images/button_restart.png" class="button-icon">
Restart VPS
</a>
<a class="controlbutton button-loader last" href="?action=stop">
<img src="images/button_stop.png" class="button-icon">
Stop VPS
</a>
<div class="clear"></div>
</div>
<div class="infobox">
<h2>VPS configuration</h2>
<table class="vpsinfo">
<tr>
<th>Status</th>
<td><span class="online">Running</span> <span class="offline">Stopped</span> <span class="suspended">Suspended</span> </td>
</tr>
<tr>
<th>Server location</th>
<td><%?server-location></td>
</tr>
<tr>
<th>Operating system</th>
<td><%?operating-system></td>
</tr>
<tr>
<th>IPv4 Addresses</th>
<td>98.142.213.226, 204.12.235.84</td>
</tr>
<tr>
<th>IPv6 Addresses</th>
<td>2607:f7a0:1:1::24:6</td>
</tr>
<tr>
<th>Guaranteed RAM</th>
<td><%?guaranteed-ram></td>
</tr>
<tr>
<th>Burstable RAM</th>
<td><%?burstable-ram></td>
</tr>
<tr>
<th>Disk space</th>
<td><%?disk-space></td>
</tr>
<tr>
<th>Traffic</th>
<td><%?total-traffic-limit></td>
</tr>
<tr>
<th>Bandwidth</th>
<td><%?bandwidth-limit></td>
</tr>
</table>
</div>
</div>
</div>
</body>
</html>
Loading…
Cancel
Save