25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

37 satır
1.3 KiB

  1. export type CardType = 'INFO_PAGE' | 'EXTERNAL_LINK' | 'IMAGE_GALLERY' | 'SERVICE_REQUEST' | 'BOOK' | 'FULLSCREEN_LOCK';
  2. export type MediaItem = {
  3. url: string;
  4. autoplay?: boolean; // videos only — start playing as soon as the slide is shown
  5. muted?: boolean; // videos only — start muted (default: unmuted)
  6. };
  7. export interface Card {
  8. id: string;
  9. portalId: string;
  10. title: string;
  11. imageUrl: string;
  12. extraMedia?: MediaItem[];
  13. shortDescription: string;
  14. fullContent: string;
  15. cardType: CardType;
  16. actionUrl?: string;
  17. displayOrder: number;
  18. autoFullscreen?: boolean; // open the fullscreen viewer immediately when this card is clicked
  19. skipPreview?: boolean; // skip the modal preview AND exclude the cover image from the swipe sequence
  20. redirectOnClick?: boolean; // EXTERNAL_LINK only — click card to open the URL directly without showing the modal
  21. }
  22. export interface Portal {
  23. id: string;
  24. tenantId: string;
  25. title: string;
  26. welcomeText: string;
  27. heroImageUrl: string;
  28. logoUrl: string;
  29. themeColor: string;
  30. fadeHeroImage?: boolean;
  31. maxGridColumns?: number;
  32. externalLinkEnabled?: boolean; // se false, l'admin nasconde il tipo "External Link" nel dropdown
  33. fontFamily?: string; // nome del file in data/fonts/ (es. "Geist-Variable.woff2"). "" o undefined = Sistema (Arial)
  34. }