🎉 Updated Claude settings and integrated utility scripts 🎨📚
This commit is contained in:
@ -36,9 +36,12 @@
|
||||
<link href="{{ url_for('static', filename='css/professional-theme.min.css') }}" rel="stylesheet">
|
||||
</noscript>
|
||||
|
||||
<!-- Core Utilities CSS -->
|
||||
<link href="{{ url_for('static', filename='css/core-utilities.css') }}" rel="stylesheet">
|
||||
|
||||
<!-- Preload critical resources -->
|
||||
<link rel="preload" href="{{ url_for('static', filename='js/ui-components.js') }}" as="script">
|
||||
<link rel="preload" href="{{ url_for('static', filename='js/optimization-features.js') }}" as="script">
|
||||
<link rel="preload" href="{{ url_for('static', filename='js/core-utilities.js') }}" as="script">
|
||||
<link rel="preload" href="{{ url_for('static', filename='fontawesome/css/all.min.css') }}" as="style">
|
||||
|
||||
<!-- Additional CSS -->
|
||||
{% block extra_css %}{% endblock %}
|
||||
@ -104,9 +107,9 @@
|
||||
// User-Dropdown-Funktionalität initialisieren
|
||||
initUserDropdown();
|
||||
|
||||
// Flask Flash Messages über das Glassmorphism-System anzeigen
|
||||
// Flask Flash Messages über das neue Core Utilities System anzeigen
|
||||
const flashContainer = document.getElementById('flask-flash-messages');
|
||||
if (flashContainer) {
|
||||
if (flashContainer && window.MYP && window.MYP.utils) {
|
||||
const flashCount = parseInt(flashContainer.getAttribute('data-flash-count')) || 0;
|
||||
|
||||
for (let i = 1; i <= flashCount; i++) {
|
||||
@ -118,18 +121,10 @@
|
||||
// Flask-Kategorien zu JavaScript-Kategorien mappen
|
||||
if (messageType === 'danger') messageType = 'error';
|
||||
|
||||
// Nachricht über das moderne Glassmorphism-System anzeigen
|
||||
if (typeof showToast === 'function') {
|
||||
// Kleine Verzögerung für bessere UX und schöne Glassmorphism-Animationen
|
||||
setTimeout(() => {
|
||||
showToast(message, messageType, 6000, {
|
||||
title: messageType === 'success' ? 'Erfolgreich' :
|
||||
messageType === 'error' ? 'Fehler' :
|
||||
messageType === 'warning' ? 'Warnung' : 'Information',
|
||||
playSound: true
|
||||
});
|
||||
}, i * 250); // Nachrichten gestaffelt anzeigen
|
||||
}
|
||||
// Nachricht über das Core Utilities System anzeigen
|
||||
setTimeout(() => {
|
||||
window.MYP.utils.notifications[messageType](message, 6000);
|
||||
}, i * 100); // Reduzierte Verzögerung für schnelleres Feedback
|
||||
}
|
||||
}
|
||||
|
||||
@ -905,9 +900,9 @@
|
||||
// User-Dropdown-Funktionalität initialisieren
|
||||
initUserDropdown();
|
||||
|
||||
// Flask Flash Messages über das Glassmorphism-System anzeigen
|
||||
// Flask Flash Messages über das neue Core Utilities System anzeigen
|
||||
const flashContainer = document.getElementById('flask-flash-messages');
|
||||
if (flashContainer) {
|
||||
if (flashContainer && window.MYP && window.MYP.utils) {
|
||||
const flashCount = parseInt(flashContainer.getAttribute('data-flash-count')) || 0;
|
||||
|
||||
for (let i = 1; i <= flashCount; i++) {
|
||||
@ -919,18 +914,10 @@
|
||||
// Flask-Kategorien zu JavaScript-Kategorien mappen
|
||||
if (messageType === 'danger') messageType = 'error';
|
||||
|
||||
// Nachricht über das moderne Glassmorphism-System anzeigen
|
||||
if (typeof showToast === 'function') {
|
||||
// Kleine Verzögerung für bessere UX und schöne Glassmorphism-Animationen
|
||||
setTimeout(() => {
|
||||
showToast(message, messageType, 6000, {
|
||||
title: messageType === 'success' ? 'Erfolgreich' :
|
||||
messageType === 'error' ? 'Fehler' :
|
||||
messageType === 'warning' ? 'Warnung' : 'Information',
|
||||
playSound: true
|
||||
});
|
||||
}, i * 250); // Nachrichten gestaffelt anzeigen
|
||||
}
|
||||
// Nachricht über das Core Utilities System anzeigen
|
||||
setTimeout(() => {
|
||||
window.MYP.utils.notifications[messageType](message, 6000);
|
||||
}, i * 100); // Reduzierte Verzögerung für schnelleres Feedback
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user