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:
+21
-23
@@ -10,15 +10,13 @@
|
||||
* @returns A new EventSource parser, with `parse` and `reset` methods.
|
||||
* @public
|
||||
*/
|
||||
export declare function createParser(
|
||||
callbacks: ParserCallbacks,
|
||||
): EventSourceParser;
|
||||
export declare function createParser(callbacks: ParserCallbacks): EventSourceParser
|
||||
|
||||
/**
|
||||
* The type of error that occurred.
|
||||
* @public
|
||||
*/
|
||||
export declare type ErrorType = "invalid-retry" | "unknown-field";
|
||||
export declare type ErrorType = 'invalid-retry' | 'unknown-field'
|
||||
|
||||
/**
|
||||
* A parsed EventSource message event
|
||||
@@ -31,16 +29,16 @@ export declare interface EventSourceMessage {
|
||||
* implementation in that browsers will default this to `message`, whereas this parser will
|
||||
* leave this as `undefined` if not explicitly declared.
|
||||
*/
|
||||
event?: string | undefined;
|
||||
event?: string | undefined
|
||||
/**
|
||||
* ID of the message, if any was provided by the server. Can be used by clients to keep the
|
||||
* last received message ID in sync when reconnecting.
|
||||
*/
|
||||
id?: string | undefined;
|
||||
id?: string | undefined
|
||||
/**
|
||||
* The data received for this message
|
||||
*/
|
||||
data: string;
|
||||
data: string
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -59,7 +57,7 @@ export declare interface EventSourceParser {
|
||||
* @param chunk - The chunk to parse. Can be a partial, eg in the case of streaming messages.
|
||||
* @public
|
||||
*/
|
||||
feed(chunk: string): void;
|
||||
feed(chunk: string): void
|
||||
/**
|
||||
* Resets the parser state. This is required when you have a new stream of messages -
|
||||
* for instance in the case of a client being disconnected and reconnecting.
|
||||
@@ -71,7 +69,7 @@ export declare interface EventSourceParser {
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
reset(options?: { consume?: boolean }): void;
|
||||
reset(options?: {consume?: boolean}): void
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -83,28 +81,28 @@ export declare class ParseError extends Error {
|
||||
/**
|
||||
* The type of error that occurred.
|
||||
*/
|
||||
type: ErrorType;
|
||||
type: ErrorType
|
||||
/**
|
||||
* In the case of an unknown field encountered in the stream, this will be the field name.
|
||||
*/
|
||||
field?: string | undefined;
|
||||
field?: string | undefined
|
||||
/**
|
||||
* In the case of an unknown field encountered in the stream, this will be the value of the field.
|
||||
*/
|
||||
value?: string | undefined;
|
||||
value?: string | undefined
|
||||
/**
|
||||
* The line that caused the error, if available.
|
||||
*/
|
||||
line?: string | undefined;
|
||||
line?: string | undefined
|
||||
constructor(
|
||||
message: string,
|
||||
options: {
|
||||
type: ErrorType;
|
||||
field?: string;
|
||||
value?: string;
|
||||
line?: string;
|
||||
type: ErrorType
|
||||
field?: string
|
||||
value?: string
|
||||
line?: string
|
||||
},
|
||||
);
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -120,19 +118,19 @@ export declare interface ParserCallbacks {
|
||||
*
|
||||
* @param event - The parsed event/message
|
||||
*/
|
||||
onEvent?: ((event: EventSourceMessage) => void) | undefined;
|
||||
onEvent?: ((event: EventSourceMessage) => void) | undefined
|
||||
/**
|
||||
* Callback for when the server sends a new reconnection interval through the `retry` field.
|
||||
*
|
||||
* @param retry - The number of milliseconds to wait before reconnecting.
|
||||
*/
|
||||
onRetry?: ((retry: number) => void) | undefined;
|
||||
onRetry?: ((retry: number) => void) | undefined
|
||||
/**
|
||||
* Callback for when a comment is encountered in the stream.
|
||||
*
|
||||
* @param comment - The comment encountered in the stream.
|
||||
*/
|
||||
onComment?: ((comment: string) => void) | undefined;
|
||||
onComment?: ((comment: string) => void) | undefined
|
||||
/**
|
||||
* Callback for when an error occurs during parsing. This is a catch-all for any errors
|
||||
* that occur during parsing, and can be used to handle them in a custom way. Most clients
|
||||
@@ -140,7 +138,7 @@ export declare interface ParserCallbacks {
|
||||
*
|
||||
* @param error - The error that occurred during parsing
|
||||
*/
|
||||
onError?: ((error: ParseError) => void) | undefined;
|
||||
onError?: ((error: ParseError) => void) | undefined
|
||||
}
|
||||
|
||||
export {};
|
||||
export {}
|
||||
|
||||
Reference in New Issue
Block a user