forked from I2P_Developers/i2p.i2p
Ongoing overhaul of the sidepanel.
This commit is contained in:
@@ -24,7 +24,7 @@ public class ConfigUIHandler extends FormHandler {
|
|||||||
else
|
else
|
||||||
_context.router().setConfigSetting(CSSHelper.PROP_THEME_NAME, _config);
|
_context.router().setConfigSetting(CSSHelper.PROP_THEME_NAME, _config);
|
||||||
if (_context.router().saveConfig())
|
if (_context.router().saveConfig())
|
||||||
addFormNotice("Theme change successfully saved (<a href=\"configui.jsp\">refresh page</a> to view).");
|
addFormNotice("Theme change saved. <a href=\"configui.jsp\">Refresh the page</a> to actuate phase change.");
|
||||||
else
|
else
|
||||||
addFormNotice("Error saving the configuration (applied but not saved) - please see the error logs.");
|
addFormNotice("Error saving the configuration (applied but not saved) - please see the error logs.");
|
||||||
}
|
}
|
||||||
|
@@ -341,20 +341,20 @@ public class SummaryHelper extends HelperBase {
|
|||||||
Collections.sort(clients, new AlphaComparator());
|
Collections.sort(clients, new AlphaComparator());
|
||||||
|
|
||||||
StringBuilder buf = new StringBuilder(512);
|
StringBuilder buf = new StringBuilder(512);
|
||||||
buf.append("<h3>Local destinations</h3><hr><table>");
|
buf.append("<h3><a href=\"i2ptunnel/index.jsp\" target=\"_blank\" title=\"Add/remove/edit & control your client and server tunnels (local destinations).\" title=\"View existing tunnels and tunnel build status.\">Local destinations</a></h3><hr><table>");
|
||||||
|
|
||||||
for (Iterator iter = clients.iterator(); iter.hasNext(); ) {
|
for (Iterator iter = clients.iterator(); iter.hasNext(); ) {
|
||||||
Destination client = (Destination)iter.next();
|
Destination client = (Destination)iter.next();
|
||||||
String name = getName(client);
|
String name = getName(client);
|
||||||
|
|
||||||
buf.append("<tr><td align=\"right\"><b><img src=\"/themes/console/images/server.png\" alt=\"Server\" title=\"hello zzz!\"></td>");
|
buf.append("<tr><td align=\"right\"><b><img src=\"/themes/console/images/server.png\" alt=\"Server\" title=\"Server/client\"></td>");
|
||||||
buf.append("<td align=\"left\"><a href=\"tunnels.jsp#").append(client.calculateHash().toBase64().substring(0,4));
|
buf.append("<td align=\"left\"><a href=\"tunnels.jsp#").append(client.calculateHash().toBase64().substring(0,4));
|
||||||
buf.append("\" target=\"_top\" title=\"Show tunnels\">");
|
buf.append("\" target=\"_top\" title=\"Show tunnels\">");
|
||||||
if (name.length() < 16)
|
if (name.length() < 16)
|
||||||
buf.append(name);
|
buf.append(name);
|
||||||
else
|
else
|
||||||
buf.append(name.substring(0,15)).append("…");
|
buf.append(name.substring(0,15)).append("…");
|
||||||
buf.append("</a></td></tr>\n");
|
buf.append("</a></td><td align=\right\"><img src=\"/themes/console/images/local_up.png\" alt=\"status\" title=\"status\"></td></tr>\n");
|
||||||
LeaseSet ls = _context.netDb().lookupLeaseSetLocally(client.calculateHash());
|
LeaseSet ls = _context.netDb().lookupLeaseSetLocally(client.calculateHash());
|
||||||
if (ls != null) {
|
if (ls != null) {
|
||||||
long timeToExpire = ls.getEarliestLeaseDate() - _context.clock().now();
|
long timeToExpire = ls.getEarliestLeaseDate() - _context.clock().now();
|
||||||
|
@@ -25,44 +25,42 @@
|
|||||||
<jsp:setProperty name="linkhelper" property="maxLines" value="100" />
|
<jsp:setProperty name="linkhelper" property="maxLines" value="100" />
|
||||||
<jsp:getProperty name="linkhelper" property="content" />
|
<jsp:getProperty name="linkhelper" property="content" />
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<h3>I2P Services</h3><hr>
|
<h3><a href="/configclients.jsp" target="_blank" title="Configure startup of clients and webapps (services); manually start dormant services.">I2P Services</a></h3><hr>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="susidns/index.jsp" target="_blank">Addressbook</a>
|
<td><a href="susidns/index.jsp" target="_blank" title="Manage your I2P hosts file here (I2P domain name resolution).">Addressbook</a>
|
||||||
<a href="i2psnark/" target="_blank">Torrents</a>
|
<a href="i2psnark/" target="_blank" title="Built-in anonymous BitTorrent Client">Torrents</a>
|
||||||
<a href="susimail/susimail" target="blank">Webmail</a>
|
<a href="susimail/susimail" target="blank" title="Anonymous webmail client.">Webmail</a>
|
||||||
<a href="http://127.0.0.1:7658/" target="_blank">Webserver</a></td>
|
<a href="http://127.0.0.1:7658/" target="_blank" title="Anonymous resident webserver.">Webserver</a></td>
|
||||||
</tr></table><hr>
|
</tr></table><hr>
|
||||||
<h3>I2P Internals</h3><hr>
|
<h3><a href="config.jsp" target="_top" title="Configure I2P Router.">I2P Internals</a></h3><hr>
|
||||||
<table><tr>
|
<table><tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="i2ptunnel/index.jsp" target="_blank">I2PTunnel</a>
|
<a href="tunnels.jsp" target="_top" title="View existing tunnels and tunnel build status.">Tunnels</a>
|
||||||
<a href="tunnels.jsp" target="_top">Tunnels</a>
|
<a href="peers.jsp" target="_top" title="Show all current peer connections.">Peers</a>
|
||||||
<a href="profiles.jsp" target="_top">Profiles</a>
|
<a href="profiles.jsp" target="_top" title="Show recent peer performance profiles.">Profiles</a>
|
||||||
<a href="netdb.jsp" target="_top">NetDB</a>
|
<a href="netdb.jsp" target="_top" title="Show list of all known I2P routers.">NetDB</a>
|
||||||
<a href="logs.jsp" target="_top">Logs</a>
|
<a href="logs.jsp" target="_top" title="Health Report.">Logs</a>
|
||||||
<a href="jobs.jsp" target="_top">Jobs</a>
|
<a href="jobs.jsp" target="_top" title="Show the router's workload, and how it's performing.">Jobs</a>
|
||||||
<a href="graphs.jsp" target="_top">Graphs</a>
|
<a href="graphs.jsp" target="_top" title="Graph router performance.">Graphs</a>
|
||||||
<a href="oldstats.jsp" target="_top">Stats</a>
|
<a href="oldstats.jsp" target="_top" title="Textual router performance statistics.">Stats</a>
|
||||||
<a href="config.jsp" target="_top">Configuration</a>
|
|
||||||
<a href="help.jsp" target="_top">Help</a></b>
|
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<h3>General</h3><hr>
|
<h3><a href="help.jsp" target="_top" title="I2P Router Help.">General</a></h3><hr>
|
||||||
<h4>
|
<h4>
|
||||||
<a title="Your router identity is <jsp:getProperty name="helper" property="ident" />, never reveal it to anyone" href="netdb.jsp?r=." target="_top">Local Identity</a></h4>
|
<a title="Your unique I2P router identity is <jsp:getProperty name="helper" property="ident" />, never reveal it to anyone" href="netdb.jsp?r=." target="_top">Local Identity</a></h4>
|
||||||
<hr>
|
<hr>
|
||||||
<table><tr>
|
<table><tr>
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<b>Version:</b></td>
|
<b>Version:</b></td>
|
||||||
<td align="right"><jsp:getProperty name="helper" property="version" /></td></tr>
|
<td align="right"><jsp:getProperty name="helper" property="version" /></td></tr>
|
||||||
<tr>
|
<tr title="How long we've been running for this session.">
|
||||||
<td align="left">
|
<td align="left">
|
||||||
<b>Uptime:</b></td>
|
<b>Uptime:</b></td>
|
||||||
<td align="right"><jsp:getProperty name="helper" property="uptime" /></td></tr></table>
|
<td align="right"><jsp:getProperty name="helper" property="uptime" /></td></tr></table>
|
||||||
<hr><h4><a href="config.jsp#help" target="_top"><jsp:getProperty name="helper" property="reachability" /></a></h4>
|
<hr><h4><a href="config.jsp#help" target="_top" title="Help with configuring your firewall and router for optimal I2P performance."><jsp:getProperty name="helper" property="reachability" /></a></h4>
|
||||||
<hr>
|
<hr>
|
||||||
<%
|
<%
|
||||||
if (helper.updateAvailable()) {
|
if (helper.updateAvailable()) {
|
||||||
@@ -88,14 +86,14 @@
|
|||||||
<%=net.i2p.router.web.ConfigRestartBean.renderStatus(request.getRequestURI(), request.getParameter("action"), request.getParameter("consoleNonce"))%>
|
<%=net.i2p.router.web.ConfigRestartBean.renderStatus(request.getRequestURI(), request.getParameter("action"), request.getParameter("consoleNonce"))%>
|
||||||
</p>
|
</p>
|
||||||
<hr />
|
<hr />
|
||||||
<h3><a href="peers.jsp" target="_top">Peers</a></h3><hr><table>
|
<h3><a href="peers.jsp" target="_top" title="Show all current peer connections.">Peers</a></h3><hr><table>
|
||||||
<tr><td align="left"><b>Active:</b></td><td align="right"><jsp:getProperty name="helper" property="activePeers" />/<jsp:getProperty name="helper" property="activeProfiles" /></td></tr>
|
<tr><td align="left"><b>Active:</b></td><td align="right"><jsp:getProperty name="helper" property="activePeers" />/<jsp:getProperty name="helper" property="activeProfiles" /></td></tr>
|
||||||
<tr><td align="left"><b>Fast:</b></td><td align="right"><jsp:getProperty name="helper" property="fastPeers" /></td></tr>
|
<tr><td align="left"><b>Fast:</b></td><td align="right"><jsp:getProperty name="helper" property="fastPeers" /></td></tr>
|
||||||
<tr><td align="left"><b>High capacity:</b></td><td align="right"><jsp:getProperty name="helper" property="highCapacityPeers" /></td></tr>
|
<tr><td align="left"><b>High capacity:</b></td><td align="right"><jsp:getProperty name="helper" property="highCapacityPeers" /></td></tr>
|
||||||
<tr><td align="left"><b>Integrated:</b></td><td align="right"><jsp:getProperty name="helper" property="wellIntegratedPeers" /></td></tr>
|
<tr><td align="left"><b>Integrated:</b></td><td align="right"><jsp:getProperty name="helper" property="wellIntegratedPeers" /></td></tr>
|
||||||
<tr><td align="left"><b>Known:</b></td><td align="right"><jsp:getProperty name="helper" property="allPeers" /></td></tr></table><hr><%
|
<tr><td align="left"><b>Known:</b></td><td align="right"><jsp:getProperty name="helper" property="allPeers" /></td></tr></table><hr><%
|
||||||
if (helper.getActivePeers() <= 0) {
|
if (helper.getActivePeers() <= 0) {
|
||||||
%><h4><a href="config.jsp" target="_top">check your NAT/firewall</a></h4><%
|
%><h4><a href="config.jsp" target="_top" title="Help with firewall configuration.">Check NAT/firewall</a></h4><%
|
||||||
}
|
}
|
||||||
// If showing the reseed link is allowed
|
// If showing the reseed link is allowed
|
||||||
if (helper.allowReseed()) {
|
if (helper.allowReseed()) {
|
||||||
@@ -122,25 +120,25 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
%><hr />
|
%><hr />
|
||||||
<h3><a href="config.jsp" title="Configure the bandwidth limits" target="_top">Bandwidth in/out</a></h3><hr>
|
<h3><a href="config.jsp" title="Configure router bandwidth allocation." target="_top">Bandwidth in/out</a></h3><hr>
|
||||||
<table>
|
<table>
|
||||||
<tr><td align="left"><b>1s:</b></td><td align="right"><jsp:getProperty name="helper" property="inboundSecondKBps" />/<jsp:getProperty name="helper" property="outboundSecondKBps" />K/s</td></tr>
|
<tr><td align="left"><b>1s:</b></td><td align="right"><jsp:getProperty name="helper" property="inboundSecondKBps" />/<jsp:getProperty name="helper" property="outboundSecondKBps" />K/s</td></tr>
|
||||||
<tr><td align="left"><b>5m:</b></td><td align="right"><jsp:getProperty name="helper" property="inboundFiveMinuteKBps" />/<jsp:getProperty name="helper" property="outboundFiveMinuteKBps" />K/s</td></tr>
|
<tr><td align="left"><b>5m:</b></td><td align="right"><jsp:getProperty name="helper" property="inboundFiveMinuteKBps" />/<jsp:getProperty name="helper" property="outboundFiveMinuteKBps" />K/s</td></tr>
|
||||||
<tr><td align="left"><b>Total:</b></td><td align="right"><jsp:getProperty name="helper" property="inboundLifetimeKBps" />/<jsp:getProperty name="helper" property="outboundLifetimeKBps" />K/s</td></tr>
|
<tr><td align="left"><b>Total:</b></td><td align="right"><jsp:getProperty name="helper" property="inboundLifetimeKBps" />/<jsp:getProperty name="helper" property="outboundLifetimeKBps" />K/s</td></tr>
|
||||||
<tr><td align="left"><b>Used:</b></td><td align="right"><jsp:getProperty name="helper" property="inboundTransferred" />/<jsp:getProperty name="helper" property="outboundTransferred" /></td></tr></table>
|
<tr><td align="left"><b>Used:</b></td><td align="right"><jsp:getProperty name="helper" property="inboundTransferred" />/<jsp:getProperty name="helper" property="outboundTransferred" /></td></tr></table>
|
||||||
<hr />
|
<hr>
|
||||||
<h3>Tunnels in/out</h3><hr>
|
<h3><a href="tunnels.jsp" target="_blank" title="View existing tunnels and tunnel build status.">Tunnels in/out</a></h3><hr>
|
||||||
<table><tr>
|
<table><tr>
|
||||||
<td align="left"><b>Exploratory:</b></td><td align="right"><jsp:getProperty name="helper" property="inboundTunnels" />/<jsp:getProperty name="helper" property="outboundTunnels" /></td></tr>
|
<td align="left"><b>Exploratory:</b></td><td align="right"><jsp:getProperty name="helper" property="inboundTunnels" />/<jsp:getProperty name="helper" property="outboundTunnels" /></td></tr>
|
||||||
<tr><td align="left"><b>Client:</b></td><td align="right"><jsp:getProperty name="helper" property="inboundClientTunnels" />/<jsp:getProperty name="helper" property="outboundClientTunnels" /></td></tr>
|
<tr><td align="left"><b>Client:</b></td><td align="right"><jsp:getProperty name="helper" property="inboundClientTunnels" />/<jsp:getProperty name="helper" property="outboundClientTunnels" /></td></tr>
|
||||||
<tr><td align="left"><b>Participating:</b></td><td align="right"><jsp:getProperty name="helper" property="participatingTunnels" /></td></tr></table>
|
<tr><td align="left"><b>Participating:</b></td><td align="right"><jsp:getProperty name="helper" property="participatingTunnels" /></td></tr></table>
|
||||||
<hr>
|
<hr>
|
||||||
<h3>Congestion</h3><hr>
|
<h3><a href="/oldstats.jsp#JobQueue" target="_top" title="What's in the router's job queue?">Congestion</a></h3><hr>
|
||||||
<table><tr>
|
<table><tr>
|
||||||
<td align="left"><b>Job lag:</b></td><td align="right"><jsp:getProperty name="helper" property="jobLag" /></td></tr>
|
<td align="left"><b>Job lag:</b></td><td align="right"><jsp:getProperty name="helper" property="jobLag" /></td></tr>
|
||||||
<tr><td align="left"><b>Message delay:</b></td><td align="right"><jsp:getProperty name="helper" property="messageDelay" /></td></tr>
|
<tr><td align="left"><b>Message delay:</b></td><td align="right"><jsp:getProperty name="helper" property="messageDelay" /></td></tr>
|
||||||
<tr><td align="left"><b>Tunnel lag:</b></td><td align="right"><jsp:getProperty name="helper" property="tunnelLag" /></td></tr>
|
<tr><td align="left"><b>Tunnel lag:</b></td><td align="right"><jsp:getProperty name="helper" property="tunnelLag" /></td></tr>
|
||||||
<tr><td align="left"><b>Backlog:</b></td><td align="right"><jsp:getProperty name="helper" property="inboundBacklog" /></td></tr><table>
|
<tr><td align="left"><b>Backlog:</b></td><td align="right"><jsp:getProperty name="helper" property="inboundBacklog" /></td></tr><table align="center" title="Router tunnel build status.">
|
||||||
<hr><h4><jsp:getProperty name="helper" property="tunnelStatus" /></h4>
|
<hr><h4><jsp:getProperty name="helper" property="tunnelStatus" /></h4>
|
||||||
<hr>
|
<hr>
|
||||||
<jsp:getProperty name="helper" property="destinations" />
|
<jsp:getProperty name="helper" property="destinations" />
|
||||||
|
@@ -123,21 +123,22 @@ div.routersummary hr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
div.routersummary h3 {
|
div.routersummary h3 {
|
||||||
border: 0px solid #f00;
|
border: 0;
|
||||||
/* border-bottom: 1px solid #99f !important;*/
|
|
||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
letter-spacing: 0.05em;
|
letter-spacing: 0.05em;
|
||||||
margin: -7px -9px -10px -9px;
|
margin: -7px -9px -10px -9px;
|
||||||
padding: 5px 0px 5px 0px;
|
padding: 3px 0px 5px 0px;
|
||||||
background: #007;
|
background: #007;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
-moz-border-radius: 0;
|
-moz-border-radius: 0;
|
||||||
-khtml-border-radius: 0;
|
-khtml-border-radius: 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
background: #007;
|
||||||
|
background-image: -moz-linear-gradient(top, bottom, from(#007), to(#005), color-stop(7%, #007), color-stop(100%, #005));
|
||||||
}
|
}
|
||||||
|
|
||||||
div.routersummary h4 {
|
div.routersummary h4 {
|
||||||
border: 0px solid #f00;
|
border: 0;
|
||||||
border-bottom: 0 !important;
|
border-bottom: 0 !important;
|
||||||
font-size: 9pt;
|
font-size: 9pt;
|
||||||
letter-spacing: 0.05em;
|
letter-spacing: 0.05em;
|
||||||
@@ -147,6 +148,7 @@ div.routersummary h4 {
|
|||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
text-decoration: none !important;
|
text-decoration: none !important;
|
||||||
color: #2b2;
|
color: #2b2;
|
||||||
|
background-image: -moz-linear-gradient(top, bottom, from(#001), to(#005), color-stop(10%, #005), color-stop(100%, #004));
|
||||||
}
|
}
|
||||||
|
|
||||||
div.routersummary table {
|
div.routersummary table {
|
||||||
|
BIN
installer/resources/themes/console/images/local_down.png
Normal file
BIN
installer/resources/themes/console/images/local_down.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 512 B |
BIN
installer/resources/themes/console/images/local_inprogress.png
Normal file
BIN
installer/resources/themes/console/images/local_inprogress.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 514 B |
BIN
installer/resources/themes/console/images/local_up.png
Normal file
BIN
installer/resources/themes/console/images/local_up.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 579 B |
Reference in New Issue
Block a user