From c07c79b31f1da86312d7986ca95657b95dec3b5a Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Fri, 18 Apr 2025 14:06:07 -0300 Subject: [PATCH 1/6] engine: add cookiebot --- docs/.vuepress/config.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 7644ec2ab..c6db8fe2a 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -63,6 +63,21 @@ export default defineUserConfig({ }, theme: hopeTheme(themeOptions,{custom: true}), head: [ + ['script', { + id: 'Cookiebot', + src: 'https://consent.cookiebot.com/uc.js', + 'data-cbid': 'ee971b30-e872-46e8-b421-706ef26d9dcc', + 'data-blockingmode': 'auto', + type: 'text/javascript', + }], + + ['script', { + id: 'CookieDeclaration', + src: 'https://consent.cookiebot.com/ee971b30-e872-46e8-b421-706ef26d9dcc/cd.js', + type: 'text/javascript', + async: true + }], + ['script', { src: 'https://widget.kapa.ai/kapa-widget.bundle.js', 'data-website-id': '9ff147dd-2c68-495d-9859-de159901d8c5', From b32f0ea1b5dc0fa118cac11c1704b63b70caf832 Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Fri, 18 Apr 2025 14:35:49 -0300 Subject: [PATCH 2/6] rearrange the snippets --- docs/.vuepress/config.ts | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index c6db8fe2a..b2c7cacbb 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -63,31 +63,50 @@ export default defineUserConfig({ }, theme: hopeTheme(themeOptions,{custom: true}), head: [ + + // Business Institution 247, before the user accepts cookie ['script', { + type: 'text/javascript', + src: 'https://secure.businessintuition247.com/js/264384.js', + }], + ['noscript', {}, + '' + ], + + // Cookiebot banner + ['script', { id: 'Cookiebot', src: 'https://consent.cookiebot.com/uc.js', 'data-cbid': 'ee971b30-e872-46e8-b421-706ef26d9dcc', 'data-blockingmode': 'auto', type: 'text/javascript', }], - + + // Cookiebot declaration ['script', { id: 'CookieDeclaration', src: 'https://consent.cookiebot.com/ee971b30-e872-46e8-b421-706ef26d9dcc/cd.js', type: 'text/javascript', - async: true + async: true, }], - ['script', { + ['script', { src: '/js/snippet.js' }], + + // Business Institution 247 “consent‑only” loader + ['script', { + type: 'text/plain', + 'data-cookiecategory': 'marketing', + src: 'https://secure.businessintuition247.com/js/sc/264384.js', + }], + + // Kapa helper widget + ['script', { src: 'https://widget.kapa.ai/kapa-widget.bundle.js', 'data-website-id': '9ff147dd-2c68-495d-9859-de159901d8c5', 'data-project-name': 'Kurrent', 'data-project-color': '#631B3A', 'data-project-logo': '/logo-white.png' }], - ['script', { src: "/js/snippet.js" }], - ['script', { type: "text/javascript", src: "https://secure.businessintuition247.com/js/sc/264384.js" }], - ['noscript', {}, ''] ], // add our own components for blog theme (Tutorials & Guides) alias: { From 840711cfdcb52f6d11e4a48868211cf7fb44fc4e Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Fri, 18 Apr 2025 17:59:22 -0300 Subject: [PATCH 3/6] test removal of cookie --- docs/.vuepress/config.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index b2c7cacbb..7f8b2027e 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -64,11 +64,7 @@ export default defineUserConfig({ theme: hopeTheme(themeOptions,{custom: true}), head: [ - // Business Institution 247, before the user accepts cookie - ['script', { - type: 'text/javascript', - src: 'https://secure.businessintuition247.com/js/264384.js', - }], + ['noscript', {}, '' ], From d19e617eb780d3c397c2f1c829ff580e0da3dbc7 Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Fri, 18 Apr 2025 18:05:50 -0300 Subject: [PATCH 4/6] Revert "test removal of cookie" This reverts commit 840711cfdcb52f6d11e4a48868211cf7fb44fc4e. --- docs/.vuepress/config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 7f8b2027e..b2c7cacbb 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -64,7 +64,11 @@ export default defineUserConfig({ theme: hopeTheme(themeOptions,{custom: true}), head: [ - + // Business Institution 247, before the user accepts cookie + ['script', { + type: 'text/javascript', + src: 'https://secure.businessintuition247.com/js/264384.js', + }], ['noscript', {}, '' ], From 76e591f4a50671a445438ec722cd736fb16b000e Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Fri, 18 Apr 2025 18:06:16 -0300 Subject: [PATCH 5/6] test forcing css --- docs/.vuepress/config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index b2c7cacbb..e9cef18a5 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -107,6 +107,10 @@ export default defineUserConfig({ 'data-project-color': '#631B3A', 'data-project-logo': '/logo-white.png' }], + + ['style', {}, ` + #redirect-modal-mask { display: none !important; } + `], ], // add our own components for blog theme (Tutorials & Guides) alias: { From 7470ff66bb4eb09d048cce93bb39ee72a9f83338 Mon Sep 17 00:00:00 2001 From: Paulo Borges Date: Mon, 21 Apr 2025 11:58:36 -0300 Subject: [PATCH 6/6] force css --- docs/.vuepress/config.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index e9cef18a5..3e6e3932f 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -108,9 +108,13 @@ export default defineUserConfig({ 'data-project-logo': '/logo-white.png' }], + // CSS override to hide the modal mask and wrapper entirely ['style', {}, ` - #redirect-modal-mask { display: none !important; } - `], + .redirect-modal-mask, + .redirect-modal-wrapper { + display: none !important; + } + `], ], // add our own components for blog theme (Tutorials & Guides) alias: {