Merge branch 'main' of https://git.cnull.net/core/Projektarbeit-MYP
This commit is contained in:
commit
fa3a2209ad
14
backend/download-bootstrap.sh
Executable file
14
backend/download-bootstrap.sh
Executable 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."
|
@ -61,6 +61,26 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# Create database directory if it doesn't exist
|
||||||
log "Setting up database directories..."
|
log "Setting up database directories..."
|
||||||
mkdir -p instance/backups
|
mkdir -p instance/backups
|
||||||
|
12068
backend/static/css/bootstrap.css
vendored
Normal file
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
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
Loading…
x
Reference in New Issue
Block a user