Giter Site home page Giter Site logo

cf_cookiemanager's People

Contributors

beltshassar avatar eibiflo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cf_cookiemanager's Issues

Problems with translations from iframemanager

contrary to a system with typo3 v11 and cf_cookiemanager v1.4.4 the translation of buttons and text on embedded videos (vimeo) does not work in a new installation with typo3 v12 and cf_cookiemanager v1.6. these are always displayed in German. configuration is the same as in the working example except it is a multidomain installation with .com is handling the EN-pages and .de the German version.
can you retrace the issue?

user_config.languages[lang] is undefined

Hi, I get an js-error:

Uncaught TypeError: user_config.languages[lang] is undefined
_createConsentModal http://DOMAIN.TLD/_assets/0495dc5aa206d96a6c2bfbe3dbb13f6d/JavaScript/thirdparty/consent.js?1696231373:442
_createCookieConsentHTML http://DOMAIN.TLD/_assets/0495dc5aa206d96a6c2bfbe3dbb13f6d/JavaScript/thirdparty/consent.js?1696231373:1096
run http://DOMAIN.TLD/_assets/0495dc5aa206d96a6c2bfbe3dbb13f6d/JavaScript/thirdparty/consent.js?1696231373:1694
http://DOMAIN.TLD/#:2286
EventListener.handleEvent* http://DOMAIN.TLD/#:2196

I use the latest Version in Composer-Mode in TYPO3 V12
The site-configuration is "DE" . I have the following debug-log:

CookieConsent [CONFIG]: received_config_settings
Object { languages: {…}, onAccept: onAccept(), onChange: onChange(cookie, changed_preferences)
}
consent.js:192:12
CookieConsent [LANG]: auto_language strategy is 'null' consent.js:256:21
CookieConsent _config.current_lang en consent.js:259:12

Why is "_config.current_lang" = "en" and not "de"? In the backendconfiguration of cf_cookiemanager the language is set to "de"

Please help.

Jacques

CSP and the eval func

Hi,
First of all, thanks for the great extension. I am currently preparing everything for my site, but unfortunately you use an eval-function in the JS, which undermines the concept of a content security policy.
As a workaround I have allowed "unsafe-eval", but you shouldn't actually do that, otherwise you can omit the CSP:
new Mutation( MutationMode::Extend, Directive::ScriptSrc, SourceKeyword::unsafeEval, ),

I don't know exactly why you need this eval function in js, but is there any way to avoid it? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval?retiredLocale=de#never_use_eval!

The code is from vendor/codingfreaks/cf-cookiemanager/Classes/Utility/JavaScriptObfuscator.php:131

Thank you :)

"updateScan" not in Repository

Hi,
thanks for the great extension. In version 1.4.1 you have removed the "updateScan" method from the repository. This leads to a 503 error message when clicking on the "start a new scan" button:
'The method "updateScan" is not supported by the repository'
In my case, I simply copied the method back into the repository. The backend of the extension can now be used again.
I use TYPO3 11.5.32 with version 1.4.1

Greetings
Jacques

Backend internal link wrong in frontend

Hi,

If select a internal page at Dsgvo Link in the backend Cookies settings, it does not become a link in the frontend but writes directly t3://page?uid=20 and target _blank although nothing was selected at Target.
<a target="_blank" href="t3://page?uid=20">Provider</a>

It would be more flexible to insert the target only when selected.

Dead-end in the tutorial

Minor detail:
The "next" button on the Layout/Customize step during the tutorial is click-able, but seems to lead to a dead-end.
I would expect the next-button to be disabled, forcing me to click on the "Customize"-pane.

Best Regards

Daniel D.

image

Add LICENSE.txt

It is currently unclear under which license the code was released. In the readme the MIT license is mentioned. In the composer.json GPL-2.0-or-later.

Please add a LICENSE.txt for clarification.

CookieFrontendRepository API queries

