Amélioration de l'UI : meilleur affichage des images que ce soit dans la partie lore ou la partie campagne (partie campagne : visualisation scrapbooking). Possibilité de réordonner les champs dans les templates...
Passage v0.3.0
This commit is contained in:
@@ -36,8 +36,11 @@ export interface Arc {
|
||||
/** IDs des pages du Lore liées à cet arc (weak cross-context refs). */
|
||||
relatedPageIds?: string[];
|
||||
|
||||
/** IDs des images (Shared Kernel) illustrant cet arc. */
|
||||
/** IDs des images (Shared Kernel) illustrant cet arc (ambiance). */
|
||||
illustrationImageIds?: string[];
|
||||
|
||||
/** IDs des images utilisees comme cartes / plans (outil de table). */
|
||||
mapImageIds?: string[];
|
||||
}
|
||||
|
||||
// Payload pour la création d'un Arc (pas d'id)
|
||||
@@ -55,6 +58,7 @@ export interface ArcCreate {
|
||||
|
||||
relatedPageIds?: string[];
|
||||
illustrationImageIds?: string[];
|
||||
mapImageIds?: string[];
|
||||
}
|
||||
|
||||
export interface Chapter {
|
||||
@@ -71,6 +75,7 @@ export interface Chapter {
|
||||
|
||||
relatedPageIds?: string[];
|
||||
illustrationImageIds?: string[];
|
||||
mapImageIds?: string[];
|
||||
}
|
||||
|
||||
export interface ChapterCreate {
|
||||
@@ -85,6 +90,7 @@ export interface ChapterCreate {
|
||||
|
||||
relatedPageIds?: string[];
|
||||
illustrationImageIds?: string[];
|
||||
mapImageIds?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -116,6 +122,7 @@ export interface Scene {
|
||||
|
||||
relatedPageIds?: string[];
|
||||
illustrationImageIds?: string[];
|
||||
mapImageIds?: string[];
|
||||
|
||||
/** Sorties narratives (graphe intra-chapitre). */
|
||||
branches?: SceneBranch[];
|
||||
@@ -138,5 +145,6 @@ export interface SceneCreate {
|
||||
|
||||
relatedPageIds?: string[];
|
||||
illustrationImageIds?: string[];
|
||||
mapImageIds?: string[];
|
||||
branches?: SceneBranch[];
|
||||
}
|
||||
|
||||
@@ -7,6 +7,16 @@
|
||||
*/
|
||||
export type FieldType = 'TEXT' | 'IMAGE';
|
||||
|
||||
/**
|
||||
* Variante de rendu pour un champ IMAGE. Miroir de
|
||||
* com.loremind.domain.lorecontext.ImageLayout. Ignore pour TEXT.
|
||||
* - 'GALLERY' : grille de vignettes (defaut)
|
||||
* - 'HERO' : premiere image en banniere, suivantes en petit
|
||||
* - 'MASONRY' : mosaique hauteurs variables
|
||||
* - 'CAROUSEL' : defilement horizontal
|
||||
*/
|
||||
export type ImageLayout = 'GALLERY' | 'HERO' | 'MASONRY' | 'CAROUSEL' | 'EDITORIAL' | 'MAPS';
|
||||
|
||||
/**
|
||||
* Champ d'un Template : nom + type discriminant.
|
||||
* Miroir de TemplateFieldDTO (backend).
|
||||
@@ -14,6 +24,8 @@ export type FieldType = 'TEXT' | 'IMAGE';
|
||||
export interface TemplateField {
|
||||
name: string;
|
||||
type: FieldType;
|
||||
/** Uniquement pour type='IMAGE'. Absent/null = 'GALLERY'. */
|
||||
layout?: ImageLayout | null;
|
||||
}
|
||||
|
||||
export interface Template {
|
||||
|
||||
Reference in New Issue
Block a user