📝 feat(database): Refactor database files and remove unnecessary CSS/JS files
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
<div class="flex items-center space-x-3">
|
||||
<div class="status-dot status-online"></div>
|
||||
<span class="text-sm font-semibold text-professional-primary">Live System</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-glass rounded-full px-6 py-3 animate-scale-in">
|
||||
<span id="live-time" class="text-sm font-semibold text-professional-primary"></span>
|
||||
@@ -77,7 +77,7 @@
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"></path>
|
||||
</svg>
|
||||
<span>Jobs aktualisieren</span>
|
||||
</button>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -85,7 +85,7 @@
|
||||
|
||||
<div class="max-w-7xl mx-auto px-6 lg:px-8 -mt-12 relative z-10" style="margin-bottom: 4rem;">
|
||||
|
||||
<!-- Neue Reservierung anlegen -->
|
||||
<!-- Neue Reservierung anlegen -->
|
||||
<div class="professional-container animate-slide-up" style="padding: 3rem; border-radius: 2rem; margin-bottom: 3rem;">
|
||||
<div class="text-center mb-16">
|
||||
<h2 class="title-professional text-4xl font-bold mb-6">
|
||||
@@ -95,13 +95,13 @@
|
||||
Erstellen Sie einen neuen Druckauftrag mit professionellen Einstellungen und intelligenter Druckerauswahl
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- Queue-Status-Anzeige -->
|
||||
|
||||
<!-- Queue-Status-Anzeige -->
|
||||
<div id="queue-status-info" class="mb-12"></div>
|
||||
|
||||
|
||||
<form id="newJobForm" class="space-y-12">
|
||||
<div class="grid grid-cols-1 lg:grid-cols-3 gap-10">
|
||||
<!-- Drucker auswählen -->
|
||||
<!-- Drucker auswählen -->
|
||||
<div class="group">
|
||||
<label for="printer_id" class="block text-base font-bold text-professional-primary mb-4">
|
||||
Drucker auswählen <span class="text-red-500 text-lg">*</span>
|
||||
@@ -109,9 +109,9 @@
|
||||
<div class="relative">
|
||||
<select id="printer_id" name="printer_id" required
|
||||
class="input-professional appearance-none pr-12 cursor-pointer w-full text-base py-4 px-5" style="border-radius: 1rem;">
|
||||
<option value="">Drucker auswählen...</option>
|
||||
<!-- Wird durch JavaScript gefüllt -->
|
||||
</select>
|
||||
<option value="">Drucker auswählen...</option>
|
||||
<!-- Wird durch JavaScript gefüllt -->
|
||||
</select>
|
||||
<div class="absolute inset-y-0 right-0 flex items-center pr-5 pointer-events-none">
|
||||
<svg class="h-6 w-6 text-professional-muted group-hover:text-professional-primary transition-colors duration-200" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
|
||||
@@ -119,16 +119,16 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="printer-status-info" class="mt-4 text-center">
|
||||
<!-- Status-Info wird dynamisch gefüllt -->
|
||||
</div>
|
||||
<!-- Status-Info wird dynamisch gefüllt -->
|
||||
</div>
|
||||
<div id="printer-status-warning" class="mt-6 hidden">
|
||||
<div class="alert-professional alert-warning" style="border-radius: 1.5rem; padding: 2rem;">
|
||||
<div class="flex-shrink-0">
|
||||
<div class="w-16 h-16 bg-gradient-to-br from-orange-500 to-red-600 rounded-3xl flex items-center justify-center">
|
||||
<svg class="h-8 w-8 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"></path>
|
||||
</svg>
|
||||
</div>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-1 ml-6">
|
||||
<h3 class="text-xl font-bold text-professional-primary mb-6">
|
||||
@@ -138,11 +138,11 @@
|
||||
<div class="flex items-center space-x-4">
|
||||
<div class="w-3 h-3 bg-red-500 rounded-full"></div>
|
||||
<span class="text-base text-professional-secondary">Drucker ist derzeit <strong>OFFLINE</strong></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center space-x-4">
|
||||
<div class="w-3 h-3 bg-yellow-500 rounded-full"></div>
|
||||
<span class="text-base text-professional-secondary">Job wird in <strong>WARTESCHLANGE</strong> eingereiht</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center space-x-4">
|
||||
<div class="w-3 h-3 bg-blue-500 rounded-full"></div>
|
||||
<span class="text-base text-professional-secondary">System überwacht alle <strong>2 Minuten</strong></span>
|
||||
@@ -154,28 +154,28 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Gewünschte Startzeit -->
|
||||
</div>
|
||||
|
||||
<!-- Gewünschte Startzeit -->
|
||||
<div class="group">
|
||||
<label for="start_time" class="block text-base font-bold text-professional-primary mb-4">
|
||||
Gewünschte Startzeit <span class="text-red-500 text-lg">*</span>
|
||||
</label>
|
||||
<input type="datetime-local" id="start_time" name="start_time" required
|
||||
<input type="datetime-local" id="start_time" name="start_time" required
|
||||
class="input-professional w-full text-base py-4 px-5" style="border-radius: 1rem;">
|
||||
</div>
|
||||
|
||||
<!-- Geschätzte Druckdauer -->
|
||||
</div>
|
||||
|
||||
<!-- Geschätzte Druckdauer -->
|
||||
<div class="group">
|
||||
<label for="duration" class="block text-base font-bold text-professional-primary mb-4">
|
||||
Geschätzte Druckdauer (Minuten) <span class="text-red-500 text-lg">*</span>
|
||||
</label>
|
||||
<input type="number" id="duration" name="duration" required min="1" max="7200"
|
||||
<input type="number" id="duration" name="duration" required min="1" max="7200"
|
||||
class="input-professional w-full text-base py-4 px-5" placeholder="60" style="border-radius: 1rem;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 gap-10">
|
||||
<!-- Job-Titel -->
|
||||
<div class="group">
|
||||
@@ -185,29 +185,29 @@
|
||||
<input type="text" id="job_title" name="job_title" required
|
||||
class="input-professional w-full text-base py-4 px-5"
|
||||
placeholder="Geben Sie einen beschreibenden Titel ein" style="border-radius: 1rem;">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- STL-Datei hochladen -->
|
||||
<div class="group">
|
||||
<label for="stl_file" class="block text-base font-bold text-professional-primary mb-4">
|
||||
STL-Datei hochladen (optional)
|
||||
</label>
|
||||
<div class="flex items-center justify-center w-full">
|
||||
<div class="flex items-center justify-center w-full">
|
||||
<label for="stl_file" class="flex flex-col items-center justify-center w-full h-40 border-3 border-slate-300 dark:border-slate-600 border-dashed rounded-3xl cursor-pointer bg-slate-50/50 dark:bg-slate-700/30 hover:bg-slate-100/70 dark:hover:bg-slate-700/50 transition-all duration-300 backdrop-blur-sm">
|
||||
<div class="flex flex-col items-center justify-center pt-8 pb-8">
|
||||
<svg class="w-16 h-16 mb-6 text-professional-muted" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"></path>
|
||||
</svg>
|
||||
</svg>
|
||||
<p class="mb-3 text-base text-professional-primary"><span class="font-bold">Klicken Sie zum Hochladen</span> oder ziehen Sie die Datei hierher</p>
|
||||
<p class="text-sm text-professional-muted">STL-Dateien bis zu 50MB</p>
|
||||
</div>
|
||||
<input id="stl_file" name="stl_file" type="file" accept=".stl" class="hidden" />
|
||||
</label>
|
||||
</div>
|
||||
<input id="stl_file" name="stl_file" type="file" accept=".stl" class="hidden" />
|
||||
</label>
|
||||
</div>
|
||||
<div id="file-name" class="mt-4 text-base text-professional-muted hidden"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Submit Button -->
|
||||
<div class="flex items-center justify-end pt-12 border-t-2 border-slate-200 dark:border-slate-600">
|
||||
<button type="submit" class="btn-professional group px-10 py-5 text-lg">
|
||||
@@ -215,12 +215,12 @@
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6"></path>
|
||||
</svg>
|
||||
<span>Reservierung erstellen</span>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- Aktive und geplante Jobs -->
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- Aktive und geplante Jobs -->
|
||||
<div class="professional-container animate-slide-up" style="padding: 3rem; border-radius: 2rem;">
|
||||
<div class="text-center mb-16">
|
||||
<h2 class="title-professional text-4xl font-bold mb-6">
|
||||
@@ -232,13 +232,13 @@
|
||||
</div>
|
||||
|
||||
<div id="active-jobs-container" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||||
<!-- Jobs werden dynamisch mit JavaScript geladen -->
|
||||
<!-- Jobs werden dynamisch mit JavaScript geladen -->
|
||||
<div class="col-span-full py-16 text-center" id="no-jobs-message">
|
||||
<div class="mb-glass rounded-3xl p-12 max-w-md mx-auto">
|
||||
<div class="text-professional-muted mb-8">
|
||||
<svg class="w-20 h-20 mx-auto" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1" d="M9 5H7a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path>
|
||||
</svg>
|
||||
</svg>
|
||||
</div>
|
||||
<h3 class="text-2xl font-bold text-professional-primary mb-4">Keine aktiven Jobs</h3>
|
||||
<p class="text-lg text-professional-muted">Sie haben derzeit keine aktiven oder geplanten Druckjobs.</p>
|
||||
@@ -261,8 +261,8 @@
|
||||
<button onclick="closeJobModal()" class="p-2 hover:bg-slate-100 dark:hover:bg-slate-700 rounded-xl transition-colors duration-200">
|
||||
<svg class="w-6 h-6 text-professional-muted hover:text-professional-primary" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div id="jobDetailsContent">
|
||||
@@ -284,8 +284,8 @@
|
||||
<button onclick="closeExtendModal()" class="p-2 hover:bg-slate-100 dark:hover:bg-slate-700 rounded-xl transition-colors duration-200">
|
||||
<svg class="w-6 h-6 text-professional-muted hover:text-professional-primary" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
|
||||
</svg>
|
||||
</button>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<form id="extendJobForm" class="space-y-6">
|
||||
@@ -321,7 +321,7 @@ window.isAdmin = {% if current_user.is_admin %}true{% else %}false{% endif %};
|
||||
|
||||
// Live Time Update
|
||||
function updateLiveTime() {
|
||||
const now = new Date();
|
||||
const now = new Date();
|
||||
const timeElement = document.getElementById('live-time');
|
||||
if (timeElement) {
|
||||
timeElement.textContent = now.toLocaleTimeString('de-DE');
|
||||
|
Reference in New Issue
Block a user