Some checks failed
Tests / Go Tests (push) Has been cancelled
Tests / Python Tests (push) Has been cancelled
Tests / Integration Tests (push) Has been cancelled
Tests / Go Lint (push) Has been cancelled
Tests / Python Lint (push) Has been cancelled
Tests / Security Scan (push) Has been cancelled
Tests / All Checks Passed (push) Has been cancelled
Security Scanning / Secret Scanning (push) Has been cancelled
Security Scanning / Dependency Vulnerability Scan (push) Has been cancelled
Security Scanning / Go Security Scan (push) Has been cancelled
Security Scanning / Python Security Scan (push) Has been cancelled
Security Scanning / Node.js Security Scan (push) Has been cancelled
Security Scanning / Docker Image Security (push) Has been cancelled
Security Scanning / Security Summary (push) Has been cancelled
CI/CD Pipeline / Go Tests (push) Has been cancelled
CI/CD Pipeline / Python Tests (push) Has been cancelled
CI/CD Pipeline / Website Tests (push) Has been cancelled
CI/CD Pipeline / Linting (push) Has been cancelled
CI/CD Pipeline / Security Scan (push) Has been cancelled
CI/CD Pipeline / Docker Build & Push (push) Has been cancelled
CI/CD Pipeline / Integration Tests (push) Has been cancelled
CI/CD Pipeline / Deploy to Staging (push) Has been cancelled
CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / CI Summary (push) Has been cancelled
ci/woodpecker/manual/build-ci-image Pipeline was successful
ci/woodpecker/manual/main Pipeline failed
All services: admin-v2, studio-v2, website, ai-compliance-sdk, consent-service, klausur-service, voice-service, and infrastructure. Large PDFs and compiled binaries excluded via .gitignore.
114 lines
2.9 KiB
Python
114 lines
2.9 KiB
Python
"""
|
|
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();
|
|
}
|
|
"""
|