chore(i18n): finish translating code comments and scripts to English
CI / Format and clippy (push) Successful in 1m57s
CI / Dependency audit (push) Successful in 13s
CI / Check desktop app (Linux) (push) Successful in 3m54s
CI / Tests (Linux) (push) Failing after 7m25s
Release / Create release (push) Successful in 6s
Release / CLI (linux-aarch64) (push) Successful in 1m48s
Release / CLI (linux-x86_64) (push) Successful in 2m39s
Release / Desktop app (linux-aarch64) (push) Successful in 10m9s
Release / Desktop app (linux-x86_64) (push) Successful in 12m20s
Release / Desktop app (windows) (push) Successful in 7m32s
Release / Build latest.json (push) Successful in 5s
CI / Format and clippy (push) Successful in 1m57s
CI / Dependency audit (push) Successful in 13s
CI / Check desktop app (Linux) (push) Successful in 3m54s
CI / Tests (Linux) (push) Failing after 7m25s
Release / Create release (push) Successful in 6s
Release / CLI (linux-aarch64) (push) Successful in 1m48s
Release / CLI (linux-x86_64) (push) Successful in 2m39s
Release / Desktop app (linux-aarch64) (push) Successful in 10m9s
Release / Desktop app (linux-x86_64) (push) Successful in 12m20s
Release / Desktop app (windows) (push) Successful in 7m32s
Release / Build latest.json (push) Successful in 5s
Completes the English-only standardization for code, comments, scripts and CI templates (UI/CLI-facing strings stay bilingual pt-BR/en, untouched). Covers the remaining crates/, apps/gui/ui/ and apps/gui/src-tauri/ comments, .gitea/ workflow and template comments, .githooks/ hooks, and the scripts/ source comments for the files already renamed in a prior commit (check.sh, generate-logo.py, install-hooks.sh). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VAyr8d7HuAdUGB6aA5xmDD
This commit is contained in:
1 parent
da212e6926
commit
6328220c60
129 files changed
+1961
-1834
No files matched your search
@@ -1,5 +1,5 @@
|
||||
//! Exportação para análise e relatório de recuperação (cadeia de custódia):
|
||||
//! CSV dos achados e um relatório HTML autocontido, pronto para imprimir.
|
||||
//! Forensic export and chain-of-custody recovery reporting:
|
||||
//! CSV findings table and self-contained, print-ready HTML/PDF reports.
|
||||
|
||||
use crate::hashing::Hashes;
|
||||
use crate::meta::fmt_unix;
|
||||
@@ -19,11 +19,11 @@ pub struct CaseInfo {
|
||||
pub notes: String,
|
||||
}
|
||||
|
||||
/// Situação da trilha de auditoria no momento do relatório.
|
||||
/// Status of the audit hash chain at the time the report is generated.
|
||||
pub struct AuditNote {
|
||||
pub entries: usize,
|
||||
pub ok: bool,
|
||||
/// Hash da última entrada, para guardar fora da máquina.
|
||||
/// Head hash of the latest audit entry, to be archived off-machine.
|
||||
pub head: String,
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ pub struct ReportInput<'a> {
|
||||
}
|
||||
|
||||
fn cell(s: &str) -> String {
|
||||
// aspas e escapa; neutraliza "injeção de fórmula" em planilhas
|
||||
// quote and escape; neutralize spreadsheet formula injection (`=`, `+`, `-`, `@`)
|
||||
let mut t = s.replace('"', "\"\"");
|
||||
if t.starts_with(['=', '+', '-', '@', '\t', '\r']) {
|
||||
t.insert(0, '\'');
|
||||
@@ -66,7 +66,7 @@ fn iso(t: Option<i64>) -> String {
|
||||
}
|
||||
}
|
||||
|
||||
/// CSV com `;` (abre direto no Excel em português) e BOM UTF-8.
|
||||
/// Writes a UTF-8 BOM `;`-delimited CSV of findings.
|
||||
pub fn csv(found: &[&Found]) -> String {
|
||||
let mut out = String::from("\u{feff}id;nome;pasta;extensao;categoria;tamanho_bytes;origem;confianca;modificado_utc;criado_utc;acessado_utc;foto_tirada;camera;largura;altura;gps;deslocamento_no_disco;observacao\r\n");
|
||||
for f in found {
|
||||
@@ -237,7 +237,7 @@ footer{margin-top:34px;color:#5b6f6d;font-size:12px}@media print{body{background
|
||||
o.push_str("</table>");
|
||||
}
|
||||
|
||||
// Resumo
|
||||
// Summary
|
||||
let mut by_cat = std::collections::BTreeMap::new();
|
||||
let mut conf = [0usize; 3];
|
||||
let mut bytes = 0u64;
|
||||
@@ -318,7 +318,7 @@ footer{margin-top:34px;color:#5b6f6d;font-size:12px}@media print{body{background
|
||||
o
|
||||
}
|
||||
|
||||
/// Relatório em PDF (A4), com as mesmas seções do HTML.
|
||||
/// Generates an A4 PDF recovery report containing the same sections as the HTML report.
|
||||
pub fn pdf(r: &ReportInput) -> Vec<u8> {
|
||||
use crate::pdf::{Col, Font, Pdf, BLACK, GRAY};
|
||||
let now = std::time::SystemTime::now()
|
||||
|
||||
Reference in new issue
Block a user