Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@norvikit/vue-cookies-consent
Advanced tools
Nice and clean Vue component to display message about cookies
Nice and clean Vue component to display message about cookies
npm install --save @norvikit/vue-cookies-consent
yarn add @norvikit/vue-cookies-consent
<template>
<vue-cookies-consent>
<template #title>Some default title for window</template>
<template #description>
<p>Some description in window</p>
</template>
<template #button>Accept cookies</template>
</vue-cookies-consent>
</template>
<script>
import VueCookiesConsent from '@norvikit/vue-cookies-consent'
export default {
components: {
VueCookiesConsent
}
}
</script>
Add this content to main.js
import Vue from "vue";
import VueCookiesConsent from "@norvikit/vue-cookies-consent";
Vue.use(VueCookiesConsent)
Create a file plugins/vue-cookies-consent.js
with the following content:
import Vue from "vue";
import VueCookiesConsent from "@norvikit/vue-cookies-consent";
Vue.use(VueCookiesConsent)
Then add plugin to nuxt.config.js
plugins: [
{
src:"plugins/vue-cookies-consent.js", mode:'client'
}
]
Prop | Type | Description | Example |
---|---|---|---|
colorTitle | String | Color of window title | color-title="#000000" |
colorDescription | String | Color of window description | color-description="#000000" |
colorButton | String | Color of button text | color-button="#FFFFFF" |
backgroundWindow | String | Background of window | background-window="#FFFFFF" |
backgroundButton | String | Background of button | background-button="#C11E31" |
backgroundButtonHover | String | Background of button on hover state | background-button-hover="#de2b40" |
hasShadow | Boolean | Window has shadow | :has-shadow="true" |
borderRadius | Number | Border radius of window in px | :border-radius="16" |
offsetY | Number | Offset of window by Y in px | :offset-y="16" |
offsetX | Number | Offset of window by X in px | :offset-x="16" |
position | String | Position of window: top or bottom | position="top" |
saveMethod | String | Method to save window state after accept: ls or cookies | save-method="cookies" |
Event | Description | Example |
---|---|---|
shown | Fired after window is shown | @shown="someMethod" |
accept | Fired after accept button is clicked | @accept="someMethod" |
lsSaved | Fired after window state saved to localStorage | @ls-saved="someMethod" |
cookiesSaved | Fired after window state saved to Cookies | @cookies-saved="someMethod" |
hidden | Fired after window is hidden | @hidden="someMethod" |
FAQs
Nice and clean Vue component to display message about cookies
The npm package @norvikit/vue-cookies-consent receives a total of 267 weekly downloads. As such, @norvikit/vue-cookies-consent popularity was classified as not popular.
We found that @norvikit/vue-cookies-consent demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.