Spaces:
Running
Running
Download index.html from dowoh/ui-webhook-dua: direct link, hf CLI and curl.
- Browser
- Download file 20.1 kB
-
https://huggingface.co/spaces/dowoh/ui-webhook-dua/resolve/main/index.html
- Command line
-
hf download hf://spaces/dowoh/ui-webhook-dua/index.html
-
curl -L -o index.html https://huggingface.co/spaces/dowoh/ui-webhook-dua/resolve/main/index.html
20.1 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>AI Dashboard</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"> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: '#4f46e5', | |
| secondary: '#10b981', | |
| accent: '#f59e0b', | |
| dark: '#1f2937', | |
| light: '#f9fafb', | |
| slate: { | |
| 800: '#1e293b' | |
| } | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <style> | |
| .tab-content { | |
| display: none; | |
| } | |
| .tab-content.active { | |
| display: block; | |
| animation: fadeIn 0.3s ease-in-out; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; transform: translateY(5px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| .card { | |
| transition: all 0.2s ease; | |
| } | |
| .card:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); | |
| } | |
| .btn-primary { | |
| background-image: linear-gradient(to right, #4f46e5, #6366f1); | |
| transition: all 0.3s ease; | |
| } | |
| .btn-primary:hover { | |
| transform: translateY(-1px); | |
| box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3); | |
| } | |
| .btn-secondary { | |
| background-image: linear-gradient(to right, #10b981, #34d399); | |
| transition: all 0.3s ease; | |
| } | |
| .btn-secondary:hover { | |
| transform: translateY(-1px); | |
| box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3); | |
| } | |
| .btn-outline { | |
| transition: all 0.3s ease; | |
| } | |
| .btn-outline:hover { | |
| transform: translateY(-1px); | |
| background-color: #f8fafc; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 font-sans"> | |
| <div class="min-h-screen"> | |
| <!-- Navbar Container --> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <!-- Navbar --> | |
| <nav class="bg-white shadow-sm rounded-lg mt-4"> | |
| <div class="flex justify-between items-center h-16 px-6"> | |
| <!-- Logo --> | |
| <div class="flex-shrink-0"> | |
| <span class="text-primary text-xl font-bold">AI<span class="text-secondary">Console</span></span> | |
| </div> | |
| <!-- Navigation Tabs --> | |
| <div class="hidden md:block"> | |
| <div class="flex space-x-8"> | |
| <!-- Webhook Tab --> | |
| <a href="#" data-tab="webhook" class="tab-link px-1 py-4 text-sm font-medium flex items-center border-b-2 border-primary text-primary"> | |
| <i class="fas fa-link mr-2"></i> Webhook | |
| </a> | |
| <!-- AI Training Tab --> | |
| <a href="#" data-tab="training" class="tab-link px-1 py-4 text-sm font-medium flex items-center text-slate-500 hover:text-slate-800 border-b-2 border-transparent hover:border-primary/30"> | |
| <i class="fas fa-brain mr-2"></i> AI Training | |
| </a> | |
| <!-- Statistics Tab --> | |
| <a href="#" data-tab="stats" class="tab-link px-1 py-4 text-sm font-medium flex items-center text-slate-500 hover:text-slate-800 border-b-2 border-transparent hover:border-primary/30"> | |
| <i class="fas fa-chart-bar mr-2"></i> Statistics | |
| </a> | |
| </div> | |
| </div> | |
| <!-- User Menu --> | |
| <div class="ml-4 flex items-center md:ml-6"> | |
| <button class="p-1 rounded-full text-slate-400 hover:text-slate-800 focus:outline-none"> | |
| <i class="fas fa-bell text-lg"></i> | |
| </button> | |
| <div class="ml-3 relative"> | |
| <div class="flex items-center"> | |
| <span class="text-sm font-medium text-slate-800 mr-2 hidden md:inline">Admin</span> | |
| <img class="h-8 w-8 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&auto=format&fit=facearea&facepad=2&w=32&h=32&q=80" alt="User profile"> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Mobile menu button --> | |
| <div class="md:hidden flex items-center"> | |
| <button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-slate-400 hover:text-slate-800 hover:bg-slate-100 focus:outline-none"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </nav> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> | |
| <!-- Webhook Tab Content --> | |
| <div id="webhook" class="tab-content active"> | |
| <div class="bg-white rounded-xl shadow-sm p-6"> | |
| <div class="flex items-center justify-between mb-6"> | |
| <h2 class="text-lg font-semibold text-slate-800"> | |
| <i class="fas fa-link text-primary mr-2"></i> Webhook Configuration | |
| </h2> | |
| <span class="px-3 py-1 rounded-full text-xs font-medium bg-green-100 text-green-800 flex items-center"> | |
| <span class="w-2 h-2 rounded-full bg-green-500 mr-2"></span> | |
| Active | |
| </span> | |
| </div> | |
| <div class="space-y-6"> | |
| <div> | |
| <label for="webhook-url" class="block text-sm font-medium text-slate-800 mb-1">Webhook URL</label> | |
| <div class="mt-1 relative rounded-md shadow-sm"> | |
| <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | |
| <i class="fas fa-link text-slate-800"></i> | |
| </div> | |
| <input type="text" id="webhook-url" class="block w-full pl-10 py-3 rounded-md border-slate-300 shadow-sm focus:border-primary focus:ring-primary sm:text-sm text-slate-800" placeholder="https://yourdomain.com/webhook"> | |
| </div> | |
| <p class="mt-2 text-sm text-slate-500">This endpoint will receive all incoming messages.</p> | |
| </div> | |
| <div> | |
| <label for="webhook-events" class="block text-sm font-medium text-slate-800 mb-1">Events to Receive</label> | |
| <select id="webhook-events" class="mt-1 block w-full rounded-md border-slate-300 py-3 pl-3 pr-10 text-base focus:border-primary focus:outline-none focus:ring-primary sm:text-sm text-slate-800"> | |
| <option>All Events</option> | |
| <option>Messages Only</option> | |
| <option>Errors Only</option> | |
| </select> | |
| </div> | |
| <div class="pt-4 border-t border-slate-200 flex justify-end space-x-3"> | |
| <button type="button" class="inline-flex items-center rounded-md border border-slate-300 bg-white px-4 py-2 text-sm font-medium text-slate-800 shadow-sm hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2"> | |
| <i class="fas fa-times text-slate-800 mr-2"></i> Cancel | |
| </button> | |
| <button type="button" class="inline-flex items-center rounded-md border border-transparent bg-primary px-4 py-2 text-sm font-medium text-slate-800 shadow-sm hover:bg-primary/90 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2"> | |
| <i class="fas fa-save text-slate-800 mr-2"></i> Save Changes | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- AI Training Tab Content --> | |
| <div id="training" class="tab-content"> | |
| <div class="bg-white rounded-xl shadow-sm p-6"> | |
| <h2 class="text-lg font-semibold text-slate-800 mb-6"> | |
| <i class="fas fa-brain text-secondary mr-2"></i> AI Model Training | |
| </h2> | |
| <div class="space-y-6"> | |
| <div> | |
| <label for="training-prompt" class="block text-sm font-medium text-slate-800 mb-1">Training Prompt</label> | |
| <textarea id="training-prompt" rows="6" class="block w-full rounded-md border-slate-300 shadow-sm focus:border-secondary focus:ring-secondary sm:text-sm p-3 text-slate-800" placeholder="Enter training data or instructions for the AI model..."></textarea> | |
| <p class="mt-2 text-sm text-slate-500">Provide clear examples and expected responses to improve the AI's performance.</p> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-4"> | |
| <div> | |
| <label for="model-select" class="block text-sm font-medium text-slate-800 mb-1">Model Version</label> | |
| <select id="model-select" class="mt-1 block w-full rounded-md border-slate-300 py-3 pl-3 pr-10 text-base focus:border-secondary focus:outline-none focus:ring-secondary sm:text-sm text-slate-800"> | |
| <option>GPT-4</option> | |
| <option>GPT-3.5</option> | |
| <option selected>Custom Model v2.1</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label for="training-mode" class="block text-sm font-medium text-slate-800 mb-1">Training Mode</label> | |
| <select id="training-mode" class="mt-1 block w-full rounded-md border-slate-300 py-3 pl-3 pr-10 text-base focus:border-secondary focus:outline-none focus:ring-secondary sm:text-sm text-slate-800"> | |
| <option selected>Standard Training</option> | |
| <option>Fine Tuning</option> | |
| <option>Reinforcement Learning</option> | |
| </select> | |
| </div> | |
| </div> | |
| <div class="pt-4 border-t border-slate-200 flex justify-end space-x-3"> | |
| <button type="button" class="inline-flex items-center rounded-md border border-slate-300 bg-white px-4 py-2 text-sm font-medium text-slate-800 shadow-sm hover:bg-slate-50 focus:outline-none focus:ring-2 focus:ring-secondary focus:ring-offset-2"> | |
| <i class="fas fa-times text-slate-800 mr-2"></i> Cancel | |
| </button> | |
| <button type="button" class="btn-secondary inline-flex items-center rounded-md border border-transparent px-4 py-2 text-sm font-medium text-slate-800 shadow-sm focus:outline-none focus:ring-2 focus:ring-secondary focus:ring-offset-2"> | |
| <i class="fas fa-play text-slate-800 mr-2"></i> Start Training | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Statistics Tab Content --> | |
| <div id="stats" class="tab-content"> | |
| <div class="space-y-6"> | |
| <h2 class="text-lg font-semibold text-slate-800"> | |
| <i class="fas fa-chart-bar text-accent mr-2"></i> Performance Statistics | |
| </h2> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6"> | |
| <!-- Total Messages Card --> | |
| <div class="card bg-white rounded-xl shadow-sm p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-slate-500">Total Messages</p> | |
| <p class="mt-1 text-3xl font-semibold text-slate-800">12,487</p> | |
| </div> | |
| <div class="p-3 rounded-full bg-blue-100 text-blue-600"> | |
| <i class="fas fa-comments text-xl"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex items-center text-sm text-slate-500"> | |
| <span class="text-green-500 font-medium flex items-center"> | |
| <i class="fas fa-arrow-up mr-1"></i> 12.5% | |
| </span> | |
| <span class="ml-2">vs last week</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Average Response Time Card --> | |
| <div class="card bg-white rounded-xl shadow-sm p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-slate-500">Avg Response Time</p> | |
| <p class="mt-1 text-3xl font-semibold text-slate-800">1.4s</p> | |
| </div> | |
| <div class="p-3 rounded-full bg-green-100 text-green-600"> | |
| <i class="fas fa-stopwatch text-xl"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex items-center text-sm text-slate-500"> | |
| <span class="text-green-500 font-medium flex items-center"> | |
| <i class="fas fa-arrow-down mr-1"></i> 8.3% | |
| </span> | |
| <span class="ml-2">faster than last week</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Ignored Messages Card --> | |
| <div class="card bg-white rounded-xl shadow-sm p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-slate-500">Ignored Messages</p> | |
| <p class="mt-1 text-3xl font-semibold text-slate-800">327</p> | |
| </div> | |
| <div class="p-3 rounded-full bg-amber-100 text-amber-600"> | |
| <i class="fas fa-eye-slash text-xl"></i> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex items-center text-sm text-slate-500"> | |
| <span class="text-red-500 font-medium flex items-center"> | |
| <i class="fas fa-arrow-up mr-1"></i> 3.2% | |
| </span> | |
| <span class="ml-2">vs last week</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Activity Chart --> | |
| <div class="bg-white rounded-xl shadow-sm p-6"> | |
| <div class="flex items-center justify-between mb-6"> | |
| <h3 class="text-base font-medium text-slate-800">Message Activity (Last 7 Days)</h3> | |
| <select class="rounded-md border-slate-300 text-sm focus:border-primary focus:ring-primary text-slate-800"> | |
| <option>Last Week</option> | |
| <option>Last Month</option> | |
| <option>Last Quarter</option> | |
| </select> | |
| </div> | |
| <div class="h-64 bg-slate-50 rounded-lg border border-slate-200 flex items-center justify-center"> | |
| <p class="text-slate-400">Activity chart visualization would appear here</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Tab switching functionality | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const tabLinks = document.querySelectorAll('.tab-link'); | |
| const tabContents = document.querySelectorAll('.tab-content'); | |
| tabLinks.forEach(link => { | |
| link.addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| // Remove active classes from all tabs | |
| tabLinks.forEach(l => { | |
| l.classList.remove('border-primary', 'text-primary'); | |
| l.classList.add('text-slate-500', 'border-transparent'); | |
| }); | |
| // Add active class to clicked tab | |
| this.classList.add('border-primary', 'text-primary'); | |
| this.classList.remove('text-slate-500', 'border-transparent'); | |
| // Hide all tab contents | |
| tabContents.forEach(content => { | |
| content.classList.remove('active'); | |
| }); | |
| // Show the selected tab content | |
| const tabId = this.getAttribute('data-tab'); | |
| document.getElementById(tabId).classList.add('active'); | |
| }); | |
| }); | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=dowoh/ui-webhook-dua" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |