add register and see panel
Deploy Nexus Portal to HestiaCP (FTP) / build-and-deploy (push) Successful in 30s

This commit is contained in:
maximus
2026-06-17 17:39:30 +02:00
parent 0863b0a161
commit 9acb9c6801
7 changed files with 708 additions and 26 deletions
+23 -3
View File
@@ -13,11 +13,31 @@ export default function Dashboard() {
useEffect(() => {
const fetchInventory = async () => {
try {
// Appel à FOSSBilling via notre api.js
const data = await getClientOrders();
// FOSSBilling renvoie souvent la liste dans data.list
setOrders(data.list || []);
if (data.list) {
// LE FILTRE CHIRURGICAL PAR PREFIXE
const filteredOrders = data.list.filter(order => {
const title = (order.title || '').toLowerCase();
const type = (order.type || '').toLowerCase();
// On masque la commande SI :
// 1. Le type technique est "domain"
// 2. OU le titre COMMENCE par "domain", "domaine" ou "enregistrement"
const isGhostProduct =
type === 'domain' ||
title.startsWith('domain ') ||
title.startsWith('domaine ') ||
title.startsWith('enregistrement ');
// On retourne true (on affiche) uniquement si ce n'est pas un produit fantôme
return !isGhostProduct;
});
setOrders(filteredOrders);
} else {
setOrders([]);
}
} catch (err) {
setError(err.message || "Impossible de récupérer la télémétrie des services.");
} finally {