diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 004b22c..e848002 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -59,4 +59,4 @@ body: label: What version of ODS Charts are you using? placeholder: "e.g., v1.0.0" validations: - required: true \ No newline at end of file + required: true diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index bb494f8..90ed3e9 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -26,4 +26,4 @@ body: label: Motivation and context description: Tell us why this change is needed or helpful, and what problems it may help solve. validations: - required: true \ No newline at end of file + required: true diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2253745..2e64cd6 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -30,7 +30,7 @@ updates: groups: angular-ngx-echarts-all-deps: patterns: - - "*" + - "*" - package-ecosystem: npm directory: "/test/angular-echarts" labels: @@ -41,7 +41,7 @@ updates: groups: angular-echarts-all-deps: patterns: - - "*" + - "*" - package-ecosystem: npm directory: "/test/react" labels: @@ -52,7 +52,7 @@ updates: groups: react-all-deps: patterns: - - "*" + - "*" - package-ecosystem: npm directory: "/test/vue" labels: @@ -63,4 +63,4 @@ updates: groups: vue-all-deps: patterns: - - "*" + - "*" diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 9c98717..38a11cc 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community. Examples of behavior that contributes to a positive environment for our community include: -* Demonstrating empathy and kindness toward other people -* Being respectful of differing opinions, viewpoints, and experiences -* Giving and gracefully accepting constructive feedback -* Accepting responsibility and apologizing to those affected by our mistakes, +- Demonstrating empathy and kindness toward other people +- Being respectful of differing opinions, viewpoints, and experiences +- Giving and gracefully accepting constructive feedback +- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience -* Focusing on what is best not just for us as individuals, but for the +- Focusing on what is best not just for us as individuals, but for the overall community Examples of unacceptable behavior include: -* The use of sexualized language or imagery, and sexual attention or +- The use of sexualized language or imagery, and sexual attention or advances of any kind -* Trolling, insulting or derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or email +- Trolling, insulting or derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or email address, without their explicit permission -* Other conduct which could reasonably be considered inappropriate in a +- Other conduct which could reasonably be considered inappropriate in a professional setting ## Enforcement Responsibilities @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban. ### 4. Permanent Ban **Community Impact**: Demonstrating a pattern of violation of community -standards, including sustained inappropriate behavior, harassment of an +standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. **Consequence**: A permanent ban from any sort of public interaction within diff --git a/DEVELOP.md b/DEVELOP.md index 1211d96..c5d0290 100644 --- a/DEVELOP.md +++ b/DEVELOP.md @@ -22,5 +22,6 @@ npm run serve ``` The server will be available at `http://localhost:3000/`: + - Test files are located at `http://localhost:3000/test`. - Documentation is located at `http://localhost:3000/docs`. diff --git a/build/add_head.mjs b/build/add_head.mjs index ae5c822..1691cbc 100644 --- a/build/add_head.mjs +++ b/build/add_head.mjs @@ -1,5 +1,5 @@ -import fs from "node:fs"; -import path from "node:path"; +import fs from 'node:fs'; +import path from 'node:path'; function fromDir(startPath, filter, prefix = '../') { const favicon = ` @@ -26,10 +26,13 @@ function fromDir(startPath, filter, prefix = '../') { if (stat.isDirectory()) { fromDir(filename, filter, `${prefix}../`); } else if (filename.endsWith(filter)) { - fs.writeFileSync(filename, fs.readFileSync(filename).toString().replace("
", `${boosted_CSS}${favicon}`).replace("", `\n${cookies}\n`)); - }; - }; -}; + fs.writeFileSync( + filename, + fs.readFileSync(filename).toString().replace('', `${boosted_CSS}${favicon}`).replace('', `\n${cookies}\n`) + ); + } + } +} -console.log(`\n\nAdding cookies to API files\n`) +console.log(`\n\nAdding cookies to API files\n`); fromDir('./docs/api', '.html'); diff --git a/build/bump-copyright-year.mjs b/build/bump-copyright-year.mjs index 25e3588..5416155 100644 --- a/build/bump-copyright-year.mjs +++ b/build/bump-copyright-year.mjs @@ -1,19 +1,25 @@ -import fs from "node:fs"; -import path from "node:path"; +import fs from 'node:fs'; +import path from 'node:path'; function fromDir(startPath, filter) { var files = fs.readdirSync(startPath); for (var i = 0; i < files.length; i++) { var filename = path.join(startPath, files[i]); var stat = fs.lstatSync(filename); - if (stat.isDirectory() && !filename.endsWith("node_modules") && !filename.endsWith("dist") && !filename.endsWith("docs/api")) { + if (stat.isDirectory() && !filename.endsWith('node_modules') && !filename.endsWith('dist') && !filename.endsWith('docs/api')) { fromDir(filename, filter); } else if (filename.endsWith(filter)) { console.log(`Bump copyright year in ${filename}`); - fs.writeFileSync(filename, fs.readFileSync(filename).toString().replaceAll(/(\d{4,} - )\d{4,}/g, `$1${new Date().getFullYear()}`)); - }; - }; -}; + fs.writeFileSync( + filename, + fs + .readFileSync(filename) + .toString() + .replaceAll(/(\d{4,} - )\d{4,}/g, `$1${new Date().getFullYear()}`) + ); + } + } +} console.log(`Bump copyright year\n`); fromDir('./src', ''); diff --git a/docs/assets/tarteaucitron-config.css b/docs/assets/tarteaucitron-config.css index 561c363..ad7d215 100644 --- a/docs/assets/tarteaucitron-config.css +++ b/docs/assets/tarteaucitron-config.css @@ -3,222 +3,222 @@ * See https://github.com/Orange-OpenSource/Orange-Boosted-Bootstrap/blob/main/site/assets/scss/_tarteaucitron.scss */ [id="tarteaucitron"] { - position:fixed; - left:50%; - z-index:1055; - display:none; - width:100%; - padding:1.25rem 0; - background-color:var(--bs-body-bg); - background-clip:padding-box; - border:var(--bs-border-width) solid var(--bs-border-color-subtle); - transform:translateX(-50%) + position: fixed; + left: 50%; + z-index: 1055; + display: none; + width: 100%; + padding: 1.25rem 0; + background-color: var(--bs-body-bg); + background-clip: padding-box; + border: var(--bs-border-width) solid var(--bs-border-color-subtle); + transform: translateX(-50%); } [id="tarteaucitron"] [role="heading"] { - display:block; - font-weight:700 + display: block; + font-weight: 700; } @media (min-width: 480px) { [id="tarteaucitron"] { - max-width:300px; - margin:1.875rem auto + max-width: 300px; + margin: 1.875rem auto; } } @media (min-width: 768px) { [id="tarteaucitron"] { - max-width:460px + max-width: 460px; } } @media (min-width: 1024px) { [id="tarteaucitron"] { - max-width:787.5px + max-width: 787.5px; } } @media (min-width: 1280px) { [id="tarteaucitron"] { - max-width:1175px + max-width: 1175px; } } [id="tarteaucitronRoot"] { - position:absolute; - top:0; - right:0; - left:0; - z-index:1055; - width:100% + position: absolute; + top: 0; + right: 0; + left: 0; + z-index: 1055; + width: 100%; } [id="tarteaucitronAlertBig"] { - position:fixed; - right:0; - bottom:0; - left:0; - display:none; - align-items:center; - padding:1.25rem calc((100% - var(--max-width, 312px)) / 2); - font-weight:700; - color:#fff; - background:#000; - border-top:var(--bs-border-width) solid var(--bs-border-color-subtle); - --max-width: 312px + position: fixed; + right: 0; + bottom: 0; + left: 0; + display: none; + align-items: center; + padding: 1.25rem calc((100% - var(--max-width, 312px)) / 2); + font-weight: 700; + color: #fff; + background: #000; + border-top: var(--bs-border-width) solid var(--bs-border-color-subtle); + --max-width: 312px; } [id="tarteaucitronAlertBig"][style*="display: block"] { - display:flex !important; - flex-wrap:wrap; - justify-content:center + display: flex !important; + flex-wrap: wrap; + justify-content: center; } @media (min-width: 480px) { [id="tarteaucitronAlertBig"] { - --max-width: 468px + --max-width: 468px; } } @media (min-width: 768px) { [id="tarteaucitronAlertBig"] { - --max-width: 744px + --max-width: 744px; } } @media (min-width: 1024px) { [id="tarteaucitronAlertBig"] { - --max-width: 960px + --max-width: 960px; } } @media (min-width: 1280px) { [id="tarteaucitronAlertBig"] { - --max-width: 1200px + --max-width: 1200px; } } @media (min-width: 1440px) { [id="tarteaucitronAlertBig"] { - --max-width: 1320px + --max-width: 1320px; } } [id="tarteaucitronDisclaimerAlert"] { - font-size:.875rem + font-size: 0.875rem; } [id="tarteaucitronClosePanel"] { - position:absolute; - right:1.25rem 0; - margin:-.625rem calc(var(--bs-icon-spacing, calc(.625rem - (var(--bs-border-width)))) * -1) calc(var(--bs-icon-spacing, calc(.625rem - (var(--bs-border-width)))) * -1) auto; - overflow:hidden; - text-indent:2ch; - white-space:nowrap + position: absolute; + right: 1.25rem 0; + margin: -0.625rem calc(var(--bs-icon-spacing, calc(0.625rem - (var(--bs-border-width)))) * -1) calc(var(--bs-icon-spacing, calc(0.625rem - (var(--bs-border-width)))) * -1) auto; + overflow: hidden; + text-indent: 2ch; + white-space: nowrap; } [id="tarteaucitronBack"] { - position:fixed; - top:0; - left:0; - z-index:1050; - display:none; - width:100%; - height:100%; - margin:0 !important; - background:#000; - border:0; - opacity:.5 + position: fixed; + top: 0; + left: 0; + z-index: 1050; + display: none; + width: 100%; + height: 100%; + margin: 0 !important; + background: #000; + border: 0; + opacity: 0.5; } .tarteaucitronH1 { - margin-bottom:1.25rem; - font-size:1.875rem; - letter-spacing:-.05rem + margin-bottom: 1.25rem; + font-size: 1.875rem; + letter-spacing: -0.05rem; } .tarteaucitronH2 { - padding-top:.125rem; - font-size:1.25rem; - letter-spacing:-.025rem + padding-top: 0.125rem; + font-size: 1.25rem; + letter-spacing: -0.025rem; } .tarteaucitronH3 { - font-size:1rem; - letter-spacing:-.00625rem + font-size: 1rem; + letter-spacing: -0.00625rem; } [id="tarteaucitronInfo"] { - padding:.625rem 0; - margin-bottom:1.25rem; - font-weight:700 + padding: 0.625rem 0; + margin-bottom: 1.25rem; + font-weight: 700; } .tarteaucitronName { - float:left; - font-size:.875rem; - color:var(--bs-secondary-color) + float: left; + font-size: 0.875rem; + color: var(--bs-secondary-color); } .tarteaucitronAsk { - float:right + float: right; } .tarteaucitronLine { - overflow:visible + overflow: visible; } .tarteaucitronLine::after { - display:block; - clear:both; - content:"" + display: block; + clear: both; + content: ""; } .tarteaucitronMainLine { - padding-bottom:1.25rem; - margin-bottom:1.25rem; - border-bottom:var(--bs-border-width) solid var(--bs-border-color-subtle) + padding-bottom: 1.25rem; + margin-bottom: 1.25rem; + border-bottom: var(--bs-border-width) solid var(--bs-border-color-subtle); } [id="tarteaucitronServices"] { - overflow:visible !important + overflow: visible !important; } [id="tarteaucitronServices"] ul { - padding-left:0; - margin-bottom:0; - list-style:none + padding-left: 0; + margin-bottom: 0; + list-style: none; } .tarteaucitronSelfLink { - position:absolute; - right:1.25rem 0; - bottom:calc(-1.875rem + var(--bs-border-width)); - padding:.3125rem .625rem; - color:#fff; - background-color:#000 + position: absolute; + right: 1.25rem 0; + bottom: calc(-1.875rem + var(--bs-border-width)); + padding: 0.3125rem 0.625rem; + color: #fff; + background-color: #000; } .tarteaucitronAllow { - min-width:.875rem; - min-height:.875rem + min-width: 0.875rem; + min-height: 0.875rem; } .tarteaucitronAllow::before { - display:block; - min-width:inherit; - min-height:inherit; - content:""; - background-color:currentcolor; - -webkit-mask:var(--bs-check-icon) no-repeat 50% / .875rem .875rem; - mask:var(--bs-check-icon) no-repeat 50% / .875rem .875rem + display: block; + min-width: inherit; + min-height: inherit; + content: ""; + background-color: currentcolor; + -webkit-mask: var(--bs-check-icon) no-repeat 50% / 0.875rem 0.875rem; + mask: var(--bs-check-icon) no-repeat 50% / 0.875rem 0.875rem; } .tarteaucitronAllow::before { - margin-right:.3125rem + margin-right: 0.3125rem; } .tarteaucitronDeny { - min-width:.875rem; - min-height:.875rem + min-width: 0.875rem; + min-height: 0.875rem; } .tarteaucitronDeny::before { - display:block; - min-width:inherit; - min-height:inherit; - content:""; - background-color:currentcolor; - -webkit-mask:var(--bs-close-icon) no-repeat 50% / .875rem .875rem; - mask:var(--bs-close-icon) no-repeat 50% / .875rem .875rem + display: block; + min-width: inherit; + min-height: inherit; + content: ""; + background-color: currentcolor; + -webkit-mask: var(--bs-close-icon) no-repeat 50% / 0.875rem 0.875rem; + mask: var(--bs-close-icon) no-repeat 50% / 0.875rem 0.875rem; } .tarteaucitronDeny::before { - margin-right:.3125rem + margin-right: 0.3125rem; } .catToggleBtn, .tarteaucitronHidden, .tarteaucitronInfoBox, -.tarteaucitronListCookies+br { - display:none +.tarteaucitronListCookies + br { + display: none; } .tac_visually-hidden { - width:1px !important; - height:1px !important; - padding:0 !important; - margin:-1px !important; - overflow:hidden !important; - clip:rect(0, 0, 0, 0) !important; - white-space:nowrap !important; - border:0 !important + width: 1px !important; + height: 1px !important; + padding: 0 !important; + margin: -1px !important; + overflow: hidden !important; + clip: rect(0, 0, 0, 0) !important; + white-space: nowrap !important; + border: 0 !important; } .tac_visually-hidden:not(caption) { - position:absolute !important + position: absolute !important; } diff --git a/docs/assets/tarteaucitron-config.js b/docs/assets/tarteaucitron-config.js index 37f5586..f163b7f 100644 --- a/docs/assets/tarteaucitron-config.js +++ b/docs/assets/tarteaucitron-config.js @@ -3,74 +3,95 @@ * See https://github.com/Orange-OpenSource/Orange-Boosted-Bootstrap/blob/main/site/assets/js/tac.js. */ (function () { - 'use strict' - - window.addEventListener('tac.root_available', () => { - const tac = document.getElementById('tarteaucitron') - - tac.querySelectorAll('.tarteaucitronAllow').forEach(button => { - button.classList.add('btn', 'btn-sm', 'btn-success', 'my-2', 'my-lg-0') - button.innerHTML = tarteaucitron.lang.allowAll - }) - - tac.querySelectorAll('.tarteaucitronDeny').forEach(button => { - button.classList.add('btn', 'btn-sm', 'btn-danger', 'my-2', 'my-lg-0', 'ms-lg-2') - button.innerHTML = tarteaucitron.lang.denyAll - }) - - document.getElementById('tarteaucitron').classList.add('p-3') - - document.getElementById('tarteaucitronClosePanel').classList.add('d-flex', 'align-content-end', 'position-relative', 'btn-close') - document.getElementById('tarteaucitronClosePanel').innerHTML = - `${document.getElementById('tarteaucitronClosePanel').innerHTML}` - }, { once: true }) - - window.addEventListener('tac.open_alert', () => { - const alert = document.getElementById('tarteaucitronAlertBig') - - alert.setAttribute('data-bs-theme', 'dark') - - document.getElementById('tarteaucitronCloseAlert').classList.add('btn', 'btn-sm', 'btn-secondary', 'ms-lg-2') - alert.querySelector('.tarteaucitronAllow').classList.add('btn', 'btn-sm', 'btn-success', 'mx-sm-2', 'ms-lg-auto', 'my-2', 'my-lg-0') - alert.querySelector('.tarteaucitronAllow').innerHTML = tarteaucitron.lang.acceptAll - alert.querySelector('.tarteaucitronDeny').classList.add('btn', 'btn-sm', 'btn-danger', 'mx-sm-2', 'my-2', 'my-lg-0') - alert.querySelector('.tarteaucitronDeny').innerHTML = tarteaucitron.lang.denyAll - }, { once: true }) - - window.addEventListener('tac.open_panel', () => { - document.getElementById('tarteaucitronSaveButton').classList.add('btn', 'btn-secondary', 'd-flex', 'mt-3', 'mx-auto') - - document.querySelectorAll('#tarteaucitronServices_api button').forEach(button => { - button.classList.add('btn', 'btn-sm', 'ms-2') - }) - const allowConsentButton = document.querySelector('#tarteaucitronAllAllowed') - const denyConsentButton = document.querySelector('#tarteaucitronAllDenied') - const checkboxes = document.querySelectorAll('.form-check-input') - - allowConsentButton.addEventListener('click', () => { - for (let i = 0; i < checkboxes.length; i++) { - if (!checkboxes.checked) { - checkboxes[i].checked = true + 'use strict'; + + window.addEventListener( + 'tac.root_available', + () => { + const tac = document.getElementById('tarteaucitron'); + + tac.querySelectorAll('.tarteaucitronAllow').forEach((button) => { + button.classList.add('btn', 'btn-sm', 'btn-success', 'my-2', 'my-lg-0'); + button.innerHTML = tarteaucitron.lang.allowAll; + }); + + tac.querySelectorAll('.tarteaucitronDeny').forEach((button) => { + button.classList.add('btn', 'btn-sm', 'btn-danger', 'my-2', 'my-lg-0', 'ms-lg-2'); + button.innerHTML = tarteaucitron.lang.denyAll; + }); + + document.getElementById('tarteaucitron').classList.add('p-3'); + + document.getElementById('tarteaucitronClosePanel').classList.add('d-flex', 'align-content-end', 'position-relative', 'btn-close'); + document.getElementById('tarteaucitronClosePanel').innerHTML = + `${document.getElementById('tarteaucitronClosePanel').innerHTML}`; + }, + { once: true } + ); + + window.addEventListener( + 'tac.open_alert', + () => { + const alert = document.getElementById('tarteaucitronAlertBig'); + + alert.setAttribute('data-bs-theme', 'dark'); + + document.getElementById('tarteaucitronCloseAlert').classList.add('btn', 'btn-sm', 'btn-secondary', 'ms-lg-2'); + alert.querySelector('.tarteaucitronAllow').classList.add('btn', 'btn-sm', 'btn-success', 'mx-sm-2', 'ms-lg-auto', 'my-2', 'my-lg-0'); + alert.querySelector('.tarteaucitronAllow').innerHTML = tarteaucitron.lang.acceptAll; + alert.querySelector('.tarteaucitronDeny').classList.add('btn', 'btn-sm', 'btn-danger', 'mx-sm-2', 'my-2', 'my-lg-0'); + alert.querySelector('.tarteaucitronDeny').innerHTML = tarteaucitron.lang.denyAll; + }, + { once: true } + ); + + window.addEventListener( + 'tac.open_panel', + () => { + document.getElementById('tarteaucitronSaveButton').classList.add('btn', 'btn-secondary', 'd-flex', 'mt-3', 'mx-auto'); + + document.querySelectorAll('#tarteaucitronServices_api button').forEach((button) => { + button.classList.add('btn', 'btn-sm', 'ms-2'); + }); + const allowConsentButton = document.querySelector('#tarteaucitronAllAllowed'); + const denyConsentButton = document.querySelector('#tarteaucitronAllDenied'); + const checkboxes = document.querySelectorAll('.form-check-input'); + + allowConsentButton.addEventListener('click', () => { + for (let i = 0; i < checkboxes.length; i++) { + if (!checkboxes.checked) { + checkboxes[i].checked = true; + } } - } - }) - denyConsentButton.addEventListener('click', () => { - for (let i = 0; i < checkboxes.length; i++) { - if (checkboxes.checked !== true) { - checkboxes[i].checked = false + }); + denyConsentButton.addEventListener('click', () => { + for (let i = 0; i < checkboxes.length; i++) { + if (checkboxes.checked !== true) { + checkboxes[i].checked = false; + } } - } - }) - }, { once: true }) - - document.addEventListener('googletagmanager_added', () => { - const ask = document.querySelector('#googletagmanagerLine .tarteaucitronAsk') - const choiceEvent = 'tarteaucitron.userInterface.respond(document.getElementById(\'googletagmanagerAllowed\'),document.getElementById(\'googletagmanagerAllowed\').checked);' - const toggle = document.createRange().createContextualFragment(``) - ask.innerHTML = '' - ask.append(toggle) - }, { once: true }) -})() + }); + }, + { once: true } + ); + + document.addEventListener( + 'googletagmanager_added', + () => { + const ask = document.querySelector('#googletagmanagerLine .tarteaucitronAsk'); + const choiceEvent = + "tarteaucitron.userInterface.respond(document.getElementById('googletagmanagerAllowed'),document.getElementById('googletagmanagerAllowed').checked);"; + const toggle = document + .createRange() + .createContextualFragment( + `` + ); + ask.innerHTML = ''; + ask.append(toggle); + }, + { once: true } + ); +})(); if (typeof tarteaucitron !== 'undefined') { tarteaucitron.init({ @@ -85,17 +106,19 @@ if (typeof tarteaucitron !== 'undefined') { useExternalCss: true, mandatory: false, googleConsentMode: false, - partnersList: true - }) + partnersList: true, + }); tarteaucitron.user.googletagmanagerId = 'GTM-P6H78BQ'; - (tarteaucitron.job = tarteaucitron.job || []).push('googletagmanager') - dataLayer = [{ - site_name: 'ODS-Charts', - phase: 'prod', - page_type: 'doc', - page_title: document.title - }] + (tarteaucitron.job = tarteaucitron.job || []).push('googletagmanager'); + dataLayer = [ + { + site_name: 'ODS-Charts', + phase: 'prod', + page_type: 'doc', + page_title: document.title, + }, + ]; } tarteaucitron.services.googletagmanager = { @@ -104,18 +127,41 @@ tarteaucitron.services.googletagmanager = { name: 'Google Tag Manager', uri: 'https://policies.google.com/privacy', needConsent: true, - cookies: ['_ga', '_gat', '__utma', '__utmb', '__utmc', '__utmt', '__utmz', '__gads', '_drt_', 'FLC', 'exchange_uid', 'id', 'fc', 'rrs', 'rds', 'rv', 'uid', 'UIDR', 'UID', 'clid', 'ipinfo', 'acs'], + cookies: [ + '_ga', + '_gat', + '__utma', + '__utmb', + '__utmc', + '__utmt', + '__utmz', + '__gads', + '_drt_', + 'FLC', + 'exchange_uid', + 'id', + 'fc', + 'rrs', + 'rds', + 'rv', + 'uid', + 'UIDR', + 'UID', + 'clid', + 'ipinfo', + 'acs', + ], js() { - 'use strict' + 'use strict'; if (tarteaucitron.user.googletagmanagerId === undefined) { - return + return; } - window.dataLayer = window.dataLayer || [] + window.dataLayer = window.dataLayer || []; window.dataLayer.push({ 'gtm.start': new Date().getTime(), - event: 'gtm.js' - }) - tarteaucitron.addScript(`https://www.googletagmanager.com/gtm.js?id=${tarteaucitron.user.googletagmanagerId}`) - } -} + 'event': 'gtm.js', + }); + tarteaucitron.addScript(`https://www.googletagmanager.com/gtm.js?id=${tarteaucitron.user.googletagmanagerId}`); + }, +}; diff --git a/docs/examples/bar-chart.html b/docs/examples/bar-chart.html index 2bb3c98..8de29cd 100644 --- a/docs/examples/bar-chart.html +++ b/docs/examples/bar-chart.html @@ -1,20 +1,20 @@ - +