feat(planning): grille hebdomadaire complète avec API et filtres
- Connexion API via proxy Angular (résolution CORS, base path /api) - Import CSS ng-zorro global pour les modales et composants - Filtres Camion/Show câblés sur l'affichage de la grille - Camions affichés via TrucksService (linkés au show du même créneau) - Panneau de détails : spectacles + camions du jour sélectionné - Modale de création de spectacle stylisée avec fond et centrage - Positionnement précis des events à la minute dans leur créneau - Auto-scroll vers l'heure courante au chargement - Ligne "maintenant" sur la colonne du jour actuel - Régénération des services OpenAPI (nouveaux noms de types) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+10
-42
@@ -1,50 +1,21 @@
|
||||
const { existsSync } = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const { platform, arch, report } = require('node:process');
|
||||
const { spawnSync } = require('node:child_process');
|
||||
|
||||
const getReportHeader = () => {
|
||||
const isMusl = () => {
|
||||
try {
|
||||
if (platform !== 'win32') {
|
||||
return report.getReport().header;
|
||||
}
|
||||
|
||||
// This is needed because report.getReport() crashes the process on Windows sometimes.
|
||||
const script =
|
||||
"console.log(JSON.stringify(require('node:process').report.getReport().header));";
|
||||
const child = spawnSync(process.execPath, ['-p', script], {
|
||||
encoding: 'utf8',
|
||||
timeout: 3000,
|
||||
windowsHide: true
|
||||
});
|
||||
|
||||
if (child.status !== 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// The output from node -p might include a trailing 'undefined' and newline
|
||||
const stdout = child.stdout?.replace(/undefined\r?\n?$/, '').trim();
|
||||
if (!stdout) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return JSON.parse(stdout);
|
||||
return !report.getReport().header.glibcVersionRuntime;
|
||||
} catch {
|
||||
return null;
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
let reportHeader;
|
||||
const isMingw32 = () => {
|
||||
reportHeader ??= getReportHeader();
|
||||
|
||||
return reportHeader?.osName?.startsWith('MINGW32_NT') ?? false;
|
||||
};
|
||||
|
||||
const isMusl = () => {
|
||||
reportHeader ??= getReportHeader();
|
||||
|
||||
return reportHeader ? !reportHeader.glibcVersionRuntime : false;
|
||||
try {
|
||||
return report.getReport().header.osName.startsWith('MINGW32_NT');
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
const bindingsByPlatformAndArch = {
|
||||
@@ -63,15 +34,12 @@ const bindingsByPlatformAndArch = {
|
||||
linux: {
|
||||
arm: { base: 'linux-arm-gnueabihf', musl: 'linux-arm-musleabihf' },
|
||||
arm64: { base: 'linux-arm64-gnu', musl: 'linux-arm64-musl' },
|
||||
loong64: { base: 'linux-loong64-gnu', musl: 'linux-loong64-musl' },
|
||||
ppc64: { base: 'linux-ppc64-gnu', musl: 'linux-ppc64-musl' },
|
||||
loong64: { base: 'linux-loong64-gnu', musl: null },
|
||||
ppc64: { base: 'linux-ppc64-gnu', musl: null },
|
||||
riscv64: { base: 'linux-riscv64-gnu', musl: 'linux-riscv64-musl' },
|
||||
s390x: { base: 'linux-s390x-gnu', musl: null },
|
||||
x64: { base: 'linux-x64-gnu', musl: 'linux-x64-musl' }
|
||||
},
|
||||
openbsd: {
|
||||
x64: { base: 'openbsd-x64' }
|
||||
},
|
||||
openharmony: {
|
||||
arm64: { base: 'openharmony-arm64' }
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user