Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled
Investigation ecrans/thumbs suite image Yacine: - Thumbs reels 1661 via wem-thumb-refresh-all (pas 53 du display registry) - Orphelines reelles V81: 2 (335/337 referencees, 2618 liens) - deerflow-hub placeholder en construction autre Claude (doctrine 153/157 actif) - Registry display 53/261 = mapping de naming, pas infra gap Recommendations Yacine documentees pour decisions non-techniques. Fix bash bug wtp-placeholder-scan.sh (echo 0 -> printf 0). Session Opus FINAL: 8 tags, 9 doctrines vault. NR 153/153 invariant 15 phases. Zero regression. Zero ecrasement. Opus retirement definitif. WEVIA patron.
22 lines
881 B
Bash
Executable File
22 lines
881 B
Bash
Executable File
#!/bin/bash
|
|
# Scan pages with placeholder/empty content (few cards, missing data)
|
|
cd /var/www/html
|
|
TOTAL=0
|
|
PLACEHOLDERS=0
|
|
LIST=""
|
|
for f in *.html; do
|
|
[ ! -f "$f" ] && continue
|
|
TOTAL=$((TOTAL+1))
|
|
LINES=$(wc -l < "$f" 2>/dev/null)
|
|
# Count real content markers (fetch API, innerHTML updates, dynamic cards)
|
|
API_CALLS=$(grep -cE "fetch\(|axios\.|XMLHttpRequest" "$f" 2>/dev/null || printf 0)
|
|
CONTENT=$(grep -cE "<article|<section.*class|<div.*class=.card|<li" "$f" 2>/dev/null || printf 0)
|
|
# Placeholder = small AND no API AND few content elements
|
|
if [ "$LINES" -lt 200 ] && [ "$API_CALLS" -lt 2 ] && [ "$CONTENT" -lt 10 ]; then
|
|
PLACEHOLDERS=$((PLACEHOLDERS+1))
|
|
[ $PLACEHOLDERS -le 15 ] && LIST="$LIST $f($LINES/$API_CALLS/$CONTENT)"
|
|
fi
|
|
done
|
|
echo "PLACEHOLDER-SCAN: total=$TOTAL placeholder-pages=$PLACEHOLDERS (lines<200,api<2,content<10)"
|
|
echo "Top: $LIST"
|