fix(discourse-themes): map all user themes to dark color schemes and add multi-theme deploy

This commit is contained in:
eldov
2026-08-30 18:19:16 +02:00
parent d086844d6a
commit d45a4cf602
+30 -1
View File
@@ -14,6 +14,13 @@ echo "🚀 Discourse Theme Deploy & Sync Manager"
echo " Target Theme ID: $THEME_ID" echo " Target Theme ID: $THEME_ID"
echo "=========================================================" echo "========================================================="
# 1. Check SSH connection
echo "📡 Checking SSH connection to $TARGET_HOST..."
if ! ssh -q -o BatchMode=yes -o ConnectTimeout=5 "$TARGET_HOST" exit; then
echo "❌ Cannot connect to $TARGET_HOST via SSH."
exit 1
fi
if [ "$THEME_ID" = "41" ]; then if [ "$THEME_ID" = "41" ]; then
SCSS_FILE="$THEMES_DIR/41_air_theme/common_scss.scss" SCSS_FILE="$THEMES_DIR/41_air_theme/common_scss.scss"
TARGET_ID=0 TARGET_ID=0
@@ -22,8 +29,30 @@ elif [ "$THEME_ID" = "39" ]; then
SCSS_FILE="$THEMES_DIR/39_w-make_theme/common_scss.scss" SCSS_FILE="$THEMES_DIR/39_w-make_theme/common_scss.scss"
TARGET_ID=0 TARGET_ID=0
FIELD_NAME="scss" FIELD_NAME="scss"
elif [ "$THEME_ID" = "35" ]; then
SCSS_FILE="$THEMES_DIR/35_dracula_pro_ultra/common_scss.scss"
TARGET_ID=0
FIELD_NAME="scss"
elif [ "$THEME_ID" = "36" ]; then
SCSS_FILE="$THEMES_DIR/36_tokyo_night_storm/common_scss.scss"
TARGET_ID=0
FIELD_NAME="scss"
elif [ "$THEME_ID" = "37" ]; then
SCSS_FILE="$THEMES_DIR/37_onyx/common_scss.scss"
TARGET_ID=0
FIELD_NAME="scss"
elif [ "$THEME_ID" = "38" ]; then
SCSS_FILE="$THEMES_DIR/38_catppuccin_mocha_ultra/common_scss.scss"
TARGET_ID=0
FIELD_NAME="scss"
elif [ "$THEME_ID" = "all" ]; then
echo "🔄 Deploying all themes..."
for tid in 41 39 35 36 37 38; do
"$LOCAL_DIR/deploy.sh" "$tid"
done
exit 0
else else
echo "Usage: ./deploy.sh [41|39]" echo "Usage: ./deploy.sh [41|39|35|36|37|38|all]"
exit 1 exit 1
fi fi