35 lines
1.9 KiB
HTML
35 lines
1.9 KiB
HTML
<!DOCTYPE html><html lang="fr"><head><meta charset="UTF-8"><title>V63 Send Queue</title>
|
|
<style>
|
|
body{font-family:-apple-system,sans-serif;background:#0b1220;color:#e5e7eb;padding:20px;margin:0}
|
|
h1{color:#60a5fa;margin:0 0 20px 0}
|
|
.meta{background:#111827;padding:12px;border-radius:8px;margin-bottom:20px;font-size:13px}
|
|
.card{background:#111827;border:1px solid #1f2937;border-radius:8px;padding:16px;margin:12px 0}
|
|
.card h3{margin:0 0 8px 0;color:#fbbf24}
|
|
.card p{margin:4px 0;font-size:13px}
|
|
.critical{border-left:4px solid #ef4444}
|
|
.high{border-left:4px solid #f59e0b}
|
|
.btn{display:inline-block;background:#2563eb;color:white;padding:10px 16px;border-radius:6px;text-decoration:none;margin-top:8px;font-weight:600}
|
|
.btn:hover{background:#1d4ed8}
|
|
.status{font-size:11px;padding:2px 8px;border-radius:4px;background:#064e3b;color:#86efac}
|
|
.recipient{color:#a78bfa;font-weight:600}
|
|
</style></head><body>
|
|
<h1>📬 V63 Send Queue — 1-click Gmail compose</h1>
|
|
<div class="meta" id="meta">Loading...</div>
|
|
<div id="list"></div>
|
|
<script>
|
|
async function load(){
|
|
const r = await fetch('/api/v63-send-queue-master.php'); const d = await r.json();
|
|
document.getElementById('meta').innerHTML =
|
|
`<strong>${d.queue_size} drafts ready</strong> · Potential <strong>${d.total_amount_potential_keur||0} k€</strong> · `+
|
|
`<em>${d.zero_manuel_path}</em>`;
|
|
document.getElementById('list').innerHTML = d.queue.map(q => `
|
|
<div class="card ${q.priority.toLowerCase()}">
|
|
<h3>${q.subject}</h3>
|
|
<p>To: <span class="recipient">${q.recipient}</span> <${q.to}></p>
|
|
<p><span class="status">${q.status}</span> · Priority ${q.priority}${q.amount_potential_keur?' · '+q.amount_potential_keur+' k€':''}</p>
|
|
<a class="btn" href="${q.gmail_url}" target="_blank" rel="noopener">📧 Open Gmail compose (pre-filled)</a>
|
|
</div>`).join('');
|
|
}
|
|
load(); setInterval(load, 30000);
|
|
</script></body></html>
|