Add Aluwdoors configurator reference scripts and styles

Downloaded core configurator files from configurator.aluwdoors.com:

JavaScript:
- configurator.iife.js?v=mlaxicsg (2.3MB) - Main configurator logic
- opentype.js (124KB) - Font rendering library

CSS:
- configurator.css?v=mlaxicsg (377KB) - Configurator styles

Created scripts/download-js-css.sh for reproducible downloads

Location: public/aluwdoors-ref/
Total: ~2.8MB

These files can be analyzed for:
- Business logic patterns
- UI/UX patterns
- Configuration state management
- 3D rendering approaches

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Ubuntu
2026-02-10 17:03:45 +00:00
parent 1fc297e6b5
commit 2b62152d45
4 changed files with 12236 additions and 0 deletions

58
scripts/download-js-css.sh Executable file
View File

@@ -0,0 +1,58 @@
#!/bin/bash
# Download Aluwdoors configurator JS and CSS files
BASE_URL="https://configurator.aluwdoors.com"
OUTPUT_DIR="public/aluwdoors-ref"
# Color codes
GREEN='\033[0;32m'
RED='\033[0;31m'
YELLOW='\033[1;33m'
NC='\033[0m'
echo "Downloading Aluwdoors configurator scripts and styles..."
echo ""
# Create output directory
mkdir -p "${OUTPUT_DIR}"
# Function to download a file
download_file() {
local filename=$1
local url="${BASE_URL}/${filename}"
local output="${OUTPUT_DIR}/${filename}"
echo -n "Downloading ${filename}... "
# Try direct download
if curl -f -s -o "${output}" "${url}" 2>/dev/null; then
echo -e "${GREEN}${NC} ($(du -h "${output}" | cut -f1))"
return 0
fi
# Try with wget as fallback
if wget -q -O "${output}" "${url}" 2>/dev/null; then
echo -e "${GREEN}${NC} ($(du -h "${output}" | cut -f1))"
return 0
fi
echo -e "${RED}✗ Failed${NC}"
rm -f "${output}"
return 1
}
# Download files
echo -e "${YELLOW}JavaScript Files:${NC}"
download_file "configurator.iife.js?v=mlaxicsg"
download_file "opentype.js"
echo ""
echo -e "${YELLOW}CSS Files:${NC}"
download_file "configurator.css?v=mlaxicsg"
echo ""
# Count downloaded files
DOWNLOADED=$(find "${OUTPUT_DIR}" -type f | wc -l)
echo -e "${GREEN}Download complete!${NC}"
echo "Total files downloaded: ${DOWNLOADED}"
echo "Location: ${OUTPUT_DIR}"