Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

42 Zeilen
1.7 KiB

  1. // NOTE: 'SERVICE_REQUEST' è presente nel type union ma non viene MAI esposto in admin
  2. // (manca dal dropdown del Card Type) né mai emerso/utilizzato a runtime: nessuna card
  3. // di questo tipo viene creata. Lo lasciamo per retro-compatibilità con eventuali
  4. // cards.txt di vecchie installazioni che lo contenessero. Per rimuoverlo del tutto
  5. // andrebbe tolto anche da VALID_CARD_TYPES in lib/validation.ts.
  6. export type CardType = 'INFO_PAGE' | 'EXTERNAL_LINK' | 'IMAGE_GALLERY' | 'SERVICE_REQUEST' | 'BOOK' | 'FULLSCREEN_LOCK';
  7. export type MediaItem = {
  8. url: string;
  9. autoplay?: boolean; // videos only — start playing as soon as the slide is shown
  10. muted?: boolean; // videos only — start muted (default: unmuted)
  11. };
  12. export interface Card {
  13. id: string;
  14. portalId: string;
  15. title: string;
  16. imageUrl: string;
  17. extraMedia?: MediaItem[];
  18. shortDescription: string;
  19. fullContent: string;
  20. cardType: CardType;
  21. actionUrl?: string;
  22. displayOrder: number;
  23. autoFullscreen?: boolean; // open the fullscreen viewer immediately when this card is clicked
  24. skipPreview?: boolean; // skip the modal preview AND exclude the cover image from the swipe sequence
  25. redirectOnClick?: boolean; // EXTERNAL_LINK only — click card to open the URL directly without showing the modal
  26. }
  27. export interface Portal {
  28. id: string;
  29. tenantId: string;
  30. title: string;
  31. welcomeText: string;
  32. heroImageUrl: string;
  33. logoUrl: string;
  34. themeColor: string;
  35. fadeHeroImage?: boolean;
  36. maxGridColumns?: number;
  37. externalLinkEnabled?: boolean; // se false, l'admin nasconde il tipo "External Link" nel dropdown
  38. fontFamily?: string; // nome del file in data/fonts/ (es. "Geist-Variable.woff2"). "" o undefined = Sistema (Arial)
  39. }