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>
391 lines
10 KiB
HTML
391 lines
10 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Course Presentation Editor - BreakPilot H5P</title>
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
background: #f5f5f5;
|
|
padding: 20px;
|
|
}
|
|
.container {
|
|
background: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
padding: 30px;
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
}
|
|
h1 {
|
|
color: #333;
|
|
margin-bottom: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
.info-box {
|
|
background: #f0f9ff;
|
|
border-left: 4px solid #3b82f6;
|
|
padding: 16px;
|
|
margin-bottom: 24px;
|
|
border-radius: 4px;
|
|
}
|
|
.form-group {
|
|
margin-bottom: 24px;
|
|
}
|
|
label {
|
|
display: block;
|
|
font-weight: 600;
|
|
color: #374151;
|
|
margin-bottom: 8px;
|
|
}
|
|
input[type="text"], input[type="url"], textarea {
|
|
width: 100%;
|
|
padding: 10px 14px;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
font-family: inherit;
|
|
transition: border-color 0.2s;
|
|
}
|
|
input[type="text"]:focus, input[type="url"]:focus, textarea:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
}
|
|
textarea {
|
|
resize: vertical;
|
|
min-height: 120px;
|
|
}
|
|
.slides-section {
|
|
background: #f9fafb;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-bottom: 24px;
|
|
}
|
|
.slide-card {
|
|
background: white;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
margin-bottom: 16px;
|
|
transition: all 0.2s;
|
|
}
|
|
.slide-card:hover {
|
|
border-color: #667eea;
|
|
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
|
|
}
|
|
.slide-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 16px;
|
|
}
|
|
.slide-number {
|
|
font-weight: 700;
|
|
color: #667eea;
|
|
font-size: 18px;
|
|
}
|
|
.slide-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
.color-picker-wrapper {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
input[type="color"] {
|
|
width: 60px;
|
|
height: 40px;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
}
|
|
.btn {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: all 0.2s;
|
|
}
|
|
.btn-sm {
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
}
|
|
.btn-primary {
|
|
background: #667eea;
|
|
color: white;
|
|
}
|
|
.btn-primary:hover {
|
|
background: #5568d3;
|
|
}
|
|
.btn-secondary {
|
|
background: #e5e7eb;
|
|
color: #374151;
|
|
}
|
|
.btn-secondary:hover {
|
|
background: #d1d5db;
|
|
}
|
|
.btn-danger {
|
|
background: #ef4444;
|
|
color: white;
|
|
}
|
|
.btn-danger:hover {
|
|
background: #dc2626;
|
|
}
|
|
.btn-group {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin-top: 24px;
|
|
}
|
|
.add-slide-btn {
|
|
width: 100%;
|
|
padding: 16px;
|
|
border: 2px dashed #9ca3af;
|
|
background: transparent;
|
|
color: #6b7280;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
transition: all 0.2s;
|
|
}
|
|
.add-slide-btn:hover {
|
|
border-color: #667eea;
|
|
color: #667eea;
|
|
background: #f9fafb;
|
|
}
|
|
.success-message {
|
|
background: #d1fae5;
|
|
border: 2px solid #10b981;
|
|
color: #065f46;
|
|
padding: 16px;
|
|
border-radius: 6px;
|
|
margin-bottom: 20px;
|
|
display: none;
|
|
}
|
|
.hint {
|
|
font-size: 12px;
|
|
color: #6b7280;
|
|
margin-top: 4px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>
|
|
<span>📊</span>
|
|
Course Presentation Editor
|
|
</h1>
|
|
|
|
<div class="success-message" id="successMessage">
|
|
✅ Präsentation erfolgreich gespeichert!
|
|
</div>
|
|
|
|
<div class="info-box">
|
|
<h3 style="color: #1e40af; margin-bottom: 8px; font-size: 14px;">💡 Wie funktioniert Course Presentation?</h3>
|
|
<p style="color: #475569; font-size: 14px; line-height: 1.6;">
|
|
Erstelle eine interaktive Präsentation mit mehreren Folien. Jede Folie kann Titel, Text und Bilder enthalten.
|
|
Ideal für Kurse, Tutorials und Lernmaterialien.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="title">Titel der Präsentation</label>
|
|
<input type="text" id="title" placeholder="z.B. Einführung in die Programmierung">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="description">Beschreibung (optional)</label>
|
|
<textarea id="description" placeholder="Kurze Beschreibung der Präsentation..."></textarea>
|
|
</div>
|
|
|
|
<div class="slides-section">
|
|
<h3 style="margin-bottom: 16px; color: #374151;">📄 Folien</h3>
|
|
<div id="slidesContainer"></div>
|
|
<button class="add-slide-btn" onclick="addSlide()">+ Neue Folie hinzufügen</button>
|
|
</div>
|
|
|
|
<div class="btn-group">
|
|
<button class="btn btn-primary" onclick="savePresentation()">💾 Speichern</button>
|
|
<button class="btn btn-secondary" onclick="previewPresentation()">📊 Vorschau</button>
|
|
<button class="btn btn-secondary" onclick="window.history.back()">← Zurück</button>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
let slides = [];
|
|
|
|
function addSlide() {
|
|
const slideId = Date.now();
|
|
slides.push({
|
|
id: slideId,
|
|
title: '',
|
|
content: '',
|
|
imageUrl: '',
|
|
backgroundColor: '#ffffff'
|
|
});
|
|
renderSlides();
|
|
}
|
|
|
|
function removeSlide(slideId) {
|
|
if (slides.length <= 1) {
|
|
alert('Du musst mindestens eine Folie haben!');
|
|
return;
|
|
}
|
|
|
|
if (confirm('Folie wirklich löschen?')) {
|
|
slides = slides.filter(s => s.id !== slideId);
|
|
renderSlides();
|
|
}
|
|
}
|
|
|
|
function moveSlide(slideId, direction) {
|
|
const index = slides.findIndex(s => s.id === slideId);
|
|
if (index === -1) return;
|
|
|
|
const newIndex = direction === 'up' ? index - 1 : index + 1;
|
|
if (newIndex < 0 || newIndex >= slides.length) return;
|
|
|
|
// Swap slides
|
|
[slides[index], slides[newIndex]] = [slides[newIndex], slides[index]];
|
|
renderSlides();
|
|
}
|
|
|
|
function updateSlide(slideId, field, value) {
|
|
const slide = slides.find(s => s.id === slideId);
|
|
if (slide) {
|
|
slide[field] = value;
|
|
}
|
|
}
|
|
|
|
function renderSlides() {
|
|
const container = document.getElementById('slidesContainer');
|
|
container.innerHTML = '';
|
|
|
|
slides.forEach((slide, index) => {
|
|
const slideEl = document.createElement('div');
|
|
slideEl.className = 'slide-card';
|
|
slideEl.innerHTML = `
|
|
<div class="slide-header">
|
|
<span class="slide-number">📄 Folie ${index + 1}</span>
|
|
<div class="slide-actions">
|
|
${index > 0 ? `<button class="btn btn-secondary btn-sm" onclick="moveSlide(${slide.id}, 'up')">↑</button>` : ''}
|
|
${index < slides.length - 1 ? `<button class="btn btn-secondary btn-sm" onclick="moveSlide(${slide.id}, 'down')">↓</button>` : ''}
|
|
<button class="btn btn-danger btn-sm" onclick="removeSlide(${slide.id})">🗑️</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label>Titel der Folie</label>
|
|
<input type="text"
|
|
value="${slide.title}"
|
|
onchange="updateSlide(${slide.id}, 'title', this.value)"
|
|
placeholder="z.B. Einführung">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label>Inhalt</label>
|
|
<textarea
|
|
onchange="updateSlide(${slide.id}, 'content', this.value)"
|
|
placeholder="Text der Folie...">${slide.content}</textarea>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label>Bild-URL (optional)</label>
|
|
<input type="url"
|
|
value="${slide.imageUrl}"
|
|
onchange="updateSlide(${slide.id}, 'imageUrl', this.value)"
|
|
placeholder="https://example.com/image.jpg">
|
|
<div class="hint">URL zu einem Bild, das auf der Folie angezeigt werden soll</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label>Hintergrundfarbe</label>
|
|
<div class="color-picker-wrapper">
|
|
<input type="color"
|
|
value="${slide.backgroundColor}"
|
|
onchange="updateSlide(${slide.id}, 'backgroundColor', this.value)">
|
|
<span style="color: #6b7280; font-size: 14px;">${slide.backgroundColor}</span>
|
|
</div>
|
|
</div>
|
|
`;
|
|
container.appendChild(slideEl);
|
|
});
|
|
}
|
|
|
|
function savePresentation() {
|
|
const title = document.getElementById('title').value;
|
|
const description = document.getElementById('description').value;
|
|
|
|
if (!title) {
|
|
alert('Bitte gib einen Titel ein!');
|
|
return;
|
|
}
|
|
|
|
if (slides.length === 0) {
|
|
alert('Bitte füge mindestens eine Folie hinzu!');
|
|
return;
|
|
}
|
|
|
|
for (let i = 0; i < slides.length; i++) {
|
|
if (!slides[i].title) {
|
|
alert(`Folie ${i + 1} hat keinen Titel!`);
|
|
return;
|
|
}
|
|
if (!slides[i].content) {
|
|
alert(`Folie ${i + 1} hat keinen Inhalt!`);
|
|
return;
|
|
}
|
|
}
|
|
|
|
const presentationData = {
|
|
type: 'course-presentation',
|
|
title,
|
|
description,
|
|
slides,
|
|
created: new Date().toISOString()
|
|
};
|
|
|
|
const contentId = 'presentation_' + Date.now();
|
|
localStorage.setItem(contentId, JSON.stringify(presentationData));
|
|
|
|
const successMsg = document.getElementById('successMessage');
|
|
successMsg.style.display = 'block';
|
|
setTimeout(() => {
|
|
successMsg.style.display = 'none';
|
|
}, 3000);
|
|
|
|
console.log('Präsentation gespeichert:', presentationData);
|
|
}
|
|
|
|
function previewPresentation() {
|
|
const title = document.getElementById('title').value;
|
|
|
|
if (!title || slides.length === 0) {
|
|
alert('Bitte fülle erst alle Felder aus!');
|
|
return;
|
|
}
|
|
|
|
const previewData = encodeURIComponent(JSON.stringify({
|
|
title,
|
|
description: document.getElementById('description').value,
|
|
slides
|
|
}));
|
|
|
|
window.open(`/h5p/player/course-presentation?data=${previewData}`, '_blank');
|
|
}
|
|
|
|
// Initialize with 3 slides
|
|
addSlide();
|
|
addSlide();
|
|
addSlide();
|
|
</script>
|
|
</body>
|
|
</html>
|