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:
+3
-3
@@ -153,7 +153,7 @@ The `parse` function accepts a string and returns `TokenData`, which can be used
|
||||
|
||||
`TokenData` has two properties:
|
||||
|
||||
- **tokens** A sequence of tokens, currently of types `text`, `param`, `wildcard`, or `group`.
|
||||
- **tokens** A sequence of tokens, currently of types `text`, `parameter`, `wildcard`, or `group`.
|
||||
- **originalPath** The original path used with `parse`, shown in error messages to assist debugging.
|
||||
|
||||
### Custom path
|
||||
@@ -165,13 +165,13 @@ import { match } from "path-to-regexp";
|
||||
|
||||
const tokens = [
|
||||
{ type: "text", value: "/" },
|
||||
{ type: "param", name: "foo" },
|
||||
{ type: "parameter", name: "foo" },
|
||||
];
|
||||
const originalPath = "/[foo]"; // To help debug error messages.
|
||||
const path = { tokens, originalPath };
|
||||
const fn = match(path);
|
||||
|
||||
fn("/test"); //=> { path: '/test', params: { foo: 'test' } }
|
||||
fn("/test"); //=> { path: '/test', index: 0, params: { foo: 'test' } }
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
Reference in New Issue
Block a user