diff --git a/docs/decisioni.md b/docs/decisioni.md index bd24b83..281748c 100644 --- a/docs/decisioni.md +++ b/docs/decisioni.md @@ -420,3 +420,5 @@ Ogni scelta tecnica presa strada facendo, con data e motivo (specifica §15). | 2026-11-17 | Il messaggio di «Ho finito» per una copia con valori mancanti conta solo i valori della pagina e i `doc_id` che un'operazione configurata manda (`SessionCapturePlan.NeededValues`, `NeededDocIds`; gli altri si leggono lo stesso e il registro li nomina a parte) e dice com'è: la copia ha sostituito quella di prima, le richieste che li usano non partono e alla prima Febe si ferma come disconnessione. Dopo un rifiuto il messaggio dice di riaprire il browser dalla pagina Collegamento («Usa il browser» o «Pagina iniziale») e premere di nuovo «Ho finito». La copia incompleta sostituisce comunque quella salvata | Il messaggio prometteva che quelle operazioni «restano al browser», ma il codice le ferma come disconnessione (§6.0, mai un ritorno alle pagine); e «Ho finito» chiude sempre il permesso di guida, quindi un secondo «Ho finito» da solo non copia nulla. Tenere una copia più vecchia ma completa potrebbe tenere i cookie di un altro accesso (regola 7) | | 2026-11-17 | `chiave.bin` si crea intero o non si crea: file `.part` nella stessa cartella, scritto fino al disco, poi rinominato senza sostituire (`OwnerOnlyFiles.CreateNew`) | Prima il file nasceva vuoto e poi si scriveva: con il disco pieno restava un `chiave.bin` corto, scambiato per la chiave di un altro processo, e da lì ogni avvio con «richieste» si fermava finché Alberto non lo cancellava a mano | | 2026-11-17 | Con la raccolta «pagine» il registro scrive una riga «Raccolta «pagine»: tutte le ricette con il browser» all'avvio | §6.0 dice che il registro nomina la strada presa; prima la scriveva solo con «richieste» | +| 2026-11-18 | Il carattere è quello del sistema (token `--carattere`: `system-ui`, "Segoe UI", Roboto, Cantarell, "Noto Sans", "Liberation Sans", `sans-serif`); tolti i file di Archivo, la sua licenza e il precaricamento; `font-src 'none'` nella CSP e `/caratteri/` non è più fra i percorsi pubblici | Decisione di Alberto del 18 novembre 2026: niente componenti esterni, nemmeno caratteri o icone di terzi. Le larghezze di `font-stretch` restano: valgono dove il sistema ha una variante più stretta o più larga, altrimenti non cambiano nulla | +| 2026-11-18 | Le 70 icone sono disegnate per Febe: un SVG per icona in `wwwroot/icone`, griglia di 24, solo tratti (linee, cerchi, rettangoli, poligoni, archi semplici), spessore 1,75 dal foglio di stile; stessi nomi e stesso significato di prima, così `icon('nome')` non cambia; tolte le icone Lucide e la loro licenza | Stessa decisione; i nomi restano identificativi interni. Una prova fallisce se nei file del programma ricompare un riferimento al carattere o alle icone di prima | diff --git a/docs/schermate/differenze.md b/docs/schermate/differenze.md index 7b91d8a..48efb22 100644 --- a/docs/schermate/differenze.md +++ b/docs/schermate/differenze.md @@ -138,3 +138,18 @@ schermata del motore fermo si prende per prima, perché «Riprendi» resta spent - **Finestra stretta e telefono.** A 860 px il menu delle impostazioni diventa una fila di schede sopra il contenuto e le colonne laterali (passi del collegamento, doppioni dell'importazione) vanno sotto. Al telefono la tabella delle cartelle dell'importazione diventa un elenco di schede e «Esporta l'elenco in CSV» resta solo come icona. + +### Carattere e icone (dal 18 novembre 2026) + +Mockup e schermate di questa cartella sono stati presi con il carattere Archivo e le icone Lucide, che dal 18 novembre +2026 non sono più nel programma (niente componenti di terzi, `docs/decisioni.md`). Restano il riferimento per +disposizione, misure e colori, non più per la forma delle lettere e dei segni: + +- **Carattere.** L'interfaccia usa il carattere del sistema (Segoe UI su Windows, Roboto su Android, Cantarell, Noto + Sans o Liberation Sans su Linux, San Francisco su Apple, secondo il token `--carattere`). Lettere, larghezze delle + righe e a capo possono differire un poco da quelli disegnati; i dati (date, numeri, nomi di file) sono più stretti + solo dove il sistema ha una variante stretta, ma restano con cifre tabellari. +- **Icone.** Le icone sono disegnate per Febe sulla stessa griglia di 24 con lo stesso spessore: stesso posto, stessa + misura e stesso significato, ma il disegno è diverso da quello dei mockup (per esempio l'ingranaggio, la stella, le + frecce circolari). +- Le schermate non sono state rifatte: si rifanno alla prossima tornata (`bash tools/schermate/tutte.sh`). diff --git a/src/Febe.Web/Api/SystemApi.cs b/src/Febe.Web/Api/SystemApi.cs index 4c1128a..319e87c 100644 --- a/src/Febe.Web/Api/SystemApi.cs +++ b/src/Febe.Web/Api/SystemApi.cs @@ -83,7 +83,7 @@ public static class SystemApi context.RequestServices.GetService()?.Current ?? []); } - /// The sprite: each Lucide file's drawing inside a symbol; stroke and fill come from the CSS of svg.ic. + /// The sprite: each icon file's drawing (drawn for Febe on a 24 grid) inside a symbol; stroke and fill come from the CSS of svg.ic. public static string BuildSprite(EmbeddedWwwroot files) { ArgumentNullException.ThrowIfNull(files); diff --git a/src/Febe.Web/LEGGIMI.md b/src/Febe.Web/LEGGIMI.md index a09b4d6..68012b6 100644 --- a/src/Febe.Web/LEGGIMI.md +++ b/src/Febe.Web/LEGGIMI.md @@ -133,7 +133,7 @@ sono anche `day` (`aaaa-mm-gg`) e `clock` calcolati sul fuso di Febe. | `GET /api/import/{id}/progress`, `POST /{id}/interrupt`, `/resume` | Passi 2 e 4: avanzamento, interruzione e ripresa | | `GET /api/import/{id}/review`, `PUT /{id}/folders`, `PUT /{id}/mode`, `GET /{id}/duplicates?after=&all=`, `POST /{id}/duplicates/{pairId}`, `GET /api/import/files/{fileId}/preview` | Passo 3: contatori, cartelle → account, Copia/Sposta, doppioni con anteprime | | `POST /api/import/{id}/copy`, `GET /{id}/report`, `GET /{id}/report.csv`, `POST /{id}/discard` | Copia, resoconto, CSV (UTF-8 con BOM, `;`), abbandono di un'importazione non copiata | -| `GET /icone/tutte.svg` | Tutte le icone Lucide di `wwwroot/icone` in un solo sprite (``) | +| `GET /icone/tutte.svg` | Tutte le icone di `wwwroot/icone` (disegnate per Febe) in un solo sprite (``) | Ogni altro indirizzo senza estensione risponde con `index.html`; `/api/…` sconosciuto risponde 404 in JSON. @@ -221,7 +221,11 @@ virtualizzazione, selezione, nuovi elementi in cima senza spostare la vista), `p finestra stretta (≤1000 px: barra a icone; ≤560 px: una colonna e navigazione in basso). Colori solo dai token, mai informazione affidata al solo colore, focus sempre visibile, animazioni solo su gesto e spente con `prefers-reduced-motion`. -- Icone: file Lucide in `icone/`, usati con `icon('nome')` (lo sprite si costruisce da sé). +- Icone: disegnate per Febe, un file SVG per icona in `icone/` (griglia di 24, solo tratti; spessore, colore e + riempimento dal foglio di stile), usate con `icon('nome')` (lo sprite si costruisce da sé). Nessuna icona copiata da + raccolte di terzi. +- Carattere: quello del sistema (token `--carattere`: `system-ui`, Segoe UI, Roboto, Cantarell, Noto Sans, Liberation + Sans, `sans-serif`); nessun file di caratteri nel programma. ## Dimostrazione diff --git a/src/Febe.Web/Security/SecurityMiddleware.cs b/src/Febe.Web/Security/SecurityMiddleware.cs index 980d603..d2c8b12 100644 --- a/src/Febe.Web/Security/SecurityMiddleware.cs +++ b/src/Febe.Web/Security/SecurityMiddleware.cs @@ -12,7 +12,7 @@ public sealed class SecurityMiddleware(RequestDelegate next, FebeWebOptions opti { /// Paths reachable without a session in password mode: the login page and what it needs. public static readonly IReadOnlyList PublicPrefixes = - ["/accesso", "/api/accesso", "/css/", "/caratteri/", "/img/", "/testi/", "/js/", "/favicon.ico"]; + ["/accesso", "/api/accesso", "/css/", "/img/", "/testi/", "/js/", "/favicon.ico"]; /// /// Without a password (FEBE_PASSWORD missing) only these answer, so that the interface can show the page that @@ -206,6 +206,6 @@ public sealed class SecurityMiddleware(RequestDelegate next, FebeWebOptions opti headers["Cross-Origin-Opener-Policy"] = "same-origin"; headers["Content-Security-Policy"] = "default-src 'self'; img-src 'self' data: blob:; media-src 'self' blob:; style-src 'self' 'unsafe-inline'; " - + "script-src 'self'; connect-src 'self'; font-src 'self'; frame-ancestors 'none'; base-uri 'none'; form-action 'self'"; + + "script-src 'self'; connect-src 'self'; font-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'self'"; } } diff --git a/src/Febe.Web/wwwroot/caratteri/LICENZA-OFL.txt b/src/Febe.Web/wwwroot/caratteri/LICENZA-OFL.txt deleted file mode 100644 index 78b7453..0000000 --- a/src/Febe.Web/wwwroot/caratteri/LICENZA-OFL.txt +++ /dev/null @@ -1,93 +0,0 @@ -Copyright 2020 The Archivo Project Authors (https://github.com/Omnibus-Type/Archivo) Archivo-Italic[wdth,wght].ttf: Copyright 2020 The Archivo Project Authors (https://github.com/Omnibus-Type/Archivo) - -This Font Software is licensed under the SIL Open Font License, Version 1.1. -This license is copied below, and is also available with a FAQ at: -http://scripts.sil.org/OFL - - ------------------------------------------------------------ -SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 ------------------------------------------------------------ - -PREAMBLE -The goals of the Open Font License (OFL) are to stimulate worldwide -development of collaborative font projects, to support the font creation -efforts of academic and linguistic communities, and to provide a free and -open framework in which fonts may be shared and improved in partnership -with others. - -The OFL allows the licensed fonts to be used, studied, modified and -redistributed freely as long as they are not sold by themselves. The -fonts, including any derivative works, can be bundled, embedded, -redistributed and/or sold with any software provided that any reserved -names are not used by derivative works. The fonts and derivatives, -however, cannot be released under any other type of license. The -requirement for fonts to remain under this license does not apply -to any document created using the fonts or their derivatives. - -DEFINITIONS -"Font Software" refers to the set of files released by the Copyright -Holder(s) under this license and clearly marked as such. This may -include source files, build scripts and documentation. - -"Reserved Font Name" refers to any names specified as such after the -copyright statement(s). - -"Original Version" refers to the collection of Font Software components as -distributed by the Copyright Holder(s). - -"Modified Version" refers to any derivative made by adding to, deleting, -or substituting -- in part or in whole -- any of the components of the -Original Version, by changing formats or by porting the Font Software to a -new environment. - -"Author" refers to any designer, engineer, programmer, technical -writer or other person who contributed to the Font Software. - -PERMISSION & CONDITIONS -Permission is hereby granted, free of charge, to any person obtaining -a copy of the Font Software, to use, study, copy, merge, embed, modify, -redistribute, and sell modified and unmodified copies of the Font -Software, subject to the following conditions: - -1) Neither the Font Software nor any of its individual components, -in Original or Modified Versions, may be sold by itself. - -2) Original or Modified Versions of the Font Software may be bundled, -redistributed and/or sold with any software, provided that each copy -contains the above copyright notice and this license. These can be -included either as stand-alone text files, human-readable headers or -in the appropriate machine-readable metadata fields within text or -binary files as long as those fields can be easily viewed by the user. - -3) No Modified Version of the Font Software may use the Reserved Font -Name(s) unless explicit written permission is granted by the corresponding -Copyright Holder. This restriction only applies to the primary font name as -presented to the users. - -4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font -Software shall not be used to promote, endorse or advertise any -Modified Version, except to acknowledge the contribution(s) of the -Copyright Holder(s) and the Author(s) or with their explicit written -permission. - -5) The Font Software, modified or unmodified, in part or in whole, -must be distributed entirely under this license, and must not be -distributed under any other license. The requirement for fonts to -remain under this license does not apply to any document created -using the Font Software. - -TERMINATION -This license becomes null and void if any of the above conditions are -not met. - -DISCLAIMER -THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT -OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE -COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL -DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM -OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/src/Febe.Web/wwwroot/caratteri/archivo-latin-ext-standard-normal.woff2 b/src/Febe.Web/wwwroot/caratteri/archivo-latin-ext-standard-normal.woff2 deleted file mode 100644 index c0dbc07..0000000 Binary files a/src/Febe.Web/wwwroot/caratteri/archivo-latin-ext-standard-normal.woff2 and /dev/null differ diff --git a/src/Febe.Web/wwwroot/caratteri/archivo-latin-standard-normal.woff2 b/src/Febe.Web/wwwroot/caratteri/archivo-latin-standard-normal.woff2 deleted file mode 100644 index e2448d0..0000000 Binary files a/src/Febe.Web/wwwroot/caratteri/archivo-latin-standard-normal.woff2 and /dev/null differ diff --git a/src/Febe.Web/wwwroot/css/febe.css b/src/Febe.Web/wwwroot/css/febe.css index 633fe34..ec0dcbe 100644 --- a/src/Febe.Web/wwwroot/css/febe.css +++ b/src/Febe.Web/wwwroot/css/febe.css @@ -1,15 +1,5 @@ /* Febe — token e componenti di base */ -@font-face{ - font-family:"Archivo"; - src:url(../caratteri/archivo-latin-standard-normal.woff2) format("woff2"); - font-weight:100 900; font-stretch:62% 125%; font-display:block; -} -@font-face{ - font-family:"Archivo"; - src:url(../caratteri/archivo-latin-ext-standard-normal.woff2) format("woff2"); - font-weight:100 900; font-stretch:62% 125%; font-display:block; - unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; -} +/* The system's own font (--carattere): no font file ships with Febe (decision of 18 November 2026). */ :root{ --fondo:#F4F4F4; @@ -41,6 +31,7 @@ --r-pannello:10px; --r-dialogo:14px; --tratteggio:rgba(0,0,0,.075); + --carattere:system-ui,"Segoe UI",Roboto,Cantarell,"Noto Sans","Liberation Sans",sans-serif; } [data-tema="scuro"]{ --fondo:#1B1B1B; @@ -73,7 +64,7 @@ *{box-sizing:border-box} html,body{margin:0;height:100%} body{ - font-family:"Archivo",system-ui,sans-serif; font-stretch:100%; + font-family:var(--carattere); font-stretch:100%; font-size:14px; line-height:1.45; color:var(--testo); background:var(--fondo); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; } diff --git a/src/Febe.Web/wwwroot/icone/LICENZA-ISC.txt b/src/Febe.Web/wwwroot/icone/LICENZA-ISC.txt deleted file mode 100644 index 718bb3f..0000000 --- a/src/Febe.Web/wwwroot/icone/LICENZA-ISC.txt +++ /dev/null @@ -1,43 +0,0 @@ -ISC License - -Copyright (c) 2026 Lucide Icons and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ---- - -The following Lucide icons are derived from the Feather project: - -airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - -The MIT License (MIT) (for the icons listed above) - -Copyright (c) 2013-present Cole Bemis - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/src/Febe.Web/wwwroot/icone/activity.svg b/src/Febe.Web/wwwroot/icone/activity.svg index 7839633..0ce6185 100644 --- a/src/Febe.Web/wwwroot/icone/activity.svg +++ b/src/Febe.Web/wwwroot/icone/activity.svg @@ -1,15 +1,3 @@ - - - + + diff --git a/src/Febe.Web/wwwroot/icone/app-window.svg b/src/Febe.Web/wwwroot/icone/app-window.svg index fea2156..ffe713b 100644 --- a/src/Febe.Web/wwwroot/icone/app-window.svg +++ b/src/Febe.Web/wwwroot/icone/app-window.svg @@ -1,18 +1,5 @@ - - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/archive.svg b/src/Febe.Web/wwwroot/icone/archive.svg index 247154a..1ecd64e 100644 --- a/src/Febe.Web/wwwroot/icone/archive.svg +++ b/src/Febe.Web/wwwroot/icone/archive.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/arrow-left.svg b/src/Febe.Web/wwwroot/icone/arrow-left.svg index 8ff06a7..b3ae75b 100644 --- a/src/Febe.Web/wwwroot/icone/arrow-left.svg +++ b/src/Febe.Web/wwwroot/icone/arrow-left.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/at-sign.svg b/src/Febe.Web/wwwroot/icone/at-sign.svg index 011398e..c9637bc 100644 --- a/src/Febe.Web/wwwroot/icone/at-sign.svg +++ b/src/Febe.Web/wwwroot/icone/at-sign.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/bell.svg b/src/Febe.Web/wwwroot/icone/bell.svg index da0ec5a..9300436 100644 --- a/src/Febe.Web/wwwroot/icone/bell.svg +++ b/src/Febe.Web/wwwroot/icone/bell.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/calendar.svg b/src/Febe.Web/wwwroot/icone/calendar.svg index a8af7a7..4a38304 100644 --- a/src/Febe.Web/wwwroot/icone/calendar.svg +++ b/src/Febe.Web/wwwroot/icone/calendar.svg @@ -1,18 +1,6 @@ - - - - - - + + + + + diff --git a/src/Febe.Web/wwwroot/icone/check.svg b/src/Febe.Web/wwwroot/icone/check.svg index 4c9a401..b61c536 100644 --- a/src/Febe.Web/wwwroot/icone/check.svg +++ b/src/Febe.Web/wwwroot/icone/check.svg @@ -1,15 +1,3 @@ - - - + + diff --git a/src/Febe.Web/wwwroot/icone/chevron-down.svg b/src/Febe.Web/wwwroot/icone/chevron-down.svg index 50da053..da68b1e 100644 --- a/src/Febe.Web/wwwroot/icone/chevron-down.svg +++ b/src/Febe.Web/wwwroot/icone/chevron-down.svg @@ -1,15 +1,3 @@ - - - + + diff --git a/src/Febe.Web/wwwroot/icone/chevron-left.svg b/src/Febe.Web/wwwroot/icone/chevron-left.svg index 685d734..5370b5e 100644 --- a/src/Febe.Web/wwwroot/icone/chevron-left.svg +++ b/src/Febe.Web/wwwroot/icone/chevron-left.svg @@ -1,15 +1,3 @@ - - - + + diff --git a/src/Febe.Web/wwwroot/icone/chevron-right.svg b/src/Febe.Web/wwwroot/icone/chevron-right.svg index 28828c5..3c4c87c 100644 --- a/src/Febe.Web/wwwroot/icone/chevron-right.svg +++ b/src/Febe.Web/wwwroot/icone/chevron-right.svg @@ -1,15 +1,3 @@ - - - + + diff --git a/src/Febe.Web/wwwroot/icone/circle-check.svg b/src/Febe.Web/wwwroot/icone/circle-check.svg index 435da70..823edac 100644 --- a/src/Febe.Web/wwwroot/icone/circle-check.svg +++ b/src/Febe.Web/wwwroot/icone/circle-check.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/circle-dashed.svg b/src/Febe.Web/wwwroot/icone/circle-dashed.svg index 64be9b4..f5502d0 100644 --- a/src/Febe.Web/wwwroot/icone/circle-dashed.svg +++ b/src/Febe.Web/wwwroot/icone/circle-dashed.svg @@ -1,22 +1,3 @@ - - - - - - - - - - + + diff --git a/src/Febe.Web/wwwroot/icone/circle-user.svg b/src/Febe.Web/wwwroot/icone/circle-user.svg index d46ebc0..b48da9d 100644 --- a/src/Febe.Web/wwwroot/icone/circle-user.svg +++ b/src/Febe.Web/wwwroot/icone/circle-user.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/clapperboard.svg b/src/Febe.Web/wwwroot/icone/clapperboard.svg index 98830cf..15f5e27 100644 --- a/src/Febe.Web/wwwroot/icone/clapperboard.svg +++ b/src/Febe.Web/wwwroot/icone/clapperboard.svg @@ -1,18 +1,7 @@ - - - - - - + + + + + + diff --git a/src/Febe.Web/wwwroot/icone/clock.svg b/src/Febe.Web/wwwroot/icone/clock.svg index 79ddbe6..2358a62 100644 --- a/src/Febe.Web/wwwroot/icone/clock.svg +++ b/src/Febe.Web/wwwroot/icone/clock.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/copy.svg b/src/Febe.Web/wwwroot/icone/copy.svg index 882bd3b..bfa9fce 100644 --- a/src/Febe.Web/wwwroot/icone/copy.svg +++ b/src/Febe.Web/wwwroot/icone/copy.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/database.svg b/src/Febe.Web/wwwroot/icone/database.svg index fd6289b..6b16123 100644 --- a/src/Febe.Web/wwwroot/icone/database.svg +++ b/src/Febe.Web/wwwroot/icone/database.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/download.svg b/src/Febe.Web/wwwroot/icone/download.svg index 5679644..03dfa07 100644 --- a/src/Febe.Web/wwwroot/icone/download.svg +++ b/src/Febe.Web/wwwroot/icone/download.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/ellipsis.svg b/src/Febe.Web/wwwroot/icone/ellipsis.svg index 09ea4d1..56483bb 100644 --- a/src/Febe.Web/wwwroot/icone/ellipsis.svg +++ b/src/Febe.Web/wwwroot/icone/ellipsis.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/external-link.svg b/src/Febe.Web/wwwroot/icone/external-link.svg index acb5229..247e3b9 100644 --- a/src/Febe.Web/wwwroot/icone/external-link.svg +++ b/src/Febe.Web/wwwroot/icone/external-link.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/eye.svg b/src/Febe.Web/wwwroot/icone/eye.svg index d74ca6b..ba4e10c 100644 --- a/src/Febe.Web/wwwroot/icone/eye.svg +++ b/src/Febe.Web/wwwroot/icone/eye.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/file-down.svg b/src/Febe.Web/wwwroot/icone/file-down.svg index 027c22a..2745c2d 100644 --- a/src/Febe.Web/wwwroot/icone/file-down.svg +++ b/src/Febe.Web/wwwroot/icone/file-down.svg @@ -1,18 +1,6 @@ - - - - - - + + + + + diff --git a/src/Febe.Web/wwwroot/icone/folder-input.svg b/src/Febe.Web/wwwroot/icone/folder-input.svg index ed9ece2..8fdd39a 100644 --- a/src/Febe.Web/wwwroot/icone/folder-input.svg +++ b/src/Febe.Web/wwwroot/icone/folder-input.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/folder-open.svg b/src/Febe.Web/wwwroot/icone/folder-open.svg index 9d21ad7..3328aac 100644 --- a/src/Febe.Web/wwwroot/icone/folder-open.svg +++ b/src/Febe.Web/wwwroot/icone/folder-open.svg @@ -1,15 +1,4 @@ - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/folder.svg b/src/Febe.Web/wwwroot/icone/folder.svg index 2aece89..7bb3793 100644 --- a/src/Febe.Web/wwwroot/icone/folder.svg +++ b/src/Febe.Web/wwwroot/icone/folder.svg @@ -1,15 +1,3 @@ - - - + + diff --git a/src/Febe.Web/wwwroot/icone/gauge.svg b/src/Febe.Web/wwwroot/icone/gauge.svg index 2dd4b1f..b138559 100644 --- a/src/Febe.Web/wwwroot/icone/gauge.svg +++ b/src/Febe.Web/wwwroot/icone/gauge.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/grid-3x3.svg b/src/Febe.Web/wwwroot/icone/grid-3x3.svg index 38b39f8..3798471 100644 --- a/src/Febe.Web/wwwroot/icone/grid-3x3.svg +++ b/src/Febe.Web/wwwroot/icone/grid-3x3.svg @@ -1,19 +1,7 @@ - - - - - - - + + + + + + diff --git a/src/Febe.Web/wwwroot/icone/hard-drive.svg b/src/Febe.Web/wwwroot/icone/hard-drive.svg index 27e3044..6186cad 100644 --- a/src/Febe.Web/wwwroot/icone/hard-drive.svg +++ b/src/Febe.Web/wwwroot/icone/hard-drive.svg @@ -1,18 +1,5 @@ - - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/history.svg b/src/Febe.Web/wwwroot/icone/history.svg index 6cc5cd2..f24a109 100644 --- a/src/Febe.Web/wwwroot/icone/history.svg +++ b/src/Febe.Web/wwwroot/icone/history.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/hourglass.svg b/src/Febe.Web/wwwroot/icone/hourglass.svg index 7ca7a2c..f0aa66d 100644 --- a/src/Febe.Web/wwwroot/icone/hourglass.svg +++ b/src/Febe.Web/wwwroot/icone/hourglass.svg @@ -1,18 +1,6 @@ - - - - - - + + + + + diff --git a/src/Febe.Web/wwwroot/icone/house.svg b/src/Febe.Web/wwwroot/icone/house.svg index 12d0c4e..794f4ec 100644 --- a/src/Febe.Web/wwwroot/icone/house.svg +++ b/src/Febe.Web/wwwroot/icone/house.svg @@ -1,16 +1,5 @@ - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/image.svg b/src/Febe.Web/wwwroot/icone/image.svg index 17d6539..06bfa1a 100644 --- a/src/Febe.Web/wwwroot/icone/image.svg +++ b/src/Febe.Web/wwwroot/icone/image.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/info.svg b/src/Febe.Web/wwwroot/icone/info.svg index cdfff0c..37a9cb8 100644 --- a/src/Febe.Web/wwwroot/icone/info.svg +++ b/src/Febe.Web/wwwroot/icone/info.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/key-round.svg b/src/Febe.Web/wwwroot/icone/key-round.svg index c1a1cdf..a3c3f5a 100644 --- a/src/Febe.Web/wwwroot/icone/key-round.svg +++ b/src/Febe.Web/wwwroot/icone/key-round.svg @@ -1,16 +1,6 @@ - - - - + + + + + diff --git a/src/Febe.Web/wwwroot/icone/layers.svg b/src/Febe.Web/wwwroot/icone/layers.svg index dd0d5bb..c58603b 100644 --- a/src/Febe.Web/wwwroot/icone/layers.svg +++ b/src/Febe.Web/wwwroot/icone/layers.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/layout-grid.svg b/src/Febe.Web/wwwroot/icone/layout-grid.svg index 6bf6dd8..3822544 100644 --- a/src/Febe.Web/wwwroot/icone/layout-grid.svg +++ b/src/Febe.Web/wwwroot/icone/layout-grid.svg @@ -1,18 +1,6 @@ - - - - - - + + + + + diff --git a/src/Febe.Web/wwwroot/icone/list-filter.svg b/src/Febe.Web/wwwroot/icone/list-filter.svg index 00c72f0..a4376e1 100644 --- a/src/Febe.Web/wwwroot/icone/list-filter.svg +++ b/src/Febe.Web/wwwroot/icone/list-filter.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/lock.svg b/src/Febe.Web/wwwroot/icone/lock.svg index 505a2b2..51875b6 100644 --- a/src/Febe.Web/wwwroot/icone/lock.svg +++ b/src/Febe.Web/wwwroot/icone/lock.svg @@ -1,16 +1,5 @@ - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/log-out.svg b/src/Febe.Web/wwwroot/icone/log-out.svg index 697eb8e..380a395 100644 --- a/src/Febe.Web/wwwroot/icone/log-out.svg +++ b/src/Febe.Web/wwwroot/icone/log-out.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/maximize.svg b/src/Febe.Web/wwwroot/icone/maximize.svg index 1f90810..ec92618 100644 --- a/src/Febe.Web/wwwroot/icone/maximize.svg +++ b/src/Febe.Web/wwwroot/icone/maximize.svg @@ -1,18 +1,6 @@ - - - - - - + + + + + diff --git a/src/Febe.Web/wwwroot/icone/monitor.svg b/src/Febe.Web/wwwroot/icone/monitor.svg index 1b2b73f..9efaf2b 100644 --- a/src/Febe.Web/wwwroot/icone/monitor.svg +++ b/src/Febe.Web/wwwroot/icone/monitor.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/moon.svg b/src/Febe.Web/wwwroot/icone/moon.svg index 27cc7bc..f23e7d4 100644 --- a/src/Febe.Web/wwwroot/icone/moon.svg +++ b/src/Febe.Web/wwwroot/icone/moon.svg @@ -1,15 +1,3 @@ - - - + + diff --git a/src/Febe.Web/wwwroot/icone/octagon-alert.svg b/src/Febe.Web/wwwroot/icone/octagon-alert.svg index a7654db..884dc3a 100644 --- a/src/Febe.Web/wwwroot/icone/octagon-alert.svg +++ b/src/Febe.Web/wwwroot/icone/octagon-alert.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/pause.svg b/src/Febe.Web/wwwroot/icone/pause.svg index 3d09490..61775cd 100644 --- a/src/Febe.Web/wwwroot/icone/pause.svg +++ b/src/Febe.Web/wwwroot/icone/pause.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/play-circle.svg b/src/Febe.Web/wwwroot/icone/play-circle.svg index b92ad61..4ee811a 100644 --- a/src/Febe.Web/wwwroot/icone/play-circle.svg +++ b/src/Febe.Web/wwwroot/icone/play-circle.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/play.svg b/src/Febe.Web/wwwroot/icone/play.svg index 485a439..6ab85a7 100644 --- a/src/Febe.Web/wwwroot/icone/play.svg +++ b/src/Febe.Web/wwwroot/icone/play.svg @@ -1,15 +1,3 @@ - - - + + diff --git a/src/Febe.Web/wwwroot/icone/plus.svg b/src/Febe.Web/wwwroot/icone/plus.svg index 37e9160..2de9792 100644 --- a/src/Febe.Web/wwwroot/icone/plus.svg +++ b/src/Febe.Web/wwwroot/icone/plus.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/refresh-cw.svg b/src/Febe.Web/wwwroot/icone/refresh-cw.svg index 2f46dd5..61484e4 100644 --- a/src/Febe.Web/wwwroot/icone/refresh-cw.svg +++ b/src/Febe.Web/wwwroot/icone/refresh-cw.svg @@ -1,18 +1,6 @@ - - - - - - + + + + + diff --git a/src/Febe.Web/wwwroot/icone/rotate-ccw.svg b/src/Febe.Web/wwwroot/icone/rotate-ccw.svg index d236e73..c269f55 100644 --- a/src/Febe.Web/wwwroot/icone/rotate-ccw.svg +++ b/src/Febe.Web/wwwroot/icone/rotate-ccw.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/rotate-cw.svg b/src/Febe.Web/wwwroot/icone/rotate-cw.svg index 5fbb43f..873b0dc 100644 --- a/src/Febe.Web/wwwroot/icone/rotate-cw.svg +++ b/src/Febe.Web/wwwroot/icone/rotate-cw.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/search.svg b/src/Febe.Web/wwwroot/icone/search.svg index b8ffb2a..461703a 100644 --- a/src/Febe.Web/wwwroot/icone/search.svg +++ b/src/Febe.Web/wwwroot/icone/search.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/settings.svg b/src/Febe.Web/wwwroot/icone/settings.svg index e78308d..dc3d36e 100644 --- a/src/Febe.Web/wwwroot/icone/settings.svg +++ b/src/Febe.Web/wwwroot/icone/settings.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/shield-alert.svg b/src/Febe.Web/wwwroot/icone/shield-alert.svg index 7c9b11c..99e9d85 100644 --- a/src/Febe.Web/wwwroot/icone/shield-alert.svg +++ b/src/Febe.Web/wwwroot/icone/shield-alert.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/shield-check.svg b/src/Febe.Web/wwwroot/icone/shield-check.svg index e3265bd..ab90bfa 100644 --- a/src/Febe.Web/wwwroot/icone/shield-check.svg +++ b/src/Febe.Web/wwwroot/icone/shield-check.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/sliders-horizontal.svg b/src/Febe.Web/wwwroot/icone/sliders-horizontal.svg index ddbf08f..8db467d 100644 --- a/src/Febe.Web/wwwroot/icone/sliders-horizontal.svg +++ b/src/Febe.Web/wwwroot/icone/sliders-horizontal.svg @@ -1,23 +1,11 @@ - - - - - - - - - - - + + + + + + + + + + diff --git a/src/Febe.Web/wwwroot/icone/square-user.svg b/src/Febe.Web/wwwroot/icone/square-user.svg index 2f1a853..2a16d02 100644 --- a/src/Febe.Web/wwwroot/icone/square-user.svg +++ b/src/Febe.Web/wwwroot/icone/square-user.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/square.svg b/src/Febe.Web/wwwroot/icone/square.svg index 13d00d3..82f8d53 100644 --- a/src/Febe.Web/wwwroot/icone/square.svg +++ b/src/Febe.Web/wwwroot/icone/square.svg @@ -1,15 +1,3 @@ - - - + + diff --git a/src/Febe.Web/wwwroot/icone/star.svg b/src/Febe.Web/wwwroot/icone/star.svg index 3a2eb96..7af850c 100644 --- a/src/Febe.Web/wwwroot/icone/star.svg +++ b/src/Febe.Web/wwwroot/icone/star.svg @@ -1,15 +1,3 @@ - - - + + diff --git a/src/Febe.Web/wwwroot/icone/sun.svg b/src/Febe.Web/wwwroot/icone/sun.svg index e0bb4d2..2482502 100644 --- a/src/Febe.Web/wwwroot/icone/sun.svg +++ b/src/Febe.Web/wwwroot/icone/sun.svg @@ -1,23 +1,11 @@ - - - - - - - - - - - + + + + + + + + + + diff --git a/src/Febe.Web/wwwroot/icone/trash-2.svg b/src/Febe.Web/wwwroot/icone/trash-2.svg index becfb8d..a82290e 100644 --- a/src/Febe.Web/wwwroot/icone/trash-2.svg +++ b/src/Febe.Web/wwwroot/icone/trash-2.svg @@ -1,19 +1,7 @@ - - - - - - - + + + + + + diff --git a/src/Febe.Web/wwwroot/icone/triangle-alert.svg b/src/Febe.Web/wwwroot/icone/triangle-alert.svg index 9ea01aa..6f65ec2 100644 --- a/src/Febe.Web/wwwroot/icone/triangle-alert.svg +++ b/src/Febe.Web/wwwroot/icone/triangle-alert.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/upload.svg b/src/Febe.Web/wwwroot/icone/upload.svg index fd744a5..5686563 100644 --- a/src/Febe.Web/wwwroot/icone/upload.svg +++ b/src/Febe.Web/wwwroot/icone/upload.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/user-check.svg b/src/Febe.Web/wwwroot/icone/user-check.svg index 44f26e8..c4f1033 100644 --- a/src/Febe.Web/wwwroot/icone/user-check.svg +++ b/src/Febe.Web/wwwroot/icone/user-check.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/user.svg b/src/Febe.Web/wwwroot/icone/user.svg index 3404512..f896950 100644 --- a/src/Febe.Web/wwwroot/icone/user.svg +++ b/src/Febe.Web/wwwroot/icone/user.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/users.svg b/src/Febe.Web/wwwroot/icone/users.svg index a4597e2..597ce7f 100644 --- a/src/Febe.Web/wwwroot/icone/users.svg +++ b/src/Febe.Web/wwwroot/icone/users.svg @@ -1,18 +1,6 @@ - - - - - - + + + + + diff --git a/src/Febe.Web/wwwroot/icone/volume-2.svg b/src/Febe.Web/wwwroot/icone/volume-2.svg index 97c4dc3..5ca3efa 100644 --- a/src/Febe.Web/wwwroot/icone/volume-2.svg +++ b/src/Febe.Web/wwwroot/icone/volume-2.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/volume-x.svg b/src/Febe.Web/wwwroot/icone/volume-x.svg index 83db576..dbf8e55 100644 --- a/src/Febe.Web/wwwroot/icone/volume-x.svg +++ b/src/Febe.Web/wwwroot/icone/volume-x.svg @@ -1,17 +1,5 @@ - - - - - + + + + diff --git a/src/Febe.Web/wwwroot/icone/x.svg b/src/Febe.Web/wwwroot/icone/x.svg index eadaa1b..c7c431e 100644 --- a/src/Febe.Web/wwwroot/icone/x.svg +++ b/src/Febe.Web/wwwroot/icone/x.svg @@ -1,16 +1,4 @@ - - - - + + + diff --git a/src/Febe.Web/wwwroot/icone/zoom-in.svg b/src/Febe.Web/wwwroot/icone/zoom-in.svg index c18ba37..351f8af 100644 --- a/src/Febe.Web/wwwroot/icone/zoom-in.svg +++ b/src/Febe.Web/wwwroot/icone/zoom-in.svg @@ -1,18 +1,6 @@ - - - - - - + + + + + diff --git a/src/Febe.Web/wwwroot/index.html b/src/Febe.Web/wwwroot/index.html index 39eeb39..9e3b351 100644 --- a/src/Febe.Web/wwwroot/index.html +++ b/src/Febe.Web/wwwroot/index.html @@ -6,7 +6,6 @@ Febe - diff --git a/src/Febe.Web/wwwroot/js/core/dom.js b/src/Febe.Web/wwwroot/js/core/dom.js index 6e00b38..9e6d355 100644 --- a/src/Febe.Web/wwwroot/js/core/dom.js +++ b/src/Febe.Web/wwwroot/js/core/dom.js @@ -44,7 +44,7 @@ export function fill(el, ...children) { return append(el, children); } -/** An icon from the sprite (wwwroot/icone, Lucide, stroke 1.75): . */ +/** An icon from the sprite (wwwroot/icone, drawn for Febe on a 24 grid, stroke 1.75): . */ export function icon(name, size = '') { const svg = document.createElementNS(SVG, 'svg'); svg.setAttribute('class', `ic${size ? ' ' + size : ''}`); diff --git a/src/Febe.Web/wwwroot/js/pages/settings-about.js b/src/Febe.Web/wwwroot/js/pages/settings-about.js index 4a54508..63a3033 100644 --- a/src/Febe.Web/wwwroot/js/pages/settings-about.js +++ b/src/Febe.Web/wwwroot/js/pages/settings-about.js @@ -1,6 +1,6 @@ // Impostazioni, Informazioni: version and shell, where the guide is (the wiki of the repository), the folders, the // statement on the risk for the account (spec §1, §15 «che cosa la guida deve dire»), the licenses of what Febe -// carries inside (Archivo OFL, Lucide ISC, SQLite, SkiaSharp, .NET, WebView2). +// carries inside (SQLite, SkiaSharp, .NET, WebView2) and a line saying that font and icons are not third-party. import { api } from '../core/api.js'; import { h, icon, fill, brand } from '../core/dom.js'; @@ -28,5 +28,6 @@ export default async function about(page, box) { heading(t('impostazioni.informazioni.licenze'), t('impostazioni.informazioni.licenzeAiuto')), h('ul.licenze', (Array.isArray(components) ? components : []).map((c) => h('li', h('b', c.nome), h('span.muto', ` — ${c.testo}`), - c.file ? h('a', { href: c.file, target: '_blank', rel: 'noopener' }, t('impostazioni.informazioni.leggiLicenza')) : null))))); + c.file ? h('a', { href: c.file, target: '_blank', rel: 'noopener' }, t('impostazioni.informazioni.leggiLicenza')) : null))), + h('p.muto', t('impostazioni.informazioni.fattoInCasa')))); } diff --git a/src/Febe.Web/wwwroot/testi/it.json b/src/Febe.Web/wwwroot/testi/it.json index d69c491..c7f2088 100644 --- a/src/Febe.Web/wwwroot/testi/it.json +++ b/src/Febe.Web/wwwroot/testi/it.json @@ -814,14 +814,13 @@ "licenze": "Licenze", "licenzeAiuto": "Febe usa questi componenti, copiati nel programma con le loro licenze:", "componenti": [ - { "nome": "Archivo", "testo": "carattere, SIL Open Font License 1.1", "file": "/caratteri/LICENZA-OFL.txt" }, - { "nome": "Lucide", "testo": "icone, licenza ISC", "file": "/icone/LICENZA-ISC.txt" }, { "nome": "SQLite e Microsoft.Data.Sqlite", "testo": "database, pubblico dominio e licenza MIT" }, { "nome": "SkiaSharp", "testo": "miniature e impronte delle immagini, licenza MIT" }, { "nome": ".NET e ASP.NET Core", "testo": "licenza MIT" }, { "nome": "WebView2", "testo": "solo versione Windows, licenza Microsoft" } ], - "leggiLicenza": "Leggi la licenza" + "leggiLicenza": "Leggi la licenza", + "fattoInCasa": "Il carattere è quello del tuo sistema e le icone sono disegnate per Febe: nessun carattere né icona di terzi." } }, "browser": { diff --git a/tests/Febe.Tests/Web/HostingAndSecurityTests.cs b/tests/Febe.Tests/Web/HostingAndSecurityTests.cs index da67c05..ff65ccc 100644 --- a/tests/Febe.Tests/Web/HostingAndSecurityTests.cs +++ b/tests/Febe.Tests/Web/HostingAndSecurityTests.cs @@ -24,7 +24,7 @@ public sealed class HostingAndSecurityTests public void TheEmbeddedInterfaceHasEveryFileAndRefusesPathsOutsideIt() { var files = new EmbeddedWwwroot(); - foreach (var path in new[] { "index.html", "accesso.html", "css/febe.css", "js/app.js", "testi/it.json", "img/marchio.svg", "icone/image.svg", "caratteri/archivo-latin-standard-normal.woff2" }) + foreach (var path in new[] { "index.html", "accesso.html", "css/febe.css", "js/app.js", "testi/it.json", "img/marchio.svg", "icone/image.svg" }) { var info = files.GetFileInfo(path); Assert.IsTrue(info.Exists, path); @@ -50,7 +50,7 @@ public sealed class HostingAndSecurityTests } [TestMethod] - public void TheIconSpriteHasOneSymbolPerLucideFileWithoutItsOwnStroke() + public void TheIconSpriteHasOneSymbolPerIconFileWithoutItsOwnStroke() { var files = new EmbeddedWwwroot(); var sprite = SystemApi.BuildSprite(files); diff --git a/tests/Febe.Tests/Web/InHouseAssetsTests.cs b/tests/Febe.Tests/Web/InHouseAssetsTests.cs new file mode 100644 index 0000000..2bd053b --- /dev/null +++ b/tests/Febe.Tests/Web/InHouseAssetsTests.cs @@ -0,0 +1,176 @@ +using System.Text.RegularExpressions; +using System.Xml.Linq; +using Febe.Tests.Desktop.Support; +using Febe.Tests.Web.Support; +using Febe.Web.Hosting; + +namespace Febe.Tests.Web; + +/// +/// Font and icons are Febe's own (decision of 18 November 2026): the system's font, icons drawn in house, no font +/// file, no third-party icon set and no reference to the ones used before. +/// +[TestClass] +public sealed partial class InHouseAssetsTests +{ + private const string IconNamespace = "http://www.w3.org/2000/svg"; + + private static readonly HashSet Shapes = ["path", "line", "polyline", "polygon", "circle", "ellipse", "rect"]; + + private static readonly HashSet Geometry = + ["d", "points", "x", "y", "width", "height", "rx", "ry", "cx", "cy", "r", "x1", "y1", "x2", "y2", "stroke-dasharray", "stroke-dashoffset"]; + + private static readonly HashSet TextExtensions = + [".cs", ".js", ".mjs", ".css", ".html", ".htm", ".json", ".hjson", ".md", ".txt", ".svg", ".xml", ".csproj", ".props", ".targets", ".slnx", ".sh", ".ps1", ".yml", ".yaml", ".nsi", ".config", ".manifest"]; + + private static readonly HashSet FontExtensions = [".woff", ".woff2", ".ttf", ".otf", ".eot"]; + + [TestMethod] + public void TheInterfaceShipsNoFontFileNoLicenceOfThirdPartyAssetsAndUsesTheSystemFont() + { + var files = new EmbeddedWwwroot(); + foreach (var path in files.Files) + { + Assert.IsFalse(FontExtensions.Contains(Path.GetExtension(path).ToLowerInvariant()), $"file di caratteri nel programma: {path}"); + Assert.IsFalse(Path.GetFileName(path).StartsWith("LICENZA", StringComparison.OrdinalIgnoreCase), $"licenza di terzi nel programma: {path}"); + Assert.IsFalse(path.StartsWith("caratteri/", StringComparison.Ordinal), path); + } + + var css = files.ReadText("css/febe.css")!; + Assert.DoesNotContain("@font-face", css); + Assert.DoesNotContain("url(../caratteri", css); + StringAssert.Contains(css, "font-family:var(--carattere)"); + var stack = CharacterToken().Match(css); + Assert.IsTrue(stack.Success, "il token --carattere c'è"); + var families = stack.Groups[1].Value.Split(',', StringSplitOptions.TrimEntries); + Assert.AreEqual("system-ui", families[0], "prima il carattere del sistema"); + Assert.AreEqual("sans-serif", families[^1], "e in fondo il generico"); + CollectionAssert.Contains(families, "\"Segoe UI\""); + CollectionAssert.Contains(families, "Roboto"); + CollectionAssert.Contains(families, "Cantarell"); + CollectionAssert.Contains(families, "\"Noto Sans\""); + + foreach (var page in new[] { "index.html", "accesso.html" }) + { + var html = files.ReadText(page)!; + Assert.DoesNotContain("as=\"font\"", html, page); + Assert.DoesNotContain("/caratteri/", html, page); + } + } + + [TestMethod] + public async Task ThePagesForbidDownloadedFonts() + { + await using var server = await WebTestServer.StartAsync(); + using var response = await server.Client.GetAsync("/"); + var policy = string.Join(' ', response.Headers.GetValues("Content-Security-Policy")); + StringAssert.Contains(policy, "font-src 'none'"); + } + + [TestMethod] + public void EveryIconIsAPlainStrokeDrawingOnTheGridOfTwentyFour() + { + var files = new EmbeddedWwwroot(); + var icons = files.Files.Where(f => f.StartsWith("icone/", StringComparison.Ordinal)).Order(StringComparer.Ordinal).ToList(); + Assert.IsGreaterThanOrEqualTo(60, icons.Count, "le icone ci sono"); + foreach (var path in icons) + { + Assert.AreEqual(".svg", Path.GetExtension(path), $"in icone/ solo disegni: {path}"); + var document = XDocument.Parse(files.ReadText(path)!, LoadOptions.None); + Assert.IsFalse(document.DescendantNodes().OfType().Any(), $"nessun commento (né avvisi di licenza): {path}"); + var root = document.Root!; + Assert.AreEqual(XName.Get("svg", IconNamespace), root.Name, path); + Assert.AreEqual("0 0 24 24", (string?)root.Attribute("viewBox"), path); + Assert.IsNull(root.Attribute("class"), path); + Assert.AreEqual("none", (string?)root.Attribute("fill"), path); + Assert.AreEqual("currentColor", (string?)root.Attribute("stroke"), path); + Assert.IsTrue(root.Elements().Any(), $"vuota: {path}"); + foreach (var shape in root.Descendants()) + { + Assert.AreEqual(IconNamespace, shape.Name.NamespaceName, path); + Assert.IsTrue(Shapes.Contains(shape.Name.LocalName), $"{path}: elemento «{shape.Name.LocalName}» non ammesso"); + Assert.IsFalse(shape.HasElements, $"{path}: forme annidate"); + foreach (var attribute in shape.Attributes()) + { + Assert.IsTrue(Geometry.Contains(attribute.Name.LocalName), $"{path}: attributo «{attribute.Name.LocalName}» (spessore, colore e riempimento vengono dal foglio di stile)"); + if (attribute.Name.LocalName is not ("d" or "points" or "stroke-dasharray" or "stroke-dashoffset")) + { + var value = double.Parse(attribute.Value, System.Globalization.CultureInfo.InvariantCulture); + Assert.IsTrue(value is >= 0 and <= 24, $"{path}: {attribute.Name.LocalName}={attribute.Value} fuori dalla griglia"); + } + } + } + } + } + + [TestMethod] + public void EveryIconThePagesAskForIsDrawn() + { + var files = new EmbeddedWwwroot(); + var drawn = files.Files.Where(f => f.StartsWith("icone/", StringComparison.Ordinal)) + .Select(f => f["icone/".Length..^".svg".Length]).ToHashSet(StringComparer.Ordinal); + var asked = 0; + foreach (var path in files.Files.Where(f => f.EndsWith(".js", StringComparison.Ordinal))) + { + foreach (Match match in IconCall().Matches(files.ReadText(path)!)) + { + asked++; + Assert.Contains(match.Groups[1].Value, drawn, $"{path} chiede l'icona «{match.Groups[1].Value}»"); + } + } + + Assert.IsGreaterThan(20, asked, "le pagine usano le icone"); + } + + [TestMethod] + public void NoFileOfTheProgramStillNamesTheFontOrTheIconSetUsedBefore() + { + var root = Repository.Root(); + if (root is null) + { + Assert.Inconclusive("Il repository non è accanto alle prove."); + } + + var looked = 0; + foreach (var folder in new[] { "src", "tools", "installer", "docker", ".gitea", Path.Combine("docs", "guida") }) + { + var start = Path.Combine(root, folder); + if (!Directory.Exists(start)) + { + continue; + } + + foreach (var file in Directory.EnumerateFiles(start, "*", SearchOption.AllDirectories)) + { + var relative = Path.GetRelativePath(root, file); + var parts = relative.Split(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar); + if (parts.Contains("bin") || parts.Contains("obj") || parts.Contains("node_modules")) + { + continue; + } + + Assert.IsFalse(FontExtensions.Contains(Path.GetExtension(file).ToLowerInvariant()), $"file di caratteri: {relative}"); + if (!TextExtensions.Contains(Path.GetExtension(file).ToLowerInvariant())) + { + continue; + } + + looked++; + var match = FormerAssets().Match(File.ReadAllText(file)); + Assert.IsFalse(match.Success, $"{relative} nomina ancora «{match.Value}»"); + } + } + + Assert.IsGreaterThan(100, looked, "i file del programma sono stati letti"); + } + + [GeneratedRegex(@"--carattere:([^;]+);")] + private static partial Regex CharacterToken(); + + [GeneratedRegex(@"\bicon\('([a-z0-9-]+)'")] + private static partial Regex IconCall(); + + // The font and the icon set Febe carried until 18 November 2026. + [GeneratedRegex(@"\b(archivo|lucide)\b", RegexOptions.IgnoreCase)] + private static partial Regex FormerAssets(); +}