-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
79 lines (68 loc) · 3.03 KB
/
popup.html
File metadata and controls
79 lines (68 loc) · 3.03 KB
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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mistral OCR - PDF Extractor</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<div class="header">
<h1>🔍 Mistral OCR</h1>
<p>Extraia texto de PDFs em Markdown</p>
</div>
<div class="content">
<!-- Configuração da API Key -->
<div class="section">
<div class="section-title">⚙️ Configuração</div>
<div class="info-box">
Obtenha sua chave gratuita em <strong>mistral.ai</strong> • Processamento: ~$0.001 por página
</div>
<div class="form-group">
<label for="apiKey">Chave API Mistral</label>
<input type="password" id="apiKey" placeholder="sk-..." autocomplete="off">
<small style="display: block; margin-top: 6px; color: #6B7280;">
Sua chave é salva apenas localmente no navegador
</small>
</div>
</div>
<div class="divider"></div>
<!-- Seleção de PDF -->
<div class="section">
<div class="section-title">📄 PDFs Detectados</div>
<div id="pdfCount" style="font-size: 12px; color: #6B7280; margin-bottom: 10px;">
Nenhum PDF encontrado
</div>
<div id="pdfList" class="pdf-list" style="display: none;">
</div>
<div id="noPdfMessage" style="font-size: 12px; color: #6B7280; padding: 12px; text-align: center;">
Abra uma página com PDFs (links ou incorporados)
</div>
</div>
<!-- Status -->
<div id="status" class="status"></div>
<!-- Botões de ação -->
<div class="button-group">
<button class="btn-secondary" id="btnRefresh">🔄 Atualizar</button>
<button class="btn-primary" id="btnProcess" disabled>
⚡ Processar com OCR
</button>
</div>
<div class="divider"></div>
<!-- Saída Markdown -->
<div class="section">
<div class="section-title">📋 Resultado Markdown</div>
<div id="outputSection" class="output-section">
<div id="markdownOutput" class="markdown-output"></div>
<div class="button-group" style="margin-top: 12px;">
<button class="btn-secondary" id="btnCopy">📋 Copiar</button>
<button class="btn-secondary" id="btnDownload">⬇️ Download</button>
</div>
</div>
</div>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>