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
-15
@@ -25,7 +25,6 @@ export class UnpackrStream extends Transform {
|
||||
options.objectMode = true
|
||||
super(options)
|
||||
options.structures = []
|
||||
this.maxIncompleteBufferSize = options.maxIncompleteBufferSize !== undefined ? options.maxIncompleteBufferSize : 0x4000000
|
||||
this.unpackr = options.unpackr || new Unpackr(options)
|
||||
}
|
||||
_transform(chunk, encoding, callback) {
|
||||
@@ -38,23 +37,19 @@ export class UnpackrStream extends Transform {
|
||||
values = this.unpackr.unpackMultiple(chunk)
|
||||
} catch(error) {
|
||||
if (error.incomplete) {
|
||||
let incompleteBuffer = chunk.slice(error.lastPosition)
|
||||
if (incompleteBuffer.length > this.maxIncompleteBufferSize) {
|
||||
this.incompleteBuffer = null
|
||||
return callback(new Error('Maximum incomplete buffer size exceeded'))
|
||||
}
|
||||
this.incompleteBuffer = incompleteBuffer
|
||||
this.incompleteBuffer = chunk.slice(error.lastPosition)
|
||||
values = error.values
|
||||
} else {
|
||||
return callback(error)
|
||||
}
|
||||
else
|
||||
throw error
|
||||
} finally {
|
||||
for (let value of values || []) {
|
||||
if (value === null)
|
||||
value = this.getNullValue()
|
||||
this.push(value)
|
||||
}
|
||||
}
|
||||
for (let value of values || []) {
|
||||
if (value === null)
|
||||
value = this.getNullValue()
|
||||
this.push(value)
|
||||
}
|
||||
callback()
|
||||
if (callback) callback()
|
||||
}
|
||||
getNullValue() {
|
||||
return Symbol.for(null)
|
||||
|
||||
Reference in New Issue
Block a user