Spaces:
Running
Running
File size: 8,295 Bytes
aef6574 f488d21 aef6574 f488d21 aef6574 f488d21 aef6574 f488d21 aef6574 f488d21 aef6574 f488d21 aef6574 f488d21 f57d3aa f488d21 aef6574 f57d3aa aef6574 5965e86 aef6574 f488d21 aef6574 f488d21 aef6574 f488d21 aef6574 f488d21 aef6574 f488d21 aef6574 f488d21 aef6574 f488d21 aef6574 f488d21 aef6574 f488d21 aef6574 f488d21 aef6574 f488d21 aef6574 f488d21 aef6574 f57d3aa aef6574 5965e86 aef6574 f488d21 aef6574 e13e924 aef6574 e13e924 aef6574 e13e924 aef6574 e13e924 aef6574 f488d21 aef6574 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | <!DOCTYPE html>
<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> |