mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 12:17:49 +02:00
UI updates
This commit is contained in:
parent
38a2d45a3c
commit
4956c112b2
2 changed files with 716 additions and 408 deletions
File diff suppressed because it is too large
Load diff
|
@ -235,8 +235,9 @@ namespace tunnel
|
||||||
// hops are in inverted order, we must print in direct order
|
// hops are in inverted order, we must print in direct order
|
||||||
for (auto it = m_Hops.rbegin (); it != m_Hops.rend (); it++)
|
for (auto it = m_Hops.rbegin (); it != m_Hops.rend (); it++)
|
||||||
{
|
{
|
||||||
s << " ⇒ ";
|
s << " <span class=\"arrowright\">⇒</span> <span class=\"hop\">";
|
||||||
s << i2p::data::GetIdentHashAbbreviation ((*it)->ident->GetIdentHash ());
|
s << i2p::data::GetIdentHashAbbreviation ((*it)->ident->GetIdentHash ());
|
||||||
|
s << "</span>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -252,7 +253,10 @@ namespace tunnel
|
||||||
void InboundTunnel::Print (std::stringstream& s) const
|
void InboundTunnel::Print (std::stringstream& s) const
|
||||||
{
|
{
|
||||||
PrintHops (s);
|
PrintHops (s);
|
||||||
s << " ⇒ " << GetTunnelID () << ":me";
|
s << " <span class=\"arrowright zerohop\">⇒</span> ";
|
||||||
|
s << " <span class=\"tunnelid local\" data-tooltip=\"";
|
||||||
|
s << GetTunnelID () << "\">Local</span>";
|
||||||
|
s << "<span class=\"tunnelid\">" << GetTunnelID () << "</span>";
|
||||||
}
|
}
|
||||||
|
|
||||||
ZeroHopsInboundTunnel::ZeroHopsInboundTunnel ():
|
ZeroHopsInboundTunnel::ZeroHopsInboundTunnel ():
|
||||||
|
@ -273,7 +277,9 @@ namespace tunnel
|
||||||
|
|
||||||
void ZeroHopsInboundTunnel::Print (std::stringstream& s) const
|
void ZeroHopsInboundTunnel::Print (std::stringstream& s) const
|
||||||
{
|
{
|
||||||
s << " ⇒ " << GetTunnelID () << ":me";
|
s << "<span class=\"arrowright zerohop\">⇒</span> <span class=\"tunnelid local\" data-tooltip=\""
|
||||||
|
<< GetTunnelID () << "\">Local</span>";
|
||||||
|
s << "<span class=\"tunnelid\">" << GetTunnelID () << "</span>";
|
||||||
}
|
}
|
||||||
|
|
||||||
void OutboundTunnel::SendTunnelDataMsg (const uint8_t * gwHash, uint32_t gwTunnel, std::shared_ptr<i2p::I2NPMessage> msg)
|
void OutboundTunnel::SendTunnelDataMsg (const uint8_t * gwHash, uint32_t gwTunnel, std::shared_ptr<i2p::I2NPMessage> msg)
|
||||||
|
@ -312,9 +318,9 @@ namespace tunnel
|
||||||
|
|
||||||
void OutboundTunnel::Print (std::stringstream& s) const
|
void OutboundTunnel::Print (std::stringstream& s) const
|
||||||
{
|
{
|
||||||
s << GetTunnelID () << ":me";
|
s << "<span class=\"tunnelid local\" data-tooltip=\"" << GetTunnelID () << "\">Local</span>";
|
||||||
PrintHops (s);
|
PrintHops (s);
|
||||||
s << " ⇒ ";
|
s << "<span class=\"tunnelid\">" << GetTunnelID () << "</span>";
|
||||||
}
|
}
|
||||||
|
|
||||||
ZeroHopsOutboundTunnel::ZeroHopsOutboundTunnel ():
|
ZeroHopsOutboundTunnel::ZeroHopsOutboundTunnel ():
|
||||||
|
@ -348,7 +354,10 @@ namespace tunnel
|
||||||
|
|
||||||
void ZeroHopsOutboundTunnel::Print (std::stringstream& s) const
|
void ZeroHopsOutboundTunnel::Print (std::stringstream& s) const
|
||||||
{
|
{
|
||||||
s << GetTunnelID () << ":me ⇒ ";
|
s << "<span class=\"arrowright\">⇒</span> ";
|
||||||
|
s << "<span class=\"tunnelid local\" data-tooltip=\""
|
||||||
|
<< GetTunnelID () << "\">" << GetTunnelID () << "\">Local</span>";
|
||||||
|
s << "<span class=\"tunnelid\">" << GetTunnelID () << "</span>";
|
||||||
}
|
}
|
||||||
|
|
||||||
Tunnels tunnels;
|
Tunnels tunnels;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue