Files
TechradarDev/scripts/patch-navigation.sh
syoul 7bc6c695b8 feat: création page Next.js /team et modification Navigation
- Script create-team-page.sh pour créer team.tsx et modifier Navigation
- Page Next.js qui charge team.html dynamiquement
- Lien Équipe ajouté directement dans le composant Navigation React
- Plus fiable que l'injection JavaScript
2025-12-06 22:14:31 +01:00

28 lines
702 B
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# Script pour patcher le composant Navigation et ajouter le lien Équipe
NAV_FILE=".techradar/src/components/Navigation/Navigation.tsx"
if [ ! -f "$NAV_FILE" ]; then
echo "⚠️ $NAV_FILE non trouvé"
exit 1
fi
# Vérifier si le lien existe déjà
if grep -q "href=\"/team\"" "$NAV_FILE"; then
echo " Lien Équipe déjà présent dans Navigation.tsx"
exit 0
fi
# Ajouter le lien après le lien Overview
sed -i '/href="\/overview"/a\
<li className={styles.item}>\
<Link href="/team">\
<span className={styles.label}>👥 Équipe</span>\
</Link>\
</li>' "$NAV_FILE"
echo "✅ Lien Équipe ajouté au composant Navigation"