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:
1
public/aluwdoors-ref/configurator.css?v=mlaxicsg
Normal file
1
public/aluwdoors-ref/configurator.css?v=mlaxicsg
Normal file
File diff suppressed because one or more lines are too long
12059
public/aluwdoors-ref/configurator.iife.js?v=mlaxicsg
Normal file
12059
public/aluwdoors-ref/configurator.iife.js?v=mlaxicsg
Normal file
File diff suppressed because one or more lines are too long
118
public/aluwdoors-ref/opentype.js
Normal file
118
public/aluwdoors-ref/opentype.js
Normal file
File diff suppressed because one or more lines are too long
58
scripts/download-js-css.sh
Executable file
58
scripts/download-js-css.sh
Executable 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}"
|
||||||
Reference in New Issue
Block a user