Can you extend queries for API insert so that modal layout, transition, position etc. can also be set by the API.

CookieFrontendRepository.php

$frontendModel->setLayoutConsentModal("cloud");
$frontendModel->setTransitionConsentModal("slide");
$frontendModel->setPositionConsentModal("bottom center");

$frontendModel->setLayoutSettings("box");
$frontendModel->setTransitionSettings("slide");

Preview Image for External Media

It would be nice to show a preview image instead of the black background until the user has given consent to Youtube, Vimeo etc.

Start configuration doesn't work

Hello,

I got a problem with the initial start configuration. it doesn't do anything, when I hit the button. Unfortunately I can't see any error message.
image

TYPO3 11.5.36 | PHP 8.1.27
cf_... datatables are empty.
In another project it worked perfectly. Are there problems with the API at the moment?

SEO downrank in PageSpeed for button code

Resources/Private/Templates/CookieFrontend/List.html

Line 14 (the button code) doesn't have an href nor a title, and for these reasons gets a low score in PageSpeed

Adding just the following to the tag fixes it

href="#" title="cookie consent"

Middleware Content Manager

Adapting the isHTML function to a more elegant version that only overrides content with HTML tags containing iframe and script.

The current issue is that it processes every HTML content and removes HTML entities, turning "&amp;" automatically into "&" which causes an error in the sitemap, for example.

The problem doesn't occur when only legitimate content is processed.

To temporarily fix the issue, you need to install version 1.3.1 because version 1.3.2 contains this bug.
@eibiflo write a Unit Test case for such a stuff.

Dashboard Widget Accept Types

The integration of the cf_cookiemanager typo3 dashboard widget "accept types" throws an error.
Uncaught TYPO3 Exception: #1257246929: Tried resolving a template file for controller action "Standard->widget/ChartWidget" in format ".html", but none of the paths contained the expected template file (Standard/Widget/ChartWidget.html). No paths configured. | TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException thrown in file /html/typo3-composer/vendor/typo3fluid/fluid/src/View/TemplatePaths.php in line 595. Requested URL: https://xxx.de/typo3/ajax/dashboard/widget/content?token=--AnonymizedToken--&widget=consentTrackingDonutAcceptTypes
typo3 v11.latest

Hidden Cookie Services not hidden in editing mode

When some Cookie Services are hidden, the objects aren't hidden in editing mode.

There comes an exception:

PHP Warning: Undefined array key 1 in /var/www/vhosts/httpdocs/typo3conf/ext/cf_cookiemanager/Classes/Utility/HelperUtility.php line 92

TYPO3 version 12.4.10
cf_cookiemanager version 1.4.3
PHP version: 8.2.14
Classic mode (no composer)

Bildschirmfoto 2024-01-25 um 19 58 56

Bildschirmfoto 2024-01-25 um 20 00 20

Hide modal box

Is it possible to hide the modal box? I want to use the Cookie Manager to load external content (iFrames, scripts). It's enough here to just disable the corresponding elements if they are on a page.

Thanks
Stephan

Backendmodul: template could not be loaded

Hi,
I try to test your extension and load version 1.0.3
In backendmodul the template could not be loaded:

The Fluid template files "/xxx/typo3conf/ext/cf_cookiemanager/Resources/Private/Backend/Partials/BackendTabs/home.html.html", "/xxx/typo3conf/ext/cf_cookiemanager/Resources/Private/Backend/Partials/BackendTabs/home.html", "/xxx/typo3conf/ext/cf_cookiemanager/Resources/Private/Partials/BackendTabs/home.html.html", "/xxx/typo3conf/ext/cf_cookiemanager/Resources/Private/Partials/BackendTabs/home.html" could not be loaded.

Script Blocking Feature

TODO @eibiflo Write a Unit Test for (data-script-blocking-disabled="true")
Check the current implementation of (data-script-blocking-disabled="true") looks broken.

