@avensio/cookie-consent
Advanced tools
{ | ||
"name": "@avensio/cookie-consent", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -66,2 +66,47 @@ # Cookie Consent | ||
``` | ||
Full Usage Example: | ||
```vue | ||
<script setup> | ||
import '@avensio/cookie-consent/style.css' | ||
import CookieConsent from '@avensio/cookie-consent' | ||
const obj = { | ||
lang: 'en', | ||
requiredLinks: { | ||
privacy: { | ||
title: 'Privacy', | ||
href: '/privacy' | ||
}, | ||
impress: { | ||
title: 'Imprint', | ||
href: '/imprint' | ||
} | ||
}, | ||
categories: [ | ||
{ | ||
id: 'essential', | ||
label: 'Essential', | ||
description: 'Essential Cookies are needed for the website to function properly.', | ||
cookies: [ | ||
{ | ||
id: 'session-cookie', | ||
name: 'Session Cookie', | ||
provider: 'Owner of the Website', | ||
purpose: 'Saves as anynomous user the items in the shopping card and as authenticated user also additional infos', | ||
cookieName: 'SESSION', | ||
cookieValidityPeriod: '2 hours' | ||
} | ||
] | ||
} | ||
] | ||
} | ||
</script> | ||
<template> | ||
<CookieConsent :categories="obj.categories" :required-links="obj.requiredLinks" /> | ||
</template> | ||
``` | ||
## Language Codes (ISO-639-1) | ||
@@ -68,0 +113,0 @@ The language codes are listed in [IANA Subtag Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) (see also [IANA Protocols (Language Tags)](https://www.iana.org/protocols) and taken from [Wikipedia | List of ISO-639-1 codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes). |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
523436
0.21%152
42.06%