Spaces:
Running
Running
Download admin.html from Epiphanio12/timesync-commander: direct link, hf CLI and curl.
- Browser
- Download file 8.3 kB
-
https://huggingface.co/spaces/Epiphanio12/timesync-commander/resolve/main/admin.html
- Command line
-
hf download hf://spaces/Epiphanio12/timesync-commander/admin.html
-
curl -L -o admin.html https://huggingface.co/spaces/Epiphanio12/timesync-commander/resolve/main/admin.html
8.3 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Admin - TimeSync Commander - Controle de Tempo</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| </head> | |
| <body class="bg-gray-900 text-white"> | |
| <div id="app" class="min-h-screen p-4 max-w-7xl mx-auto"> | |
| <!-- | |
| Entrar | |
| Container --> | |
| <div id="login-container" class="max-w-md mx-auto mt-20"> | |
| <div class="bg-gray-800 rounded-lg p-8 shadow-lg"> | |
| <div class="text-center mb-6"> | |
| <i data-feather="shield" class="w-12 h-12 mx-auto mb-4 text-blue-500"></i> | |
| <h1 class="text-2xl font-bold">Acesso Administrativo</h1> | |
| </div> | |
| <form id="login-form" class="space-y-4"> | |
| <div> | |
| <label for="email" class="block mb-1">E-mail</label> | |
| <input type="email" id="email" required | |
| class="w-full bg-gray-700 border border-gray-600 rounded px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| </div> | |
| <div> | |
| <label for="password" class="block mb-1">Senha</label> | |
| <input type="password" id="password" required | |
| class="w-full bg-gray-700 border border-gray-600 rounded px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| </div> | |
| <button type="submit" | |
| class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded transition"> | |
| Login | |
| </button> | |
| </form> | |
| <div id="login-error" class="mt-4 text-red-400 hidden"></div> | |
| </div> | |
| </div> | |
| <!-- Dashboard Container --> | |
| <div id="dashboard-container" class="hidden"> | |
| <header class="flex justify-between items-center mb-8"> | |
| <h1 class="text-2xl font-bold">Painel Administrativo</h1> | |
| <button id="logout-button" class="bg-red-600 hover:bg-red-700 text-white px-4 py-2 rounded transition"> | |
| Sair | |
| </button> | |
| </header> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6"> | |
| <!-- Main Configuration Section --> | |
| <div class="dashboard-section bg-gray-800 rounded-lg p-6 lg:col-span-2"> | |
| <h2 class="text-xl font-semibold mb-4 flex items-center"> | |
| <i data-feather="settings" class="mr-2"></i> | |
| Configuração Principal | |
| </h2> | |
| <form id="config-form" class="space-y-4"> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-4"> | |
| <div> | |
| <label for="config-programa" class="block mb-1">Nome do Programa</label> | |
| <input type="text" id="config-programa" | |
| class="w-full bg-gray-700 border border-gray-600 rounded px-4 py-2"> | |
| </div> | |
| <div> | |
| <label for="config-tema" class="block mb-1">Tema Atual</label> | |
| <input type="text" id="config-tema" | |
| class="w-full bg-gray-700 border border-gray-600 rounded px-4 py-2"> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-4"> | |
| <div> | |
| <label for="config-momento" class="block mb-1">Texto de Status</label> | |
| <input type="text" id="config-momento" | |
| class="w-full bg-gray-700 border border-gray-600 rounded px-4 py-2"> | |
| </div> | |
| <div> | |
| <label for="config-falta" class="block mb-1">Tempo (HH:MM:SS)</label> | |
| <input type="text" id="config-falta" | |
| class="w-full bg-gray-700 border border-gray-600 rounded px-4 py-2"> | |
| </div> | |
| </div> | |
| <div> | |
| <label for="config-aviso" class="block mb-1">Mensagem de Aviso</label> | |
| <textarea id="config-aviso" rows="2" | |
| class="w-full bg-gray-700 border border-gray-600 rounded px-4 py-2"></textarea> | |
| <button type="button" id="btn-clear-aviso" | |
| class="mt-2 bg-yellow-600 hover:bg-yellow-700 text-white px-3 py-1 rounded text-sm transition"> | |
| Limpar Aviso | |
| </button> | |
| </div> | |
| <div class="flex items-center"> | |
| <label class="inline-flex items-center"> | |
| <input type="checkbox" id="ignore-external-files" class="rounded text-blue-500"> | |
| <span class="ml-2">Ignorar Arquivos Externos (Modo Admin)</span> | |
| </label> | |
| </div> | |
| <div class="flex flex-wrap gap-2 mt-4"> | |
| <button type="button" id="btn-set-ativo" | |
| class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded transition"> | |
| INICIAR | |
| </button> | |
| <button type="button" id="btn-set-pausado" | |
| class="bg-yellow-600 hover:bg-yellow-700 text-white px-4 py-2 rounded transition"> | |
| PAUSAR | |
| </button> | |
| <button type="button" id="btn-set-inativo" | |
| class="bg-red-600 hover:bg-red-700 text-white px-4 py-2 rounded transition"> | |
| PARAR (FINALIZAR) | |
| </button> | |
| <button type="submit" | |
| class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded transition"> | |
| Salvar Configuração | |
| </button> | |
| </div> | |
| </form> | |
| </div> | |
| <!-- Quick Time Controls --> | |
| <div class="dashboard-section bg-gray-800 rounded-lg p-6"> | |
| <h2 class="text-xl font-semibold mb-4 flex items-center"> | |
| <i data-feather="clock" class="mr-2"></i> | |
| Controles Rápidos de Tempo | |
| </h2> | |
| <div class="grid grid-cols-2 gap-3"> | |
| <button class="time-preset" data-time="00:00:00" | |
| class="bg-gray-700 hover:bg-gray-600 px-3 py-2 rounded transition"> | |
| Set 00:00:00 | |
| </button> | |
| <button class="time-preset" data-time="00:15:00" | |
| class="bg-gray-700 hover:bg-gray-600 px-3 py-2 rounded transition"> | |
| Set 00:15:00 | |
| </button> | |
| <button class="time-preset" data-time="00:30:00" | |
| class="bg-gray-700 hover:bg-gray-600 px-3 py-2 rounded transition"> | |
| Set 00:30:00 | |
| </button> | |
| <button class="time-preset" data-time="01:00:00" | |
| class="bg-gray-700 hover:bg-gray-600 px-3 py-2 rounded transition"> | |
| Set 01:00:00 | |
| </button> | |
| <button class="time-preset" data-time="02:00:00" | |
| class="bg-gray-700 hover:bg-gray-600 px-3 py-2 rounded transition"> | |
| Set 02:00:00{"ok":false,"message":"Request timeout: The AI model took too long to respond. Please try again with a simpler prompt or try a different model."} | |
| </body> | |
| </html> |