import type { SystemInfoConfig } from './types'

export const contentConfig: SystemInfoConfig = {
  title: 'Content Management System-Info',
  description: 'Verwaltung von Bildungsinhalten und Medien.',
  version: '1.5',
  architecture: {
    layers: [
      { title: 'Content UI', components: ['Media Library', 'Editor', 'Preview'], color: '#3b82f6' },
      { title: 'Processing', components: ['Transcoding', 'Thumbnail Gen', 'OCR'], color: '#8b5cf6' },
      { title: 'Delivery', components: ['CDN', 'Streaming', 'Download'], color: '#10b981' },
      { title: 'Storage', components: ['MinIO', 'PostgreSQL', 'Qdrant'], color: '#f59e0b' },
    ],
  },
  features: [
    { name: 'Media Upload', status: 'active', description: 'Multi-Format Upload' },
    { name: 'Auto-Processing', status: 'active', description: 'Automatische Konvertierung' },
    { name: 'Search & Filter', status: 'active', description: 'Content-Suche' },
    { name: 'Version Control', status: 'planned', description: 'Inhaltsversionierung' },
  ],
  roadmap: [
    { phase: 'Phase 1: Core (Q1)', priority: 'high', items: ['Bulk Upload', 'Metadata Editor', 'Tagging System', 'Folder Structure'] },
    { phase: 'Phase 2: Media (Q2)', priority: 'medium', items: ['Video Streaming', 'Adaptive Bitrate', 'Subtitle Support', 'Audio Transcription'] },
    { phase: 'Phase 3: AI (Q3)', priority: 'low', items: ['Auto-Tagging', 'Content Moderation', 'Similarity Search', 'Auto-Description'] },
  ],
  technicalDetails: [
    { component: 'Storage', technology: 'MinIO', description: 'S3-Compatible' },
    { component: 'Video', technology: 'FFmpeg', description: 'Transcoding' },
    { component: 'CDN', technology: 'CloudFlare', description: 'Delivery' },
    { component: 'Search', technology: 'Qdrant', description: 'Similarity' },
  ],
  auditInfo: [
    {
      category: 'Content Status',
      items: [
        { label: 'Gesamt-Assets', value: 'Tracking', status: 'ok' },
        { label: 'Veroeffentlicht', value: 'Tracking', status: 'ok' },
        { label: 'In Review', value: 'Tracking', status: 'ok' },
        { label: 'Storage genutzt', value: 'Monitoring', status: 'ok' },
      ],
    },
    {
      category: 'Processing',
      items: [
        { label: 'Transcoding Queue', value: 'Aktiv', status: 'ok' },
        { label: 'Thumbnail Gen', value: 'Automatisch', status: 'ok' },
        { label: 'OCR Pipeline', value: 'Aktiv', status: 'ok' },
        { label: 'CDN Sync', value: 'Aktiv', status: 'ok' },
      ],
    },
    {
      category: 'Qualitaet',
      items: [
        { label: 'Format-Standards', value: 'Definiert', status: 'ok' },
        { label: 'Metadata-Validierung', value: 'Aktiv', status: 'ok' },
        { label: 'Content-Moderation', value: 'Geplant', status: 'warning' },
        { label: 'Accessibility', value: 'In Arbeit', status: 'warning' },
      ],
    },
  ],
  fullDocumentation: `
<h2>Content Management System</h2>

<h3>1. Uebersicht</h3>
<p>Das CMS verwaltet alle Bildungsinhalte: Videos, PDFs, Arbeitsblätter und interaktive Medien.</p>

<h3>2. Unterstuetzte Formate</h3>
<table>
  <tr><th>Typ</th><th>Eingabe</th><th>Ausgabe</th><th>Max Groesse</th></tr>
  <tr><td>Video</td><td>MP4, MOV, MKV, AVI</td><td>MP4 (H.264), HLS</td><td>5 GB</td></tr>
  <tr><td>Audio</td><td>MP3, WAV, FLAC, M4A</td><td>MP3, AAC</td><td>500 MB</td></tr>
  <tr><td>Dokument</td><td>PDF, DOCX, PPTX</td><td>PDF, Thumbnails</td><td>100 MB</td></tr>
  <tr><td>Bild</td><td>JPG, PNG, WEBP, GIF</td><td>WEBP, Thumbnails</td><td>50 MB</td></tr>
</table>

<h3>3. API Endpoints</h3>
<table>
  <tr><th>Endpoint</th><th>Methode</th><th>Beschreibung</th></tr>
  <tr><td>/api/content/upload</td><td>POST</td><td>Upload initiieren (TUS)</td></tr>
  <tr><td>/api/content/assets</td><td>GET</td><td>Assets listen</td></tr>
  <tr><td>/api/content/assets/{id}</td><td>GET</td><td>Asset-Details</td></tr>
  <tr><td>/api/content/search</td><td>GET</td><td>Content suchen</td></tr>
</table>
`,
}
