Comparer les révisions
23
Révisions
0ec3f0e133
..
main
Aucun fichier ne correspond à votre recherche
@@ -0,0 +1,2 @@
|
||||
# Scripts executes sur le serveur Linux : toujours en LF, sinon bash casse.
|
||||
*.sh text eol=lf
|
||||
Fichier binaire non affiché.
Fichier binaire non affiché.
@@ -0,0 +1,47 @@
|
||||
#!/bin/bash
|
||||
# Phase 1 perf gastinel.me : /assets/build/* (fichiers a empreinte produits par
|
||||
# tools/build.js) -> cache 1 an immutable + .br/.gz precompresses.
|
||||
# Ne fait qu'AJOUTER un handle dans le bloc "gastinel.me, www.gastinel.me".
|
||||
# Sauvegarde -> modification -> caddy validate -> reload ; retour arriere si echec.
|
||||
# Usage (sur cornafsuisse) : sudo bash ~/appliquer-caddy-build.sh
|
||||
set -euo pipefail
|
||||
[ "$(id -u)" = 0 ] || { echo "A lancer avec sudo"; exit 1; }
|
||||
|
||||
CF=/etc/caddy/Caddyfile
|
||||
BAK="$CF.avant-build-$(date +%Y%m%d-%H%M%S)"
|
||||
cp -a "$CF" "$BAK"
|
||||
echo "Sauvegarde : $BAK"
|
||||
|
||||
python3 - "$CF" <<'PY'
|
||||
import sys
|
||||
p = sys.argv[1]
|
||||
s = open(p).read()
|
||||
if "handle /assets/build/*" in s:
|
||||
sys.exit("Deja applique : aucune modification.")
|
||||
anchor = "\t# Assets (polices, images) : cache navigateur 30 jours.\n"
|
||||
new = (
|
||||
"\t# Assets a empreinte (tools/build.js) : le nom change avec le contenu,\n"
|
||||
"\t# donc cache 1 an sans revalidation.\n"
|
||||
"\thandle /assets/build/* {\n"
|
||||
"\t\theader Cache-Control \"public, max-age=31536000, immutable\"\n"
|
||||
"\t\troot * /srv/gastinel.me\n"
|
||||
"\t\tfile_server {\n"
|
||||
"\t\t\tprecompressed br gzip\n"
|
||||
"\t\t}\n"
|
||||
"\t}\n"
|
||||
"\n"
|
||||
)
|
||||
n = s.count(anchor)
|
||||
if n != 1:
|
||||
sys.exit("Point d'insertion introuvable ou ambigu (%d) : aucune modification." % n)
|
||||
open(p, "w").write(s.replace(anchor, new + anchor))
|
||||
PY
|
||||
|
||||
if caddy validate --config "$CF" --adapter caddyfile && systemctl reload caddy; then
|
||||
echo "OK : Caddy recharge."
|
||||
else
|
||||
echo "ECHEC : restauration de $BAK"
|
||||
cp -a "$BAK" "$CF"
|
||||
systemctl reload caddy || true
|
||||
exit 1
|
||||
fi
|
||||
@@ -0,0 +1,51 @@
|
||||
#!/bin/bash
|
||||
# Phase 0 perf gastinel.me : Brotli/gzip precompresses + Cache-Control.
|
||||
# Ne modifie QUE le handle final du bloc "gastinel.me, www.gastinel.me".
|
||||
# Sauvegarde -> modification -> caddy validate -> reload ; retour arriere si echec.
|
||||
# Usage (sur cornafsuisse) : sudo bash ~/appliquer-caddy-perf.sh
|
||||
set -euo pipefail
|
||||
[ "$(id -u)" = 0 ] || { echo "A lancer avec sudo"; exit 1; }
|
||||
|
||||
CF=/etc/caddy/Caddyfile
|
||||
BAK="$CF.avant-perf-$(date +%Y%m%d-%H%M%S)"
|
||||
cp -a "$CF" "$BAK"
|
||||
echo "Sauvegarde : $BAK"
|
||||
|
||||
python3 - "$CF" <<'PY'
|
||||
import sys
|
||||
p = sys.argv[1]
|
||||
s = open(p).read()
|
||||
old = "\thandle {\n\t\troot * /srv/gastinel.me\n\t\tfile_server\n\t}\n"
|
||||
new = (
|
||||
"\t# Assets (polices, images) : cache navigateur 30 jours.\n"
|
||||
"\t# Passer a immutable/1 an quand les noms de fichiers seront hashes.\n"
|
||||
"\thandle /assets/* {\n"
|
||||
"\t\theader Cache-Control \"public, max-age=2592000\"\n"
|
||||
"\t\troot * /srv/gastinel.me\n"
|
||||
"\t\tfile_server\n"
|
||||
"\t}\n"
|
||||
"\n"
|
||||
"\t# HTML/JSON : revalidation a chaque visite (304 via ETag si inchange).\n"
|
||||
"\t# Sert les .br/.gz precompresses s'ils existent (sinon encode zstd/gzip).\n"
|
||||
"\thandle {\n"
|
||||
"\t\theader Cache-Control \"no-cache\"\n"
|
||||
"\t\troot * /srv/gastinel.me\n"
|
||||
"\t\tfile_server {\n"
|
||||
"\t\t\tprecompressed br gzip\n"
|
||||
"\t\t}\n"
|
||||
"\t}\n"
|
||||
)
|
||||
n = s.count(old)
|
||||
if n != 1:
|
||||
sys.exit("Bloc attendu introuvable ou ambigu (%d) : aucune modification." % n)
|
||||
open(p, "w").write(s.replace(old, new))
|
||||
PY
|
||||
|
||||
if caddy validate --config "$CF" --adapter caddyfile && systemctl reload caddy; then
|
||||
echo "OK : Caddy recharge."
|
||||
else
|
||||
echo "ECHEC : restauration de $BAK"
|
||||
cp -a "$BAK" "$CF"
|
||||
systemctl reload caddy || true
|
||||
exit 1
|
||||
fi
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"date": "2026-10-16T13:05:12.698Z",
|
||||
"source": {
|
||||
"index.html": "76846141531991eda6df66f8bf8395a6"
|
||||
},
|
||||
"files": {
|
||||
"assets/build/inter-latin.3100e775e8.woff2": "260c81a4759baf163c025001c4f27872",
|
||||
"assets/build/comfortaa-latin-ext.1afa0e5e08.woff2": "0350d60d7894b03d2a82af83be1a0795",
|
||||
"assets/build/comfortaa-latin.408f20ae98.woff2": "efa8f37b35f8fc0f18b776857f20973a",
|
||||
"assets/build/inter-latin-ext.34b9c504ca.woff2": "1ad231aac0a8a891b8374aa5526a5813",
|
||||
"assets/build/app.198ff2294a.css": "6560b92756bcd17de20f4a2828cea760",
|
||||
"assets/build/app.198ff2294a.css.br": "11f8e756587b515dca58488a5c134cda",
|
||||
"assets/build/app.198ff2294a.css.gz": "08512ff4a9aadc28d74d4d64b10ddc87",
|
||||
"assets/build/app.e98bd574fc.js": "105fc8a228f161cc27095085b7d68ac1",
|
||||
"assets/build/app.e98bd574fc.js.br": "6bbb5f4a168cea40fd5a5caf8f07a80a",
|
||||
"assets/build/app.e98bd574fc.js.gz": "cf555a5e124694c66fb27390248ca709",
|
||||
"assets/build/termes.64b530ef01.html": "5d81c4669bf12649776ad3da4c23e421",
|
||||
"assets/build/termes.64b530ef01.html.br": "f575c8888f19a654222dc9fd540e0a59",
|
||||
"assets/build/termes.64b530ef01.html.gz": "ed39ec88377d20ef3652b3905e9f98d4",
|
||||
"index.html": "a88628ae3b9c8c859e3d128fbef17090",
|
||||
"index.html.br": "87a08a20708384cf11276303874a0747",
|
||||
"index.html.gz": "44227914dbf76c7579287ae17e257cc2",
|
||||
"llms.txt": "2bc25c3aa3084e36e2885d8bc46861f2",
|
||||
"llms.txt.br": "41ceb7e0d1c6cee0f4b85d86ab598306",
|
||||
"llms.txt.gz": "58db9b898f6555872c2258fb4b861b32",
|
||||
"robots.txt": "27491c71b70945c48fbfaef8f603b75b",
|
||||
"robots.txt.br": "de3ae0d1b376a5ebe8b47c7165f23ebb",
|
||||
"robots.txt.gz": "f5b777c6f8cf6f09ca65682176461e7b",
|
||||
"sitemap.xml": "63950255ad08499d360021ef7dc6ebe0",
|
||||
"sitemap.xml.br": "294c92e78ef4590cb3446821a8bf1b51",
|
||||
"sitemap.xml.gz": "64b50d32698d2dbb29a1398df73050d7",
|
||||
"data/news.json": "e2a5f6a04c96e663a7e0882bb110948b",
|
||||
"data/news.json.br": "9565a38ddc0cbac7161c91294a82f3d8",
|
||||
"data/news.json.gz": "e3ff25b83028a281c824c083f6c1ba01"
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Télécharger Gastinel Weather Studio (Windows 64-bit) — Canal Officiel</title>
|
||||
<meta name="description" content="Téléchargement officiel de Gastinel Weather Studio (GWS) v0.4.8. Installateur standard (.exe) et paquet de mise à jour rapide (.gws) pour Windows 10 et 11.">
|
||||
<meta name="description" content="Téléchargement officiel de Gastinel Weather Studio (GWS) v0.5.6. Installateur standard (.exe) et paquet de mise à jour rapide (.gws) pour Windows 10 et 11.">
|
||||
<link rel="canonical" href="https://gastinel.me/gws/download/">
|
||||
<meta name="robots" content="index, follow">
|
||||
<meta name="author" content="Théo Gastinel">
|
||||
@@ -13,7 +13,7 @@
|
||||
<meta property="og:locale" content="fr_FR">
|
||||
<meta property="og:url" content="https://gastinel.me/gws/download/">
|
||||
<meta property="og:site_name" content="Gastinel Weather Studio">
|
||||
<meta property="og:title" content="Télécharger Gastinel Weather Studio (v0.4.8)">
|
||||
<meta property="og:title" content="Télécharger Gastinel Weather Studio (v0.5.6)">
|
||||
<meta property="og:description" content="Installateur standard (.exe) et paquet autonome de mise à jour rapide (.gws) pour Windows 10 et 11 (64-bit).">
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Ccircle cx='250' cy='250' r='230' fill='%231e4d8b'/%3E%3Cpath d='M 80 280 L 170 210 L 210 230 L 250 140 L 290 190 L 330 160 L 420 280' fill='none' stroke='%23fff' stroke-width='24' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E">
|
||||
@@ -252,6 +252,7 @@ body {
|
||||
color: var(--ok);
|
||||
border: 1px solid #b7dfcb;
|
||||
}
|
||||
.dl-compteur { margin: 10px 0 0; text-align: center; font-size: 13px; opacity: .7; }
|
||||
.dl-size {
|
||||
font-size: 0.82rem;
|
||||
color: var(--grey-500);
|
||||
@@ -502,7 +503,7 @@ body {
|
||||
<div class="dl-hero">
|
||||
<div class="dl-badge-tag">
|
||||
<span class="status-dot"></span>
|
||||
<span>Version 0.4.8 · Canal stable officiel</span>
|
||||
<span>Version 0.5.6 · Canal stable officiel</span>
|
||||
</div>
|
||||
<h1>Télécharger Gastinel Weather Studio</h1>
|
||||
<p>Compatible Windows 10 et Windows 11 (64-bit) — <a href="https://gastinel.me/gws/stack/#configuration">configuration requise</a>. Déjà installé ? Le <a href="#mise-a-jour">paquet de mise à jour .gws</a> se trouve plus bas.</p>
|
||||
@@ -516,7 +517,7 @@ body {
|
||||
<div>
|
||||
<div class="dl-card-badge-row">
|
||||
<span class="dl-tag tag-blue">Nouvelle installation</span>
|
||||
<span class="dl-size">3,7 Mo · x64</span>
|
||||
<span class="dl-size">3,6 Mo · x64</span>
|
||||
</div>
|
||||
<h2 class="dl-card-title">Installateur Windows (.exe)</h2>
|
||||
<div class="dl-card-for">Pour votre première installation sur l'ordinateur</div>
|
||||
@@ -528,9 +529,10 @@ body {
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<a href="https://gastinel.me/gws/downloads/Gastinel_Weather_Studio_0.4.8_x64-setup.exe" class="btn-dl-action btn-dl-exe" download>
|
||||
<a href="https://gastinel.me/gws/downloads/Gastinel_Weather_Studio_0.5.6_x64-setup.exe" class="btn-dl-action btn-dl-exe" download>
|
||||
<span>Télécharger l'Installateur (.exe)</span>
|
||||
</a>
|
||||
<p class="dl-compteur" id="dl-compteur" hidden></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -562,13 +564,10 @@ body {
|
||||
|
||||
<!-- Changelog -->
|
||||
<div class="changelog-box">
|
||||
<h3>Nouveautés de la version 0.4.8</h3>
|
||||
<h3>Nouveautés de la version 0.5.6</h3>
|
||||
<ul>
|
||||
<li><strong>Import par glisser-déposer :</strong> déposez un fichier n'importe où sur la fenêtre ; son format est reconnu et le bon onglet d'import s'ouvre (également avec le bouton de choix de fichier).</li>
|
||||
<li><strong>Projet d'exemple :</strong> découvrez l'application avant d'avoir vos propres données.</li>
|
||||
<li><strong>Carte 3D :</strong> plus légère en mémoire avec l'extension Carte 3D 1.0.2.</li>
|
||||
<li><strong>Import :</strong> un fichier CSV ordinaire n'est plus pris pour un export ElitechLog.</li>
|
||||
<li><strong>Raccourcis clavier :</strong> Ctrl+I pour importer, Ctrl+, pour les Paramètres.</li>
|
||||
<li><strong>Synchronisation Cloud plus discrète :</strong> « Synchroniser maintenant » rafraîchit le projet ouvert sur place, sans repasser par l’écran d’accueil.</li>
|
||||
<li><strong>Import plus rapide :</strong> après un import sans avertissement, la fenêtre se ferme toute seule. Elle reste ouverte quand le bilan contient quelque chose à lire.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -580,7 +579,7 @@ body {
|
||||
<div>
|
||||
<div class="dl-card-badge-row">
|
||||
<span class="dl-tag tag-green">Mise à jour rapide</span>
|
||||
<span class="dl-size">4,5 Mo · Format .gws</span>
|
||||
<span class="dl-size">4,4 Mo · Format .gws</span>
|
||||
</div>
|
||||
<h2 class="dl-card-title">Paquet de Mise à Jour (.gws)</h2>
|
||||
<div class="dl-card-for">Si vous avez déjà Gastinel Weather Studio</div>
|
||||
@@ -593,7 +592,7 @@ body {
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<a href="https://gastinel.me/gws/downloads/update-0.4.8.gws" id="lien-gws" class="btn-dl-action btn-dl-gws btn-dl-secondary" download>
|
||||
<a href="https://gastinel.me/gws/downloads/update-0.5.6.gws" id="lien-gws" class="btn-dl-action btn-dl-gws btn-dl-secondary" download>
|
||||
<span>Télécharger le Paquet (.gws)</span>
|
||||
</a>
|
||||
</div>
|
||||
@@ -649,5 +648,16 @@ body {
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
<script>
|
||||
/* Compteur d'installations (compteur.json, recalculé toutes les 15 min sur le serveur). */
|
||||
fetch('/gws/download/compteur.json', { cache: 'no-store' }).then(function (r) {
|
||||
return r.ok ? r.json() : null;
|
||||
}).then(function (c) {
|
||||
if (!c || typeof c.installations !== 'number') return;
|
||||
var p = document.getElementById('dl-compteur');
|
||||
p.textContent = 'Téléchargé ' + c.installations.toLocaleString('fr-FR') + ' fois';
|
||||
p.hidden = false;
|
||||
}).catch(function () {});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -425,12 +425,12 @@ body {
|
||||
<a href="https://gastinel.me/" class="gws-brand">
|
||||
<img src="../assets/apps/gastinel-weather-studio/icone.webp" alt="Icône GWS" class="gws-nav-icon" width="36" height="36">
|
||||
<span class="gws-brand-title">Gastinel Weather Studio</span>
|
||||
<span class="gws-brand-badge">v0.4.8</span>
|
||||
<span class="gws-brand-badge">v0.5.6</span>
|
||||
</a>
|
||||
|
||||
<div class="gws-nav-actions">
|
||||
<a href="https://gastinel.me/gws/download/" class="gws-nav-link-btn">
|
||||
<span>Télécharger v0.4.8</span>
|
||||
<span>Télécharger v0.5.6</span>
|
||||
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M12 5l7 7-7 7"/></svg>
|
||||
</a>
|
||||
<a href="https://gastinel.me/#apps" class="gws-back-site">
|
||||
@@ -535,10 +535,10 @@ body {
|
||||
<div class="footer-cta-download">
|
||||
<div>
|
||||
<h3>Télécharger Gastinel Weather Studio</h3>
|
||||
<p>Installez le logiciel sur votre PC ou récupérez la mise à jour officielle v0.4.8.</p>
|
||||
<p>Installez le logiciel sur votre PC ou récupérez la mise à jour officielle v0.5.6.</p>
|
||||
</div>
|
||||
<a href="https://gastinel.me/gws/download/" class="btn-cta-large-white">
|
||||
<span>Accéder aux Téléchargements (v0.4.8)</span>
|
||||
<span>Accéder aux Téléchargements (v0.5.6)</span>
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:middle;margin-left:6px;"><path d="M5 12h14M12 5l7 7-7 7"/></svg>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
+394
-52
@@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Théo Gastinel — Photographe & Vidéaste Drone FPV | Vercors</title>
|
||||
<meta name="description" content="Photographe et vidéaste drone FPV basé dans le massif du Vercors. Captations aériennes 4K, paysages alpins, créations visuelles et solutions techniques sur mesure.">
|
||||
<title>Théo Gastinel — Drone FPV, vidéo & logiciels open source</title>
|
||||
<meta name="description" content="Théo Gastinel, 15 ans, Lans-en-Vercors : photo, vidéo et drone FPV de montagne, logiciels open source et écosystème de services Gastinel.">
|
||||
<link rel="canonical" href="https://gastinel.me/">
|
||||
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1">
|
||||
<meta name="author" content="Théo Gastinel">
|
||||
@@ -16,8 +16,8 @@
|
||||
<meta property="og:locale" content="fr_FR">
|
||||
<meta property="og:url" content="https://gastinel.me/">
|
||||
<meta property="og:site_name" content="Théo Gastinel — Portfolio & Écosystème">
|
||||
<meta property="og:title" content="Théo Gastinel — Photographe & Vidéaste Drone FPV | Vercors">
|
||||
<meta property="og:description" content="Photographe et vidéaste drone FPV au cœur du Vercors. Prestations audiovisuelles alpines, immersions aériennes 4K et écosystème numérique indépendant.">
|
||||
<meta property="og:title" content="Théo Gastinel — Drone FPV, vidéo & logiciels open source">
|
||||
<meta property="og:description" content="Théo Gastinel, 15 ans, Lans-en-Vercors : photo, vidéo et drone FPV de montagne, logiciels open source et écosystème de services Gastinel.">
|
||||
<meta property="og:image" content="https://gastinel.me/assets/img/dji-fly-20250919-194610-0004-1758304172909-photo.webp">
|
||||
<meta property="og:image:alt" content="Perspective aérienne crépusculaire sur le plateau du Vercors par Théo Gastinel">
|
||||
<meta property="og:image:width" content="1200">
|
||||
@@ -25,11 +25,11 @@
|
||||
|
||||
<!-- Twitter Cards -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="Théo Gastinel — Photographe & Vidéaste Drone FPV | Vercors">
|
||||
<meta name="twitter:description" content="Captations aériennes 4K, immersion alpine et photographie de montagne dans le massif du Vercors.">
|
||||
<meta name="twitter:title" content="Théo Gastinel — Drone FPV, vidéo & logiciels open source">
|
||||
<meta name="twitter:description" content="Théo Gastinel, 15 ans, Lans-en-Vercors : photo, vidéo et drone FPV de montagne, logiciels open source et écosystème de services Gastinel.">
|
||||
<meta name="twitter:image" content="https://gastinel.me/assets/img/dji-fly-20250919-194610-0004-1758304172909-photo.webp">
|
||||
|
||||
<!-- Schema.org JSON-LD unifié (Person + ProfessionalService) -->
|
||||
<!-- Schema.org JSON-LD unifié (WebSite + ProfilePage + Person + ProfessionalService) -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
@@ -39,47 +39,125 @@
|
||||
"@id": "https://gastinel.me/#website",
|
||||
"url": "https://gastinel.me/",
|
||||
"name": "Théo Gastinel",
|
||||
"description": "Portfolio audiovisuel de montagne, captations aériennes et projets logiciels indépendants.",
|
||||
"description": "Site officiel de Théo Gastinel, créateur indépendant de 15 ans à Lans-en-Vercors : photo et vidéo de montagne, drone FPV et logiciels (Gastinel Weather Studio).",
|
||||
"publisher": {
|
||||
"@id": "https://gastinel.me/#person"
|
||||
},
|
||||
"about": {
|
||||
"@id": "https://gastinel.me/#person"
|
||||
},
|
||||
"inLanguage": "fr-FR"
|
||||
},
|
||||
{
|
||||
"@type": "ProfilePage",
|
||||
"@id": "https://gastinel.me/#profilepage",
|
||||
"url": "https://gastinel.me/",
|
||||
"name": "Théo Gastinel — créateur indépendant de 15 ans (Vercors)",
|
||||
"isPartOf": {
|
||||
"@id": "https://gastinel.me/#website"
|
||||
},
|
||||
"mainEntity": {
|
||||
"@id": "https://gastinel.me/#person"
|
||||
},
|
||||
"inLanguage": "fr-FR"
|
||||
},
|
||||
{
|
||||
"@type": "Person",
|
||||
"@id": "https://gastinel.me/#person",
|
||||
"name": "Théo Gastinel",
|
||||
"jobTitle": "Photographe & Vidéaste Aérien Drone FPV",
|
||||
"givenName": "Théo",
|
||||
"familyName": "Gastinel",
|
||||
"jobTitle": "Créateur indépendant — photo, vidéo, drone FPV et logiciels",
|
||||
"url": "https://gastinel.me/",
|
||||
"image": "https://gastinel.me/assets/img/unnamed.webp",
|
||||
"description": "Créateur indépendant et télépilote drone basé dans le Vercors, spécialisé dans l'acquisition visuelle en milieu alpin et les architectures logicielles indépendantes.",
|
||||
"description": "Théo Gastinel, 15 ans, créateur indépendant à Lans-en-Vercors (Isère) : photographie et vidéo de montagne, prises de vue par drone FPV et développement de logiciels, dont Gastinel Weather Studio (analyse microclimatique du Vercors).",
|
||||
"disambiguatingDescription": "Théo Gastinel de Lans-en-Vercors (Isère), âgé de 15 ans, auteur du site gastinel.me et des projets Gastinel. Sans lien avec d'autres personnes portant le même nom.",
|
||||
"homeLocation": {
|
||||
"@type": "Place",
|
||||
"name": "Lans-en-Vercors",
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"addressLocality": "Lans-en-Vercors",
|
||||
"postalCode": "38250",
|
||||
"addressRegion": "Isère",
|
||||
"addressCountry": "FR"
|
||||
}
|
||||
},
|
||||
"knowsAbout": [
|
||||
"Photographie de montagne et animalière",
|
||||
"Prise de vue aérienne et pilotage drone FPV",
|
||||
"Post-production, retouche photo et étalonnage vidéo",
|
||||
"Ingénierie logicielle et développement bas niveau",
|
||||
"Infrastructures numériques souveraines et auto-hébergement"
|
||||
"Météorologie locale et microclimats du Vercors",
|
||||
"Développement logiciel (Rust, C++, Java, Win32)",
|
||||
"Logiciel libre et open source",
|
||||
"Services numériques alternatifs aux GAFAM",
|
||||
"Auto-hébergement et infrastructures numériques"
|
||||
],
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"addressLocality": "Lans-en-Vercors",
|
||||
"addressRegion": "Isère",
|
||||
"addressCountry": "FR"
|
||||
"worksFor": {
|
||||
"@id": "https://gastinel.me/#business"
|
||||
},
|
||||
"parent": {
|
||||
"@id": "https://gastinel.me/#richard"
|
||||
},
|
||||
"hasOccupation": [
|
||||
{ "@type": "Occupation", "name": "Développeur logiciel" },
|
||||
{ "@type": "Occupation", "name": "Vidéaste et photographe, télépilote de drone FPV" }
|
||||
],
|
||||
"sameAs": [
|
||||
"https://www.link.gastinel.me/",
|
||||
"https://www.hub.gastinel.me/",
|
||||
"https://news.gastinel.me/"
|
||||
"https://github.com/gastinelt",
|
||||
"https://www.youtube.com/@slavevecteur",
|
||||
"https://www.instagram.com/totoche.1045",
|
||||
"https://hub.gastinel.me/"
|
||||
]
|
||||
},
|
||||
{
|
||||
"@type": "Person",
|
||||
"@id": "https://gastinel.me/#richard",
|
||||
"name": "Richard Gastinel",
|
||||
"children": {
|
||||
"@id": "https://gastinel.me/#person"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "SoftwareApplication",
|
||||
"@id": "https://gastinel.me/gws/#software",
|
||||
"name": "Gastinel Weather Studio",
|
||||
"url": "https://gastinel.me/gws/",
|
||||
"applicationCategory": "UtilitiesApplication",
|
||||
"operatingSystem": "Windows 64-bit",
|
||||
"description": "Station logicielle d'analyse microclimatique et de suivi des trous à froid du Vercors.",
|
||||
"author": {
|
||||
"@id": "https://gastinel.me/#person"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "ProfessionalService",
|
||||
"@id": "https://gastinel.me/#business",
|
||||
"name": "Théo Gastinel — Solutions Visuelles & Acquisition Optique",
|
||||
"name": "Théo Gastinel — Photo, vidéo, drone & logiciels",
|
||||
"legalName": "Richard GASTINEL, entrepreneur individuel (EI)",
|
||||
"identifier": {
|
||||
"@type": "PropertyValue",
|
||||
"propertyID": "SIRET",
|
||||
"value": "10481674900014"
|
||||
},
|
||||
"url": "https://gastinel.me/",
|
||||
"logo": "https://gastinel.me/assets/img/dji-fly-20250919-194610-0004-1758304172909-photo.webp",
|
||||
"image": "https://gastinel.me/assets/img/dji-fly-20250919-194610-0004-1758304172909-photo.webp",
|
||||
"description": "Prestations de production visuelle en extérieur, captation aérienne FPV, photographie d'altitude et développements informatiques dédiés.",
|
||||
"description": "Micro-entreprise de Richard GASTINEL (EI), dont Théo Gastinel et Richard Gastinel sont tous deux responsables : photo et vidéo en extérieur, captation aérienne FPV et développements informatiques.",
|
||||
"founder": [
|
||||
{
|
||||
"@id": "https://gastinel.me/#person"
|
||||
},
|
||||
{
|
||||
"@id": "https://gastinel.me/#richard"
|
||||
}
|
||||
],
|
||||
"address": {
|
||||
"@type": "PostalAddress",
|
||||
"addressLocality": "Lans-en-Vercors",
|
||||
"postalCode": "38250",
|
||||
"addressRegion": "Isère",
|
||||
"addressCountry": "FR"
|
||||
},
|
||||
"areaServed": [
|
||||
{
|
||||
"@type": "AdministrativeArea",
|
||||
@@ -102,15 +180,48 @@
|
||||
"name": "France"
|
||||
}
|
||||
],
|
||||
"priceRange": "$",
|
||||
"parentOrganization": {
|
||||
"@id": "https://gastinel.me/#person"
|
||||
}
|
||||
"priceRange": "Sur devis"
|
||||
},
|
||||
{
|
||||
"@type": "SoftwareSourceCode",
|
||||
"@id": "https://github.com/gastinelt/gastinel-weather-studio#code",
|
||||
"name": "Gastinel Weather Studio (code source)",
|
||||
"description": "Code source de Gastinel Weather Studio : analyse des températures des trous à froid du Vercors.",
|
||||
"codeRepository": "https://github.com/gastinelt/gastinel-weather-studio",
|
||||
"programmingLanguage": "Rust",
|
||||
"license": "https://spdx.org/licenses/GPL-3.0.html",
|
||||
"targetProduct": { "@id": "https://gastinel.me/gws/#software" },
|
||||
"author": { "@id": "https://gastinel.me/#person" }
|
||||
},
|
||||
{
|
||||
"@type": "SoftwareSourceCode",
|
||||
"@id": "https://github.com/gastinelt/Gastinel-Covert#code",
|
||||
"name": "Gastinel Covert",
|
||||
"description": "Gestionnaire de mots de passe et de secrets local pour Windows x64.",
|
||||
"codeRepository": "https://github.com/gastinelt/Gastinel-Covert",
|
||||
"programmingLanguage": "Rust",
|
||||
"license": "https://spdx.org/licenses/GPL-3.0.html",
|
||||
"author": { "@id": "https://gastinel.me/#person" }
|
||||
},
|
||||
{
|
||||
"@type": "SoftwareSourceCode",
|
||||
"@id": "https://github.com/gastinelt/gastinel-weather-mod#code",
|
||||
"name": "Gastinel Weather Mod",
|
||||
"description": "Mod Minecraft NeoForge : météo réaliste et blocs de station météo.",
|
||||
"codeRepository": "https://github.com/gastinelt/gastinel-weather-mod",
|
||||
"programmingLanguage": "Java",
|
||||
"license": "https://spdx.org/licenses/MIT.html",
|
||||
"author": { "@id": "https://gastinel.me/#person" }
|
||||
}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Ccircle cx='250' cy='250' r='230' fill='%23111'/%3E%3Cpath d='M 80 280 L 170 210 L 210 230 L 250 140 L 290 190 L 330 160 L 420 280' fill='none' stroke='%23fff' stroke-width='24' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E">
|
||||
<script data-inline>
|
||||
// Niveau réseau -> <html data-net="low|mid|high"> (Network Information API,
|
||||
// Chromium uniquement ; ailleurs : high). low = slow-2g, 2g ou économie de données.
|
||||
(function(){var d=document.documentElement,c=navigator.connection;function t(){var e=c&&c.effectiveType;d.setAttribute('data-net',(c&&c.saveData)||e==='slow-2g'||e==='2g'?'low':e==='3g'?'mid':'high');}t();if(c&&c.addEventListener)c.addEventListener('change',t);})();
|
||||
</script>
|
||||
<link rel="preload" href="assets/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" as="image" href="assets/img/dji-fly-20250919-194610-0004-1758304172909-photo.webp" fetchpriority="high">
|
||||
<style>
|
||||
@@ -292,7 +403,7 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
.global-footer .footer-bottom { text-align:center; border-top:1px solid #333; margin-top:40px; padding-top:20px; font-size:.8rem; color:#888; }
|
||||
@media (max-width:768px){ .global-footer .footer-content{ grid-template-columns:1fr; gap:30px; } }
|
||||
|
||||
.reveal,.reveal-left,.reveal-right { opacity:0; will-change:opacity,transform; transition:opacity .8s cubic-bezier(.25,1,.5,1),transform .8s cubic-bezier(.25,1,.5,1); }
|
||||
.reveal,.reveal-left,.reveal-right { opacity:0; transition:opacity .8s cubic-bezier(.25,1,.5,1),transform .8s cubic-bezier(.25,1,.5,1); }
|
||||
.reveal{ transform:translateY(40px); }
|
||||
.reveal-left{ transform:translateX(-40px); }
|
||||
.reveal-right{ transform:translateX(40px); }
|
||||
@@ -309,6 +420,8 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
#custom-cursor.hovered.cursor-light { background:rgba(255,255,255,.15); }
|
||||
#loader-wrapper { position:fixed; top:0; left:0; width:100%; height:100%; background:#fff; z-index:99999; display:flex; justify-content:center; align-items:center; transition:opacity .8s cubic-bezier(.77,0,.175,1),visibility .8s; }
|
||||
#loader-wrapper.fade-out { opacity:0; visibility:hidden; }
|
||||
.fragment-status { min-height:60vh; display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; padding:120px 20px; text-align:center; color:#666; font-family:var(--font-sans); }
|
||||
.fragment-retry { padding:8px 18px; border:1px solid #111; border-radius:4px; background:#fff; color:#111; font:inherit; cursor:pointer; }
|
||||
.custom-loader-container { width:180px; height:180px; display:flex; justify-content:center; align-items:center; animation:custom-loader-pulse 2.5s infinite ease-in-out; }
|
||||
@keyframes custom-loader-pulse { 0%,100%{transform:scale(.92);opacity:.8;} 50%{transform:scale(1.05);opacity:1;} }
|
||||
|
||||
@@ -322,9 +435,9 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
#accueil .slide-overlay { position:absolute; top:0; left:0; width:100%; height:100%; background:rgba(255,255,255,.15); z-index:1; }
|
||||
#accueil .slide-portfolio { background-image:url('assets/img/dji-fly-20250919-194610-0004-1758304172909-photo.webp'); }
|
||||
#accueil .slide-portfolio .slide-overlay { background:rgba(0,0,0,.5); }
|
||||
#accueil .slide-infra { background-color:#111; background-image:radial-gradient(ellipse at center,rgba(25,25,25,.8) 0%,rgba(10,10,10,.95) 100%),url('assets/img/bg-infra.webp'); }
|
||||
#accueil .slide-infra { background-color:#111; background-image:radial-gradient(ellipse at center,rgba(25,25,25,.8) 0%,rgba(10,10,10,.95) 100%); }
|
||||
#accueil .slide-infra .slide-overlay { background:rgba(0,0,0,.65); }
|
||||
#accueil .slide-engine { background-color:#111; background-image:radial-gradient(ellipse at center,rgba(25,25,25,.8) 0%,rgba(10,10,10,.95) 100%),url('assets/img/bg-engine.webp'); }
|
||||
#accueil .slide-engine { background-color:#111; background-image:radial-gradient(ellipse at center,rgba(25,25,25,.8) 0%,rgba(10,10,10,.95) 100%); }
|
||||
#accueil .slide-engine .slide-overlay { background:rgba(0,0,0,.65); }
|
||||
#accueil .slide-content { position:relative; z-index:2; max-width:800px; }
|
||||
#accueil .slide-title { font-family:var(--font-sans); font-size:clamp(2.2rem,5vw,4.2rem); font-weight:700; margin:0 0 20px 0; text-transform:uppercase; letter-spacing:2px; color:#fff; text-shadow:0 4px 15px rgba(0,0,0,.5); }
|
||||
@@ -694,7 +807,7 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
#realisations .gallery-item { break-inside:avoid; margin-bottom:28px; position:relative; overflow:hidden; background:transparent; cursor:pointer; }
|
||||
#realisations .gallery-item::after { content:''; position:absolute; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0); transition:background .4s ease; pointer-events:none; z-index:1; }
|
||||
#realisations .gallery-item:hover::after { background:rgba(0,0,0,.08); }
|
||||
#realisations .gallery-item img { width:100%; height:auto; display:block; transition:transform .6s cubic-bezier(.25,.8,.25,1); will-change:transform; }
|
||||
#realisations .gallery-item img { width:100%; height:auto; display:block; transition:transform .6s cubic-bezier(.25,.8,.25,1); }
|
||||
#realisations .gallery-item:hover img { transform:scale(1.04); }
|
||||
#realisations .gallery-caption { position:relative; z-index:2; display:block; background:#fdfdfd; padding:12px 2px 0 2px; font-size:.82rem; font-weight:500; color:#666; letter-spacing:.04em; text-transform:uppercase; }
|
||||
#realisations .gallery-item.hidden { display:none; }
|
||||
@@ -728,6 +841,13 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
#realisations .video-main-title { font-family:var(--font-sans); color:#111; text-align:center; font-size:2rem; letter-spacing:-.01em; margin-bottom:60px; font-weight:700; }
|
||||
#realisations .video-wrapper { position:relative; width:100%; aspect-ratio:16/9; background:#000; border-radius:4px; overflow:hidden; box-shadow:0 8px 20px rgba(0,0,0,.1); }
|
||||
#realisations .video-wrapper iframe { position:absolute; top:0; left:0; width:100%; height:100%; border:0; }
|
||||
/* Façade YouTube : l'iframe (~1 Mo de JS YouTube) n'est créée qu'au clic. */
|
||||
#realisations .yt-facade { position:absolute; inset:0; width:100%; height:100%; border:0; padding:0; margin:0; cursor:pointer; color:#fff; font:inherit; background:#050505 radial-gradient(ellipse at 50% 40%,#2a2a2a 0%,#0b0b0b 70%) center/cover no-repeat; }
|
||||
#realisations .yt-facade-play { position:absolute; top:50%; left:50%; width:72px; height:72px; margin:-36px 0 0 -36px; border-radius:50%; background:rgba(255,255,255,.92); display:flex; align-items:center; justify-content:center; box-shadow:0 8px 24px rgba(0,0,0,.35); transition:transform .3s cubic-bezier(.25,1,.5,1),background .3s ease; }
|
||||
#realisations .yt-facade-play svg { width:22px; height:22px; margin-left:4px; fill:#111; }
|
||||
#realisations .yt-facade:hover .yt-facade-play,#realisations .yt-facade:focus-visible .yt-facade-play { transform:scale(1.08); background:#fff; }
|
||||
#realisations .yt-facade:focus-visible { outline:2px solid #fff; outline-offset:-4px; }
|
||||
#realisations .yt-facade-title { position:absolute; left:18px; right:18px; bottom:16px; text-align:left; font-family:var(--font-sans); font-size:.8rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; text-shadow:0 1px 6px rgba(0,0,0,.6); }
|
||||
#realisations .vid-title { font-family:var(--font-sans); font-size:1.2rem; font-weight:600; color:#0a192f; margin:0 0 15px 0; text-transform:uppercase; }
|
||||
#realisations .vid-meta { font-size:1.1rem; margin-bottom:10px; color:#222; }
|
||||
#realisations .vid-meta strong { font-weight:700; }
|
||||
@@ -767,7 +887,7 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
|
||||
#apropos a { color:#000; text-decoration:none; transition:all .3s ease; }
|
||||
#apropos .main-container { max-width:1200px; margin:0 auto; padding:0 20px; }
|
||||
#apropos .reveal { opacity:0; transform:translateY(30px); will-change:opacity,transform; transition:opacity .8s cubic-bezier(.25,1,.5,1),transform .8s cubic-bezier(.25,1,.5,1); }
|
||||
#apropos .reveal { opacity:0; transform:translateY(30px); transition:opacity .8s cubic-bezier(.25,1,.5,1),transform .8s cubic-bezier(.25,1,.5,1); }
|
||||
#apropos .reveal.active { opacity:1; transform:translate(0,0); }
|
||||
#apropos .animated-separator { width:40px; height:3px; background:#111; margin:70px auto; border:none; border-radius:2px; animation:pulseWidth 4s infinite ease-in-out; }
|
||||
@keyframes pulseWidth { 0%{width:40px;opacity:.4;} 50%{width:120px;opacity:1;} 100%{width:40px;opacity:.4;} }
|
||||
@@ -1151,6 +1271,28 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
#apps .app-meta-item p { font-size: .86rem; color: #444444; margin: 0; line-height: 1.55; }
|
||||
|
||||
/* Grille compacte des projets annoncés */
|
||||
/* Pôle développeur (#apps) */
|
||||
#apps .dev-gh-link { text-decoration: none; }
|
||||
#apps .dev-gh-link:hover { text-decoration: underline; }
|
||||
#apps .dev-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-bottom: 18px; }
|
||||
#apps .dev-col { border: 1px solid #e8e8e8; border-radius: 6px; background: #fafafa; padding: 18px 20px; min-width: 0; }
|
||||
#apps .dev-col-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; color: #111111; }
|
||||
#apps .dev-col-text { font-size: .92rem; color: #444444; line-height: 1.5; margin: 0 0 12px; }
|
||||
#apps .dev-col-text a { color: #111111; }
|
||||
#apps .dev-eco-list { list-style: none; padding: 0; margin: 0 0 14px; }
|
||||
#apps .dev-eco-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 7px 0; border-top: 1px solid #ececec; font-size: .9rem; }
|
||||
#apps .dev-eco-name { font-weight: 700; color: #111111; }
|
||||
#apps .dev-eco-desc { color: #666666; flex: 1 1 140px; }
|
||||
#apps .dev-eco-state { font-size: .7rem; font-weight: 600; color: #888888; text-transform: uppercase; letter-spacing: .8px; }
|
||||
#apps .dev-btn { display: inline-block; padding: 9px 14px; border: 1px solid #111111; border-radius: 4px; color: #111111; text-decoration: none; font-size: .85rem; font-weight: 600; }
|
||||
#apps .dev-btn:hover { background: #111111; color: #ffffff; }
|
||||
#apps .dev-repo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
|
||||
#apps .dev-repo { display: flex; flex-direction: column; gap: 5px; border: 1px solid #e8e8e8; border-radius: 6px; background: #ffffff; padding: 14px 16px; text-decoration: none; color: inherit; min-width: 0; transition: border-color .2s ease; }
|
||||
#apps .dev-repo:hover { border-color: #aaaaaa; }
|
||||
#apps .dev-repo-name { font-weight: 700; color: #111111; overflow-wrap: anywhere; }
|
||||
#apps .dev-repo-meta { font-size: .72rem; font-weight: 600; color: #888888; text-transform: uppercase; letter-spacing: .6px; }
|
||||
#apps .dev-repo-desc { font-size: .88rem; color: #444444; line-height: 1.45; }
|
||||
|
||||
#apps .apps-compact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
|
||||
#apps .app-card-compact { border: 1px solid #e8e8e8; border-radius: 6px; background: #fafafa; overflow: hidden; transition: border-color .2s ease, background .2s ease; }
|
||||
#apps .app-card-compact:hover { border-color: #cccccc; background: #ffffff; }
|
||||
@@ -1580,6 +1722,7 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
</nav>
|
||||
|
||||
<section id="accueil" class="spa-section">
|
||||
<h1 style="position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;">Théo Gastinel, 15 ans — créateur indépendant à Lans-en-Vercors : photo, vidéo, drone FPV et logiciels</h1>
|
||||
<div class="carousel-container reveal-down-init" id="carouselWindow">
|
||||
<button class="carousel-arrow carousel-arrow-left" id="prevBtn" aria-label="Précédent"><svg class="svg-icon" viewBox="0 0 320 512" aria-hidden="true"><path d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"/></svg><svg class="btn-border-svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="48" /></svg></button>
|
||||
<button class="carousel-arrow carousel-arrow-right" id="nextBtn" aria-label="Suivant"><svg class="svg-icon" viewBox="0 0 320 512" aria-hidden="true"><path d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"/></svg><svg class="btn-border-svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="48" /></svg></button>
|
||||
@@ -1615,7 +1758,7 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
<div class="extra-projects-section reveal-up-init" id="extraSection">
|
||||
<h3 class="extra-projects-title">Autres Espaces</h3>
|
||||
<div class="floating-cards-container">
|
||||
<a href="https://www.hub.gastinel.me/" target="_blank" class="floating-card floating-card-1"><div class="card-icon"><svg class="svg-icon" viewBox="0 0 640 512" aria-hidden="true"><path d="M256 64H384v64H256V64zM240 0c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48h48v32H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h96v32H80c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48H240c26.5 0 48-21.5 48-48V368c0-26.5-21.5-48-48-48H192V288H448v32H400c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48H560c26.5 0 48-21.5 48-48V368c0-26.5-21.5-48-48-48H512V288h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H352V192h48c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48H240zM96 448V384H224v64H96zm320-64H544v64H416V384z"/></svg></div><h4>Gastinel Hub</h4><p>Retrouvez vos outils, applications web indépendantes et services d'autonomie numérique.</p></a>
|
||||
<a href="https://hub.gastinel.me/" target="_blank" class="floating-card floating-card-1"><div class="card-icon"><svg class="svg-icon" viewBox="0 0 640 512" aria-hidden="true"><path d="M256 64H384v64H256V64zM240 0c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48h48v32H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h96v32H80c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48H240c26.5 0 48-21.5 48-48V368c0-26.5-21.5-48-48-48H192V288H448v32H400c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48H560c26.5 0 48-21.5 48-48V368c0-26.5-21.5-48-48-48H512V288h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H352V192h48c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48H240zM96 448V384H224v64H96zm320-64H544v64H416V384z"/></svg></div><h4>Gastinel Hub</h4><p>Retrouvez vos outils, applications web indépendantes et services d'autonomie numérique.</p></a>
|
||||
<a href="#apps" data-spa="apps" class="floating-card floating-card-3"><div class="card-icon"><svg class="svg-icon" viewBox="0 0 576 512" aria-hidden="true"><path d="M290.8 48.6l78.4 29.7L288 109.5 206.8 78.3l78.4-29.7c1.8-.7 3.8-.7 5.7 0zM136 92.5V204.7c-1.3 .4-2.6 .8-3.9 1.3l-96 36.4C14.4 250.6 0 271.5 0 294.7V413.9c0 22.2 13.1 42.3 33.5 51.3l96 42.2c14.4 6.3 30.7 6.3 45.1 0L288 457.5l113.5 49.9c14.4 6.3 30.7 6.3 45.1 0l96-42.2c20.3-8.9 33.5-29.1 33.5-51.3V294.7c0-23.3-14.4-44.1-36.1-52.4l-96-36.4c-1.3-.5-2.6-.9-3.9-1.3V92.5c0-23.3-14.4-44.1-36.1-52.4l-96-36.4c-12.8-4.8-26.9-4.8-39.7 0l-96 36.4C150.4 48.4 136 69.3 136 92.5zM392 210.6l-82.4 31.2V152.6L392 121v89.6zM154.8 250.9l78.4 29.7L152 311.7 70.8 280.6l78.4-29.7c1.8-.7 3.8-.7 5.7 0zm18.8 204.4V354.8L256 323.2v95.9l-82.4 36.2zM421.2 250.9c1.8-.7 3.8-.7 5.7 0l78.4 29.7L424 311.7l-81.2-31.1 78.4-29.7zM523.2 421.2l-77.6 34.1V354.8L528 323.2v90.7c0 3.2-1.9 6-4.8 7.3z"/></svg></div><h4>Mes Applications</h4><p>Accédez aux logiciels d'analyse météo, outils cartographiques et utilitaires souverains.</p></a>
|
||||
<a class="floating-card floating-card-2 link-indispo" aria-disabled="true" tabindex="-1" title="Bientôt disponible"><div class="card-icon"><svg class="svg-icon" viewBox="0 0 640 512" aria-hidden="true"><path d="M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"/></svg></div><h4>Link</h4><p>Accédez directement à l'ensemble de mes réseaux sociaux et profils externes de communication.</p></a>
|
||||
</div>
|
||||
@@ -1675,7 +1818,7 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
<section id="hub" class="hub-preview-section reveal">
|
||||
<h2 class="highlight-text">Reprenez possession de votre espace numérique.</h2>
|
||||
<p class="description-text">Le web ne devrait pas être une boîte noire. Entre les outils qui nous surveillent et les données qui nous échappent, il est temps de retrouver de l'autonomie. Ici, chaque service est conçu pour rester entre vos mains : stocker l'essentiel, communiquer sans filtre et explorer le monde avec une précision totale.</p>
|
||||
<div class="cta-container"><p class="cta-subline">L'infrastructure est prête, il ne reste plus qu'à l'utiliser.</p><a href="https://www.hub.gastinel.me" class="hub-button" target="_blank">ACCÉDER AU HUB GASTINEL</a></div>
|
||||
<div class="cta-container"><p class="cta-subline">L'infrastructure est prête, il ne reste plus qu'à l'utiliser.</p><a href="https://hub.gastinel.me/" class="hub-button" target="_blank">ACCÉDER AU HUB GASTINEL</a></div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
@@ -1767,7 +1910,7 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
<section class="video-section">
|
||||
<h2 class="video-main-title">Perspectives en mouvement</h2>
|
||||
<div class="video-hero">
|
||||
<div class="video-wrapper"><iframe src="https://www.youtube-nocookie.com/embed/nknh43cnKXI" title="THE FROZEN WORLD" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen loading="lazy"></iframe></div>
|
||||
<div class="video-wrapper"><button type="button" class="yt-facade" data-yt="nknh43cnKXI" aria-label="Lire la vidéo : THE FROZEN WORLD"><span class="yt-facade-play" aria-hidden="true"><svg viewBox="0 0 384 512"><path d="M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80V432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"/></svg></span><span class="yt-facade-title">THE FROZEN WORLD</span></button></div>
|
||||
<div class="video-hero-text">
|
||||
<h3 class="vid-title">THE FROZEN WORLD</h3>
|
||||
<p class="vid-meta"><strong>Spot :</strong> Rocher de l'Avocat (Vercors)</p>
|
||||
@@ -1789,7 +1932,7 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
</div>
|
||||
<div class="video-grid">
|
||||
<div class="video-card">
|
||||
<div class="video-wrapper"><iframe src="https://www.youtube-nocookie.com/embed/TPllEu3BK80" title="Les 3 Pucelles" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen loading="lazy"></iframe></div>
|
||||
<div class="video-wrapper"><button type="button" class="yt-facade" data-yt="TPllEu3BK80" aria-label="Lire la vidéo : Les 3 Pucelles"><span class="yt-facade-play" aria-hidden="true"><svg viewBox="0 0 384 512"><path d="M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80V432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"/></svg></span><span class="yt-facade-title">Les 3 Pucelles</span></button></div>
|
||||
<div class="video-card-text">
|
||||
<p class="vid-meta"><strong>Spot :</strong> Les 3 Pucelles (Vercors)</p>
|
||||
<p class="vid-meta"><strong>Matériel :</strong> DJI Mini 4 Pro</p>
|
||||
@@ -1809,7 +1952,7 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
</div>
|
||||
</div>
|
||||
<div class="video-card">
|
||||
<div class="video-wrapper"><iframe src="https://www.youtube-nocookie.com/embed/-YunbJMgJ4g" title="Plateau de la Molière" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen loading="lazy"></iframe></div>
|
||||
<div class="video-wrapper"><button type="button" class="yt-facade" data-yt="-YunbJMgJ4g" aria-label="Lire la vidéo : Plateau de la Molière"><span class="yt-facade-play" aria-hidden="true"><svg viewBox="0 0 384 512"><path d="M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80V432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"/></svg></span><span class="yt-facade-title">Plateau de la Molière</span></button></div>
|
||||
<div class="video-card-text">
|
||||
<p class="vid-meta"><strong>Spot :</strong> Contrebas du Plateau de la Molière</p>
|
||||
<p class="vid-meta"><strong>Matériel :</strong> DJI Mini 4 Pro</p>
|
||||
@@ -1844,7 +1987,7 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
|
||||
<div class="intro-header reveal">
|
||||
<h2>Qui suis-je ?</h2>
|
||||
<p>Créateur indépendant de 15 ans, j'exerce sous statut de micro-entreprise enregistrée, avec accompagnement légal et présence sur le terrain assurée par mon père (représentant légal). Prestations sous devis, facturation et respect strict des règles de sécurité.</p>
|
||||
<p>Créateur indépendant de 15 ans, j'exerce dans le cadre de la micro-entreprise enregistrée au nom de mon père, Richard GASTINEL (EI) : nous en sommes tous les deux responsables, et il assure l'accompagnement légal et la présence sur le terrain. Prestations sous devis, facturation et respect strict des règles de sécurité.</p>
|
||||
</div>
|
||||
<div class="bio-section reveal">
|
||||
<div class="bio-details">
|
||||
@@ -1852,7 +1995,8 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
<p><strong>Âge :</strong> 15 ans</p>
|
||||
<p><strong>Localisation :</strong> Lans-en-Vercors (Isère), interventions sur l'arc alpin</p>
|
||||
<p><strong>Domaines :</strong> Photographie de montagne, vidéo immersive, faune sauvage et prises de vue aériennes par drone</p>
|
||||
<p><strong>Cadre d'exercice :</strong> Micro-entreprise enregistrée (SIRET 10481674900014)</p>
|
||||
<p><strong>Cadre d'exercice :</strong> Micro-entreprise Richard GASTINEL EI (SIRET 10481674900014), dont Théo et Richard Gastinel sont tous deux responsables</p>
|
||||
<p><strong>À ne pas confondre :</strong> ce site est celui de Théo Gastinel, 15 ans, de Lans-en-Vercors (Isère). Il n'a aucun lien avec d'autres personnes portant le même nom.</p>
|
||||
<p><strong>Engagements :</strong> Prises de vue sécurisées, devis clairs, conservation des fichiers en qualité maximale et livraison soignée</p>
|
||||
</div>
|
||||
<div class="bio-image"><img src="assets/img/unnamed.webp" width="604" height="645" alt="Portrait de Théo Gastinel" loading="lazy" decoding="async"></div>
|
||||
@@ -1959,6 +2103,75 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="apps-category dev-pole" id="pole-developpeur">
|
||||
<div class="apps-category-header">
|
||||
<h2 class="apps-category-title">Pôle développeur</h2>
|
||||
<a class="apps-category-count dev-gh-link" href="https://github.com/gastinelt" target="_blank" rel="noopener">GitHub : gastinelt</a>
|
||||
</div>
|
||||
<p class="apps-category-desc">À côté de l'image, je conçois et je code des logiciels : un écosystème de services Gastinel, pensé comme une alternative aux grandes plateformes (GAFAM), et des applications open source publiées sur GitHub.</p>
|
||||
|
||||
<div class="dev-split">
|
||||
<div class="dev-col">
|
||||
<h3 class="dev-col-title">L'écosystème Gastinel</h3>
|
||||
<p class="dev-col-text">Un seul compte Gastinel donne accès à l'ensemble des services. La liste à jour et l'état de chaque service sont sur le Hub.</p>
|
||||
<ul class="dev-eco-list">
|
||||
<li class="dev-eco-item"><span class="dev-eco-name">Cloud 2049</span><span class="dev-eco-desc">Stockage en ligne</span><span class="dev-eco-state">Bientôt disponible</span></li>
|
||||
<li class="dev-eco-item"><span class="dev-eco-name">Vector</span><span class="dev-eco-desc">Localisation et sécurité en sortie</span><span class="dev-eco-state">Bientôt disponible</span></li>
|
||||
<li class="dev-eco-item"><span class="dev-eco-name">VPN</span><span class="dev-eco-desc">Serveurs en France et en Suisse selon la formule</span><span class="dev-eco-state">Bientôt disponible</span></li>
|
||||
<li class="dev-eco-item"><span class="dev-eco-name">Mind</span><span class="dev-eco-desc">Assistant IA</span><span class="dev-eco-state">Version d'essai</span></li>
|
||||
<li class="dev-eco-item"><span class="dev-eco-name">Mail</span><span class="dev-eco-desc">Messagerie</span><span class="dev-eco-state">Bientôt disponible</span></li>
|
||||
<li class="dev-eco-item"><span class="dev-eco-name">Vercors Studio</span><span class="dev-eco-desc">Création de sites</span><span class="dev-eco-state">Bientôt disponible</span></li>
|
||||
<li class="dev-eco-item"><span class="dev-eco-name">Jobrunner</span><span class="dev-eco-desc">Nouveau service</span><span class="dev-eco-state">En préparation</span></li>
|
||||
</ul>
|
||||
<a class="dev-btn" href="https://hub.gastinel.me/" target="_blank" rel="noopener">Voir les services sur le Hub</a>
|
||||
</div>
|
||||
<div class="dev-col">
|
||||
<h3 class="dev-col-title">Applications open source</h3>
|
||||
<p class="dev-col-text">Le code de ces projets est public sur GitHub. Gastinel Weather Studio, mon application principale, est présentée en détail <a href="/gws/">sur sa page dédiée</a>.</p>
|
||||
<a class="dev-btn" href="https://github.com/gastinelt?tab=repositories" target="_blank" rel="noopener">Tous les dépôts sur GitHub</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dev-repo-grid">
|
||||
<a class="dev-repo" href="https://github.com/gastinelt/gastinel-weather-studio" target="_blank" rel="noopener">
|
||||
<span class="dev-repo-name">Gastinel Weather Studio</span>
|
||||
<span class="dev-repo-meta">Rust · Tauri v2 · GPL-3.0</span>
|
||||
<span class="dev-repo-desc">Centralise, cartographie et analyse les relevés de température des trous à froid du Vercors (import multi-formats, lecture USB des enregistreurs RC-5, carte hors-ligne, export CSV/HTML).</span>
|
||||
</a>
|
||||
<a class="dev-repo" href="https://github.com/gastinelt/Gastinel-Write" target="_blank" rel="noopener">
|
||||
<span class="dev-repo-name">Gastinel Write</span>
|
||||
<span class="dev-repo-meta">C++20 · GPL-3.0</span>
|
||||
<span class="dev-repo-desc">Éditeur de texte léger pour Windows 10/11, pensé pour du matériel modeste : rendu, lecture des polices TTF et décompression DEFLATE écrits sans bibliothèque externe ; formats .txt et .odt.</span>
|
||||
</a>
|
||||
<a class="dev-repo" href="https://github.com/gastinelt/Gastinel-Covert" target="_blank" rel="noopener">
|
||||
<span class="dev-repo-name">Gastinel Covert</span>
|
||||
<span class="dev-repo-meta">Rust · Slint · GPL-3.0</span>
|
||||
<span class="dev-repo-desc">Gestionnaire de mots de passe et de secrets local pour Windows x64 : chiffrement XChaCha20-Poly1305 et Argon2id, double authentification avec TOTP, saisie automatique.</span>
|
||||
</a>
|
||||
<a class="dev-repo" href="https://github.com/gastinelt/gastinel-weather-mod" target="_blank" rel="noopener">
|
||||
<span class="dev-repo-name">Gastinel Weather Mod</span>
|
||||
<span class="dev-repo-meta">Java · NeoForge 1.21.1 · MIT</span>
|
||||
<span class="dev-repo-desc">Mod Minecraft : météo réaliste (prévisions, vent, microclimats) et blocs de station météo.</span>
|
||||
</a>
|
||||
<a class="dev-repo" href="https://github.com/gastinelt/sculk-orbs" target="_blank" rel="noopener">
|
||||
<span class="dev-repo-name">Sculk Orbs</span>
|
||||
<span class="dev-repo-meta">Java · NeoForge 1.21.1 · MIT</span>
|
||||
<span class="dev-repo-desc">Mod Minecraft : orbes d'expérience dans le sculk et enchantements parfaits.</span>
|
||||
</a>
|
||||
<a class="dev-repo" href="https://github.com/gastinelt/timet" target="_blank" rel="noopener">
|
||||
<span class="dev-repo-name">Timet</span>
|
||||
<span class="dev-repo-meta">Java · NeoForge 1.21.1 · MIT</span>
|
||||
<span class="dev-repo-desc">Mod Minecraft : synchronise l'heure du jeu avec l'heure réelle du PC.</span>
|
||||
</a>
|
||||
<a class="dev-repo" href="https://github.com/gastinelt/totoche-tools" target="_blank" rel="noopener">
|
||||
<span class="dev-repo-name">Totoche Tools</span>
|
||||
<span class="dev-repo-meta">Java · NeoForge 26.2 · MIT</span>
|
||||
<span class="dev-repo-desc">Mod client Minecraft : tab amélioré, ESP, ferme AFK, minimap et rendu lointain du terrain (LOD).</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="apps-category">
|
||||
<div class="apps-category-header">
|
||||
<h2 class="apps-category-title">Applications annoncées</h2>
|
||||
@@ -2005,7 +2218,7 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
<svg class="svg-icon app-compact-arrow" viewBox="0 0 512 512" aria-hidden="true"><path d="M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"/></svg>
|
||||
</summary>
|
||||
<div class="details-content app-compact-body">
|
||||
<div class="app-keywords">Messagerie chiffrée · Zéro journalisation · Confidentialité totale</div>
|
||||
<div class="app-keywords">Messagerie chiffrée</div>
|
||||
<div class="app-timeline">Sortie prévue dans les prochains mois.</div>
|
||||
</div>
|
||||
</details>
|
||||
@@ -2073,7 +2286,7 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
<img src="assets/apps/gastinel-weather-studio/icone.webp" alt="Icône Gastinel Weather Studio" class="gws-featured-icon" width="56" height="56" loading="lazy">
|
||||
<div>
|
||||
<div class="gws-featured-tag-row">
|
||||
<span class="gws-badge-status available"><span class="badge-dot"></span>Version 0.4.0 disponible</span>
|
||||
<span class="gws-badge-status available"><span class="badge-dot"></span><span id="gwsCarteVersion">Version 0.6.0 disponible</span></span>
|
||||
<span class="gws-badge-arch">Windows 10 / 11 (64-bit)</span>
|
||||
</div>
|
||||
<h3 class="gws-featured-title">Gastinel Weather Studio</h3>
|
||||
@@ -2677,6 +2890,7 @@ body.spa-nav-hidden .spa-nav { display:none; }
|
||||
(function(){
|
||||
'use strict';
|
||||
var reduceMotion=!!(window.matchMedia&&window.matchMedia('(prefers-reduced-motion: reduce)').matches);
|
||||
function netTier(){ return document.documentElement.getAttribute('data-net')||'high'; }
|
||||
var ROUTES=['accueil','portfolio','realisations','apropos','apps','application','gws','telechargement','deroulement','termes','news','carnet'];
|
||||
var LEGAL_TABS={'termes':'home','legal':'home','legal-cgv':'cgv','legal-rgpd':'rgpd','legal-mentions':'mentions'};
|
||||
function showLegalTab(tab){
|
||||
@@ -2688,6 +2902,16 @@ var DEFAULT='accueil';
|
||||
var done={};
|
||||
var Anim={};
|
||||
function switchAnim(route){ Object.keys(Anim).forEach(function(k){ if(k===route) Anim[k].start(); else Anim[k].stop(); }); }
|
||||
// Façades YouTube : remplace le bouton par l'iframe au clic, lecture immédiate.
|
||||
document.addEventListener('click',function(e){
|
||||
var btn=e.target.closest&&e.target.closest('.yt-facade'); if(!btn) return;
|
||||
var f=document.createElement('iframe');
|
||||
f.src='https://www.youtube-nocookie.com/embed/'+btn.getAttribute('data-yt')+'?autoplay=1&rel=0';
|
||||
f.title=btn.querySelector('.yt-facade-title').textContent;
|
||||
f.allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture';
|
||||
f.allowFullscreen=true;
|
||||
btn.replaceWith(f); f.focus();
|
||||
});
|
||||
function initTabs(btns,activate){
|
||||
btns=Array.prototype.slice.call(btns);
|
||||
btns.forEach(function(btn){
|
||||
@@ -2852,7 +3076,63 @@ function reveal(scope){
|
||||
},{threshold:0.1,rootMargin:'0px 0px -20px 0px'});
|
||||
els.forEach(function(el){ el.classList.remove('active'); revealObs.observe(el); });
|
||||
}
|
||||
// Sections externalisées par le build (attribut data-fragment) : chargées à la
|
||||
// demande, mises en cache (mémoire + HTTP immutable).
|
||||
var fragCache={};
|
||||
function fetchFragment(url){
|
||||
if(!fragCache[url]){
|
||||
fragCache[url]=fetch(url).then(function(r){ if(!r.ok) throw new Error('HTTP '+r.status); return r.text(); })
|
||||
.catch(function(e){ delete fragCache[url]; throw e; });
|
||||
}
|
||||
return fragCache[url];
|
||||
}
|
||||
function loadFragment(sec,asked){
|
||||
return fetchFragment(sec.getAttribute('data-fragment')).then(function(html){
|
||||
sec.innerHTML=html; sec.removeAttribute('data-fragment');
|
||||
if((location.hash.replace('#','')||DEFAULT)===asked) go(asked);
|
||||
},function(){
|
||||
sec.innerHTML='<p class="fragment-status">Impossible de charger cette page. <button type="button" class="fragment-retry">Réessayer</button></p>';
|
||||
sec.querySelector('.fragment-retry').addEventListener('click',function(){ go(asked); });
|
||||
});
|
||||
}
|
||||
// Préchargement selon le réseau : high = au repos après le chargement,
|
||||
// mid = à l'intention (survol, focus, toucher d'un lien), low = au clic seulement.
|
||||
function prefetchFragments(){
|
||||
var secs=[].slice.call(document.querySelectorAll('.spa-section[data-fragment]'));
|
||||
if(!secs.length) return;
|
||||
var tier=netTier();
|
||||
if(tier==='high'){
|
||||
var run=function(){ secs.forEach(function(s){ if(s.hasAttribute('data-fragment')) fetchFragment(s.getAttribute('data-fragment')).catch(function(){}); }); };
|
||||
if(window.requestIdleCallback) requestIdleCallback(run,{timeout:4000}); else setTimeout(run,2500);
|
||||
} else if(tier==='mid'){
|
||||
var onIntent=function(e){
|
||||
var a=e.target.closest&&e.target.closest('a[href^="#"]'); if(!a) return;
|
||||
var r=a.getAttribute('href').slice(1);
|
||||
var s=document.getElementById(LEGAL_TABS.hasOwnProperty(r)?'termes':r);
|
||||
if(s&&s.hasAttribute('data-fragment')) fetchFragment(s.getAttribute('data-fragment')).catch(function(){});
|
||||
};
|
||||
['pointerover','focusin','touchstart'].forEach(function(t){ document.addEventListener(t,onIntent,{passive:true}); });
|
||||
}
|
||||
}
|
||||
// Réseau lent : les images lazy hors écran attendent d'être réellement visibles
|
||||
// (le lazy-loading natif charge, lui, jusqu'à ~2500 px à l'avance sur réseau lent).
|
||||
function deferOffscreenImages(){
|
||||
if(netTier()!=='low'||!('IntersectionObserver' in window)) return;
|
||||
var io=new IntersectionObserver(function(entries){
|
||||
entries.forEach(function(en){
|
||||
if(!en.isIntersecting) return;
|
||||
var img=en.target; img.setAttribute('src',img.getAttribute('data-src')); img.removeAttribute('data-src'); io.unobserve(img);
|
||||
});
|
||||
});
|
||||
document.querySelectorAll('img[loading="lazy"][src]').forEach(function(img){
|
||||
if(img.complete&&img.naturalWidth) return;
|
||||
var r=img.getBoundingClientRect();
|
||||
if(r.width&&r.bottom>0&&r.top<window.innerHeight) return;
|
||||
img.setAttribute('data-src',img.getAttribute('src')); img.removeAttribute('src'); io.observe(img);
|
||||
});
|
||||
}
|
||||
function go(route){
|
||||
var asked=route;
|
||||
var legalTab=LEGAL_TABS.hasOwnProperty(route)?LEGAL_TABS[route]:null;
|
||||
var legalHash=route;
|
||||
var targetScroll=null;
|
||||
@@ -2869,6 +3149,12 @@ function go(route){
|
||||
if(!sec) return;
|
||||
sec.classList.add('active');
|
||||
if(nav) nav.classList.add('active');
|
||||
if(sec.hasAttribute('data-fragment')){
|
||||
document.body.classList.toggle('spa-nav-hidden', route==='accueil'||route==='termes');
|
||||
window.scrollTo(0,0); switchAnim(route);
|
||||
loadFragment(sec,asked);
|
||||
return;
|
||||
}
|
||||
document.body.classList.toggle('spa-accueil-cursor', route==='accueil');
|
||||
document.body.classList.toggle('spa-nav-hidden', route==='accueil'||route==='termes');
|
||||
window.scrollTo(0,0);
|
||||
@@ -2909,7 +3195,7 @@ var Modules={
|
||||
var customCursor=document.getElementById('custom-cursor');
|
||||
var mouseX=0,mouseY=0,cursorX=0,cursorY=0,dotX=0,dotY=0;
|
||||
var customCursorDot=document.getElementById('custom-cursor-dot');
|
||||
document.addEventListener('mousemove',function(e){ mouseX=e.clientX; mouseY=e.clientY; });
|
||||
document.addEventListener('mousemove',function(e){ mouseX=e.clientX; mouseY=e.clientY; wakeCursor(); });
|
||||
var cursorRaf=null;
|
||||
var lastIsDark=false, checkLumTick=0;
|
||||
|
||||
@@ -2970,8 +3256,18 @@ var Modules={
|
||||
if(++checkLumTick%2===0){
|
||||
updateCursorLuminance();
|
||||
}
|
||||
// Curseur arrivé sous la souris : on coupe la boucle (mousemove/scroll la relancent).
|
||||
if(Math.abs(mouseX-cursorX)<0.1&&Math.abs(mouseY-cursorY)<0.1&&Math.abs(mouseX-dotX)<0.1&&Math.abs(mouseY-dotY)<0.1){
|
||||
updateCursorLuminance(); cursorRaf=null; return;
|
||||
}
|
||||
cursorRaf=requestAnimationFrame(animateCursor);
|
||||
}
|
||||
function wakeCursor(){
|
||||
if(reduceMotion||cursorRaf!==null) return;
|
||||
if(!document.getElementById('accueil').classList.contains('active')) return;
|
||||
cursorRaf=requestAnimationFrame(animateCursor);
|
||||
}
|
||||
window.addEventListener('scroll',wakeCursor,{passive:true});
|
||||
if(!reduceMotion){ cursorRaf=requestAnimationFrame(animateCursor); document.body.classList.add('custom-cursor-ready'); }
|
||||
document.querySelectorAll('a, button, .carousel-arrow, .carousel-control-btn, .floating-card').forEach(function(el){
|
||||
el.addEventListener('mouseenter',function(){ customCursor.classList.add('hovered'); });
|
||||
@@ -3047,7 +3343,7 @@ var Modules={
|
||||
track.style.transform='translateX(-'+(currentIndex*100)+'%)';
|
||||
root.style.setProperty('--accent-theme',themes[currentIndex]);
|
||||
carouselWindow.classList.add('slide-portfolio-active');
|
||||
loadSlideBg(currentIndex); preloadNextBg(currentIndex+1);
|
||||
loadSlideBg(currentIndex); if(netTier()!=='low') preloadNextBg(currentIndex+1);
|
||||
triggerScramble(slides[currentIndex]);
|
||||
}
|
||||
var PP_PAUSE={v:'0 0 320 512',d:'M48 64C21.5 64 0 85.5 0 112V400c0 26.5 21.5 48 48 48H80c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H48zm192 0c-26.5 0-48 21.5-48 48V400c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H240z'};
|
||||
@@ -3055,6 +3351,9 @@ var Modules={
|
||||
function applyPPIcon(ic){ if(!playPauseIcon) return; playPauseIcon.setAttribute('viewBox',ic.v); var p=playPauseIcon.querySelector('path'); if(p) p.setAttribute('d',ic.d); }
|
||||
function togglePlay(){ isPaused=!isPaused; applyPPIcon(isPaused?PP_PLAY:PP_PAUSE); }
|
||||
playPauseBtn.addEventListener('click',togglePlay);
|
||||
// Mouvement réduit ou réseau lent / économie de données : pas de défilement
|
||||
// automatique (chaque slide charge une grande image de fond).
|
||||
if(reduceMotion||netTier()==='low'){ isPaused=true; applyPPIcon(PP_PLAY); }
|
||||
function triggerCrossShake(){ if(modalCross){ modalCross.classList.remove('shake-active'); void modalCross.offsetWidth; modalCross.classList.add('shake-active'); setTimeout(function(){ modalCross.classList.remove('shake-active'); },2000); } }
|
||||
if(storeModal && openStoreBtn){
|
||||
initModal(storeModal,{
|
||||
@@ -3065,8 +3364,17 @@ var Modules={
|
||||
prevBtn.addEventListener('click',prevSlide); nextBtn.addEventListener('click',nextSlide);
|
||||
carouselWindow.classList.add('revealed');
|
||||
updatePos(); animId=requestAnimationFrame(runBar);
|
||||
// Carrousel hors écran : la barre de progression (et donc l'autoplay) se met en pause.
|
||||
var carouselVisible=true;
|
||||
if('IntersectionObserver' in window){
|
||||
new IntersectionObserver(function(entries){
|
||||
carouselVisible=entries[0].isIntersecting;
|
||||
if(!carouselVisible){ if(animId!==null){ cancelAnimationFrame(animId); animId=null; } }
|
||||
else if(animId===null&&document.getElementById('accueil').classList.contains('active')){ lastTime=null; animId=requestAnimationFrame(runBar); }
|
||||
}).observe(carouselWindow);
|
||||
}
|
||||
Anim.accueil={
|
||||
start:function(){ if(!reduceMotion&&cursorRaf===null) cursorRaf=requestAnimationFrame(animateCursor); if(animId===null){ lastTime=null; animId=requestAnimationFrame(runBar); } },
|
||||
start:function(){ if(!reduceMotion&&cursorRaf===null) cursorRaf=requestAnimationFrame(animateCursor); if(animId===null&&carouselVisible){ lastTime=null; animId=requestAnimationFrame(runBar); } },
|
||||
stop:function(){ if(cursorRaf!==null){ cancelAnimationFrame(cursorRaf); cursorRaf=null; } if(animId!==null){ cancelAnimationFrame(animId); animId=null; } }
|
||||
};
|
||||
},
|
||||
@@ -3164,10 +3472,20 @@ var Modules={
|
||||
var floatingCloudBtn=root.querySelector('#floatingCloudBtn');
|
||||
var startTime=Date.now();
|
||||
var frameRaf=null;
|
||||
function frame(){ var elapsed=Date.now()-startTime; if(floatingCloudBtn&&window.innerWidth>=1024){ floatingCloudBtn.style.transform='translate3d(0,'+(Math.sin(elapsed/800)*12)+'px,0)'; } else if(floatingCloudBtn&&floatingCloudBtn.style.transform!=='none'){ floatingCloudBtn.style.transform='none'; } if(lightbox.classList.contains('active')&&!isDragging&&postItWrapper.style.display==='block'){ var fy=Math.sin(elapsed/1200)*4; var fr=Math.cos(elapsed/1500)*1.5; postItWrapper.style.transform='translate3d('+currentX+'px,'+(currentY+fy)+'px,0) rotate('+(baseRot+fr)+'deg)'; } frameRaf=requestAnimationFrame(frame); }
|
||||
function frame(){ var elapsed=Date.now()-startTime; if(floatingCloudBtn&&window.innerWidth>=1024){ floatingCloudBtn.style.transform='translate3d(0,'+(Math.sin(elapsed/800)*12)+'px,0)'; } else if(floatingCloudBtn&&floatingCloudBtn.style.transform!=='none'){ floatingCloudBtn.style.transform='none'; } if(lightbox.classList.contains('active')&&!isDragging&&postItWrapper.style.display==='block'){ var fy=Math.sin(elapsed/1200)*4; var fr=Math.cos(elapsed/1500)*1.5; postItWrapper.style.transform='translate3d('+currentX+'px,'+(currentY+fy)+'px,0) rotate('+(baseRot+fr)+'deg)'; } frameRaf=needsFrame()?requestAnimationFrame(frame):null; }
|
||||
// La boucle ne tourne que s'il y a quelque chose à animer : bouton flottant
|
||||
// visible sur grand écran, ou post-it dans la lightbox ouverte.
|
||||
var cloudOnScreen=false;
|
||||
function needsFrame(){ return (cloudOnScreen&&window.innerWidth>=1024)||lightbox.classList.contains('active'); }
|
||||
function wakeFrame(){ if(frameRaf===null&&document.getElementById('realisations').classList.contains('active')) frameRaf=requestAnimationFrame(frame); }
|
||||
if(floatingCloudBtn&&'IntersectionObserver' in window){
|
||||
new IntersectionObserver(function(entries){ cloudOnScreen=entries[0].isIntersecting; if(cloudOnScreen) wakeFrame(); }).observe(floatingCloudBtn);
|
||||
} else cloudOnScreen=true;
|
||||
window.addEventListener('resize',wakeFrame);
|
||||
root.querySelector('#gallery-root').addEventListener('click',function(){ setTimeout(wakeFrame,0); });
|
||||
frameRaf=requestAnimationFrame(frame);
|
||||
Anim.realisations={
|
||||
start:function(){ if(frameRaf===null) frameRaf=requestAnimationFrame(frame); },
|
||||
start:function(){ wakeFrame(); },
|
||||
stop:function(){ if(frameRaf!==null){ cancelAnimationFrame(frameRaf); frameRaf=null; } }
|
||||
};
|
||||
var cloudWrapper=root.querySelector('#cloudWrapper'); var galleryMaster=root.querySelector('#galleryMaster');
|
||||
@@ -3239,8 +3557,8 @@ var Modules={
|
||||
},
|
||||
|
||||
gws:function(root){
|
||||
var API_URL = 'https://gastinel.me/gws/api/v1/update/windows/x86_64/0.0.0';
|
||||
var DEFAULT_VERSION = '0.4.0';
|
||||
var API_URL = '/gws/api/v1/update/windows/x86_64/0.0.0';
|
||||
var DEFAULT_VERSION = '0.6.0';
|
||||
|
||||
function copyText(text, cb) {
|
||||
if (navigator.clipboard && window.isSecureContext) {
|
||||
@@ -3751,14 +4069,38 @@ function boot(){
|
||||
var loader=document.getElementById('loader-wrapper');
|
||||
scrollLock.lock();
|
||||
go(location.hash.replace('#','')||DEFAULT);
|
||||
setTimeout(function(){
|
||||
deferOffscreenImages();
|
||||
if(document.readyState==='complete') prefetchFragments(); else window.addEventListener('load',prefetchFragments);
|
||||
// Écran de chargement : retiré dès que le minimum est prêt (polices du haut
|
||||
// de page + image préchargée du carrousel), au plus tard après 1150 ms.
|
||||
var hidden=false;
|
||||
function hideLoader(){
|
||||
if(hidden) return; hidden=true;
|
||||
loader.classList.add('fade-out');
|
||||
document.body.classList.remove('no-scroll');
|
||||
scrollLock.unlock();
|
||||
},1800);
|
||||
}
|
||||
if(document.readyState!=='loading') boot();
|
||||
else document.addEventListener('DOMContentLoaded',boot);
|
||||
setTimeout(hideLoader,1150);
|
||||
if(window.Promise){
|
||||
var waits=[];
|
||||
// fonts.load() force le téléchargement (fonts.ready peut se résoudre trop tôt).
|
||||
if(document.fonts&&document.fonts.load){ waits.push(document.fonts.load('400 1em Inter'),document.fonts.load('700 1em Comfortaa')); }
|
||||
var heroLink=document.querySelector('link[rel="preload"][as="image"]');
|
||||
if(heroLink){ var hero=new Image(); hero.src=heroLink.href; if(hero.decode) waits.push(hero.decode()); }
|
||||
Promise.all(waits).then(hideLoader,hideLoader);
|
||||
}
|
||||
}
|
||||
// Badge de la carte GWS (Mes applications) : version stable lue en direct.
|
||||
function majVersionGws(){
|
||||
var el=document.getElementById('gwsCarteVersion');
|
||||
if(!el||!window.fetch) return;
|
||||
fetch('/gws/api/v1/update/windows/x86_64/0.0.0',{cache:'no-cache'})
|
||||
.then(function(r){ return r.ok&&r.status!==204?r.json():null; })
|
||||
.then(function(d){ if(d&&/^v?\d+\.\d+\.\d+$/.test(d.version||'')) el.textContent='Version '+d.version.replace(/^v/i,'')+' disponible'; })
|
||||
.catch(function(){});
|
||||
}
|
||||
if(document.readyState!=='loading'){ boot(); majVersionGws(); }
|
||||
else { document.addEventListener('DOMContentLoaded',boot); document.addEventListener('DOMContentLoaded',majVersionGws); }
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Fichier binaire non affiché.
Fichier binaire non affiché.
+31
-15
@@ -1,28 +1,44 @@
|
||||
# Théo Gastinel — Références & Profil
|
||||
|
||||
> Créateur indépendant, réalisateur audiovisuel de montagne et développeur système.
|
||||
> Théo Gastinel, 15 ans, créateur indépendant à Lans-en-Vercors (Isère, France) : réalisateur audiovisuel de montagne, télépilote de drone FPV et développeur logiciel. Site officiel : https://gastinel.me/
|
||||
|
||||
## Identité & Cadre légal
|
||||
## Identité (désambiguïsation)
|
||||
- Nom : Théo Gastinel
|
||||
- Localisation : Lans-en-Vercors (Isère, France)
|
||||
- Cadre professionnel : Micro-entreprise individuelle enregistrée (prestations sur devis et facturation en règle).
|
||||
- Interventions terrain : Vercors et massif alpin, avec accompagnement légal et présence sur place assurée par son représentant légal.
|
||||
- Âge : 15 ans (affiché publiquement sur le site)
|
||||
- Localisation : Lans-en-Vercors (Isère, Auvergne-Rhône-Alpes, France)
|
||||
- À ne pas confondre : ce profil concerne uniquement le Théo Gastinel de 15 ans de Lans-en-Vercors, auteur de gastinel.me et des projets Gastinel. Toute information sur une autre personne portant le même nom (autre âge, autre ville, autre parcours) ne le concerne pas.
|
||||
|
||||
## Cadre légal
|
||||
- Les activités sont exercées dans le cadre de la micro-entreprise « Richard GASTINEL, entrepreneur individuel (EI) », SIRET 10481674900014, Lans-en-Vercors.
|
||||
- Théo Gastinel et son père Richard Gastinel en sont tous deux responsables. Richard Gastinel est l'éditeur du site et le titulaire légal de l'entreprise (voir les mentions légales sur https://gastinel.me/) ; il assure aussi l'accompagnement légal et la présence sur le terrain.
|
||||
- Prestations sur devis, facturation en règle.
|
||||
|
||||
## Domaines d'activité
|
||||
|
||||
### 1. Audiovisuel & Production de terrain
|
||||
- Prises de vue en montagne et conditions de terrain exigeantes.
|
||||
- Prises de vue en montagne et conditions de terrain exigeantes (Vercors, massif alpin).
|
||||
- Captation aérienne : pilotage de drones civils et prises de vue dynamiques en FPV.
|
||||
- Post-production complète : tri rigoureux, retouche photo avancée et étalonnage vidéo soigné.
|
||||
|
||||
### 2. Ingénierie logicielle & Systèmes
|
||||
- Développement orienté bas niveau et architectures logicielles poussées (Rust, C++20, Win32 natif).
|
||||
- Gastinel Weather Studio (GWS) : station logicielle d'analyse microclimatique et de traque des trous à froid (TAF) du Vercors. Décodage USB natif de loggers Elitech RC-5, comparateur multi-séries thermiques et exports HTML autonomes.
|
||||
- Conception d'outils interactifs, d'applications système et de plateformes indépendantes.
|
||||
- Infrastructure souveraine : auto-hébergement, sécurité réseau, maîtrise totale des flux de données et optimisation maximale des performances.
|
||||
- Développement orienté bas niveau (Rust, C++20, Win32 natif).
|
||||
- Gastinel Weather Studio (GWS) : station logicielle d'analyse microclimatique et de suivi des trous à froid (TAF) du Vercors. Décodage USB natif de loggers Elitech RC-5, comparateur multi-séries thermiques et exports HTML autonomes.
|
||||
- Autres applications Gastinel annoncées ou en développement (Gastinel Hub, Gastinel Mind, Vercora…), présentées sur le site.
|
||||
- Applications open source publiées sur GitHub (https://github.com/gastinelt) :
|
||||
- Gastinel Weather Studio (Rust, Tauri v2, GPL-3.0) : https://github.com/gastinelt/gastinel-weather-studio
|
||||
- Gastinel Write (C++20, éditeur de texte léger pour Windows) : https://github.com/gastinelt/Gastinel-Write
|
||||
- Gastinel Covert (Rust, gestionnaire de secrets local pour Windows, GPL-3.0) : https://github.com/gastinelt/Gastinel-Covert
|
||||
- Mods Minecraft NeoForge (Java, MIT) : gastinel-weather-mod, sculk-orbs, timet, totoche-tools.
|
||||
|
||||
## Présence en ligne
|
||||
- gastinel.me : Site principal et vitrine technique.
|
||||
- gastinel.me/gws/ : Sas et hub de téléchargement officiel de Gastinel Weather Studio (binaire Windows 64-bit et paquets .gws).
|
||||
- news.gastinel.me : Journal d'actualités des projets et du terrain.
|
||||
- Gastinel Hub : Espace centralisé pour les services indépendants.
|
||||
### 3. Écosystème Gastinel (alternative aux GAFAM)
|
||||
- Services liés à un seul compte Gastinel : Mind (version d'essai) ; bientôt disponibles : Cloud 2049, Vector, VPN, Mail, Vercors Studio (création de sites) ; Jobrunner en préparation.
|
||||
- Liste à jour et état de chaque service : https://hub.gastinel.me/
|
||||
- Auto-hébergement, sécurité réseau et optimisation des performances.
|
||||
|
||||
## Présence en ligne officielle
|
||||
- https://gastinel.me/ : site principal (portfolio, réalisations, à propos, applications, mentions légales).
|
||||
- https://gastinel.me/gws/ : présentation et téléchargement officiel de Gastinel Weather Studio (Windows 64-bit).
|
||||
- https://www.hub.gastinel.me/ : Gastinel Hub, espace centralisé des services.
|
||||
- https://github.com/gastinelt : dépôts de code open source.
|
||||
- https://www.youtube.com/@slavevecteur : chaîne YouTube.
|
||||
- https://www.instagram.com/totoche.1045 : Instagram.
|
||||
Fichier binaire non affiché.
Fichier binaire non affiché.
Générée
+497
@@ -0,0 +1,497 @@
|
||||
{
|
||||
"name": "gastinel-site-principal",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "gastinel-site-principal",
|
||||
"devDependencies": {
|
||||
"esbuild": "0.25.10"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/aix-ppc64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.10.tgz",
|
||||
"integrity": "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw==",
|
||||
"cpu": [
|
||||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"aix"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/android-arm": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.10.tgz",
|
||||
"integrity": "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w==",
|
||||
"cpu": [
|
||||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"android"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/android-arm64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.10.tgz",
|
||||
"integrity": "sha512-LSQa7eDahypv/VO6WKohZGPSJDq5OVOo3UoFR1E4t4Gj1W7zEQMUhI+lo81H+DtB+kP+tDgBp+M4oNCwp6kffg==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"android"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/android-x64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.10.tgz",
|
||||
"integrity": "sha512-MiC9CWdPrfhibcXwr39p9ha1x0lZJ9KaVfvzA0Wxwz9ETX4v5CHfF09bx935nHlhi+MxhA63dKRRQLiVgSUtEg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"android"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/darwin-arm64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.10.tgz",
|
||||
"integrity": "sha512-JC74bdXcQEpW9KkV326WpZZjLguSZ3DfS8wrrvPMHgQOIEIG/sPXEN/V8IssoJhbefLRcRqw6RQH2NnpdprtMA==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/darwin-x64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.10.tgz",
|
||||
"integrity": "sha512-tguWg1olF6DGqzws97pKZ8G2L7Ig1vjDmGTwcTuYHbuU6TTjJe5FXbgs5C1BBzHbJ2bo1m3WkQDbWO2PvamRcg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/freebsd-arm64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.10.tgz",
|
||||
"integrity": "sha512-3ZioSQSg1HT2N05YxeJWYR+Libe3bREVSdWhEEgExWaDtyFbbXWb49QgPvFH8u03vUPX10JhJPcz7s9t9+boWg==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"freebsd"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/freebsd-x64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.10.tgz",
|
||||
"integrity": "sha512-LLgJfHJk014Aa4anGDbh8bmI5Lk+QidDmGzuC2D+vP7mv/GeSN+H39zOf7pN5N8p059FcOfs2bVlrRr4SK9WxA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"freebsd"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-arm": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.10.tgz",
|
||||
"integrity": "sha512-oR31GtBTFYCqEBALI9r6WxoU/ZofZl962pouZRTEYECvNF/dtXKku8YXcJkhgK/beU+zedXfIzHijSRapJY3vg==",
|
||||
"cpu": [
|
||||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-arm64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.10.tgz",
|
||||
"integrity": "sha512-5luJWN6YKBsawd5f9i4+c+geYiVEw20FVW5x0v1kEMWNq8UctFjDiMATBxLvmmHA4bf7F6hTRaJgtghFr9iziQ==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-ia32": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.10.tgz",
|
||||
"integrity": "sha512-NrSCx2Kim3EnnWgS4Txn0QGt0Xipoumb6z6sUtl5bOEZIVKhzfyp/Lyw4C1DIYvzeW/5mWYPBFJU3a/8Yr75DQ==",
|
||||
"cpu": [
|
||||
"ia32"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-loong64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.10.tgz",
|
||||
"integrity": "sha512-xoSphrd4AZda8+rUDDfD9J6FUMjrkTz8itpTITM4/xgerAZZcFW7Dv+sun7333IfKxGG8gAq+3NbfEMJfiY+Eg==",
|
||||
"cpu": [
|
||||
"loong64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-mips64el": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.10.tgz",
|
||||
"integrity": "sha512-ab6eiuCwoMmYDyTnyptoKkVS3k8fy/1Uvq7Dj5czXI6DF2GqD2ToInBI0SHOp5/X1BdZ26RKc5+qjQNGRBelRA==",
|
||||
"cpu": [
|
||||
"mips64el"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-ppc64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.10.tgz",
|
||||
"integrity": "sha512-NLinzzOgZQsGpsTkEbdJTCanwA5/wozN9dSgEl12haXJBzMTpssebuXR42bthOF3z7zXFWH1AmvWunUCkBE4EA==",
|
||||
"cpu": [
|
||||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-riscv64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.10.tgz",
|
||||
"integrity": "sha512-FE557XdZDrtX8NMIeA8LBJX3dC2M8VGXwfrQWU7LB5SLOajfJIxmSdyL/gU1m64Zs9CBKvm4UAuBp5aJ8OgnrA==",
|
||||
"cpu": [
|
||||
"riscv64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-s390x": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.10.tgz",
|
||||
"integrity": "sha512-3BBSbgzuB9ajLoVZk0mGu+EHlBwkusRmeNYdqmznmMc9zGASFjSsxgkNsqmXugpPk00gJ0JNKh/97nxmjctdew==",
|
||||
"cpu": [
|
||||
"s390x"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/linux-x64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.10.tgz",
|
||||
"integrity": "sha512-QSX81KhFoZGwenVyPoberggdW1nrQZSvfVDAIUXr3WqLRZGZqWk/P4T8p2SP+de2Sr5HPcvjhcJzEiulKgnxtA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/netbsd-arm64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.10.tgz",
|
||||
"integrity": "sha512-AKQM3gfYfSW8XRk8DdMCzaLUFB15dTrZfnX8WXQoOUpUBQ+NaAFCP1kPS/ykbbGYz7rxn0WS48/81l9hFl3u4A==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"netbsd"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/netbsd-x64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.10.tgz",
|
||||
"integrity": "sha512-7RTytDPGU6fek/hWuN9qQpeGPBZFfB4zZgcz2VK2Z5VpdUxEI8JKYsg3JfO0n/Z1E/6l05n0unDCNc4HnhQGig==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"netbsd"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/openbsd-arm64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.10.tgz",
|
||||
"integrity": "sha512-5Se0VM9Wtq797YFn+dLimf2Zx6McttsH2olUBsDml+lm0GOCRVebRWUvDtkY4BWYv/3NgzS8b/UM3jQNh5hYyw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"openbsd"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/openbsd-x64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.10.tgz",
|
||||
"integrity": "sha512-XkA4frq1TLj4bEMB+2HnI0+4RnjbuGZfet2gs/LNs5Hc7D89ZQBHQ0gL2ND6Lzu1+QVkjp3x1gIcPKzRNP8bXw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"openbsd"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/openharmony-arm64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.10.tgz",
|
||||
"integrity": "sha512-AVTSBhTX8Y/Fz6OmIVBip9tJzZEUcY8WLh7I59+upa5/GPhh2/aM6bvOMQySspnCCHvFi79kMtdJS1w0DXAeag==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"openharmony"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/sunos-x64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.10.tgz",
|
||||
"integrity": "sha512-fswk3XT0Uf2pGJmOpDB7yknqhVkJQkAQOcW/ccVOtfx05LkbWOaRAtn5SaqXypeKQra1QaEa841PgrSL9ubSPQ==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"sunos"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/win32-arm64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.10.tgz",
|
||||
"integrity": "sha512-ah+9b59KDTSfpaCg6VdJoOQvKjI33nTaQr4UluQwW7aEwZQsbMCfTmfEO4VyewOxx4RaDT/xCy9ra2GPWmO7Kw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/win32-ia32": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.10.tgz",
|
||||
"integrity": "sha512-QHPDbKkrGO8/cz9LKVnJU22HOi4pxZnZhhA2HYHez5Pz4JeffhDjf85E57Oyco163GnzNCVkZK0b/n4Y0UHcSw==",
|
||||
"cpu": [
|
||||
"ia32"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/win32-x64": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.10.tgz",
|
||||
"integrity": "sha512-9KpxSVFCu0iK1owoez6aC/s/EdUQLDN3adTxGCqxMVhrPDj6bt5dbrHDXUuq+Bs2vATFBBrQS5vdQ/Ed2P+nbw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/esbuild": {
|
||||
"version": "0.25.10",
|
||||
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.10.tgz",
|
||||
"integrity": "sha512-9RiGKvCwaqxO2owP61uQ4BgNborAQskMR6QusfWzQqv7AZOg5oGehdY2pRJMTKuwxd1IDBP4rSbI5lHzU7SMsQ==",
|
||||
"dev": true,
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"esbuild": "bin/esbuild"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@esbuild/aix-ppc64": "0.25.10",
|
||||
"@esbuild/android-arm": "0.25.10",
|
||||
"@esbuild/android-arm64": "0.25.10",
|
||||
"@esbuild/android-x64": "0.25.10",
|
||||
"@esbuild/darwin-arm64": "0.25.10",
|
||||
"@esbuild/darwin-x64": "0.25.10",
|
||||
"@esbuild/freebsd-arm64": "0.25.10",
|
||||
"@esbuild/freebsd-x64": "0.25.10",
|
||||
"@esbuild/linux-arm": "0.25.10",
|
||||
"@esbuild/linux-arm64": "0.25.10",
|
||||
"@esbuild/linux-ia32": "0.25.10",
|
||||
"@esbuild/linux-loong64": "0.25.10",
|
||||
"@esbuild/linux-mips64el": "0.25.10",
|
||||
"@esbuild/linux-ppc64": "0.25.10",
|
||||
"@esbuild/linux-riscv64": "0.25.10",
|
||||
"@esbuild/linux-s390x": "0.25.10",
|
||||
"@esbuild/linux-x64": "0.25.10",
|
||||
"@esbuild/netbsd-arm64": "0.25.10",
|
||||
"@esbuild/netbsd-x64": "0.25.10",
|
||||
"@esbuild/openbsd-arm64": "0.25.10",
|
||||
"@esbuild/openbsd-x64": "0.25.10",
|
||||
"@esbuild/openharmony-arm64": "0.25.10",
|
||||
"@esbuild/sunos-x64": "0.25.10",
|
||||
"@esbuild/win32-arm64": "0.25.10",
|
||||
"@esbuild/win32-ia32": "0.25.10",
|
||||
"@esbuild/win32-x64": "0.25.10"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "gastinel-site-principal",
|
||||
"private": true,
|
||||
"description": "Build et déploiement de gastinel.me",
|
||||
"scripts": {
|
||||
"build": "node tools/build.js",
|
||||
"deploy": "node tools/deploy.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"esbuild": "0.25.10"
|
||||
}
|
||||
}
|
||||
Fichier binaire non affiché.
Fichier binaire non affiché.
+1
-1
@@ -3,7 +3,7 @@
|
||||
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
|
||||
<url>
|
||||
<loc>https://gastinel.me/</loc>
|
||||
<lastmod>2026-09-24</lastmod>
|
||||
<lastmod>2026-10-15</lastmod>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>1.0</priority>
|
||||
<image:image>
|
||||
|
||||
Fichier binaire non affiché.
Fichier binaire non affiché.
@@ -0,0 +1,194 @@
|
||||
#!/usr/bin/env node
|
||||
/**
|
||||
* tools/build.js
|
||||
*
|
||||
* Build de production de gastinel.me — Node natif + esbuild (minification JS ;
|
||||
* `npm install` une fois).
|
||||
*
|
||||
* Source : index.html (on continue à l'éditer tel quel, CSS/JS inline).
|
||||
* Sortie : dist/ (miroir de /srv/gastinel.me, prêt à déployer)
|
||||
* - index.html HTML allégé (commentaires, indentation retirés)
|
||||
* - assets/build/app.<hash>.css tous les <style> regroupés + minifiés
|
||||
* - assets/build/app.<hash>.js le script principal, minifié (esbuild), en defer
|
||||
* - assets/build/<police>.<hash>.woff2 polices renommées (cache immutable)
|
||||
* - assets/build/<section>.<hash>.html sections chargées à la demande (FRAGMENTS)
|
||||
* - llms.txt, robots.txt, sitemap.xml, data/news.json
|
||||
* - un .br et un .gz pour chaque fichier texte (Caddy: precompressed br gzip)
|
||||
* - build-manifest.json liste des fichiers + empreintes (utilisé par deploy.js)
|
||||
*
|
||||
* Usage : node tools/build.js
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const zlib = require('zlib');
|
||||
const crypto = require('crypto');
|
||||
|
||||
let esbuild;
|
||||
try {
|
||||
esbuild = require('esbuild');
|
||||
} catch (e) {
|
||||
console.error('esbuild manquant : lance `npm install` à la racine du projet.');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const ROOT = path.resolve(__dirname, '..');
|
||||
const DIST = path.join(ROOT, 'dist');
|
||||
const BUILD_DIR = 'assets/build';
|
||||
// Sections retirées du HTML initial (lourdes, peu utiles au référencement).
|
||||
const FRAGMENTS = ['termes'];
|
||||
const COPY_AS_IS =['llms.txt', 'robots.txt', 'sitemap.xml', 'data/news.json'];
|
||||
const COMPRESSIBLE = new Set(['.html', '.css', '.js', '.json', '.txt', '.xml', '.svg']);
|
||||
|
||||
const hash = (buf) => crypto.createHash('sha256').update(buf).digest('hex').slice(0, 10);
|
||||
const md5 = (buf) => crypto.createHash('md5').update(buf).digest('hex');
|
||||
const kb = (n) => (n / 1024).toFixed(1) + ' Ko';
|
||||
const brotli = (buf) => zlib.brotliCompressSync(buf, {
|
||||
params: {
|
||||
[zlib.constants.BROTLI_PARAM_QUALITY]: 11,
|
||||
[zlib.constants.BROTLI_PARAM_SIZE_HINT]: buf.length,
|
||||
},
|
||||
});
|
||||
|
||||
const outputs = {}; // chemin publié -> Buffer
|
||||
|
||||
function emit(relPath, content) {
|
||||
const buf = Buffer.isBuffer(content) ? content : Buffer.from(content, 'utf8');
|
||||
outputs[relPath] = buf;
|
||||
return relPath;
|
||||
}
|
||||
|
||||
// --- CSS ---------------------------------------------------------------------
|
||||
// Minification volontairement prudente : on ne touche ni aux combinateurs
|
||||
// (> + ~), ni aux espaces avant ':' (".a :hover" != ".a:hover"), ni à calc().
|
||||
// Les chaînes ("...", '...') sont mises de côté pour ne jamais être modifiées.
|
||||
function minifyCss(css) {
|
||||
const strings = [];
|
||||
return css
|
||||
.replace(/\/\*[\s\S]*?\*\//g, '')
|
||||
.replace(/"(?:\\.|[^"\\\n])*"|'(?:\\.|[^'\\\n])*'/g, (s) => `\u0000${strings.push(s) - 1}\u0000`)
|
||||
.replace(/\s+/g, ' ')
|
||||
.replace(/\s*([{};,])\s*/g, '$1')
|
||||
.replace(/:\s+/g, ':')
|
||||
.replace(/;}/g, '}')
|
||||
.replace(/\u0000(\d+)\u0000/g, (m, i) => strings[i])
|
||||
.trim();
|
||||
}
|
||||
|
||||
// --- HTML --------------------------------------------------------------------
|
||||
// Retire commentaires, indentation de début de ligne et lignes vides.
|
||||
// Sûr ici : aucun <pre>/<textarea> ni white-space:pre dans la page, et le seul
|
||||
// script restant inline est le JSON-LD (minifié à part).
|
||||
function minifyHtml(html) {
|
||||
return html
|
||||
.replace(/<!--(?!\[if)[\s\S]*?-->/g, '')
|
||||
.replace(/\n[ \t]+/g, '\n')
|
||||
.replace(/\n{2,}/g, '\n')
|
||||
.trim() + '\n';
|
||||
}
|
||||
|
||||
function build() {
|
||||
fs.rmSync(DIST, { recursive: true, force: true });
|
||||
|
||||
const srcPath = path.join(ROOT, 'index.html');
|
||||
// git (autocrlf) peut rendre la source en CRLF : on raisonne toujours en LF,
|
||||
// comme la prod, pour que les empreintes du garde-fou restent stables.
|
||||
const src = fs.readFileSync(srcPath, 'utf8').replace(/\r\n/g, '\n');
|
||||
if (/<pre[\s>]|<textarea[\s>]/i.test(src.replace(/<script[\s\S]*?<\/script>/gi, ''))) {
|
||||
throw new Error('<pre>/<textarea> détecté : la minification HTML doit être revue.');
|
||||
}
|
||||
let html = src;
|
||||
|
||||
// 1. Polices : copies renommées avec empreinte -> cache immutable possible.
|
||||
const fontMap = {};
|
||||
for (const ref of new Set(html.match(/assets\/fonts\/[\w.-]+\.woff2/g) || [])) {
|
||||
const buf = fs.readFileSync(path.join(ROOT, ref));
|
||||
const name = path.basename(ref, '.woff2') + '.' + hash(buf) + '.woff2';
|
||||
fontMap[ref] = emit(`${BUILD_DIR}/${name}`, buf);
|
||||
}
|
||||
|
||||
// 2. CSS : tous les <style> (head + body), dans l'ordre -> un seul fichier.
|
||||
const styles = [];
|
||||
let firstStyleAt = -1;
|
||||
html = html.replace(/<style>([\s\S]*?)<\/style>\n?/g, (m, css, offset) => {
|
||||
if (firstStyleAt < 0) firstStyleAt = offset;
|
||||
styles.push(css);
|
||||
return firstStyleAt === offset ? '<!--@@CSS@@-->' : '';
|
||||
});
|
||||
let css = minifyCss(styles.join('\n'));
|
||||
// Le CSS déménage dans assets/build/ : ses URL relatives deviennent absolues.
|
||||
css = css.replace(/url\((['"]?)(assets\/[^'")]+)\1\)/g, (m, q, ref) =>
|
||||
`url(${q}/${fontMap[ref] || ref}${q})`);
|
||||
const cssPath = emit(`${BUILD_DIR}/app.${hash(css)}.css`, css);
|
||||
|
||||
// 3. JS : le script principal (ni src, ni JSON-LD) -> fichier externe en defer.
|
||||
const scripts = [];
|
||||
html = html.replace(/<script>([\s\S]*?)<\/script>\n?/g, (m, js) => {
|
||||
scripts.push(js.trim());
|
||||
return '';
|
||||
});
|
||||
if (scripts.length !== 1) throw new Error(`1 script inline attendu, ${scripts.length} trouvé(s).`);
|
||||
const js = esbuild.transformSync(scripts[0], { minify: true, target: 'es2017' }).code;
|
||||
const jsPath = emit(`${BUILD_DIR}/app.${hash(js)}.js`, js);
|
||||
|
||||
html = html.replace('<!--@@CSS@@-->',
|
||||
`<link rel="stylesheet" href="${cssPath}">\n<script src="${jsPath}" defer></script>\n`);
|
||||
|
||||
// 3b. Sections externalisées : leur contenu part dans un fragment chargé à la
|
||||
// demande par le routeur (go -> loadFragment). Section de niveau 0 : se
|
||||
// termine par "\n</section>" en début de ligne.
|
||||
for (const id of FRAGMENTS) {
|
||||
const re = new RegExp(`(<section id="${id}" class="spa-section")>([\\s\\S]*?)\\n</section>\\n`);
|
||||
const m = html.match(re);
|
||||
if (!m) throw new Error(`Section #${id} introuvable pour le fragment.`);
|
||||
if (/<script|<style/i.test(m[2])) throw new Error(`#${id} contient du script/style inline.`);
|
||||
const frag = minifyHtml(m[2]);
|
||||
const fragPath = emit(`${BUILD_DIR}/${id}.${hash(frag)}.html`, frag);
|
||||
html = html.replace(re, `$1 data-fragment="${fragPath}"><p class="fragment-status">Chargement…</p></section>\n`);
|
||||
}
|
||||
|
||||
// 4. JSON-LD compacté.
|
||||
html = html.replace(/(<script type="application\/ld\+json">)([\s\S]*?)(<\/script>)/,
|
||||
(m, a, json, b) => a + JSON.stringify(JSON.parse(json)) + b);
|
||||
|
||||
// 5. Préchargements de polices -> versions avec empreinte.
|
||||
for (const [ref, out] of Object.entries(fontMap)) html = html.split(`"${ref}"`).join(`"${out}"`);
|
||||
|
||||
emit('index.html', minifyHtml(html));
|
||||
|
||||
// 6. Fichiers recopiés tels quels.
|
||||
for (const rel of COPY_AS_IS) emit(rel, fs.readFileSync(path.join(ROOT, rel)));
|
||||
|
||||
// 7. Écriture + précompression.
|
||||
const manifest = { source: { 'index.html': md5(Buffer.from(src, 'utf8')) }, files: {} };
|
||||
for (const [rel, buf] of Object.entries(outputs)) {
|
||||
const abs = path.join(DIST, rel);
|
||||
fs.mkdirSync(path.dirname(abs), { recursive: true });
|
||||
fs.writeFileSync(abs, buf);
|
||||
manifest.files[rel] = md5(buf);
|
||||
if (COMPRESSIBLE.has(path.extname(rel))) {
|
||||
fs.writeFileSync(abs + '.br', brotli(buf));
|
||||
fs.writeFileSync(abs + '.gz', zlib.gzipSync(buf, { level: 9 }));
|
||||
manifest.files[rel + '.br'] = md5(fs.readFileSync(abs + '.br'));
|
||||
manifest.files[rel + '.gz'] = md5(fs.readFileSync(abs + '.gz'));
|
||||
}
|
||||
}
|
||||
fs.writeFileSync(path.join(DIST, 'build-manifest.json'), JSON.stringify(manifest, null, 2) + '\n');
|
||||
|
||||
// 8. Rapport.
|
||||
const srcBuf = Buffer.from(src, 'utf8');
|
||||
const size = (rel) => outputs[rel].length;
|
||||
const br = (rel) => fs.statSync(path.join(DIST, rel + '.br')).size;
|
||||
const first = ['index.html', cssPath, jsPath];
|
||||
console.log('Build OK -> dist/');
|
||||
console.log(` source index.html : ${kb(srcBuf.length)} brut, ${kb(brotli(srcBuf).length)} br`);
|
||||
for (const rel of first) console.log(` ${rel.padEnd(38)} ${kb(size(rel)).padStart(9)} brut, ${kb(br(rel)).padStart(8)} br`);
|
||||
console.log(` 1re visite (HTML+CSS+JS, br) : ${kb(first.reduce((t, r) => t + br(r), 0))}`);
|
||||
console.log(` visite suivante (HTML seul, br) : ${kb(br('index.html'))}`);
|
||||
return manifest;
|
||||
}
|
||||
|
||||
if (require.main === module) build();
|
||||
module.exports = { build, DIST };
|
||||
@@ -0,0 +1,130 @@
|
||||
#!/usr/bin/env node
|
||||
/**
|
||||
* tools/deploy.js
|
||||
*
|
||||
* Build puis déploiement de dist/ vers la prod (cornafsuisse:/srv/gastinel.me).
|
||||
*
|
||||
* Garde-fou : avant d'écrire quoi que ce soit, vérifie que l'index.html en prod
|
||||
* est bien celui du dernier déploiement (deploy/last-deploy.json). Si quelqu'un
|
||||
* l'a modifié entre-temps (ex : publier.sh d'une release GWS), on s'arrête pour
|
||||
* ne pas écraser une version plus récente. --force pour passer outre.
|
||||
*
|
||||
* Ordre d'écriture : assets/build (nouveaux noms, sans risque) -> fichiers texte
|
||||
* envoyés dans un dossier temporaire puis renommés (mv atomique par fichier),
|
||||
* .br/.gz d'abord, index.html en dernier.
|
||||
*
|
||||
* Usage : node tools/deploy.js [--dry-run] [--force]
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const crypto = require('crypto');
|
||||
const { spawnSync } = require('child_process');
|
||||
const { build, DIST } = require('./build');
|
||||
|
||||
const HOST = 'cornafsuisse';
|
||||
const PROD = '/srv/gastinel.me';
|
||||
const SITE = 'https://gastinel.me';
|
||||
const STATE = path.resolve(__dirname, '..', 'deploy', 'last-deploy.json');
|
||||
const KEEP_PREVIOUS = true; // garde les assets du déploiement précédent (pages déjà ouvertes)
|
||||
|
||||
const args = new Set(process.argv.slice(2));
|
||||
const DRY = args.has('--dry-run');
|
||||
const FORCE = args.has('--force');
|
||||
|
||||
function run(cmd, argv, opts = {}) {
|
||||
const r = spawnSync(cmd, argv, { encoding: 'utf8', ...opts });
|
||||
if (r.status !== 0) {
|
||||
throw new Error(`${cmd} ${argv.join(' ')}\n${r.stderr || r.stdout || r.error}`);
|
||||
}
|
||||
return r.stdout;
|
||||
}
|
||||
const ssh = (script) => run('ssh', ['-o', 'BatchMode=yes', HOST, script]);
|
||||
const q = (s) => `'${s.replace(/'/g, `'\\''`)}'`;
|
||||
|
||||
async function main() {
|
||||
const manifest = build();
|
||||
const state = fs.existsSync(STATE) ? JSON.parse(fs.readFileSync(STATE, 'utf8')) : null;
|
||||
|
||||
// 1. Garde-fou : la prod est-elle celle qu'on a déployée la dernière fois ?
|
||||
// Premier déploiement : la prod doit contenir la source non construite.
|
||||
const expected = state ? state.files['index.html'] : manifest.source['index.html'];
|
||||
const prodMd5 = ssh(`md5sum ${PROD}/index.html | cut -d' ' -f1`).trim();
|
||||
if (prodMd5 !== expected && !FORCE) {
|
||||
console.error(
|
||||
`\nARRÊT : ${PROD}/index.html a été modifié hors de ce script.\n` +
|
||||
` attendu ${expected}, trouvé ${prodMd5}\n` +
|
||||
`Récupère d'abord la version en prod (ssh ${HOST} cat ${PROD}/index.html), reporte\n` +
|
||||
`les changements dans la source, puis relance. --force pour écraser quand même.`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const files = Object.keys(manifest.files);
|
||||
const assets = files.filter((f) => f.startsWith('assets/build/'));
|
||||
const texts = files.filter((f) => !f.startsWith('assets/build/'))
|
||||
// .br/.gz avant le fichier brut, index.html tout à la fin
|
||||
.sort((a, b) => rank(a) - rank(b));
|
||||
console.log(`\n${assets.length} assets, ${texts.length} fichiers texte -> ${HOST}:${PROD}`);
|
||||
if (DRY) { console.log('(dry-run : rien envoyé)'); return; }
|
||||
|
||||
// 2. Assets à empreinte : noms nouveaux, aucun conflit possible.
|
||||
ssh(`mkdir -p ${PROD}/assets/build ${PROD}/.deploy-tmp/data`);
|
||||
run('scp', ['-q', ...assets.map((f) => path.join(DIST, f)), `${HOST}:${PROD}/assets/build/`]);
|
||||
|
||||
// 3. Fichiers texte : dossier temporaire puis mv (même disque = atomique).
|
||||
for (const dir of [...new Set(texts.map((f) => path.posix.dirname(f)))]) {
|
||||
const group = texts.filter((f) => path.posix.dirname(f) === dir);
|
||||
run('scp', ['-q', ...group.map((f) => path.join(DIST, f)), `${HOST}:${PROD}/.deploy-tmp/${dir === '.' ? '' : dir + '/'}`]);
|
||||
}
|
||||
ssh(texts.map((f) => `mv -f ${q(`${PROD}/.deploy-tmp/${f}`)} ${q(`${PROD}/${f}`)}`).join(' && ') +
|
||||
` && rm -rf ${PROD}/.deploy-tmp`);
|
||||
|
||||
// 4. Vérification depuis Internet : bon HTML, servi en Brotli, assets joignables.
|
||||
await verify(manifest);
|
||||
|
||||
// 5. Ménage : supprime les assets/build qui ne sont ni actuels ni du déploiement précédent.
|
||||
const keep = new Set(assets.map((f) => path.posix.basename(f)));
|
||||
if (KEEP_PREVIOUS && state) {
|
||||
Object.keys(state.files).filter((f) => f.startsWith('assets/build/'))
|
||||
.forEach((f) => keep.add(path.posix.basename(f)));
|
||||
}
|
||||
const onServer = ssh(`ls -1 ${PROD}/assets/build`).split('\n').filter(Boolean);
|
||||
const stale = onServer.filter((f) => !keep.has(f));
|
||||
if (stale.length) {
|
||||
ssh(`cd ${PROD}/assets/build && rm -f ${stale.map(q).join(' ')}`);
|
||||
console.log(`Ménage : ${stale.length} ancien(s) fichier(s) supprimé(s).`);
|
||||
}
|
||||
|
||||
fs.writeFileSync(STATE, JSON.stringify({
|
||||
date: new Date().toISOString(),
|
||||
source: manifest.source,
|
||||
files: manifest.files,
|
||||
}, null, 2) + '\n');
|
||||
console.log(`Déploiement OK. État enregistré dans deploy/last-deploy.json (à commiter).`);
|
||||
}
|
||||
|
||||
function rank(f) {
|
||||
if (f === 'index.html') return 3;
|
||||
if (f.endsWith('.br') || f.endsWith('.gz')) return 1;
|
||||
return 2;
|
||||
}
|
||||
|
||||
async function verify(manifest) {
|
||||
const md5 = (b) => crypto.createHash('md5').update(b).digest('hex');
|
||||
const res = await fetch(SITE + '/', { headers: { 'accept-encoding': 'br' } });
|
||||
// fetch décompresse lui-même : on compare donc le HTML décodé au fichier construit.
|
||||
const body = Buffer.from(await res.arrayBuffer());
|
||||
const enc = res.headers.get('content-encoding');
|
||||
if (md5(body) !== manifest.files['index.html']) {
|
||||
throw new Error(`Vérification : le HTML servi ne correspond pas au build (encodage ${enc}).`);
|
||||
}
|
||||
for (const f of Object.keys(manifest.files).filter((f) => /^assets\/build\/[^/]+\.(css|js|woff2|html)$/.test(f))) {
|
||||
const r = await fetch(`${SITE}/${f}`, { method: 'HEAD' });
|
||||
if (!r.ok) throw new Error(`Vérification : ${f} -> HTTP ${r.status}`);
|
||||
}
|
||||
console.log(`Vérifié en ligne : HTML à jour (encodage ${enc || 'aucun'}), assets OK.`);
|
||||
}
|
||||
|
||||
main().catch((e) => { console.error('\nÉCHEC :', e.message); process.exit(1); });
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur