Interfaccia, parte 2: Attività, Impostazioni, collegamento, Importa, doppioni, primo avvio ed errori di configurazione

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
Claude committed 2026-10-13 20:27:34 +00:00
1 parent 0515776b04
commit d614050ee5
90 files changed
+7825 -49

No files matched your search

@@ -0,0 +1,32 @@
// 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).
import { api } from '../core/api.js';
import { h, icon, fill, brand } from '../core/dom.js';
import { t } from '../core/text.js';
import { heading } from './settings.js';
export default async function about(page, box) {
const data = await api('/api/about', { signal: page.signal });
const components = t('impostazioni.informazioni.componenti');
fill(box,
h('div.sezione.informazioni',
h('div.marchio-grande', brand(), h('div', h('b', t('app.nome')), h('span.muto', `${t('impostazioni.informazioni.versione')} ${data.version} · ${t(`impostazioni.informazioni.vesti.${data.edition}`)}`)))),
h('div.sezione',
heading(t('impostazioni.informazioni.guida'), t('impostazioni.informazioni.guidaTesto')),
h('a.btn', { href: data.guide, target: '_blank', rel: 'noopener noreferrer' }, icon('external-link', 's'), t('impostazioni.informazioni.apriGuida'))),
h('div.sezione',
heading(t('impostazioni.informazioni.cartelle')),
h('dl.dati-db',
h('dt', t('impostazioni.informazioni.cartellaLibreria')), h('dd.dati', data.libraryFolder),
h('dt', t('impostazioni.informazioni.cartellaDati')), h('dd.dati', data.dataFolder))),
h('div.sezione',
heading(t('impostazioni.informazioni.rischioTitolo')),
h('div.avviso.ambra', icon('triangle-alert', 's'), h('span', t('impostazioni.informazioni.rischio')))),
h('div.sezione',
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)))));
}