2014-01-05 22:54:57 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en" ng-app="syncthing">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta name="description" content="">
|
|
|
|
<meta name="author" content="">
|
|
|
|
<link rel="shortcut icon" href="../../docs-assets/ico/favicon.png">
|
|
|
|
|
|
|
|
<title>syncthing</title>
|
|
|
|
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
|
|
|
|
<style type="text/css">
|
2014-01-08 12:52:17 +00:00
|
|
|
html, body {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
#wrap{
|
2014-01-05 22:54:57 +00:00
|
|
|
padding-top: 20px;
|
2014-01-08 12:52:17 +00:00
|
|
|
min-height: 100%;
|
|
|
|
height: auto;
|
|
|
|
margin: 0 auto -50px;
|
|
|
|
padding: 20px 0 50px 0;
|
|
|
|
}
|
|
|
|
#footer {
|
|
|
|
height: 50px;
|
|
|
|
padding: 12px;
|
|
|
|
background-color: #f5f5f5;
|
2014-01-05 22:54:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
border-bottom: 1px solid #e5e5e5;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.text-monospace {
|
|
|
|
font-family: monospace;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body ng-controller="SyncthingCtrl">
|
2014-01-08 12:52:17 +00:00
|
|
|
<div id="wrap">
|
|
|
|
<div class="container">
|
|
|
|
<div class="header">
|
|
|
|
<h3 class="text-muted">syncthing</h3>
|
|
|
|
</div>
|
2014-01-05 22:54:57 +00:00
|
|
|
|
2014-01-08 12:52:17 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2014-01-09 23:09:27 +00:00
|
|
|
<div class="panel" ng-class="{'panel-success': model.needBytes === 0, 'panel-primary': model.needBytes !== 0}">
|
|
|
|
<div class="panel-heading"><h3 class="panel-title">Synchronization</h3></div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="progress">
|
|
|
|
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"
|
|
|
|
ng-class="{'progress-bar-success': model.needBytes === 0, 'progress-bar-info': model.needBytes !== 0}"
|
|
|
|
style="width: {{100 * model.inSyncBytes / model.globalBytes | number:2}}%;">
|
2014-01-12 22:19:03 +00:00
|
|
|
{{100 * model.inSyncBytes / model.globalBytes | alwaysNumber | number:0}}%
|
2014-01-09 23:09:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p ng-show="model.needBytes > 0">Need {{model.needFiles | alwaysNumber}} files, {{model.needBytes | binary}}B</p>
|
2014-01-08 12:52:17 +00:00
|
|
|
</div>
|
2014-01-06 05:38:01 +00:00
|
|
|
</div>
|
2014-01-05 22:54:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-01-08 12:52:17 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
2014-01-09 23:09:27 +00:00
|
|
|
<div class="panel panel-info">
|
|
|
|
<div class="panel-heading"><h3 class="panel-title">Repository</h3></div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<p>Cluster contains {{model.globalFiles | alwaysNumber}} files, {{model.globalBytes | binary}}B
|
|
|
|
<span class="text-muted">(+{{model.globalDeleted | alwaysNumber}} delete records)</span></p>
|
2014-01-05 22:54:57 +00:00
|
|
|
|
2014-01-09 23:09:27 +00:00
|
|
|
<p>Local repository has {{model.localFiles | alwaysNumber}} files, {{model.localBytes | binary}}B
|
|
|
|
<span class="text-muted">(+{{model.localDeleted | alwaysNumber}} delete records)</span></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-01-05 22:54:57 +00:00
|
|
|
|
2014-01-09 23:09:27 +00:00
|
|
|
<div class="panel panel-info">
|
|
|
|
<div class="panel-heading"><h3 class="panel-title">System</h3></div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<p>{{system.sys | binary}}B RAM allocated, {{system.alloc | binary}}B in use</p>
|
|
|
|
<p>{{system.cpuPercent | alwaysNumber | natural:1}}% CPU, {{system.goroutines | alwaysNumber}} goroutines</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-01-05 22:54:57 +00:00
|
|
|
|
2014-01-08 12:52:17 +00:00
|
|
|
<div ng-show="model.needFiles > 0">
|
|
|
|
<h2>Files to Synchronize</h2>
|
|
|
|
<table class="table table-condensed table-striped">
|
|
|
|
<tr ng-repeat="file in need track by $index">
|
|
|
|
<td><abbr title="{{file.Name}}">{{file.ShortName}}</abbr></td>
|
|
|
|
<td class="text-right">{{file.Size | binary}}B</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
2014-01-09 23:09:27 +00:00
|
|
|
<div class="panel panel-info">
|
|
|
|
<div class="panel-heading"><h3 class="panel-title">Cluster</h3></div>
|
|
|
|
<table class="table table-condensed">
|
|
|
|
<tbody>
|
2014-01-12 22:19:03 +00:00
|
|
|
<tr ng-repeat="(node, address) in config.nodes" ng-class="{'text-primary': !!connections[node], 'text-muted': node == config.myID}">
|
2014-01-09 23:09:27 +00:00
|
|
|
<td><abbr class="text-monospace" title="{{node}}">{{node | short}}</abbr></td>
|
|
|
|
<td>
|
2014-01-12 22:19:03 +00:00
|
|
|
<span ng-show="node == config.myID">
|
|
|
|
<span class="glyphicon glyphicon-ok"></span>
|
|
|
|
(this node)
|
|
|
|
</span>
|
|
|
|
<span ng-show="node != config.myID && !!connections[node]">
|
2014-01-09 23:09:27 +00:00
|
|
|
<span class="glyphicon glyphicon-link"></span>
|
|
|
|
{{connections[node].Address}}
|
|
|
|
</span>
|
2014-01-12 22:19:03 +00:00
|
|
|
<span ng-show="node != config.myID && !connections[node]">
|
2014-01-09 23:09:27 +00:00
|
|
|
<span class="glyphicon glyphicon-cog"></span>
|
|
|
|
{{address}}
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td class="text-right">
|
2014-01-12 22:19:03 +00:00
|
|
|
<span ng-show="node != config.myID">
|
|
|
|
<abbr title="{{connections[node].InBytesTotal | binary}}B">{{connections[node].inbps | metric}}b/s</abbr>
|
|
|
|
<span class="text-muted glyphicon glyphicon-cloud-download"></span>
|
|
|
|
</span>
|
2014-01-09 23:09:27 +00:00
|
|
|
</td>
|
|
|
|
<td class="text-right">
|
2014-01-12 22:19:03 +00:00
|
|
|
<span ng-show="node != config.myID">
|
|
|
|
<abbr title="{{connections[node].OutBytesTotal | binary}}B">{{connections[node].outbps | metric}}b/s</abbr>
|
|
|
|
<span class="text-muted glyphicon glyphicon-cloud-upload"></span>
|
|
|
|
</span>
|
2014-01-09 23:09:27 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2014-01-05 22:54:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-01-08 12:52:17 +00:00
|
|
|
</div>
|
|
|
|
<div id="footer" class="text-center">
|
|
|
|
syncthing {{version}}
|
|
|
|
| <a href="https://github.com/calmh/syncthing/releases">Latest Release</a>
|
|
|
|
| <a href="https://github.com/calmh/syncthing/wiki">Documentation</a>
|
|
|
|
| <a href="https://github.com/calmh/syncthing/issues">Bugs</a>
|
|
|
|
| <a href="https://github.com/calmh/syncthing">Source Code</a>
|
2014-01-05 22:54:57 +00:00
|
|
|
</div>
|
|
|
|
|
2014-01-09 09:31:27 +00:00
|
|
|
<div id="networkError" class="modal fade">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header alert alert-danger">
|
|
|
|
<h4 class="modal-title">
|
2014-01-09 23:09:27 +00:00
|
|
|
<span class="glyphicon glyphicon-exclamation-sign"></span>
|
2014-01-09 09:31:27 +00:00
|
|
|
Connection Error
|
|
|
|
</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<p>
|
|
|
|
Syncthing seems to be down, or there is a problem with your Internet connection.
|
|
|
|
Retrying…
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-01-05 22:54:57 +00:00
|
|
|
<script src="angular.min.js"></script>
|
|
|
|
<script src="jquery-2.0.3.min.js"></script>
|
|
|
|
<script src="bootstrap/js/bootstrap.min.js"></script>
|
|
|
|
<script src="app.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|