fix: Restore all files lost during destructive rebase
A previous `git pull --rebase origin main` dropped 177 local commits,
losing 3400+ files across admin-v2, backend, studio-v2, website,
klausur-service, and many other services. The partial restore attempt
(660295e2) only recovered some files.
This commit restores all missing files from pre-rebase ref 98933f5e
while preserving post-rebase additions (night-scheduler, night-mode UI,
NightModeWidget dashboard integration).
Restored features include:
- AI Module Sidebar (FAB), OCR Labeling, OCR Compare
- GPU Dashboard, RAG Pipeline, Magic Help
- Klausur-Korrektur (8 files), Abitur-Archiv (5+ files)
- Companion, Zeugnisse-Crawler, Screen Flow
- Full backend, studio-v2, website, klausur-service
- All compliance SDKs, agent-core, voice-service
- CI/CD configs, documentation, scripts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
113
backend/frontend/modules/klausur_korrektur.py
Normal file
113
backend/frontend/modules/klausur_korrektur.py
Normal file
@@ -0,0 +1,113 @@
|
||||
"""
|
||||
BreakPilot Studio - Klausur-Korrektur Stub
|
||||
|
||||
Das vollstaendige Klausur-Korrektur Modul wurde in einen eigenstaendigen
|
||||
Microservice (klausur-service) ausgelagert.
|
||||
|
||||
Dieser Stub existiert nur fuer Abwaertskompatibilitaet.
|
||||
Die Klausur-Korrektur wird ueber das Dashboard (openKlausurService) geoeffnet.
|
||||
"""
|
||||
|
||||
|
||||
class KlausurKorrekturModule:
|
||||
"""Stub - Klausur-Korrektur ist jetzt ein eigenstaendiger Service."""
|
||||
|
||||
@staticmethod
|
||||
def get_css() -> str:
|
||||
"""Minimales CSS fuer Redirect-Hinweis."""
|
||||
return """
|
||||
/* Klausur-Korrektur wurde in eigenstaendigen Service ausgelagert */
|
||||
.panel-klausur-korrektur {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 56px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: var(--bp-surface, #1e293b);
|
||||
z-index: 60;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
gap: 24px;
|
||||
padding: 48px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.panel-klausur-korrektur.active {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.panel-klausur-korrektur h2 {
|
||||
color: var(--bp-text, #e5e7eb);
|
||||
font-size: 24px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.panel-klausur-korrektur p {
|
||||
color: var(--bp-text-muted, #9ca3af);
|
||||
font-size: 16px;
|
||||
max-width: 500px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.panel-klausur-korrektur .redirect-btn {
|
||||
background: var(--bp-primary, #6C1B1B);
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 16px 32px;
|
||||
border-radius: 8px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.panel-klausur-korrektur .redirect-btn:hover {
|
||||
background: var(--bp-primary-hover, #8B2323);
|
||||
}
|
||||
"""
|
||||
|
||||
@staticmethod
|
||||
def get_html() -> str:
|
||||
"""HTML mit Redirect-Hinweis."""
|
||||
return """
|
||||
<!-- Klausur-Korrektur Panel (Stub - Service ausgelagert) -->
|
||||
<div id="panel-klausur-korrektur" class="panel-klausur-korrektur">
|
||||
<h2>Klausur-Korrektur wurde optimiert</h2>
|
||||
<p>
|
||||
Das Klausur-Korrektur Modul ist jetzt ein eigenstaendiger Service
|
||||
fuer bessere Performance und Stabilitaet.
|
||||
</p>
|
||||
<button class="redirect-btn" onclick="openKlausurService()">
|
||||
<span>🎓</span>
|
||||
<span>Klausur-Service oeffnen</span>
|
||||
</button>
|
||||
</div>
|
||||
"""
|
||||
|
||||
@staticmethod
|
||||
def get_js() -> str:
|
||||
"""Minimales JavaScript - openKlausurService ist im Dashboard definiert."""
|
||||
return """
|
||||
// Klausur-Korrektur Stub - Service wurde ausgelagert
|
||||
// Die Funktion openKlausurService() ist in dashboard.py definiert
|
||||
|
||||
function showKlausurKorrekturPanel() {
|
||||
// Falls jemand direkt zu diesem Panel navigiert, zeige Redirect-Hinweis
|
||||
hideAllPanels();
|
||||
const panel = document.getElementById('panel-klausur-korrektur');
|
||||
if (panel) {
|
||||
panel.style.display = 'flex';
|
||||
}
|
||||
console.log('Klausur-Korrektur ist jetzt ein eigenstaendiger Service auf Port 8086');
|
||||
}
|
||||
|
||||
// Legacy-Funktion fuer Abwaertskompatibilitaet
|
||||
function loadKlausurKorrekturModule() {
|
||||
console.log('loadKlausurKorrekturModule() - Service ausgelagert, oeffne externen Service');
|
||||
openKlausurService();
|
||||
}
|
||||
"""
|
||||
Reference in New Issue
Block a user