feat(customer): Ajoute l'entité CustomerWallet et la vue porte-monnaie.
♻️ refactor(template): Renomme external.twig en wallet.twig.
 feat(website): Ajoute une option pour afficher les options du site.
🐛 fix(serverCard): Affiche correctement le statut en temps réel via MQTT.
🌐 i18n: Corrige une faute de frappe dans la traduction de "Newsletter".
```
This commit is contained in:
Serreau Jovann
2025-11-06 15:31:08 +01:00
parent a34589721f
commit 5c0500dc19
13 changed files with 380 additions and 23 deletions

View File

@@ -21,6 +21,7 @@ export class ServerCard extends HTMLDivElement{
mqttClient.on("message", (topic, message) => {
if(topic == "server/"+this.getAttribute('id')+"/online") {
console.log(topic,message.toString());
let json = JSON.parse(message.toString());
if(json.status) {
this.s.classList = "s font-semibold bg-RUNNING";
@@ -70,21 +71,5 @@ export class ServerCard extends HTMLDivElement{
}
}
});
/*fetch("/api-interne/server/"+this.getAttribute('id')).then(e=>e.json()).then((rslt)=>{
this.s.classList = "s font-semibold bg-"+rslt.status;
this.s.innerText = rslt.status;
this.cpu.querySelector('.p').innerText = rslt.cpu+"%";
this.cpu.querySelector('.gauge >div').style.width = rslt.cpu+"%";
this.cpu.querySelector('.gauge >div').classList = "bg-"+rslt.cpu_color+"-500 h-2 rounded-l-full";
this.ram.querySelector('.p').innerText = rslt.ram+"%";
this.ram.querySelector('.gauge >div').style.width = rslt.ram+"%";
this.ram.querySelector('.gauge >div').classList = "bg-"+rslt.ram_color+"-500 h-2 rounded-l-full";
this.hdd.querySelector('.p').innerText = rslt.hdd+"%";
this.hdd.querySelector('.gauge >div').style.width = rslt.hdd+"%";
this.hdd.querySelector('.gauge >div').classList = "bg-"+rslt.hdd_color+"-500 h-2 rounded-l-full";
})*/
}
}