This commit is contained in:
Till Tomczak 2025-03-26 13:28:36 +01:00
commit fa3a2209ad
5 changed files with 18418 additions and 66 deletions

14
backend/download-bootstrap.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
# Skript zum Herunterladen der vollständigen Bootstrap CSS
# Verzeichnis erstellen falls es nicht existiert
mkdir -p "$(dirname "$0")/static/css"
# Bootstrap CSS herunterladen
wget -O "$(dirname "$0")/static/css/bootstrap.css" https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.css
# Optional: JavaScript-Datei auch herunterladen
wget -O "$(dirname "$0")/static/js/bootstrap.bundle.js" https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.js
echo "Bootstrap-Dateien wurden erfolgreich heruntergeladen."

View File

@ -61,6 +61,26 @@ else
exit 1
fi
# Setup Bootstrap for offline usage
log "Setting up Bootstrap for offline usage..."
mkdir -p "$SCRIPT_DIR/static/css" "$SCRIPT_DIR/static/js"
# Download non-minified Bootstrap CSS and JS files
log "Downloading Bootstrap files for offline usage..."
wget -q -O "$SCRIPT_DIR/static/css/bootstrap.css" "https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.css" || {
log "WARNING: Could not download Bootstrap CSS. Creating placeholder..."
echo "/* Bootstrap 5.3.2 offline placeholder */" > "$SCRIPT_DIR/static/css/bootstrap.css"
echo "/* Please manually download the full unminified version from: */" >> "$SCRIPT_DIR/static/css/bootstrap.css"
echo "/* https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.css */" >> "$SCRIPT_DIR/static/css/bootstrap.css"
}
wget -q -O "$SCRIPT_DIR/static/js/bootstrap.bundle.js" "https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.js" || {
log "WARNING: Could not download Bootstrap JS. Creating placeholder..."
echo "/* Bootstrap 5.3.2 bundle offline placeholder */" > "$SCRIPT_DIR/static/js/bootstrap.bundle.js"
echo "/* Please manually download the full unminified version from: */" >> "$SCRIPT_DIR/static/js/bootstrap.bundle.js"
echo "/* https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.js */" >> "$SCRIPT_DIR/static/js/bootstrap.bundle.js"
}
# Create database directory if it doesn't exist
log "Setting up database directories..."
mkdir -p instance/backups

12068
backend/static/css/bootstrap.css vendored Normal file

File diff suppressed because it is too large Load Diff

6314
backend/static/js/bootstrap.bundle.js vendored Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long