Phase 1 — Python (klausur-service): 5 monoliths → 36 files - dsfa_corpus_ingestion.py (1,828 LOC → 5 files) - cv_ocr_engines.py (2,102 LOC → 7 files) - cv_layout.py (3,653 LOC → 10 files) - vocab_worksheet_api.py (2,783 LOC → 8 files) - grid_build_core.py (1,958 LOC → 6 files) Phase 2 — Go (edu-search-service, school-service): 8 monoliths → 19 files - staff_crawler.go (1,402 → 4), policy/store.go (1,168 → 3) - policy_handlers.go (700 → 2), repository.go (684 → 2) - search.go (592 → 2), ai_extraction_handlers.go (554 → 2) - seed_data.go (591 → 2), grade_service.go (646 → 2) Phase 3 — TypeScript (admin-lehrer): 45 monoliths → 220+ files - sdk/types.ts (2,108 → 16 domain files) - ai/rag/page.tsx (2,686 → 14 files) - 22 page.tsx files split into _components/ + _hooks/ - 11 component files split into sub-components - 10 SDK data catalogs added to loc-exceptions - Deleted dead backup index_original.ts (4,899 LOC) All original public APIs preserved via re-export facades. Zero new errors: Python imports verified, Go builds clean, TypeScript tsc --noEmit shows only pre-existing errors. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
106 lines
3.2 KiB
TypeScript
106 lines
3.2 KiB
TypeScript
'use client'
|
|
|
|
/**
|
|
* SBOM (Software Bill of Materials) Admin Page
|
|
*
|
|
* Migriert von /admin/sbom (website) nach /infrastructure/sbom (admin-v2)
|
|
*
|
|
* Displays:
|
|
* - All infrastructure components (Docker services)
|
|
* - Python/Go dependencies
|
|
* - Node.js packages
|
|
* - License information
|
|
* - Version tracking
|
|
*/
|
|
|
|
import Link from 'next/link'
|
|
import { PagePurpose } from '@/components/common/PagePurpose'
|
|
import { DevOpsPipelineSidebarResponsive } from '@/components/infrastructure/DevOpsPipelineSidebar'
|
|
import {
|
|
StatsCards,
|
|
CategoryFilter,
|
|
ComponentsTable,
|
|
ExportButton,
|
|
SbomMetadata,
|
|
InfoTabsSection,
|
|
} from './_components'
|
|
import { useSbomData } from './useSbomData'
|
|
|
|
export default function SBOMPage() {
|
|
const {
|
|
sbomData,
|
|
loading,
|
|
activeCategory,
|
|
setActiveCategory,
|
|
searchTerm,
|
|
setSearchTerm,
|
|
activeInfoTab,
|
|
setActiveInfoTab,
|
|
showFullDocs,
|
|
setShowFullDocs,
|
|
filteredComponents,
|
|
stats,
|
|
categories,
|
|
handleExport,
|
|
} = useSbomData()
|
|
|
|
return (
|
|
<div>
|
|
<PagePurpose
|
|
title="SBOM"
|
|
purpose="Software Bill of Materials - Alle Komponenten & Abhaengigkeiten der Breakpilot Lehrer-Plattform. Wichtig fuer Supply-Chain-Security, Compliance-Audits und Lizenz-Pruefung."
|
|
audience={['DevOps', 'Compliance', 'Security', 'Auditoren']}
|
|
gdprArticles={['Art. 32 (Sicherheit der Verarbeitung)']}
|
|
architecture={{
|
|
services: ['Syft (SBOM Generator)', 'Trivy (CVE Scanner)'],
|
|
databases: ['CycloneDX JSON'],
|
|
}}
|
|
relatedPages={[
|
|
{ name: 'Security', href: '/infrastructure/security', description: 'DevSecOps Dashboard' },
|
|
{ name: 'Controls', href: '/sdk/controls', description: 'Security Controls' },
|
|
]}
|
|
collapsible={true}
|
|
defaultCollapsed={true}
|
|
/>
|
|
|
|
<DevOpsPipelineSidebarResponsive currentTool="sbom" />
|
|
|
|
{/* Wizard Link */}
|
|
<div className="mb-6 flex justify-end">
|
|
<Link
|
|
href="/infrastructure/sbom/wizard"
|
|
className="flex items-center gap-2 px-4 py-2 rounded-lg font-medium bg-purple-100 text-purple-700 border border-purple-200 hover:bg-purple-200 transition-colors"
|
|
>
|
|
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" />
|
|
</svg>
|
|
Lern-Wizard
|
|
</Link>
|
|
</div>
|
|
|
|
<StatsCards stats={stats} />
|
|
|
|
<CategoryFilter
|
|
categories={categories}
|
|
activeCategory={activeCategory}
|
|
setActiveCategory={setActiveCategory}
|
|
searchTerm={searchTerm}
|
|
setSearchTerm={setSearchTerm}
|
|
/>
|
|
|
|
{sbomData && <SbomMetadata sbomData={sbomData} />}
|
|
|
|
<ComponentsTable components={filteredComponents} loading={loading} />
|
|
|
|
<ExportButton onExport={handleExport} />
|
|
|
|
<InfoTabsSection
|
|
activeInfoTab={activeInfoTab}
|
|
setActiveInfoTab={setActiveInfoTab}
|
|
showFullDocs={showFullDocs}
|
|
setShowFullDocs={setShowFullDocs}
|
|
/>
|
|
</div>
|
|
)
|
|
}
|