New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-cookie-consent-modal

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-cookie-consent-modal

A Vue module that provides support for multiple cookies to adhere to the EU Cookie Law.

  • 0.0.17
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-58.82%
Maintainers
1
Weekly downloads
 
Created
Source

A Vue module that provides support for multiple cookies to adhere to the EU Cookie Law.

Note! This is a package that is very specifically used for Laravel projects that use Vue. We are not responsible or liable for any legal matters involving this package. Using this package is at your own risk.

Installation

You can install via npm.

npm i vue-cookie-consent-modal

Usage

JavaScript
import CookieConsent from 'vue-cookie-consent-modal';
Vue.component('cookie-consent', CookieConsent);
Blade

Update the dialog cookie name and/or cookieNames if you want the users to agree to updated cookies.

Set optional to true if you want the user to give/retract consent for this cookie. If optional is set to false, this cookie will be loaded automatically.

<cookie-consent dialog-cookie-name="cookie-consent-cookie-dialog-box" cookie-page-url="https://example.com" :cookies="[
    {
      displayName: 'Technical',
      cookieName: 'technical',
      description: 'Technical cookies...',
      optional: false,
      initialStatus: true,
    },
    {
      displayName: 'Functional',
      cookieName: 'functional',
      description: 'Functional cookies...',
      optional: true,
      initialStatus: false,
    },
    {
      displayName: 'Analytical',
      cookieName: 'analytical',
      description: 'Analytical cookies...',
      optional: true,
      initialStatus: false,
    },
    {
      displayName: 'Commercial',
      cookieName: 'commercial',
      description: 'Commercial cookies...',
      optional: true,
      initialStatus: false,
    },
]"></cookie-consent>

After closing the cookie dialogue box, the page will refresh.

@if (isset($_COOKIE['cookie_name_here']))
    {{--Tooling (Facebook, Google, Hotjar, etc)--}}
@endif

License

The MIT License (MIT). Please see License File for more information.

Keywords

FAQs

Package last updated on 09 Apr 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc