@gouvfr/dsfr-roller
Version:
Le module `dsfr-roller` permet de publier le site de documentation du Système de Design de l’État - DSFR
35 lines (34 loc) • 2.04 kB
JavaScript
export default function (link) {
return {
privacyUrl: link /* Privacy policy url */,
bodyPosition:
'top' /* or top to bring it as first element for accessibility */,
hashtag: '#consent-modal' /* Open the panel with this hashtag */,
cookieName: 'tarteaucitron' /* Cookie name */,
orientation: 'bottom' /* Banner position (top - bottom) */,
groupServices: false /* Group services by category */,
showDetailsOnClick: false /* Click to expand the description */,
serviceDefaultState: 'wait' /* Default state (true - wait - false) */,
showAlertSmall: false /* Show the small banner on bottom right */,
cookieslist: false /* Show the cookie list */,
closePopup: false /* Show a close X on the banner */,
showIcon: false /* Show cookie icon to manage cookies */,
// "iconSrc": "", /* Optionnal: URL or base64 encoded image */
iconPosition:
'BottomRight' /* BottomRight, BottomLeft, TopRight and TopLeft */,
adblocker: false /* Show a Warning if an adblocker is detected */,
DenyAllCta: true /* Show the deny all button */,
AcceptAllCta: true /* Show the accept all button when highPrivacy on */,
highPrivacy: true /* HIGHLY RECOMMANDED Disable auto consent */,
handleBrowserDNTRequest: false /* If Do Not Track == 1, disallow all */,
removeCredit: true /* Remove credit link */,
moreInfoLink: true /* Show more info link */,
useExternalCss: true /* If false, the tarteaucitron.css file will be loaded */,
useExternalJs: true /* If false, the tarteaucitron.js file will be loaded */,
// "cookieDomain": ".my-multisite-domaine.fr", /* Shared cookie for multisite */
readmoreLink: link /* Change the default readmore link */,
mandatory: false /* Show a message about mandatory cookies */,
mandatoryCta: true /* Show the disabled accept button when mandatory on */,
// "customCloserId": "" /* Optional a11y: Custom element ID used to open the panel */
};
}