
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@uncinc/cookie-consent
Advanced tools
Cookie consent package for non headless frontend websites
Implement the following block in your main JS file, replacing YOUR_THEME with the proper folder:
$(once('cookie-banner', 'html')).each(function(e) {
const body = document.getElementsByTagName('body')[0];
const div = document.createElement('div');
div.id = 'uncinc-cookie-compliance';
body.appendChild(div);
$.getJSON('/themes/YOUR_THEME/cookie/cookie-consent.json', function(data){
window.cookieBannerSettings = data;
const head = document.getElementsByTagName('head')[0];
const script= document.createElement('script');
script.type= 'text/javascript';
script.src= '/themes/YOUR_THEME/cookie/uncinc-cookie.min.js';
head.appendChild(script);
});
});
Add a cookie consent json with the properties you want to set to the component, and include a build js from this project in the project as well in the proper folder.
See for example this JSON example:
{
"loadDelay": 1000,
"title": "Test",
"manualText": "Zelf instellen",
"acceptAllText": "Alles accepteren",
"acceptSelectionText": "Selectie Accepteren",
"onlyNecessaryText": "Alleen benodigde",
"cookieContentsShowMore": "Toon meer",
"cookieContentsShowLess": "Toon minder",
"manualHeader": true,
"cookieLevels": [
{
"value": "necessary",
"label": "Nodig",
"description": "Beschrijving",
"disabled": true,
"consentOptions": ["security_storage"]
},
{
"value": "preferences",
"label": "Voorkeuren",
"description": "Beschrijving",
"disabled": false,
"consentOptions": ["functionality_storage", "personalization_storage"]
},
{
"value": "statistics",
"label": "Statistieken",
"description": "Beschrijving",
"disabled": false,
"consentOptions": ["analytics_storage"]
},
{
"value": "marketing",
"label": "Test",
"description": "Beschrijving",
"disabled": false,
"consentOptions": ["ad_personalization", "ad_user_data", "ad_storage"]
}
],
"defaultValues": {
"necessary": true,
"preferences": false,
"statistics": false,
"marketing": false
},
"bodyContents": "<h3>Welkom bij 'naam klant'</h3><p>Accepteer je deze cookies? <a href=\"test\"> zie onze cookie link </a></p>"
}
The component can be styled from the outside.
FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.