"Refactor global refresh functions and templates for better performance (feat)"

This commit is contained in:
2025-05-29 17:51:01 +02:00
parent e338c5835e
commit a473c06658
5 changed files with 958 additions and 3 deletions

View File

@@ -325,11 +325,27 @@
<span>Exportieren</span>
</button>
<button onclick="toggleAutoOptimization()" id="auto-opt-toggle"
class="btn-secondary flex items-center gap-2">
class="btn-secondary flex items-center gap-2 relative group">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"/>
</svg>
<span>Auto-Optimierung</span>
<!-- Info-Tooltip für Auto-Optimierung -->
<div class="absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-80 bg-slate-900 dark:bg-slate-700 text-white text-xs rounded-lg p-3 opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none z-50 shadow-lg">
<div class="font-semibold mb-2">🚀 Intelligente Auto-Optimierung</div>
<ul class="space-y-1 text-left">
<li><strong>Round Robin:</strong> Gleichmäßige Druckerverteilung</li>
<li><strong>Load Balancing:</strong> Auslastungsoptimierung</li>
<li><strong>Prioritätsbasiert:</strong> Wichtige Jobs zuerst</li>
<li><strong>Rüstzeiten:</strong> Minimierung der Umrüstzeiten</li>
<li><strong>Entfernungen:</strong> Berücksichtigung der Druckerstandorte</li>
</ul>
<div class="mt-2 text-xs text-slate-300">
Tastenkürzel: <kbd class="bg-slate-800 px-1 rounded">Ctrl+Alt+O</kbd>
</div>
<div class="absolute top-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-l-4 border-r-4 border-t-4 border-transparent border-t-slate-900 dark:border-t-slate-700"></div>
</div>
</button>
</div>
</div>