654b297e2e
- 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>
39 lines
1018 B
JavaScript
39 lines
1018 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Signature = void 0;
|
|
/**
|
|
* A container class containing information about a signature.
|
|
*
|
|
* Contains a signature and the keyid uniquely identifying the key used
|
|
* to generate the signature.
|
|
*
|
|
* Provide a `fromJSON` method to create a Signature from a JSON object.
|
|
*/
|
|
class Signature {
|
|
constructor(options) {
|
|
const { keyID, sig } = options;
|
|
this.keyID = keyID;
|
|
this.sig = sig;
|
|
}
|
|
toJSON() {
|
|
return {
|
|
keyid: this.keyID,
|
|
sig: this.sig,
|
|
};
|
|
}
|
|
static fromJSON(data) {
|
|
const { keyid, sig } = data;
|
|
if (typeof keyid !== 'string') {
|
|
throw new TypeError('keyid must be a string');
|
|
}
|
|
if (typeof sig !== 'string') {
|
|
throw new TypeError('sig must be a string');
|
|
}
|
|
return new Signature({
|
|
keyID: keyid,
|
|
sig: sig,
|
|
});
|
|
}
|
|
}
|
|
exports.Signature = Signature;
|