diff --git a/.gitignore b/.gitignore index 5a5d48f..e35f993 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,19 @@ +# Node +admin-ui/node_modules/ +admin-ui/dist/ + +# Python __pycache__/ -*.py[cod] -*.env +*.pyc +*.pyo .env -*.log -*.sqlite3 +*.egg-info/ .venv/ venv/ -dist/ -build/ -*.egg-info/ -node_modules/ -.DS_Store + +# Docker +.docker/ + +# Editor +.vscode/ +.idea/ diff --git a/admin-ui/index.html b/admin-ui/index.html new file mode 100644 index 0000000..065389d --- /dev/null +++ b/admin-ui/index.html @@ -0,0 +1,13 @@ + + +
+ + + +Contas IMAP configuradas
+| Nome | +IMAP | +Estado | +Ações | +|
|---|---|---|---|---|
| {a.name} | +{a.email} | ++ {a.imap_host}:{a.imap_port} + | +
+
+
+ |
+
+
+
+
+
+
+ |
+
{label}
+ {!ok && error &&{error}
} ++ Verifica a conectividade IMAP, SMTP e BizDocs sem guardar dados +
+{label}
+{value}
+ {sub &&{sub}
} +Estado geral do forwarder
++ Última sincronização: {new Date(stats.last_sync_at).toLocaleString('pt-PT')} +
+ )} + > + )} +Histórico de mensagens processadas
+| Conta | +Assunto | +Remetente | +Recebido | +Estado | +Ações | +
|---|---|---|---|---|---|
| {m.account_name} | ++ {m.subject || '(sem assunto)'} + | +{m.sender} | ++ {new Date(m.received_at).toLocaleString('pt-PT')} + | +
+
+
+ + {m.error} + + )} + |
+ + {m.status === 'failed' && ( + + )} + | +