// 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 (SQLite, .NET, WebView2) and a line saying that font, icons and images (codecs, thumbnails, drawing) // are Febe's own code, not third-party. 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))), h('p.muto', t('impostazioni.informazioni.fattoInCasa')))); }