📝 feat(database): Refactor database files and remove unnecessary CSS/JS files
This commit is contained in:
parent
bd45a34fa4
commit
d2c16fca62
Binary file not shown.
Binary file not shown.
@ -1,526 +0,0 @@
|
||||
/**
|
||||
* Mercedes-Benz MYP Platform - Responsive Verbesserungen & Problembehebung
|
||||
* Entfernt eckige Hintergründe und verbessert Responsivität
|
||||
*/
|
||||
|
||||
/* Globale Überschreibungen für problematische Hintergründe */
|
||||
* {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
/* Erlaubte Hintergründe explizit definieren */
|
||||
body,
|
||||
html {
|
||||
background: #f8fafc !important;
|
||||
}
|
||||
|
||||
.dark body,
|
||||
.dark html {
|
||||
background: #000000 !important;
|
||||
}
|
||||
|
||||
/* Mercedes Professional Overrides */
|
||||
.bg-professional,
|
||||
.professional-hero,
|
||||
.professional-container,
|
||||
.mb-glass,
|
||||
.card-professional,
|
||||
.stat-card {
|
||||
background: #f8fafc !important;
|
||||
border-radius: 2rem !important;
|
||||
}
|
||||
|
||||
.dark .bg-professional,
|
||||
.dark .professional-hero,
|
||||
.dark .professional-container,
|
||||
.dark .mb-glass,
|
||||
.dark .card-professional,
|
||||
.dark .stat-card {
|
||||
background: #111111 !important;
|
||||
border-color: #333333 !important;
|
||||
}
|
||||
|
||||
/* Entferne alle eckigen Hintergründe mit problematischen Farben */
|
||||
[style*="#182031"],
|
||||
[style*="#d5d7d8"],
|
||||
[style*="rgb(24, 32, 49)"],
|
||||
[style*="rgb(213, 215, 216)"] {
|
||||
background: transparent !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
/* Navbar und Navigation - Responsive */
|
||||
.navbar {
|
||||
background: rgba(255, 255, 255, 0.95) !important;
|
||||
backdrop-filter: blur(20px) !important;
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
|
||||
}
|
||||
|
||||
.dark .navbar {
|
||||
background: rgba(0, 0, 0, 0.95) !important;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
|
||||
}
|
||||
|
||||
/* Responsive Typography */
|
||||
@media (max-width: 640px) {
|
||||
.title-professional {
|
||||
font-size: 2.5rem !important;
|
||||
line-height: 1.1 !important;
|
||||
}
|
||||
|
||||
.subtitle-professional {
|
||||
font-size: 1.125rem !important;
|
||||
line-height: 1.5 !important;
|
||||
}
|
||||
|
||||
.btn-professional {
|
||||
padding: 0.75rem 1.5rem !important;
|
||||
font-size: 0.875rem !important;
|
||||
}
|
||||
|
||||
.professional-container,
|
||||
.mb-glass,
|
||||
.card-professional {
|
||||
padding: 1.5rem !important;
|
||||
margin: 1rem !important;
|
||||
border-radius: 1rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 641px) and (max-width: 768px) {
|
||||
.title-professional {
|
||||
font-size: 3.5rem !important;
|
||||
line-height: 1.1 !important;
|
||||
}
|
||||
|
||||
.subtitle-professional {
|
||||
font-size: 1.25rem !important;
|
||||
line-height: 1.6 !important;
|
||||
}
|
||||
|
||||
.btn-professional {
|
||||
padding: 1rem 2rem !important;
|
||||
font-size: 1rem !important;
|
||||
}
|
||||
|
||||
.professional-container,
|
||||
.mb-glass,
|
||||
.card-professional {
|
||||
padding: 2rem !important;
|
||||
margin: 1.5rem !important;
|
||||
border-radius: 1.5rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 769px) and (max-width: 1024px) {
|
||||
.title-professional {
|
||||
font-size: 4.5rem !important;
|
||||
line-height: 1.1 !important;
|
||||
}
|
||||
|
||||
.subtitle-professional {
|
||||
font-size: 1.5rem !important;
|
||||
line-height: 1.6 !important;
|
||||
}
|
||||
|
||||
.btn-professional {
|
||||
padding: 1.25rem 2.5rem !important;
|
||||
font-size: 1.125rem !important;
|
||||
}
|
||||
|
||||
.professional-container,
|
||||
.mb-glass,
|
||||
.card-professional {
|
||||
padding: 2.5rem !important;
|
||||
margin: 2rem !important;
|
||||
border-radius: 2rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1025px) {
|
||||
.title-professional {
|
||||
font-size: 6rem !important;
|
||||
line-height: 1.1 !important;
|
||||
}
|
||||
|
||||
.subtitle-professional {
|
||||
font-size: 2rem !important;
|
||||
line-height: 1.6 !important;
|
||||
}
|
||||
|
||||
.btn-professional {
|
||||
padding: 1.5rem 3rem !important;
|
||||
font-size: 1.25rem !important;
|
||||
}
|
||||
|
||||
.professional-container,
|
||||
.mb-glass,
|
||||
.card-professional {
|
||||
padding: 3rem !important;
|
||||
margin: 2rem !important;
|
||||
border-radius: 2rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive Grid Improvements */
|
||||
@media (max-width: 640px) {
|
||||
.grid {
|
||||
grid-template-columns: 1fr !important;
|
||||
gap: 1rem !important;
|
||||
}
|
||||
|
||||
.grid-cols-2 {
|
||||
grid-template-columns: 1fr !important;
|
||||
}
|
||||
|
||||
.grid-cols-3 {
|
||||
grid-template-columns: 1fr !important;
|
||||
}
|
||||
|
||||
.grid-cols-4 {
|
||||
grid-template-columns: 1fr !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 641px) and (max-width: 768px) {
|
||||
.grid-cols-3 {
|
||||
grid-template-columns: repeat(2, 1fr) !important;
|
||||
}
|
||||
|
||||
.grid-cols-4 {
|
||||
grid-template-columns: repeat(2, 1fr) !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive Flex Improvements */
|
||||
.flex-col-mobile {
|
||||
flex-direction: column !important;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.flex-col-mobile {
|
||||
flex-direction: row !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive Spacing */
|
||||
@media (max-width: 640px) {
|
||||
.space-y-6 > * + * {
|
||||
margin-top: 1rem !important;
|
||||
}
|
||||
|
||||
.space-y-8 > * + * {
|
||||
margin-top: 1.5rem !important;
|
||||
}
|
||||
|
||||
.space-y-12 > * + * {
|
||||
margin-top: 2rem !important;
|
||||
}
|
||||
|
||||
.space-x-6 > * + * {
|
||||
margin-left: 1rem !important;
|
||||
}
|
||||
|
||||
.space-x-8 > * + * {
|
||||
margin-left: 1.5rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Input Field Responsivität */
|
||||
.input-professional {
|
||||
background: #ffffff !important;
|
||||
border: 2px solid #e2e8f0 !important;
|
||||
border-radius: 1rem !important;
|
||||
padding: 1rem !important;
|
||||
font-size: 1rem !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.dark .input-professional {
|
||||
background: #1a1a1a !important;
|
||||
border-color: #333333 !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
.input-professional:focus {
|
||||
border-color: #3b82f6 !important;
|
||||
box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
|
||||
background: #ffffff !important;
|
||||
}
|
||||
|
||||
.dark .input-professional:focus {
|
||||
background: #222222 !important;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.input-professional {
|
||||
padding: 0.875rem !important;
|
||||
font-size: 0.875rem !important;
|
||||
border-radius: 0.75rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Alert und Modal Responsivität */
|
||||
.alert-professional {
|
||||
border-radius: 1.5rem !important;
|
||||
padding: 2rem !important;
|
||||
margin-bottom: 2rem !important;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.alert-professional {
|
||||
padding: 1.5rem !important;
|
||||
margin-bottom: 1.5rem !important;
|
||||
border-radius: 1rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Status Card Responsivität */
|
||||
.status-professional {
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
gap: 0.5rem !important;
|
||||
padding: 0.75rem 1rem !important;
|
||||
border-radius: 2rem !important;
|
||||
font-size: 0.875rem !important;
|
||||
font-weight: 700 !important;
|
||||
border: 1px solid transparent !important;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.status-professional {
|
||||
padding: 0.5rem 0.75rem !important;
|
||||
font-size: 0.75rem !important;
|
||||
border-radius: 1rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Button Responsivität */
|
||||
.btn-professional {
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
|
||||
color: white !important;
|
||||
border: none !important;
|
||||
border-radius: 1rem !important;
|
||||
font-weight: 700 !important;
|
||||
text-decoration: none !important;
|
||||
transition: all 0.3s ease !important;
|
||||
box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
|
||||
}
|
||||
|
||||
.btn-professional:hover {
|
||||
background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
|
||||
transform: translateY(-2px) !important;
|
||||
box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.btn-professional {
|
||||
width: 100% !important;
|
||||
justify-content: center !important;
|
||||
padding: 1rem 2rem !important;
|
||||
font-size: 1rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Hero Header Responsivität */
|
||||
.professional-hero {
|
||||
position: relative !important;
|
||||
overflow: hidden !important;
|
||||
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
|
||||
border: 1px solid #e2e8f0 !important;
|
||||
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
|
||||
}
|
||||
|
||||
.dark .professional-hero {
|
||||
background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
|
||||
border-color: #333333 !important;
|
||||
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
|
||||
}
|
||||
|
||||
/* Mobile Navigation Verbesserungen */
|
||||
@media (max-width: 1024px) {
|
||||
.navbar-menu-new {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.mobile-menu-new {
|
||||
background: rgba(255, 255, 255, 0.95) !important;
|
||||
backdrop-filter: blur(20px) !important;
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
|
||||
}
|
||||
|
||||
.dark .mobile-menu-new {
|
||||
background: rgba(0, 0, 0, 0.95) !important;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
|
||||
}
|
||||
|
||||
.mobile-nav-item {
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
padding: 1rem !important;
|
||||
border-radius: 0.75rem !important;
|
||||
color: #64748b !important;
|
||||
text-decoration: none !important;
|
||||
transition: all 0.3s ease !important;
|
||||
}
|
||||
|
||||
.dark .mobile-nav-item {
|
||||
color: #94a3b8 !important;
|
||||
}
|
||||
|
||||
.mobile-nav-item:hover,
|
||||
.mobile-nav-item.active {
|
||||
background: rgba(59, 130, 246, 0.1) !important;
|
||||
color: #3b82f6 !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Container Max-Width Responsivität */
|
||||
.max-w-7xl {
|
||||
max-width: 100% !important;
|
||||
padding-left: 1rem !important;
|
||||
padding-right: 1rem !important;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.max-w-7xl {
|
||||
padding-left: 1.5rem !important;
|
||||
padding-right: 1.5rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.max-w-7xl {
|
||||
padding-left: 2rem !important;
|
||||
padding-right: 2rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.max-w-7xl {
|
||||
max-width: 80rem !important;
|
||||
padding-left: 2rem !important;
|
||||
padding-right: 2rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Entferne alle potentiellen eckigen Standard-Hintergründe */
|
||||
div, section, article, aside, header, footer, main, nav {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
/* Glasmorphism Verbesserungen */
|
||||
.mb-glass {
|
||||
background: rgba(255, 255, 255, 0.9) !important;
|
||||
backdrop-filter: blur(20px) !important;
|
||||
border: 1px solid rgba(255, 255, 255, 0.2) !important;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
|
||||
}
|
||||
|
||||
.dark .mb-glass {
|
||||
background: rgba(17, 17, 17, 0.95) !important;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
|
||||
}
|
||||
|
||||
/* Entfernt alle Standardhintergründe von Browsern */
|
||||
input, textarea, select, button {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
/* Erlaubte Input-Hintergründe */
|
||||
.input-professional,
|
||||
input[type="text"],
|
||||
input[type="email"],
|
||||
input[type="password"],
|
||||
input[type="number"],
|
||||
input[type="datetime-local"],
|
||||
textarea,
|
||||
select {
|
||||
background: #ffffff !important;
|
||||
border: 2px solid #e2e8f0 !important;
|
||||
}
|
||||
|
||||
.dark .input-professional,
|
||||
.dark input[type="text"],
|
||||
.dark input[type="email"],
|
||||
.dark input[type="password"],
|
||||
.dark input[type="number"],
|
||||
.dark input[type="datetime-local"],
|
||||
.dark textarea,
|
||||
.dark select {
|
||||
background: #1a1a1a !important;
|
||||
border-color: #333333 !important;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
/* Animation Verbesserungen */
|
||||
@keyframes fadeInResponsive {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.animate-fade-in {
|
||||
animation: fadeInResponsive 0.6s ease-out !important;
|
||||
}
|
||||
|
||||
.animate-slide-up {
|
||||
animation: fadeInResponsive 0.8s ease-out !important;
|
||||
}
|
||||
|
||||
.animate-scale-in {
|
||||
animation: fadeInResponsive 0.5s ease-out !important;
|
||||
}
|
||||
|
||||
/* Smooth Scrolling */
|
||||
html {
|
||||
scroll-behavior: smooth !important;
|
||||
}
|
||||
|
||||
/* Performance Optimierungen */
|
||||
* {
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100% !important;
|
||||
height: auto !important;
|
||||
}
|
||||
|
||||
/* Accessibility Verbesserungen */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
* {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Focus Indicators */
|
||||
button:focus,
|
||||
input:focus,
|
||||
textarea:focus,
|
||||
select:focus,
|
||||
a:focus {
|
||||
outline: 2px solid #3b82f6 !important;
|
||||
outline-offset: 2px !important;
|
||||
}
|
||||
|
||||
/* Entfernt problematische Farben aus allen Elementen */
|
||||
[style*="background-color: #182031"],
|
||||
[style*="background: #182031"],
|
||||
[style*="background-color: #d5d7d8"],
|
||||
[style*="background: #d5d7d8"] {
|
||||
background: transparent !important;
|
||||
background-color: transparent !important;
|
||||
}
|
@ -1,241 +0,0 @@
|
||||
/**
|
||||
* Mercedes-Benz MYP Platform - Background Fix
|
||||
* Entfernt problematische eckige Hintergründe zur Laufzeit
|
||||
*/
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
// Problematische Farben die entfernt werden sollen
|
||||
const problematicColors = [
|
||||
'#182031',
|
||||
'#d5d7d8',
|
||||
'rgb(24, 32, 49)',
|
||||
'rgb(213, 215, 216)',
|
||||
'rgba(24, 32, 49, 1)',
|
||||
'rgba(213, 215, 216, 1)'
|
||||
];
|
||||
|
||||
// Funktion zum Entfernen problematischer Hintergründe
|
||||
function removeProblematicBackgrounds() {
|
||||
const allElements = document.querySelectorAll('*');
|
||||
|
||||
allElements.forEach(element => {
|
||||
const computedStyle = window.getComputedStyle(element);
|
||||
const backgroundColor = computedStyle.backgroundColor;
|
||||
const backgroundImage = computedStyle.backgroundImage;
|
||||
|
||||
// Prüfe auf problematische Hintergrundfarben
|
||||
problematicColors.forEach(color => {
|
||||
if (backgroundColor.includes(color.replace('#', '')) ||
|
||||
backgroundColor === color ||
|
||||
backgroundImage.includes(color)) {
|
||||
|
||||
console.log('Entferne problematischen Hintergrund:', color, 'von Element:', element);
|
||||
element.style.background = 'transparent';
|
||||
element.style.backgroundColor = 'transparent';
|
||||
element.style.backgroundImage = 'none';
|
||||
}
|
||||
});
|
||||
|
||||
// Spezielle Checks für inline styles
|
||||
const inlineStyle = element.getAttribute('style');
|
||||
if (inlineStyle) {
|
||||
problematicColors.forEach(color => {
|
||||
if (inlineStyle.includes(color)) {
|
||||
console.log('Entferne problematischen Inline-Style:', color, 'von Element:', element);
|
||||
|
||||
// Entferne problematische Farbe aus inline style
|
||||
let newStyle = inlineStyle
|
||||
.replace(new RegExp(`background-color:\\s*${color.replace('#', '\\#')}[^;]*;?`, 'gi'), '')
|
||||
.replace(new RegExp(`background:\\s*${color.replace('#', '\\#')}[^;]*;?`, 'gi'), '')
|
||||
.replace(/background-color:\s*transparent\s*!important\s*;?\s*/gi, '')
|
||||
.trim();
|
||||
|
||||
if (newStyle !== inlineStyle) {
|
||||
element.setAttribute('style', newStyle);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Funktion zum Erzwingen des Mercedes-Designs
|
||||
function enforceDesign() {
|
||||
const isDark = document.documentElement.classList.contains('dark');
|
||||
|
||||
// Haupthintergrund erzwingen
|
||||
document.body.style.background = isDark ? '#000000' : '#f8fafc';
|
||||
document.documentElement.style.background = isDark ? '#000000' : '#f8fafc';
|
||||
|
||||
// Professionelle Container sicherstellen
|
||||
const containers = document.querySelectorAll(
|
||||
'.professional-container, .mb-glass, .card-professional, .bg-professional, .professional-hero'
|
||||
);
|
||||
|
||||
containers.forEach(container => {
|
||||
if (isDark) {
|
||||
container.style.background = '#111111';
|
||||
container.style.borderColor = '#333333';
|
||||
} else {
|
||||
container.style.background = '#f8fafc';
|
||||
container.style.borderColor = '#e2e8f0';
|
||||
}
|
||||
container.style.borderRadius = '2rem';
|
||||
});
|
||||
|
||||
// Input-Felder sicherstellen
|
||||
const inputs = document.querySelectorAll(
|
||||
'.input-professional, input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select'
|
||||
);
|
||||
|
||||
inputs.forEach(input => {
|
||||
if (isDark) {
|
||||
input.style.background = '#1a1a1a';
|
||||
input.style.borderColor = '#333333';
|
||||
input.style.color = '#ffffff';
|
||||
} else {
|
||||
input.style.background = '#ffffff';
|
||||
input.style.borderColor = '#e2e8f0';
|
||||
input.style.color = '#0f172a';
|
||||
}
|
||||
input.style.borderWidth = '2px';
|
||||
input.style.borderRadius = '1rem';
|
||||
});
|
||||
}
|
||||
|
||||
// Funktion zum Überwachen von DOM-Änderungen
|
||||
function observeChanges() {
|
||||
const observer = new MutationObserver(function(mutations) {
|
||||
let shouldCheck = false;
|
||||
|
||||
mutations.forEach(function(mutation) {
|
||||
if (mutation.type === 'childList' || mutation.type === 'attributes') {
|
||||
shouldCheck = true;
|
||||
}
|
||||
});
|
||||
|
||||
if (shouldCheck) {
|
||||
// Kleine Verzögerung um Layout-Thrashing zu vermeiden
|
||||
setTimeout(() => {
|
||||
removeProblematicBackgrounds();
|
||||
enforceDesign();
|
||||
}, 10);
|
||||
}
|
||||
});
|
||||
|
||||
observer.observe(document.body, {
|
||||
childList: true,
|
||||
subtree: true,
|
||||
attributes: true,
|
||||
attributeFilter: ['style', 'class']
|
||||
});
|
||||
}
|
||||
|
||||
// Dark Mode Toggle überwachen
|
||||
function setupDarkModeObserver() {
|
||||
const darkModeObserver = new MutationObserver(function(mutations) {
|
||||
mutations.forEach(function(mutation) {
|
||||
if (mutation.type === 'attributes' && mutation.attributeName === 'class') {
|
||||
const target = mutation.target;
|
||||
if (target === document.documentElement &&
|
||||
(target.classList.contains('dark') || !target.classList.contains('dark'))) {
|
||||
|
||||
// Warte kurz und wende dann das Design neu an
|
||||
setTimeout(() => {
|
||||
enforceDesign();
|
||||
}, 50);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
darkModeObserver.observe(document.documentElement, {
|
||||
attributes: true,
|
||||
attributeFilter: ['class']
|
||||
});
|
||||
}
|
||||
|
||||
// Entferne CSS-Klassen die problematische Hintergründe verursachen könnten
|
||||
function removeProblematicClasses() {
|
||||
const elements = document.querySelectorAll('*');
|
||||
const problematicClassPatterns = [
|
||||
/bg-slate-\d+/,
|
||||
/bg-gray-\d+/,
|
||||
/bg-zinc-\d+/
|
||||
];
|
||||
|
||||
elements.forEach(element => {
|
||||
const classList = Array.from(element.classList);
|
||||
let classesRemoved = false;
|
||||
|
||||
classList.forEach(className => {
|
||||
problematicClassPatterns.forEach(pattern => {
|
||||
if (pattern.test(className)) {
|
||||
console.log('Entferne problematische CSS-Klasse:', className, 'von Element:', element);
|
||||
element.classList.remove(className);
|
||||
classesRemoved = true;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
if (classesRemoved) {
|
||||
// Füge professional classes hinzu
|
||||
if (!element.classList.contains('bg-professional') &&
|
||||
!element.classList.contains('professional-container') &&
|
||||
!element.classList.contains('mb-glass')) {
|
||||
// Nur bei bestimmten Elementen
|
||||
if (element.tagName === 'DIV' || element.tagName === 'SECTION') {
|
||||
element.classList.add('bg-professional');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Initialisierung
|
||||
function init() {
|
||||
console.log('Mercedes-Benz Background Fix - Initialisierung');
|
||||
|
||||
// Sofort ausführen
|
||||
removeProblematicBackgrounds();
|
||||
removeProblematicClasses();
|
||||
enforceDesign();
|
||||
|
||||
// Observer einrichten
|
||||
observeChanges();
|
||||
setupDarkModeObserver();
|
||||
|
||||
// Regelmäßige Überprüfung alle 5 Sekunden
|
||||
setInterval(() => {
|
||||
removeProblematicBackgrounds();
|
||||
enforceDesign();
|
||||
}, 5000);
|
||||
|
||||
console.log('Mercedes-Benz Background Fix - Aktiv');
|
||||
}
|
||||
|
||||
// Starten wenn DOM bereit ist
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', init);
|
||||
} else {
|
||||
init();
|
||||
}
|
||||
|
||||
// Auch beim Laden von Ressourcen
|
||||
window.addEventListener('load', () => {
|
||||
setTimeout(() => {
|
||||
removeProblematicBackgrounds();
|
||||
enforceDesign();
|
||||
}, 100);
|
||||
});
|
||||
|
||||
// Expose für Debug-Zwecke
|
||||
window.mercedesBackgroundFix = {
|
||||
removeProblematicBackgrounds,
|
||||
enforceDesign,
|
||||
removeProblematicClasses
|
||||
};
|
||||
|
||||
})();
|
@ -29,7 +29,6 @@
|
||||
<link href="{{ url_for('static', filename='css/tailwind.min.css') }}" rel="stylesheet">
|
||||
<link href="{{ url_for('static', filename='css/components.css') }}" rel="stylesheet">
|
||||
<link href="{{ url_for('static', filename='css/professional-theme.css') }}" rel="stylesheet">
|
||||
<link href="{{ url_for('static', filename='css/responsive-improvements.css') }}" rel="stylesheet">
|
||||
|
||||
<!-- Preload critical resources -->
|
||||
<link rel="preload" href="{{ url_for('static', filename='js/ui-components.js') }}" as="script">
|
||||
@ -489,7 +488,6 @@
|
||||
</footer>
|
||||
|
||||
<!-- JavaScript -->
|
||||
<script src="{{ url_for('static', filename='js/background-fix.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/ui-components.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/dark-mode-fix.js') }}"></script>
|
||||
{% if current_user.is_authenticated %}
|
||||
|
@ -7,56 +7,16 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="bg-professional" style="background: #f8fafc !important;">
|
||||
<!-- Dark Mode Override -->
|
||||
<style>
|
||||
.dark .bg-professional {
|
||||
background: #000000 !important;
|
||||
}
|
||||
.dark .professional-hero {
|
||||
background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
|
||||
border-color: #333333 !important;
|
||||
}
|
||||
.dark .professional-container {
|
||||
background: #111111 !important;
|
||||
border-color: #333333 !important;
|
||||
}
|
||||
.dark .mb-glass {
|
||||
background: rgba(17, 17, 17, 0.95) !important;
|
||||
border-color: rgba(255, 255, 255, 0.1) !important;
|
||||
}
|
||||
.dark .card-professional {
|
||||
background: rgba(17, 17, 17, 0.95) !important;
|
||||
border-color: rgba(255, 255, 255, 0.1) !important;
|
||||
}
|
||||
.dark .stat-card {
|
||||
background: rgba(17, 17, 17, 0.95) !important;
|
||||
border-color: rgba(255, 255, 255, 0.1) !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="bg-professional">
|
||||
<!-- Professional Hero Header -->
|
||||
<div class="professional-hero hero-pattern animate-fade-in" style="margin: 2rem; margin-bottom: 3rem;">
|
||||
<div class="absolute inset-0 bg-gradient-to-r from-black/10 to-black/20 dark:from-black/40 dark:to-black/60"></div>
|
||||
<div class="professional-hero hero-pattern animate-fade-in">
|
||||
<div class="absolute inset-0 bg-gradient-to-r from-black/10 to-black/20 dark:from-black/20 dark:to-black/40"></div>
|
||||
|
||||
<!-- Status Indicator -->
|
||||
<div class="absolute top-6 right-6 flex items-center space-x-4 z-10">
|
||||
<div class="mb-glass rounded-full px-6 py-3 animate-scale-in">
|
||||
<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 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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="relative max-w-7xl mx-auto px-6 lg:px-8 py-20 z-10">
|
||||
<div class="relative max-w-7xl mx-auto px-6 lg:px-8 py-16 z-10">
|
||||
<div class="text-center animate-slide-up">
|
||||
<!-- Mercedes-Benz Logo -->
|
||||
<div class="inline-flex items-center justify-center w-28 h-28 mb-glass rounded-full mb-10 professional-shadow">
|
||||
<svg class="w-14 h-14 text-professional-primary" viewBox="0 0 80 80" fill="currentColor">
|
||||
<div class="inline-flex items-center justify-center w-20 h-20 mb-glass rounded-full mb-6 professional-shadow">
|
||||
<svg class="w-10 h-10 text-professional-primary" viewBox="0 0 80 80" fill="currentColor">
|
||||
<path d="M58.6,4.5C53,1.6,46.7,0,40,0c-6.7,0-13,1.6-18.6,4.5v0C8.7,11.2,0,24.6,0,40c0,15.4,8.7,28.8,21.5,35.5
|
||||
C27,78.3,33.3,80,40,80c6.7,0,12.9-1.7,18.5-4.6C71.3,68.8,80,55.4,80,40C80,24.6,71.3,11.2,58.6,4.5z M4,40
|
||||
c0-13.1,7-24.5,17.5-30.9v0C26.6,6,32.5,4.2,39,4l-4.5,32.7L21.5,46.8v0L8.3,57.1C5.6,52,4,46.2,4,40z M58.6,70.8
|
||||
@ -66,10 +26,10 @@
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
<h1 class="title-professional text-6xl md:text-7xl font-bold mb-8 tracking-tight">
|
||||
<h1 class="title-professional text-4xl md:text-5xl font-bold mb-4 tracking-tight">
|
||||
Druckanträge Übersicht
|
||||
</h1>
|
||||
<p class="subtitle-professional text-2xl md:text-3xl max-w-5xl mx-auto leading-relaxed mb-12">
|
||||
<p class="subtitle-professional text-lg md:text-xl max-w-3xl mx-auto leading-relaxed">
|
||||
Transparente Übersicht aller eingereichten Druckanträge mit Datenschutz-konformer Darstellung
|
||||
</p>
|
||||
</div>
|
||||
@ -77,109 +37,100 @@
|
||||
</div>
|
||||
|
||||
<!-- Main Content -->
|
||||
<div class="max-w-7xl mx-auto px-6 lg:px-8 -mt-12 relative z-10" style="margin-bottom: 4rem;">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 -mt-8 relative z-10 pb-16">
|
||||
|
||||
<!-- Info Banner -->
|
||||
<div class="alert-professional alert-info animate-slide-up" style="border-radius: 2rem; padding: 2.5rem; margin-bottom: 3rem;">
|
||||
<div class="alert-professional alert-info mb-8 animate-slide-up">
|
||||
<div class="flex-shrink-0">
|
||||
<div class="w-16 h-16 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-3xl flex items-center justify-center">
|
||||
<svg class="h-8 w-8 text-white" fill="currentColor" viewBox="0 0 20 20">
|
||||
<div class="w-12 h-12 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-2xl flex items-center justify-center">
|
||||
<svg class="h-6 w-6 text-white" fill="currentColor" viewBox="0 0 20 20">
|
||||
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd"></path>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-1 ml-8">
|
||||
<h3 class="text-2xl font-bold text-professional-primary mb-4">
|
||||
<div class="flex-1">
|
||||
<h3 class="text-lg font-semibold text-professional-primary mb-2">
|
||||
Datenschutz & Transparenz
|
||||
</h3>
|
||||
<p class="text-lg text-professional-secondary leading-relaxed mb-6">
|
||||
<p class="text-professional-secondary text-sm leading-relaxed">
|
||||
Diese Übersicht zeigt alle eingereichten Druckanträge in anonymisierter Form. Persönliche Daten sind durch "***" zensiert, um die Privatsphäre zu schützen und gleichzeitig Transparenz über den Bearbeitungsstand zu gewährleisten.
|
||||
</p>
|
||||
<div class="flex flex-wrap gap-4">
|
||||
<span class="status-professional" style="background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); color: var(--mb-primary); min-width: 120px; padding: 1rem;">
|
||||
<div class="w-3 h-3 bg-blue-500 rounded-full"></div>
|
||||
<span class="font-bold">Datenkonform</span>
|
||||
</span>
|
||||
<span class="status-professional status-approved" style="min-width: 120px; padding: 1rem;">
|
||||
<div class="status-dot status-online"></div>
|
||||
<span class="font-bold">Anonymisiert</span>
|
||||
</span>
|
||||
<span class="status-professional" style="background: rgba(147, 51, 234, 0.1); border-color: rgba(147, 51, 234, 0.3); color: #7c3aed; min-width: 120px; padding: 1rem;">
|
||||
<div class="w-3 h-3 bg-purple-500 rounded-full"></div>
|
||||
<span class="font-bold">Transparent</span>
|
||||
</span>
|
||||
<div class="mt-3 flex flex-wrap gap-2">
|
||||
<span class="status-professional" style="background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); color: var(--mb-primary);">Datenkonform</span>
|
||||
<span class="status-professional status-approved">Anonymisiert</span>
|
||||
<span class="status-professional" style="background: rgba(147, 51, 234, 0.1); border-color: rgba(147, 51, 234, 0.3); color: #7c3aed;">Transparent</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Statistics Cards -->
|
||||
<div class="grid grid-cols-2 lg:grid-cols-4 gap-6 mb-12 animate-slide-up">
|
||||
<div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8 animate-slide-up">
|
||||
{% set total_requests = requests|length %}
|
||||
{% set pending_requests = requests|selectattr("status", "equalto", "pending")|list|length %}
|
||||
{% set approved_requests = requests|selectattr("status", "equalto", "approved")|list|length %}
|
||||
{% set denied_requests = requests|selectattr("status", "equalto", "denied")|list|length %}
|
||||
|
||||
<div class="stat-card mb-glass" style="padding: 2.5rem; border-radius: 2rem; text-center;">
|
||||
<div class="text-4xl lg:text-5xl font-bold text-professional-accent mb-3">{{ total_requests }}</div>
|
||||
<div class="text-base lg:text-lg font-semibold text-professional-primary">Gesamt</div>
|
||||
<div class="stat-card">
|
||||
<div class="stat-number">{{ total_requests }}</div>
|
||||
<div class="stat-label">Gesamt</div>
|
||||
</div>
|
||||
<div class="stat-card mb-glass" style="padding: 2.5rem; border-radius: 2rem; text-center;">
|
||||
<div class="text-4xl lg:text-5xl font-bold text-yellow-600 dark:text-yellow-400 mb-3">{{ pending_requests }}</div>
|
||||
<div class="text-base lg:text-lg font-semibold text-professional-primary">Prüfung</div>
|
||||
<div class="stat-card">
|
||||
<div class="stat-number text-yellow-600 dark:text-yellow-400">{{ pending_requests }}</div>
|
||||
<div class="stat-label">Prüfung</div>
|
||||
</div>
|
||||
<div class="stat-card mb-glass" style="padding: 2.5rem; border-radius: 2rem; text-center;">
|
||||
<div class="text-4xl lg:text-5xl font-bold text-green-600 dark:text-green-400 mb-3">{{ approved_requests }}</div>
|
||||
<div class="text-base lg:text-lg font-semibold text-professional-primary">Genehmigt</div>
|
||||
<div class="stat-card">
|
||||
<div class="stat-number text-green-600 dark:text-green-400">{{ approved_requests }}</div>
|
||||
<div class="stat-label">Genehmigt</div>
|
||||
</div>
|
||||
<div class="stat-card mb-glass" style="padding: 2.5rem; border-radius: 2rem; text-center;">
|
||||
<div class="text-4xl lg:text-5xl font-bold text-red-600 dark:text-red-400 mb-3">{{ denied_requests }}</div>
|
||||
<div class="text-base lg:text-lg font-semibold text-professional-primary">Abgelehnt</div>
|
||||
<div class="stat-card">
|
||||
<div class="stat-number text-red-600 dark:text-red-400">{{ denied_requests }}</div>
|
||||
<div class="stat-label">Abgelehnt</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Requests List -->
|
||||
{% if error %}
|
||||
<div class="professional-container animate-slide-up" style="padding: 3rem; border-radius: 2rem; text-center;">
|
||||
<div class="text-red-500 dark:text-red-400 mb-6">
|
||||
<svg class="w-20 h-20 mx-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<div class="professional-container p-8 text-center animate-slide-up">
|
||||
<div class="text-red-500 dark:text-red-400 mb-4">
|
||||
<svg class="w-16 h-16 mx-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/>
|
||||
</svg>
|
||||
</div>
|
||||
<h3 class="text-2xl font-bold text-professional-primary mb-4">Fehler beim Laden</h3>
|
||||
<p class="text-lg text-professional-muted">{{ error }}</p>
|
||||
<h3 class="text-lg font-semibold text-professional-primary mb-2">Fehler beim Laden</h3>
|
||||
<p class="text-professional-muted">{{ error }}</p>
|
||||
</div>
|
||||
{% elif requests|length == 0 %}
|
||||
<div class="professional-container animate-slide-up" style="padding: 3rem; border-radius: 2rem; text-center;">
|
||||
<div class="text-professional-muted mb-6">
|
||||
<svg class="w-20 h-20 mx-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<div class="professional-container p-8 text-center animate-slide-up">
|
||||
<div class="text-professional-muted mb-4">
|
||||
<svg class="w-16 h-16 mx-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
|
||||
</svg>
|
||||
</div>
|
||||
<h3 class="text-2xl font-bold text-professional-primary mb-4">Keine Druckanträge</h3>
|
||||
<p class="text-lg text-professional-muted mb-8">
|
||||
<h3 class="text-lg font-semibold text-professional-primary mb-2">Keine Druckanträge</h3>
|
||||
<p class="text-professional-muted mb-4">
|
||||
Derzeit sind keine Druckanträge vorhanden.
|
||||
</p>
|
||||
<a href="{{ url_for('guest.guest_request_form') }}"
|
||||
class="btn-professional group px-8 py-4">
|
||||
<svg class="w-6 h-6 mr-3 group-hover:scale-110 transition-transform duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
class="btn-professional">
|
||||
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6"/>
|
||||
</svg>
|
||||
Ersten Antrag stellen
|
||||
</a>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="space-y-6 animate-slide-up">
|
||||
<div class="space-y-4 animate-slide-up">
|
||||
{% for request in requests %}
|
||||
<div class="card-professional mb-glass {{ request.status }}" style="border-left: 6px solid {% if request.status == 'pending' %}#f59e0b{% elif request.status == 'approved' %}#10b981{% elif request.status == 'denied' %}#ef4444{% endif %}; padding: 2.5rem; border-radius: 2rem;">
|
||||
<div class="flex flex-col xl:flex-row xl:items-center xl:justify-between space-y-6 xl:space-y-0">
|
||||
<div class="card-professional {{ request.status }}" style="border-left: 4px solid {% if request.status == 'pending' %}#f59e0b{% elif request.status == 'approved' %}#10b981{% elif request.status == 'denied' %}#ef4444{% endif %};">
|
||||
<div class="flex flex-col lg:flex-row lg:items-center lg:justify-between space-y-4 lg:space-y-0">
|
||||
|
||||
<!-- Left Section: Request Info -->
|
||||
<div class="flex-1">
|
||||
<div class="flex flex-wrap items-center gap-4 mb-6">
|
||||
<div class="text-2xl lg:text-3xl font-bold text-professional-primary">
|
||||
<div class="flex items-center space-x-3 mb-3">
|
||||
<div class="text-lg font-bold text-professional-primary">
|
||||
#{{ request.id }}
|
||||
</div>
|
||||
<div class="status-professional {% if request.status == 'pending' %}status-pending{% elif request.status == 'approved' %}status-approved{% elif request.status == 'denied' %}status-denied{% endif %}" style="padding: 1rem 1.5rem; font-size: 1rem; font-weight: 700;">
|
||||
<div class="status-professional {% if request.status == 'pending' %}status-pending{% elif request.status == 'approved' %}status-approved{% elif request.status == 'denied' %}status-denied{% endif %}">
|
||||
{% if request.status == 'pending' %}
|
||||
Wird geprüft
|
||||
{% elif request.status == 'approved' %}
|
||||
@ -189,52 +140,52 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if request.job_status %}
|
||||
<div class="status-professional" style="background: rgba(147, 51, 234, 0.1); border-color: rgba(147, 51, 234, 0.3); color: #7c3aed; padding: 1rem 1.5rem; font-size: 1rem; font-weight: 700;">
|
||||
<div class="status-professional" style="background: rgba(147, 51, 234, 0.1); border-color: rgba(147, 51, 234, 0.3); color: #7c3aed;">
|
||||
Druckstatus: {{ request.job_status|title }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 text-base lg:text-lg">
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 text-sm">
|
||||
<div>
|
||||
<div class="text-professional-muted font-bold mb-2">Antragsteller</div>
|
||||
<div class="text-professional-muted font-medium">Antragsteller</div>
|
||||
<div class="censored-text font-mono text-professional-secondary">{{ request.name }}</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-professional-muted font-bold mb-2">E-Mail</div>
|
||||
<div class="text-professional-muted font-medium">E-Mail</div>
|
||||
<div class="censored-text font-mono text-professional-secondary">{{ request.email }}</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-professional-muted font-bold mb-2">Drucker</div>
|
||||
<div class="text-professional-secondary font-semibold">{{ request.printer_name }}</div>
|
||||
<div class="text-professional-muted font-medium">Drucker</div>
|
||||
<div class="text-professional-secondary">{{ request.printer_name }}</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-professional-muted font-bold mb-2">Dauer</div>
|
||||
<div class="text-professional-secondary font-semibold">{{ request.duration_min }} Min</div>
|
||||
<div class="text-professional-muted font-medium">Dauer</div>
|
||||
<div class="text-professional-secondary">{{ request.duration_min }} Min</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if request.reason %}
|
||||
<div class="mt-6">
|
||||
<div class="text-professional-muted font-bold text-base lg:text-lg mb-3">Projektbeschreibung</div>
|
||||
<div class="censored-text font-mono text-professional-secondary text-base lg:text-lg">{{ request.reason }}</div>
|
||||
<div class="mt-3">
|
||||
<div class="text-professional-muted font-medium text-sm">Projektbeschreibung</div>
|
||||
<div class="censored-text font-mono text-professional-secondary text-sm">{{ request.reason }}</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<!-- Right Section: Timestamp and Actions -->
|
||||
<div class="xl:text-right xl:ml-8">
|
||||
<div class="text-lg text-professional-muted mb-2">
|
||||
<div class="lg:text-right">
|
||||
<div class="text-sm text-professional-muted mb-2">
|
||||
{{ request.created_at.strftime('%d.%m.%Y') }}
|
||||
</div>
|
||||
<div class="text-base text-professional-muted mb-4">
|
||||
<div class="text-xs text-professional-muted">
|
||||
{{ request.created_at.strftime('%H:%M') }} Uhr
|
||||
</div>
|
||||
|
||||
{% if request.status == 'approved' %}
|
||||
<div class="mt-4">
|
||||
<div class="status-professional status-approved" style="padding: 1.5rem; font-size: 1.1rem; font-weight: 700;">
|
||||
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<div class="mt-3">
|
||||
<div class="status-professional status-approved">
|
||||
<svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"/>
|
||||
</svg>
|
||||
Bereit
|
||||
@ -249,21 +200,21 @@
|
||||
{% endif %}
|
||||
|
||||
<!-- Action Buttons -->
|
||||
<div class="mt-16 text-center animate-slide-up">
|
||||
<div class="flex flex-col sm:flex-row items-center justify-center space-y-6 sm:space-y-0 sm:space-x-8">
|
||||
<div class="mt-12 text-center animate-slide-up">
|
||||
<div class="flex flex-col sm:flex-row items-center justify-center space-y-4 sm:space-y-0 sm:space-x-6">
|
||||
<a href="{{ url_for('guest.guest_request_form') }}"
|
||||
class="btn-professional group px-10 py-5 text-lg">
|
||||
<svg class="w-6 h-6 mr-4 group-hover:scale-110 transition-transform duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
class="btn-professional">
|
||||
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6"/>
|
||||
</svg>
|
||||
Neuen Antrag stellen
|
||||
</a>
|
||||
<a href="{{ url_for('index') }}"
|
||||
class="btn-professional group px-10 py-5 text-lg">
|
||||
<svg class="w-6 h-6 mr-4 group-hover:scale-110 transition-transform duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
class="btn-secondary-professional">
|
||||
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"/>
|
||||
</svg>
|
||||
Zur Startseite
|
||||
← Zur Startseite
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@ -273,14 +224,6 @@
|
||||
<!-- Auto-Refresh Script -->
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Live Time Update
|
||||
function updateLiveTime() {
|
||||
const now = new Date();
|
||||
document.getElementById('live-time').textContent = now.toLocaleTimeString('de-DE');
|
||||
}
|
||||
updateLiveTime();
|
||||
setInterval(updateLiveTime, 1000);
|
||||
|
||||
// Auto-Refresh alle 30 Sekunden
|
||||
setInterval(function() {
|
||||
// Nur refreshen wenn Seite sichtbar ist
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user