chore(i18n): finish translating code comments and scripts to English
CI / Format and clippy (push) Successful in 1m13s
CI / Dependency audit (push) Successful in 13s
CI / Tests (Linux) (push) Successful in 1m35s
Release / Create release (push) Successful in 7s
CI / Check desktop app (Linux) (push) Successful in 3m19s
Release / CLI (linux-aarch64) (push) Successful in 1m3s
Release / CLI (linux-x86_64) (push) Successful in 1m28s
Release / Desktop app (linux-aarch64) (push) Successful in 7m16s
Release / Desktop app (linux-x86_64) (push) Successful in 10m17s
Release / Desktop app (windows) (push) Successful in 4m54s
CI / Format and clippy (push) Successful in 1m13s
CI / Dependency audit (push) Successful in 13s
CI / Tests (Linux) (push) Successful in 1m35s
Release / Create release (push) Successful in 7s
CI / Check desktop app (Linux) (push) Successful in 3m19s
Release / CLI (linux-aarch64) (push) Successful in 1m3s
Release / CLI (linux-x86_64) (push) Successful in 1m28s
Release / Desktop app (linux-aarch64) (push) Successful in 7m16s
Release / Desktop app (linux-x86_64) (push) Successful in 10m17s
Release / Desktop app (windows) (push) Successful in 4m54s
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
bf059fd0bc
commit
55e19a8e5b
59 files changed
+935
-879
No files matched your search
@@ -1,9 +1,9 @@
|
||||
//! Relatório de auditoria em HTML paginado com Paged.js.
|
||||
//! Paginated HTML/PDF wireless security audit report generator (powered by Paged.js).
|
||||
//!
|
||||
//! Shared between the live in-app report preview and standalone offline HTML export.
|
||||
//!
|
||||
//!
|
||||
//!
|
||||
//! O mesmo modelo alimenta a pré-visualização na interface e o arquivo
|
||||
//! standalone. A paginação é feita no navegador (A4, margens, cabeçalho e
|
||||
//! rodapé), então o PDF sai pelo diálogo de impressão sem depender de
|
||||
//! Chromium no servidor.
|
||||
|
||||
use crate::analysis::Analysis;
|
||||
use crate::audit::AuditEntry;
|
||||
@@ -28,8 +28,8 @@ pub struct ReportModel {
|
||||
|
||||
#[derive(Debug, Clone, Copy, Default)]
|
||||
pub struct ReportOptions {
|
||||
/// Troca o `<script src>` por um marcador para o servidor embutir o
|
||||
/// polyfill e gerar um HTML que funciona offline.
|
||||
/// Placeholder replaced with the inline `paged.polyfill.min.js` script in
|
||||
/// standalone offline HTML exports.
|
||||
pub inline_pagedjs: bool,
|
||||
}
|
||||
|
||||
@@ -37,11 +37,11 @@ const PAGED_MARKER: &str = "<!--SABIA_PAGEDJS-->";
|
||||
const LOGO_PNG: &[u8] = include_bytes!("../../../logo.png");
|
||||
const B64: &[u8; 64] = b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
|
||||
/// Embute o logo como `data:` URI — sem isso o relatório standalone (modo
|
||||
/// offline, pensado pra abrir sem servidor nenhum) teria um `<img
|
||||
/// src="/logo.png">` que nunca resolve fora do `sabia ui`. Pequeno o
|
||||
/// bastante (poucos KB) pra não valer a pena puxar uma crate de base64 só
|
||||
/// por isso.
|
||||
/// Encodes the Sabiá logo as a `data:image/png;base64,...` URI so standalone
|
||||
/// exported reports render offline without an HTTP server.
|
||||
///
|
||||
///
|
||||
///
|
||||
fn base64(bytes: &[u8]) -> String {
|
||||
let mut out = String::with_capacity(bytes.len().div_ceil(3) * 4);
|
||||
for chunk in bytes.chunks(3) {
|
||||
|
||||
Reference in new issue
Block a user