Spaces:
Running
Running
Download index.html from LoneWolf212/pppuser: direct link, hf CLI and curl.
- Browser
- Download file 18.1 kB
-
https://huggingface.co/spaces/LoneWolf212/pppuser/resolve/main/index.html
- Command line
-
hf download hf://spaces/LoneWolf212/pppuser/index.html
-
curl -L -o index.html https://huggingface.co/spaces/LoneWolf212/pppuser/resolve/main/index.html
18.1 kB
| <html lang="fr"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Suivi Consommation Internet</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #6b73ff 0%, #000dff 100%); | |
| } | |
| .consumption-chart { | |
| height: 300px; | |
| position: relative; | |
| } | |
| .tooltip { | |
| position: absolute; | |
| background: rgba(0, 0, 0, 0.8); | |
| color: white; | |
| padding: 5px 10px; | |
| border-radius: 5px; | |
| font-size: 12px; | |
| pointer-events: none; | |
| opacity: 0; | |
| transition: opacity 0.3s; | |
| } | |
| .bar { | |
| transition: height 0.5s ease; | |
| } | |
| .switch-field { | |
| display: flex; | |
| overflow: hidden; | |
| } | |
| .switch-field input { | |
| position: absolute ; | |
| clip: rect(0, 0, 0, 0); | |
| height: 1px; | |
| width: 1px; | |
| border: 0; | |
| overflow: hidden; | |
| } | |
| .switch-field label { | |
| background-color: #e4e4e4; | |
| color: rgba(0, 0, 0, 0.6); | |
| font-size: 14px; | |
| line-height: 1; | |
| text-align: center; | |
| padding: 8px 16px; | |
| margin-right: -1px; | |
| border: 1px solid rgba(0, 0, 0, 0.2); | |
| transition: all 0.1s ease-in-out; | |
| } | |
| .switch-field label:hover { | |
| cursor: pointer; | |
| } | |
| .switch-field input:checked + label { | |
| background-color: #3b82f6; | |
| color: #fff; | |
| box-shadow: none; | |
| } | |
| .switch-field label:first-of-type { | |
| border-radius: 4px 0 0 4px; | |
| } | |
| .switch-field label:last-of-type { | |
| border-radius: 0 4px 4px 0; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100 min-h-screen"> | |
| <div class="gradient-bg text-white py-6 shadow-lg"> | |
| <div class="container mx-auto px-4"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <h1 class="text-3xl font-bold"><i class="fas fa-network-wired mr-2"></i>Suivi Consommation Internet</h1> | |
| <p class="text-blue-100 mt-1">Visualisez votre utilisation des données en temps réel</p> | |
| </div> | |
| <div class="hidden md:block"> | |
| <div class="flex items-center space-x-4"> | |
| <div class="bg-blue-500 px-3 py-1 rounded-full text-sm"> | |
| <i class="fas fa-circle text-green-300 mr-1"></i> Service actif | |
| </div> | |
| <button class="bg-white text-blue-600 px-4 py-2 rounded-lg font-medium hover:bg-blue-50 transition"> | |
| <i class="fas fa-question-circle mr-1"></i> Aide | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="container mx-auto px-4 py-8"> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden mb-8"> | |
| <div class="p-6"> | |
| <h2 class="text-2xl font-semibold text-gray-800 mb-4">Rechercher la consommation</h2> | |
| <div class="mb-6"> | |
| <div class="switch-field mb-4"> | |
| <input type="radio" id="serial-radio" name="search-type" value="serial" checked /> | |
| <label for="serial-radio"><i class="fas fa-router mr-1"></i> Numéro de série</label> | |
| <input type="radio" id="ppp-radio" name="search-type" value="ppp" /> | |
| <label for="ppp-radio"><i class="fas fa-user mr-1"></i> PPP User</label> | |
| </div> | |
| <div id="serial-input" class="search-input"> | |
| <label for="serial-number" class="block text-sm font-medium text-gray-700 mb-1">Numéro de série du routeur</label> | |
| <div class="flex"> | |
| <input type="text" id="serial-number" class="flex-1 rounded-l-lg border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="Ex: RTR123456789"> | |
| <button id="search-serial" class="bg-blue-600 text-white px-6 py-2 rounded-r-lg hover:bg-blue-700 transition"> | |
| <i class="fas fa-search mr-1"></i> Rechercher | |
| </button> | |
| </div> | |
| </div> | |
| <div id="ppp-input" class="search-input hidden"> | |
| <label for="ppp-user" class="block text-sm font-medium text-gray-700 mb-1">Identifiant PPP</label> | |
| <div class="flex"> | |
| <input type="text" id="ppp-user" class="flex-1 rounded-l-lg border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="Ex: client1234"> | |
| <button id="search-ppp" class="bg-blue-600 text-white px-6 py-2 rounded-r-lg hover:bg-blue-700 transition"> | |
| <i class="fas fa-search mr-1"></i> Rechercher | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-200 pt-4"> | |
| <div class="flex items-center text-sm text-gray-500"> | |
| <i class="fas fa-info-circle mr-2 text-blue-500"></i> | |
| <p>Vous pouvez trouver le numéro de série sur l'étiquette au dos de votre routeur ou dans l'interface d'administration.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Résultats --> | |
| <div id="results" class="hidden"> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden mb-8"> | |
| <div class="p-6"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-semibold text-gray-800">Détails de consommation</h2> | |
| <div class="flex space-x-2"> | |
| <button id="refresh-btn" class="bg-gray-100 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-200 transition"> | |
| <i class="fas fa-sync-alt mr-1"></i> Actualiser | |
| </button> | |
| <button id="export-btn" class="bg-blue-100 text-blue-700 px-4 py-2 rounded-lg hover:bg-blue-200 transition"> | |
| <i class="fas fa-file-export mr-1"></i> Exporter | |
| </button> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8"> | |
| <div class="bg-blue-50 p-4 rounded-lg border border-blue-100"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-sm text-blue-600 font-medium">Consommation totale</p> | |
| <h3 id="total-usage" class="text-2xl font-bold text-gray-800 mt-1">-- GB</h3> | |
| </div> | |
| <div class="bg-blue-100 p-2 rounded-full"> | |
| <i class="fas fa-database text-blue-600"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="h-2 bg-blue-200 rounded-full overflow-hidden"> | |
| <div id="usage-bar" class="h-full bg-blue-600 rounded-full" style="width: 0%"></div> | |
| </div> | |
| <p id="usage-percent" class="text-xs text-gray-500 mt-1 text-right">0% du quota utilisé</p> | |
| </div> | |
| </div> | |
| <div class="bg-green-50 p-4 rounded-lg border border-green-100"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-sm text-green-600 font-medium">Téléchargement</p> | |
| <h3 id="download-usage" class="text-2xl font-bold text-gray-800 mt-1">-- GB</h3> | |
| </div> | |
| <div class="bg-green-100 p-2 rounded-full"> | |
| <i class="fas fa-download text-green-600"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="h-2 bg-green-200 rounded-full overflow-hidden"> | |
| <div id="download-bar" class="h-full bg-green-600 rounded-full" style="width: 0%"></div> | |
| </div> | |
| <p class="text-xs text-gray-500 mt-1 text-right">Dernière mise à jour: <span id="last-update">--</span></p> | |
| </div> | |
| </div> | |
| <div class="bg-purple-50 p-4 rounded-lg border border-purple-100"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-sm text-purple-600 font-medium">Upload</p> | |
| <h3 id="upload-usage" class="text-2xl font-bold text-gray-800 mt-1">-- GB</h3> | |
| </div> | |
| <div class="bg-purple-100 p-2 rounded-full"> | |
| <i class="fas fa-upload text-purple-600"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="h-2 bg-purple-200 rounded-full overflow-hidden"> | |
| <div id="upload-bar" class="h-full bg-purple-600 rounded-full" style="width: 0%"></div> | |
| </div> | |
| <p class="text-xs text-gray-500 mt-1 text-right">Période: <span id="period">--</span></p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mb-8"> | |
| <h3 class="text-lg font-medium text-gray-800 mb-4">Historique de consommation (30 derniers jours)</h3> | |
| <div class="consumption-chart bg-gray-50 p-4 rounded-lg border border-gray-200"> | |
| <div id="chart-container" class="h-full w-full flex items-end justify-between"> | |
| <!-- Les barres seront ajoutées dynamiquement ici --> | |
| </div> | |
| <div class="tooltip" id="chart-tooltip"></div> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <div class="bg-white border border-gray-200 rounded-lg p-4"> | |
| <h3 class="text-lg font-medium text-gray-800 mb-3">Détails du client</h3> | |
| <div class="space-y-3"> | |
| <div class="flex justify-between"> | |
| <span class="text-gray-600">Nom:</span> | |
| <span id="client-name" class="font-medium">--</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-gray-600">Contrat:</span> | |
| <span id="contract" class="font-medium">--</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-gray-600">Forfait:</span> | |
| <span id="plan" class="font-medium">--</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-gray-600">Quota:</span> | |
| <span id="quota" class="font-medium">--</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white border border-gray-200 rounded-lg p-4"> | |
| <h3 class="text-lg font-medium text-gray-800 mb-3">Détails techniques</h3> | |
| <div class="space-y-3"> | |
| <div class="flex justify-between"> | |
| <span class="text-gray-600">IP publique:</span> | |
| <span id="public-ip" class="font-medium">--</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-gray-600">Routeur:</span> | |
| <span id="router-model" class="font-medium">--</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-gray-600">Connexion:</span> | |
| <span id="connection-type" class="font-medium">--</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-gray-600">Dernière activité:</span> | |
| <span id="last-activity" class="font-medium">--</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden"> | |
| <div class="p-6"> | |
| <h3 class="text-lg font-medium text-gray-800 mb-4">Alertes et notifications</h3> | |
| <div class="space-y-4"> | |
| <div class="flex items-start"> | |
| <div class="bg-yellow-100 p-2 rounded-full mr-3 mt-1"> | |
| <i class="fas fa-exclamation-triangle text-yellow-600"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium text-gray-800">Seuil d'alerte</p> | |
| <p class="text-sm text-gray-600">Vous recevrez une notification lorsque vous atteindrez 80% de votre quota mensuel.</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="bg-blue-100 p-2 rounded-full mr-3 mt-1"> | |
| <i class="fas fa-bell text-blue-600"></i> | |
| </div> | |
| <div> | |
| <p class="font-medium text-gray-800">Notifications</p> | |
| <div class="flex items-center space-x-4 mt-1"> | |
| <label class="inline-flex items-center"> | |
| <input type="checkbox" class="form-checkbox h-4 w-4 text-blue-600" checked> | |
| <span class="ml-2 text-sm text-gray-700">Email</span> | |
| </label> | |
| <label class="inline-flex items-center"> | |
| <input type="checkbox" class="form-checkbox h-4 w-4 text-blue-600"> | |
| <span class="ml-2 text-sm text-gray-700">SMS</span> | |
| </label> | |
| <button class="text-sm text-blue-600 hover:text-blue-800">Enregistrer</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <footer class="bg-gray-800 text-white py-8 mt-12"> | |
| <div class="container mx-auto px-4"> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> | |
| <div> | |
| <h3 class="text-lg font-semibold mb-4">Suivi Consommation</h3> | |
| <p class="text-gray-400 text-sm">Outil de suivi de consommation internet pour les clients et techniciens.</p> | |
| </div> | |
| <div> | |
| <h3 class="text-lg font-semibold mb-4">Liens utiles</h3> | |
| <ul class="space-y-2 text-sm text-gray-400"> | |
| <li><a href="#" class="hover:text-white transition">FAQ</a></li> | |
| <li><a href="#" class="hover:text-white transition">Support technique</a></li> | |
| <li><a href="#" class="hover:text-white transition">Conditions d'utilisation</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="text-lg font-semibold mb-4">Contact</h3> | |
| <ul class="space-y-2 text-sm text-gray-400"> | |
| <li><i class="fas fa-envelope mr-2"></i> support@example.com</li> | |
| <li><i class="fas fa-phone mr-2"></i> +123 456 7890</li> | |
| </ul> | |
| </div> | |
| <div> | |
| < | |
| </html> |