fix(env): resolve 404 when loading env files and CSP inline script violation (#134)

The /envs endpoint now filters to only return env files that actually exist
on disk, and absolute env_file paths from compose files (e.g. shared
globals.env in a sibling directory) are no longer rejected. The inline
theme-detection script is moved to an external file to comply with CSP.
This commit is contained in:
Anso
2026-03-25 01:03:22 -04:00
committed by GitHub
parent cb5b25de8d
commit 1e6367a147
4 changed files with 37 additions and 20 deletions
+10
View File
@@ -0,0 +1,10 @@
(function () {
try {
var saved = localStorage.getItem('sencho-theme');
if (saved === 'light') {
document.documentElement.classList.remove('dark');
} else {
document.documentElement.classList.add('dark');
}
} catch (e) { }
})();