Glitchtip

This commit is contained in:
2026-11-30 12:33:49 +01:00
parent 3b288c2578
commit 519433fdf1
12 changed files with 1871 additions and 3 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
var _l=Object.defineProperty;var ml=(o,e,i)=>e in o?_l(o,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[e]=i;var G=(o,e,i)=>ml(o,typeof e!="symbol"?e+"":e,i);function mi(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function $o(o,e){o.prototype=Object.create(e.prototype),o.prototype.constructor=o,o.__proto__=e}/*!
var _l=Object.defineProperty;var ml=(o,e,i)=>e in o?_l(o,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[e]=i;var G=(o,e,i)=>ml(o,typeof e!="symbol"?e+"":e,i);(function(){try{var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new o.Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="bbcb9b46-522a-40c8-ad0c-a976530c2700",o._sentryDebugIdIdentifier="sentry-dbid-bbcb9b46-522a-40c8-ad0c-a976530c2700")}catch{}})();function mi(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function $o(o,e){o.prototype=Object.create(e.prototype),o.prototype.constructor=o,o.__proto__=e}/*!
* GSAP 3.15.0
* https://gsap.com
*
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,15 @@
// GlitchTip (Sentry front) pour le thème leshed.
// Entrée Vite dédiée, chargée dans le <head> avant main.js (librairie
// leshed/sentry) : les erreurs précoces sont capturées dès le premier script.
// La DSN est la clé PUBLIQUE du projet Glitchtip « leshed » (org figli) :
// embarquée dans le JS par design, elle n'est pas un secret.
import * as Sentry from '@sentry/browser';
Sentry.init({
dsn: 'https://1aeff3f1acac49409216ced9a2bf3b33@glitchtip.figli.io/3',
environment: import.meta.env.MODE,
// Injectée au build par vite.config.js (SHA git du sous-module src) : sert à
// rattacher chaque erreur à la release dont les sourcemaps ont été uploadées.
release: import.meta.env.VITE_SENTRY_RELEASE,
sendDefaultPii: false,
});
@@ -38,6 +38,24 @@ titles_hmr:
attributes:
type: module
# Glitchtip (Sentry front) : init au plus tôt, dans le head, avant main.js
# (voir assets/js/sentry.js).
sentry:
header: true
js:
assets/dist/sentry.js:
attributes:
type: module
defer: true
sentry_hmr:
header: true
js:
https://localhost:5173/assets/js/sentry.js:
type: external
attributes:
type: module
vitehmr:
js:
https://localhost:5173/@vite/client:
+2
View File
@@ -11,6 +11,7 @@ function leshed_page_attachments_alter(&$page) {
// $page['#attached']['library'][] = 'http://localhost:5173/@vite/client';
// $attachments['#attached']['html_head'][] = [['src' => 'http://localhost:5173/assets/js/main.js', 'type' => 'module'],'vite-main'];
// $page['#attached']['library'][] = 'http://localhost:5173/assets/js/main.js';
$page['#attached']['library'][] = 'leshed/sentry_hmr';
$page['#attached']['library'][] = 'leshed/vitehmr';
$page['#attached']['library'][] = 'leshed/titles_hmr';
// CSS compilée en <link> render-blocking : sans elle, la page se peint
@@ -20,6 +21,7 @@ function leshed_page_attachments_alter(&$page) {
// dessus sur les égalités.
$page['#attached']['library'][] = 'leshed/base_css';
}else{
$page['#attached']['library'][] = 'leshed/sentry';
$page['#attached']['library'][] = 'leshed/global';
$page['#attached']['library'][] = 'leshed/titles';
+663
View File
@@ -8,6 +8,7 @@
"name": "leshed",
"version": "0.0.0",
"dependencies": {
"@sentry/browser": "^11.20.0",
"axios": "^1.7.2",
"fslightbox": "^3.7.5",
"gsap": "^3.14.1",
@@ -17,6 +18,7 @@
"vue": "^3.4.29"
},
"devDependencies": {
"@sentry/vite-plugin": "^11.20.0",
"@vitejs/plugin-vue": "^5.0.5",
"concurrently": "^10.0.5",
"sass": "^1.77.8",
@@ -460,12 +462,376 @@
"node": ">=12"
}
},
"node_modules/@isaacs/nonrecursive-glob-match": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz",
"integrity": "sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==",
"dev": true,
"license": "BlueOak-1.0.0"
},
"node_modules/@jridgewell/sourcemap-codec": {
"version": "1.5.5",
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
"integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
"license": "MIT"
},
"node_modules/@oxc-parser/binding-android-arm-eabi": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-android-arm-eabi/-/binding-android-arm-eabi-0.152.0.tgz",
"integrity": "sha512-393VtirINkae4XHBTkq/yQxhOwEr4V+r0et37P2fp+sYZSdYgZTRDPo5Um8vBh0QjMZ+RmaMy4PP0qwr4cTMwA==",
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"android"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-android-arm64": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-android-arm64/-/binding-android-arm64-0.152.0.tgz",
"integrity": "sha512-iYFcExATJNZ0rZj0o02THbD1Nc9jAW0nVgIQPee6ejbSASpbZXlIMw8jxtpzaG14JQTWwGSZ6U5dEtRJXE6V3Q==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"android"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-darwin-arm64": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-darwin-arm64/-/binding-darwin-arm64-0.152.0.tgz",
"integrity": "sha512-fnU+DfUzi5/rFy0LzmipYRz06PAUUkOS8kCJQ3Eg6oqlunC1XZXoffFqxmdL51RmcbYtUG3P8DVG1U5fckoa2A==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-darwin-x64": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-darwin-x64/-/binding-darwin-x64-0.152.0.tgz",
"integrity": "sha512-Y3U2okryWTs7hDld6UhjJwLNf8/do+x4g4C+1U5SiGwrTLwbO83WJYJA8+l9iFSilWBgnfpd/+U76tfeNxUHzA==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-freebsd-x64": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-freebsd-x64/-/binding-freebsd-x64-0.152.0.tgz",
"integrity": "sha512-XkhkRrrPffEw+ZLv/d/5pEni0buxinm/E/N6fLbJCunD1DBbeCTtVP23ESV+4CWCWdSz397asks1ViGslpmWiQ==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"freebsd"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-linux-arm-gnueabihf": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-0.152.0.tgz",
"integrity": "sha512-MLzsRRbdfmdzo6JEhbC1yKU9ItfvM8tEf18HM32jCiNYZEz6J3bRBRl3cTkKR0vBdrk9ZVlcARXtwHccs+epDA==",
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-linux-arm-musleabihf": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-0.152.0.tgz",
"integrity": "sha512-HHerTEJz7Iy10Ji6BGsk4gqG6PU0UzFuBu91jIEOX89FnrI5ECWSEr7BLpkYQhp7U0QFtMnBhNfQKI0hYZK78w==",
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-linux-arm64-gnu": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-0.152.0.tgz",
"integrity": "sha512-9Bb8GyzZ2uSLzRDZ27usaKokr07mxiBe2dDF5b6bd2janmaJTT1gL51UfP7AU30yFiXrJvcRyFKREAgKwZYs0w==",
"cpu": [
"arm64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-linux-arm64-musl": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-arm64-musl/-/binding-linux-arm64-musl-0.152.0.tgz",
"integrity": "sha512-om7iDMUroI74A/lfRRWY9/Ev3VWrVsrUZ4tyvyh8raBey/sdcfyAD7tYWc+iykAiotnmftyKTpUKFr1QnaBrAQ==",
"cpu": [
"arm64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-linux-ppc64-gnu": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-0.152.0.tgz",
"integrity": "sha512-Lf1OL2lMTqwDMFC6jnRb30B+WYHKV0XT+bPHcFM6xHtNVwxpobiTzUIvKH6a0LWpvfwyru8Yu6zCGHqqFHH+gg==",
"cpu": [
"ppc64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-linux-riscv64-gnu": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-0.152.0.tgz",
"integrity": "sha512-BYWSMQK+YJ9ZILStPcmmiSVq8KEG9Qdq/c4BHPC3rUEq/fEDCVjUIwdj5ZzjgZ9P9is9PKu0tcAXzq1ZXg4urQ==",
"cpu": [
"riscv64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-linux-riscv64-musl": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-0.152.0.tgz",
"integrity": "sha512-d2LqHNNNqdH185sRK5dPKWZu201JrNu9/CRFuVEuT+ht7n/QaVblEMWT9MALQPrDWYvhG10P+NSKJFquDWZ09w==",
"cpu": [
"riscv64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-linux-s390x-gnu": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-0.152.0.tgz",
"integrity": "sha512-8gBeHt5rA/8+pKhHl+zLggfa3L/V/L2at96p7ty6pBE7id6lFO19nFUc15u2PcjC4OYeYK465MKy1fhhbpFIGw==",
"cpu": [
"s390x"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-linux-x64-gnu": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-x64-gnu/-/binding-linux-x64-gnu-0.152.0.tgz",
"integrity": "sha512-ltgrSF6L+yPTVsIdaAyqKq3zTqzj/1VlNbxWZuxAe8flR3sWdyNsKvdXukoO8/ucJbLickhmieRBge+o/e8Ugw==",
"cpu": [
"x64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-linux-x64-musl": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-linux-x64-musl/-/binding-linux-x64-musl-0.152.0.tgz",
"integrity": "sha512-LcMp6BvrBnewSfdkLHoSqidhoAq4syKOTBV5TYHWd+2VnGkfD/nPRRVIzTBt/Lkbt7pfOFDGtkiTntFS0p6sQQ==",
"cpu": [
"x64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-openharmony-arm64": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-openharmony-arm64/-/binding-openharmony-arm64-0.152.0.tgz",
"integrity": "sha512-jbhoMCslVxzRCRNQ8TSHxjYdSKRvk8O6ciLVDkahJvmyHDzBqba/bMQHM6ULKj/rgHNNbSzlIiakdx8SEfkJzA==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"openharmony"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-win32-arm64-msvc": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-0.152.0.tgz",
"integrity": "sha512-JZYVlhv36mr/nertnRB7vchJECOBb1Lz6lltalILsB+o9M/is+H6BEDRLQKdqA4JKs6NjJszo46+iM5sfwj6jQ==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-win32-ia32-msvc": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-0.152.0.tgz",
"integrity": "sha512-1X9oganvVsunRH0lH10UU05N+H9atpX6WsOybByUjwnfcd3h/0tYwvuv16XuHglrIUOnxV2TodbLVEwwafd64g==",
"cpu": [
"ia32"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-parser/binding-win32-x64-msvc": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-parser/binding-win32-x64-msvc/-/binding-win32-x64-msvc-0.152.0.tgz",
"integrity": "sha512-sw0M80/dn9rcpu+Rqqph/C+MjvDDce6MlXmFjsNQtPEymha0eJy3ml6+foSUTqFfpDIDyHZZ4eoJ43IoMe8bJw==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@oxc-project/types": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.152.0.tgz",
"integrity": "sha512-oM/5rLBm2tPkg0iBgkH/FOeR3PCDpY19GTgAZjMFM8h9WI9VW7cLgzp6nwtarYKmovavIQZ+Fe/RKX/8C8O/Rw==",
"dev": true,
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/oxc-project"
}
},
"node_modules/@parcel/watcher": {
"version": "2.5.6",
"resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.6.tgz",
@@ -1183,6 +1549,139 @@
"win32"
]
},
"node_modules/@sentry/browser": {
"version": "11.20.0",
"resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-11.20.0.tgz",
"integrity": "sha512-+1cHZo3HhUKNnCM3f8Tz+rzRPBe9Yb+fMeAUE53PAg3rea6H0H32kUPz4VXibbVyu85w83uny/x4wRl3mcmSxw==",
"license": "MIT",
"dependencies": {
"@sentry/browser-utils": "11.20.0",
"@sentry/conventions": "^0.36.0",
"@sentry/core": "11.20.0",
"@sentry/feedback": "11.20.0",
"@sentry/replay": "11.20.0",
"@sentry/replay-canvas": "11.20.0"
},
"engines": {
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
}
},
"node_modules/@sentry/browser-utils": {
"version": "11.20.0",
"resolved": "https://registry.npmjs.org/@sentry/browser-utils/-/browser-utils-11.20.0.tgz",
"integrity": "sha512-ALt8CFcORiVF+HnYq5lD6an++DMaCpzIe0PzwbnIbRqLw83JdQOJP1LetYNlXPsGArHxa/QY5CVHqT/24PP7EA==",
"license": "MIT",
"dependencies": {
"@sentry/conventions": "^0.36.0",
"@sentry/core": "11.20.0",
"web-vitals": "^6.2.3"
},
"engines": {
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
}
},
"node_modules/@sentry/bundler-plugins": {
"version": "11.20.0",
"resolved": "https://registry.npmjs.org/@sentry/bundler-plugins/-/bundler-plugins-11.20.0.tgz",
"integrity": "sha512-bJZ9ngEx9QTst8OlpxMDRLgkLZnUc45/qZ8OwaYfeOL1E2uCtrN6oWKVoUM7307Gm54KYeRoQ1HlZhDxAyi3SQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@sentry/core": "11.20.0",
"dotenv": "^17.4.2",
"glob": "^14.0.3",
"magic-string": "~0.30.8 || ^1.0.0",
"oxc-parser": "^0.152.0",
"sentry": "^0.50.0"
},
"engines": {
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
},
"peerDependencies": {
"rollup": ">=3.2.0",
"webpack": ">=5.1.0"
},
"peerDependenciesMeta": {
"rollup": {
"optional": true
},
"webpack": {
"optional": true
}
}
},
"node_modules/@sentry/conventions": {
"version": "0.36.0",
"resolved": "https://registry.npmjs.org/@sentry/conventions/-/conventions-0.36.0.tgz",
"integrity": "sha512-FedIjtJSiTZa3VARAds2ok7Q9Xt2LjrZJ1SeaxMvGhRgMw4V+eOaECGa/JbJWe30tw6yehE1W7T4HmgK5XJRTQ==",
"license": "MIT",
"engines": {
"node": ">=14"
}
},
"node_modules/@sentry/core": {
"version": "11.20.0",
"resolved": "https://registry.npmjs.org/@sentry/core/-/core-11.20.0.tgz",
"integrity": "sha512-ay0RpDFVsFzaRBeX8mGDygWkaNVoQbepz+pYu7t3aBP/E6+wFsQnP56bQjAonlHfPR/5zvgYCKUphLznnFiY+Q==",
"license": "MIT",
"dependencies": {
"@sentry/conventions": "^0.36.0"
},
"engines": {
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
}
},
"node_modules/@sentry/feedback": {
"version": "11.20.0",
"resolved": "https://registry.npmjs.org/@sentry/feedback/-/feedback-11.20.0.tgz",
"integrity": "sha512-EyMxgWWGI8Q4FdXbiY0cpdxlNMmjMX5UXMFJzGT/EvwRyC4dzyd2fugkVeuOcUGFM4PSIMcw21sMadHj8a3RMQ==",
"license": "MIT",
"dependencies": {
"@sentry/core": "11.20.0"
},
"engines": {
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
}
},
"node_modules/@sentry/replay": {
"version": "11.20.0",
"resolved": "https://registry.npmjs.org/@sentry/replay/-/replay-11.20.0.tgz",
"integrity": "sha512-jvIFcLrU/ZBnaFz13xoKBJUtBjVrjWhfND5uBKWejTPEqcnVWt0KvjpoPfqNQtHjCH5jnChqiXawplDXAwp/HQ==",
"license": "MIT",
"dependencies": {
"@sentry/browser-utils": "11.20.0",
"@sentry/core": "11.20.0"
},
"engines": {
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
}
},
"node_modules/@sentry/replay-canvas": {
"version": "11.20.0",
"resolved": "https://registry.npmjs.org/@sentry/replay-canvas/-/replay-canvas-11.20.0.tgz",
"integrity": "sha512-iViVT8oogsPcLf8npmyaqQgsE+xFTHC8YXdosZXUTJWgfcJqTe90x9r6K9bR0Ye3H2I9pHUi8HDorL1dEL4SMA==",
"license": "MIT",
"dependencies": {
"@sentry/core": "11.20.0",
"@sentry/replay": "11.20.0"
},
"engines": {
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
}
},
"node_modules/@sentry/vite-plugin": {
"version": "11.20.0",
"resolved": "https://registry.npmjs.org/@sentry/vite-plugin/-/vite-plugin-11.20.0.tgz",
"integrity": "sha512-y85kqz/7pC1nz6idlVbz13WacmKeIANPT+ZZgdTcyIkkisiURccN78G6jVqEuj+TR99zlz1SySbZ8phGzRLC8g==",
"dev": true,
"license": "MIT",
"dependencies": {
"@sentry/bundler-plugins": "11.20.0"
},
"engines": {
"node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0"
}
},
"node_modules/@types/estree": {
"version": "1.0.9",
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",
@@ -1360,6 +1859,29 @@
"proxy-from-env": "^2.1.0"
}
},
"node_modules/balanced-match": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
"integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
"dev": true,
"license": "MIT",
"engines": {
"node": "18 || 20 || >=22"
}
},
"node_modules/brace-expansion": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.1.2.tgz",
"integrity": "sha512-ELhY3JEerIBbhgW+rh0/8glkZAaMqn1x3BAvp3yTULSEGozMK/5PT6WTdBgsdvJqwwmv7MAQNOydfYbvK1Vgfw==",
"dev": true,
"license": "MIT",
"dependencies": {
"balanced-match": "^4.0.2"
},
"engines": {
"node": "20 || >=22"
}
},
"node_modules/call-bind-apply-helpers": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
@@ -1497,6 +2019,19 @@
"node": ">=8"
}
},
"node_modules/dotenv": {
"version": "17.4.2",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz",
"integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==",
"dev": true,
"license": "BSD-2-Clause",
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://dotenvx.com"
}
},
"node_modules/dunder-proto": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
@@ -1756,6 +2291,24 @@
"node": ">= 0.4"
}
},
"node_modules/glob": {
"version": "14.0.7",
"resolved": "https://registry.npmjs.org/glob/-/glob-14.0.7.tgz",
"integrity": "sha512-ob8P0VbyEjcLG2ycNYmzYhZj65kkcN5b7tt5moGhTq3rkXtuU8MB+i0GIzPtLnSHVF2DkK4M+nQRojDvsOGVJw==",
"dev": true,
"license": "BlueOak-1.0.0",
"dependencies": {
"minimatch": "^11.0.5",
"minipass": "^7.1.3",
"path-scurry": "^3.0.0"
},
"engines": {
"node": "18 || 20 || >=22"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/gopd": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
@@ -1895,6 +2448,16 @@
}
}
},
"node_modules/lru-cache": {
"version": "11.5.4",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.4.tgz",
"integrity": "sha512-B8nJCTi8JuSaDBg0tBdnImV6j5O2CXaqKfdj24ZTCFbyivN8KZ2Z+RL3aHjwJAfLutD9cNnObG4SIgW4gMufiw==",
"dev": true,
"license": "BlueOak-1.0.0",
"engines": {
"node": "20 || >=22"
}
},
"node_modules/magic-string": {
"version": "0.30.21",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
@@ -1934,6 +2497,33 @@
"node": ">= 0.6"
}
},
"node_modules/minimatch": {
"version": "11.0.9",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.9.tgz",
"integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==",
"dev": true,
"license": "BlueOak-1.0.0",
"dependencies": {
"@isaacs/nonrecursive-glob-match": "^1.1.0",
"brace-expansion": "^5.0.12"
},
"engines": {
"node": "20 || >=22"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/minipass": {
"version": "7.1.3",
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",
"integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",
"dev": true,
"license": "BlueOak-1.0.0",
"engines": {
"node": ">=16 || 14 >=14.17"
}
},
"node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
@@ -1966,6 +2556,60 @@
"license": "MIT",
"optional": true
},
"node_modules/oxc-parser": {
"version": "0.152.0",
"resolved": "https://registry.npmjs.org/oxc-parser/-/oxc-parser-0.152.0.tgz",
"integrity": "sha512-ZztsZgaCWmPeKYMdoTT5e0oV/oxD1NeLWNR3kAtr/G707cUPYaaozRlVDHLCGnszHJRszN9mJwmPNpqgwloC0A==",
"dev": true,
"license": "MIT",
"dependencies": {
"@oxc-project/types": "^0.152.0"
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
},
"funding": {
"url": "https://github.com/sponsors/oxc-project"
},
"optionalDependencies": {
"@oxc-parser/binding-android-arm-eabi": "0.152.0",
"@oxc-parser/binding-android-arm64": "0.152.0",
"@oxc-parser/binding-darwin-arm64": "0.152.0",
"@oxc-parser/binding-darwin-x64": "0.152.0",
"@oxc-parser/binding-freebsd-x64": "0.152.0",
"@oxc-parser/binding-linux-arm-gnueabihf": "0.152.0",
"@oxc-parser/binding-linux-arm-musleabihf": "0.152.0",
"@oxc-parser/binding-linux-arm64-gnu": "0.152.0",
"@oxc-parser/binding-linux-arm64-musl": "0.152.0",
"@oxc-parser/binding-linux-ppc64-gnu": "0.152.0",
"@oxc-parser/binding-linux-riscv64-gnu": "0.152.0",
"@oxc-parser/binding-linux-riscv64-musl": "0.152.0",
"@oxc-parser/binding-linux-s390x-gnu": "0.152.0",
"@oxc-parser/binding-linux-x64-gnu": "0.152.0",
"@oxc-parser/binding-linux-x64-musl": "0.152.0",
"@oxc-parser/binding-openharmony-arm64": "0.152.0",
"@oxc-parser/binding-win32-arm64-msvc": "0.152.0",
"@oxc-parser/binding-win32-ia32-msvc": "0.152.0",
"@oxc-parser/binding-win32-x64-msvc": "0.152.0"
}
},
"node_modules/path-scurry": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-3.0.3.tgz",
"integrity": "sha512-Ie3c3F+7WJOUCr0r8V8uEunY5Sj4PGFDoBZvFw7JmHJs/+H5GZK+GsIM8tHMcZy7c27Zj+U1NOcVzqlC7tBJpg==",
"dev": true,
"license": "BlueOak-1.0.0",
"dependencies": {
"lru-cache": "^11.0.0",
"minipass": "^7.1.2"
},
"engines": {
"node": "18 || 20 || >=22"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/picocolors": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
@@ -2113,6 +2757,19 @@
"@parcel/watcher": "^2.4.1"
}
},
"node_modules/sentry": {
"version": "0.50.0",
"resolved": "https://registry.npmjs.org/sentry/-/sentry-0.50.0.tgz",
"integrity": "sha512-2BCdoK4xO3mN4c0QTXaMtJBJ9rjL5v1VawaV7Wd605hVWVrpZTipLbjGHEFavS8IliI0W68TGi8CuScbHALPjA==",
"dev": true,
"license": "FSL-1.1-Apache-2.0",
"bin": {
"sentry": "dist/bin.cjs"
},
"engines": {
"node": ">=20.0"
}
},
"node_modules/shell-quote": {
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.9.0.tgz",
@@ -2286,6 +2943,12 @@
}
}
},
"node_modules/web-vitals": {
"version": "6.2.3",
"resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-6.2.3.tgz",
"integrity": "sha512-Dmy+vdO1UPMqXiAtZSNayhl4f794Bxfd94W4HIj2HlYtczEQfEOon969memlcpcHrTuOKLa5baFjX7WbgmOq+A==",
"license": "Apache-2.0"
},
"node_modules/wrap-ansi": {
"version": "9.0.2",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz",
+2
View File
@@ -10,6 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"@sentry/browser": "^11.20.0",
"axios": "^1.7.2",
"fslightbox": "^3.7.5",
"gsap": "^3.14.1",
@@ -19,6 +20,7 @@
"vue": "^3.4.29"
},
"devDependencies": {
"@sentry/vite-plugin": "^11.20.0",
"@vitejs/plugin-vue": "^5.0.5",
"concurrently": "^10.0.5",
"sass": "^1.77.8",
+50 -1
View File
@@ -1,7 +1,9 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { sentryVitePlugin } from '@sentry/vite-plugin'
import { fileURLToPath, URL } from 'node:url'
import { readFileSync } from 'node:fs'
import { execSync } from 'node:child_process'
// Certificat mkcert wildcard du reverse-proxy (SAN: localhost, 127.0.0.1,
// *.localhost, ... trusté par la CA locale) : permet de servir le dev server
@@ -10,8 +12,48 @@ const TLS_CERT = fileURLToPath(new URL('../../../../../../reverse-proxy/certs/wi
const TLS_KEY = fileURLToPath(new URL('../../../../../../reverse-proxy/certs/wildcard.localhost-key.pem', import.meta.url))
// https://vitejs.dev/config/
// Upload des sourcemaps vers Glitchtip à la fin du build (prod uniquement —
// inactif sur le dev server). Le token n'est JAMAIS écrit en dur dans ce
// fichier : il est lu depuis l'env (GLITCHTIP_TOKEN) ; sans token, le plugin
// est désactivé et le build reste possible partout (CI comprise).
// Les debug IDs injectés dans les bundles sont lus automatiquement par le
// SDK browser (v8+) : pas besoin de configurer de release côté client.
// Release = SHA git du sous-module src (le build tourne à la racine du thème,
// dans ce repo git) : chaque commit buildé crée une release Glitchtip à laquelle
// les sourcemaps sont attachées, et le SDK client envoie la même valeur.
const gitSha = (() => {
try {
return execSync('git rev-parse HEAD').toString().trim()
} catch {
return 'unknown'
}
})()
const glitchtipSourcemaps =
process.env.GLITCHTIP_TOKEN && process.env.APP_ENV !== 'development'
? sentryVitePlugin({
url: 'https://glitchtip.figli.io/',
org: 'figli',
project: 'leshed',
authToken: process.env.GLITCHTIP_TOKEN,
release: { name: gitSha, inject: false },
sourcemaps: {
assets: 'assets/dist/**',
ignore: ['node_modules/**'],
// .map supprimés de assets/dist après l'upload : ils embarquent le
// code source (sourcesContent) et ne doivent pas être servis
// publiquement par Drupal.
delete: true,
},
})
: null
export default defineConfig({
plugins: [vue()],
plugins: [vue(), ...(glitchtipSourcemaps ? [glitchtipSourcemaps] : [])],
define: {
// Release exposée au bundle (lu dans assets/js/sentry.js).
'import.meta.env.VITE_SENTRY_RELEASE': JSON.stringify(gitSha),
},
esbuild: {
// Marque console.log comme "pure" : esbuild le retire du build minifié
// (console.warn/error sont conservés). Sans effet en dev server.
@@ -69,11 +111,18 @@ export default defineConfig({
},
build: {
outDir: 'assets/dist',
// Sourcemaps pour Glitchtip (@sentry/vite-plugin les upload au build puis
// les supprime de dist) : mode "hidden" = .map générés SANS le commentaire
// sourceMappingURL, donc jamais servis au navigateur (le code source
// embarqué dans sourcesContent ne fuite pas publiquement).
sourcemap: 'hidden',
rollupOptions: {
// titles.js est chargé à part dans le <head> (librairie leshed/titles).
input: {
main: 'assets/js/main.js',
titles: 'assets/js/titles.js',
// Chargé à part dans le <head> avant main.js (librairie leshed/sentry).
sentry: 'assets/js/sentry.js',
},
output: {
entryFileNames: '[name].js',