Skip auto scan and import

Hello,

Thanks for the extension!

Is there a way I can trick the scanner into thinking it has done the scan so I can import some cookies?

It seems the hosting provider my client uses has blacked the IP of your scanner, however I can run a scan via your website (https://cookieapi.coding-freaks.com/scan) on the sitemap.xml which passes. It would be great if I could use this JSON rather than needing the initial scan to be done via the module.

Thanks

Invalid HTML - PHP Dom Document Parser

This Example Code

    <source srcset="{f:uri.image(image: file, fileExtension: 'webp', cropVariant: 'desktop')}" media="(min-width: 2560px)" type="image/webp">
    <source srcset="{f:uri.image(image: file, fileExtension: 'jpg', cropVariant: 'desktop')}" media="(min-width: 2560px)" type="{file.mimeType}">

    <source srcset="{f:uri.image(image: file, maxWidth: '{w2560}', fileExtension: 'webp', cropVariant: 'desktop')}" media="(min-width: 1920px)" type="image/webp">
    <source srcset="{f:uri.image(image: file, maxWidth: '{w2560}', fileExtension: 'jpg', cropVariant: 'desktop')}" media="(min-width: 1920px)" type="{file.mimeType}">

    <source srcset="{f:uri.image(image: file, maxWidth: '{w1920}', fileExtension: 'webp', cropVariant: 'desktop')}" media="(min-width: 1600px)" type="image/webp">
    <source srcset="{f:uri.image(image: file, maxWidth: '{w1920}', fileExtension: 'jpg', cropVariant: 'desktop')}" media="(min-width: 1600px)" type="{file.mimeType}">

Generates Browser HTML:
image

But the Raw OutPut looks Invalid:

image

Looks like a Problem with HTML-DomDocument - Need to check

Add default typo3 cookies

It would make sense to add TYPO3 own cookies and create addTypo3ToRequired function to add TYOP3 Cookies to require category?

  {
    "id": 67,
    "created_at": null,
    "updated_at": null,
    "domain": null,
    "http_only": 0,
    "is_regex": 0,
    "name": "fe_typo_user",
    "service_identifier": "typo3",
    "path": "/",
    "secure": 0,
    "description": "This is used for session ID identification.",
    "description_de": "Dies wird zur Identifizierung der Session-ID verwendet.",
    "expiry": 0
  },
  {
    "id": 68,
    "created_at": null,
    "updated_at": null,
    "domain": null,
    "http_only": 0,
    "is_regex": 0,
    "name": "be_typo_user",
    "service_identifier": "typo3",
    "path": "/",
    "secure": 0,
    "description": "When a back-end user logs in to the front-end or back-end of TYPO3, it is used to identify the back-end session.",
    "description_de": "Wenn sich ein Back-End-Benutzer am Front-End oder Back-End von TYPO3 anmeldet, wird es verwendet, um die Back-End-Sitzung zu identifizieren.",
    "expiry": 0
  },
  {
    "id": 69,
    "created_at": null,
    "updated_at": null,
    "domain": null,
    "http_only": 0,
    "is_regex": 0,
    "name": "Typo3InstallTool",
    "service_identifier": "typo3",
    "path": "/",
    "secure": 0,
    "description": "Used to verify the session for system maintenance.",
    "description_de": "Wird verwendet, um die Sitzung für die Systemwartung zu überprüfen.",
    "expiry": 0
  },
  {
    "id": 70,
    "created_at": null,
    "updated_at": null,
    "domain": null,
    "http_only": 0,
    "is_regex": 0,
    "name": "be_lastLoginProvider",
    "service_identifier": "typo3",
    "path": "/",
    "secure": 0,
    "description": "The cookie contains the key of the Typo3 backend login provider used.",
    "description_de": "Das cookie enthält den Schlüssel des verwendeten Typo3-Backend-Anmeldeanbieters.",
    "expiry": 0
  }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.