107 lines
3.2 KiB
HTML
107 lines
3.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Safira Chat</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
|
<script src="chat.js"></script>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
</head>
|
|
|
|
<body class="dark">
|
|
|
|
<div class="top-bar">
|
|
<h1>Safira AI Chat</h1>
|
|
<button onclick="window.location='/auth/login'">Login</button>
|
|
<button onclick="window.location='/login'">Login with Google</button>
|
|
|
|
<button onclick="toggleTheme()">Toggle theme</button>
|
|
<button onclick="searchMessages()">Search</button>
|
|
<button onclick="addTags()">Tags</button>
|
|
<button onclick="shareConversation()">Share</button>
|
|
<button onclick="exportMD()">Export MD</button>
|
|
<button onclick="exportPDF()">Export PDF</button>
|
|
<button onclick="exportPPTX()">Exportar PPTX</button>
|
|
<button onclick="exportODP()">Exportar ODP</button>
|
|
<button onclick="exportTXT()">Exportar TXT</button>
|
|
<button onclick="exportMD()">Exportar Markdown</button>
|
|
<button onclick="exportHTML()">Exportar HTML</button>
|
|
<button onclick="exportDOCX()">Exportar DOCX</button>
|
|
<button onclick="exportODT()">Exportar ODT</button>
|
|
|
|
|
|
<input type="file" id="importFile" onchange="importFile()">
|
|
|
|
<!-- Botões extras -->
|
|
<button onclick="openSearch()">Search</button>
|
|
<button onclick="openTags()">Tags</button>
|
|
<button onclick="openShare()">Share</button>
|
|
<button onclick="exportMD()">Export MD</button>
|
|
<button onclick="exportPDF()">Export PDF</button>
|
|
<input type="file" id="audioFile" onchange="sendAudio()">
|
|
<input type="file" id="visionFile" onchange="sendImage()">
|
|
|
|
<input type="file" id="excelFile" onchange="importExcel()">
|
|
|
|
<div id="upgrade-banner" class="hidden">
|
|
Seu plano atual limita algumas funcionalidades.
|
|
<a href="/upgrade">Clique aqui para melhorar seu plano</a>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<button onclick="newConversation()">New Conversation</button>
|
|
|
|
<div id="chat"></div>
|
|
|
|
<textarea id="prompt" placeholder="Type your message..."></textarea>
|
|
<button onclick="sendMessage()">Send</button>
|
|
<hr>
|
|
|
|
<label for="model">Model:</label>
|
|
<select id="model">
|
|
<option value="llama3.2">Llama 3.2</option>
|
|
<option value="gemma4">Gemma 4</option>
|
|
<option value="qwen2.5">Qwen 2.5</option>
|
|
</select>
|
|
|
|
|
|
|
|
<div class="tabs" id="tabs"></div>
|
|
|
|
<div class="chat-container">
|
|
<div id="chat"></div>
|
|
</div>
|
|
|
|
<div class="input-bar">
|
|
<input type="file" id="attachment">
|
|
<textarea id="prompt" placeholder="Type your message..."></textarea>
|
|
<button onclick="sendMessage()">Send</button>
|
|
</div>
|
|
|
|
|
|
<button onclick="sendPrompt()">Generate</button>
|
|
|
|
<div id="output"></div>
|
|
|
|
<footer>
|
|
<a href="/legal/termos-de-uso.html" target="_blank">Termos de Uso</a> ·
|
|
<a href="/legal/politica-privacidade.html" target="_blank">Política de Privacidade</a> ·
|
|
<a href="/legal/dpa.html" target="_blank">DPA</a> ·
|
|
<a href="/legal/politica-cookies.html" target="_blank">Política de Cookies</a> ·
|
|
<a href="/legal/politica-seguranca.html" target="_blank">Política de Segurança</a> ·
|
|
<a href="/legal/consentimento-treinamento.html" target="_blank">Consentimento para Treinamento</a>
|
|
</footer>
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|
|
<textarea id="prompt" placeholder="Type your prompt here..."></textarea>
|
|
|
|
|
|
</body>
|
|
</html>
|