// Knowledge Base view const KnowledgeBase = () => { const D = window.REGULA_DATA; const [scope, setScope] = React.useState('all'); const [filter, setFilter] = React.useState(''); const groups = [ { id: 'all', label: 'Tutti', count: D.docs.length }, { id: 'Gruppo', label: 'Gruppo', count: D.docs.filter(d => d.scope === 'Gruppo').length }, { id: 'MetalTech', label: 'MetalTech', count: D.docs.filter(d => d.scope === 'MetalTech').length }, { id: 'Aqua World', label: 'Aqua World', count: D.docs.filter(d => d.scope === 'Aqua World').length }, { id: 'Club Lumière', label: 'Club Lumière', count: D.docs.filter(d => d.scope === 'Club Lumière').length }, { id: 'Fondazione', label: 'Fondazione', count: D.docs.filter(d => d.scope === 'Fondazione').length } ]; const docs = D.docs.filter(d => (scope === 'all' || d.scope === scope) && (filter === '' || d.title.toLowerCase().includes(filter.toLowerCase())) ); return (

Knowledge Base

124 documenti · 18.4 GB · ultimo upload 2 ore fa
Trascina qui PDF, DOCX o XLSX — oppure sfoglia
max 200 MB · indicizzazione OCR automatica · dati privati
setFilter(e.target.value)} placeholder="Cerca nei documenti…" style={{ border: 'none', outline: 'none', background: 'transparent', flex: 1, fontSize: 12 }} /> {docs.length} risultati
Titolo Perimetro Stato Aggiornato Cit.
{docs.map((d, i) => (
{d.type}
{d.title}
{d.size} · {d.tags.map(t => ( #{t} ))}
{d.scope}
{d.indexed === 'Indicizzato' ? '● Indicizzato' : '○ In corso'}
{d.updated}
0 ? 'var(--accent)' : 'var(--muted-2)' }}>{d.cited}
))}
); }; Object.assign(window, { KnowledgeBase });