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:
-26
@@ -2,12 +2,7 @@
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.verifySubjectAlternativeName = verifySubjectAlternativeName;
|
||||
exports.verifyExtensions = verifyExtensions;
|
||||
exports.verifyOIDs = verifyOIDs;
|
||||
const error_1 = require("./error");
|
||||
// Verifies that the signer's SAN matches the policy identity. The
|
||||
// policyIdentity is treated as a JavaScript regular expression pattern and
|
||||
// tested against the full signerIdentity string. For exact matching, use
|
||||
// anchored patterns (e.g. '^user@example\\.com$').
|
||||
function verifySubjectAlternativeName(policyIdentity, signerIdentity) {
|
||||
if (signerIdentity === undefined || !signerIdentity.match(policyIdentity)) {
|
||||
throw new error_1.PolicyError({
|
||||
@@ -27,24 +22,3 @@ function verifyExtensions(policyExtensions, signerExtensions = {}) {
|
||||
}
|
||||
}
|
||||
}
|
||||
function verifyOIDs(policyOIDs, signerOIDs = []) {
|
||||
for (const policyOID of policyOIDs) {
|
||||
const match = signerOIDs.find((signerOID) => oidEquals(policyOID.oid?.id, signerOID.oid?.id) &&
|
||||
policyOID.value.equals(signerOID.value));
|
||||
if (!match) {
|
||||
/* istanbul ignore next */
|
||||
const oid = policyOID.oid?.id.join('.') ?? '<unknown>';
|
||||
throw new error_1.PolicyError({
|
||||
code: 'UNTRUSTED_SIGNER_ERROR',
|
||||
message: `invalid certificate extension - missing OID ${oid}`,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
function oidEquals(a, b) {
|
||||
/* istanbul ignore if */
|
||||
if (a === undefined || b === undefined) {
|
||||
return false;
|
||||
}
|
||||
return a.length === b.length && a.every((v, i) => v === b[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user