add asunto-sorting, remove hoster var, fix formatting of pagos, fix account login URLs

This commit is contained in:
naielv
2025-12-12 23:55:01 +01:00
parent 28a0fced87
commit 9b0d33710f
4 changed files with 485 additions and 392 deletions

View File

@@ -838,6 +838,10 @@ function TS_IndexElement(
if (a.Nombre && b.Nombre && a.Nombre !== b.Nombre) {
return a.Nombre.toLowerCase() < b.Nombre.toLowerCase() ? -1 : 1;
}
// 5. Asunto (ascending, from a.Asunto/b.Asunto)
if (a.Asunto && b.Asunto && a.Asunto !== b.Asunto) {
return a.Asunto.toLowerCase() < b.Asunto.toLowerCase() ? -1 : 1;
}
return 0;
}
@@ -1039,10 +1043,12 @@ function TS_IndexElement(
infoSpan.appendChild(document.createElement("br"));
infoSpan.appendChild(document.createTextNode(persona.Nombre || ""));
infoSpan.appendChild(document.createElement("br"));
const pointsSpan = document.createElement("span");
pointsSpan.style.fontSize = "17px";
pointsSpan.textContent = (persona.Monedero_Balance || "0") + " €";
infoSpan.appendChild(pointsSpan);
if (parseFloat(persona.Monedero_Balance || "0") != 0) {
const pointsSpan = document.createElement("span");
pointsSpan.style.fontSize = "17px";
pointsSpan.textContent = parseFloat(persona.Monedero_Balance || "0").toString() + " €";
infoSpan.appendChild(pointsSpan);
}
tdPersona.appendChild(infoSpan);
new_tr.appendChild(tdPersona);
break;

View File

@@ -56,7 +56,7 @@
Iniciar sesión
</button><br>
<b>Conectado a <span id="peerCount">?</span>
nodos - proveedor %%HOSTER%%</b>
nodos.</b>
</div>
</div>
</details>

File diff suppressed because it is too large Load Diff

View File

@@ -66,12 +66,16 @@ PAGES.personas = {
<button type="button" id="${btn_ver_monedero}" class="btn5">Ver Transacciones del Monedero</button>
</div>
</details>
<details style="background: #e3f2fd; border: 2px solid #21f328ff; border-radius: 8px; padding: 10px; margin: 15px 0;">
<summary style="cursor: pointer; font-weight: bold; color: #38d219ff;">Generar enlaces</summary>
<details style="background: #e3fde3ff; border: 2px solid #21f328ff; border-radius: 8px; padding: 10px; margin: 15px 0;">
<summary style="cursor: pointer; font-weight: bold; color: rgba(26, 141, 3, 1);">🔗 Generar enlaces</summary>
<div style="padding: 15px;">
<label>
Inicio de sesión automatico<br>
<input type="url" value="https://" style="font-size: 24px; font-weight: bold; color: #1976d2;"><br>
Este servidor<br>
<input type="url" value="${location.protocol}//${location.hostname}:${location.port}${location.pathname}?login=${GROUPID}:${SECRET}&sublogin=${mid}" style="font-size: 10px; font-weight: bold; color: #000;"><br>
</label>
<label>
Cualquier Servidor<br>
<input type="url" value="https://tech.eus/ts/?login=${GROUPID}:${SECRET}&sublogin=${mid}" style="font-size: 10px; font-weight: bold; color: #000;"><br>
</label>
</div>
</details>