Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@avensio/cookie-consent
Advanced tools
This is an internationalized Cookie Consent component for vue 3.
This is an internationalized Cookie Consent component for vue 3.
The first category must be the essentials
category. Only Cookies in this first category are accepted per default and can't be declined.
All Cookies of other categories are declined per default.
For each Cookie you can pass optional onAccepted
and onDenied
functions, to hand in some code, which will be executed after save selection
or save all
is clicked.
export interface Props {
categories: Array<Category>;
requiredLinks: RequiredLinksProps;
links?: Array<Link>;
useMetaCookie?: boolean;
animationDuration?: string;
minimizeAnimationDuration?: string;
hideDuration?: string;
}
export interface Category {
id: string;
label: string;
description?: string;
cookies?: Array<Cookie>;
}
export interface RequiredLinksProps {
privacy: Link;
impress: Link;
}
export interface Link {
title: string;
href: string;
}
export interface Cookie {
id: string;
name: string;
purpose: string;
provider?: string;
cookieName?: string;
cookieValidityPeriod?: string;
onAccepted?: Function;
onDenied?: Function;
privacyURL?: string;
links?: Array<Link>;
hosts?: string;
}
Import the CSS Style Declarations with
import '@avensio/cookie-consent/style.css'
and then the component with
import CookieConsent from '@avensio/cookie-consent'
now it's possible to use this component in another vue component.
The language codes are listed in IANA Subtag Registry (see also IANA Protocols (Language Tags) and taken from Wikipedia | List of ISO-639-1 codes.
Every translation block of this Cookie-Consent is named after the appropriate ISO-639-1 code.
In sum 32 languages are supported, mostly from the EU and some others like arabic, indian, russian and chinese.
The source language for the translations is German. All translations were made with google translate and deepl. For some translations also Leo was used.
FAQs
This is an internationalized ([vue-i18n](https://vue-i18n.intlify.dev/)) Cookie Consent component for [vue 3](https://vuejs.org/).
The npm package @avensio/cookie-consent receives a total of 9 weekly downloads. As such, @avensio/cookie-consent popularity was classified as not popular.
We found that @avensio/cookie-consent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.