diff --git a/docs/404.html b/docs/404.html index ec085a0..edbc00e 100644 --- a/docs/404.html +++ b/docs/404.html @@ -1 +1 @@ -@magic-modules/gdpr
404 - not found
\ No newline at end of file +@magic-modules/gdpr
404 - not found
\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 81d894c..91ed3be 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -@magic-modules/gdpr

@magic-modules/gdpr

this is the @magic-modules Gdpr component. adds a gdpr compliant information popup with minimal intrusion and complexity to your page.

allowAllCookiesButtonText: allow all dataallowCookieButtonText: allow selectedallowed: cookieText: cookie text, shown if cookies are definedcookieButtonText: cookie Button textdenyCookieButtonText: deny all dataleft: truenoCookieText: no Cookie text, shown if no cookies are definednoCookieButtonText: no Cookie Button textshow: truesmall: truetitle: Main popup title

installation:

npm install @magic-modules/gdpr

usage:

gdpr gets loaded automatically after being installed.

to configure it, add the object below to /src/app.mjs

// /src/app.mjsexport const state = {  gdpr: {    show: false, // || true    small: false, // if true, component has 30% of screen.    left: false, // popup is positioned to the left if true    right: false, // popup is positioned to the right if true    title: 'Main popup title',    content: 'text of cookie popup',    noCookieText: 'String or Array of Magic modules',    noCookieButtonText: 'String or Array of Magic modules',    cookieButtonText: 'String or Array of Magic modules',    allowAllCookiesButtonText: 'String or Array of Magic modules',    allowCookieButtonText: 'String or Array of Magic modules',    denyCookieButtonText: 'String or Array of Magic modules',    cookieText: 'String or Array of Magic modules',  },  cookies: [    ['name', { title: 'cookie1 title', content: 'cookie description' }],    ['cookie 2', { title: 'cookie title', content: 'cookie content' }],  ],})

source

the source for this page is in the example directory and gets built and published to github using @magic/core

\ No newline at end of file +@magic-modules/gdpr

@magic-modules/gdpr

this is the @magic-modules Gdpr component. adds a gdpr compliant information popup with minimal intrusion and complexity to your page.

allowAllCookiesButtonText: allow all dataallowCookieButtonText: allow selectedallowed: content: Cookie popup main content text.cookieButtonText: cookie Button textcookieText: cookie text, shown if cookies are defineddenyCookieButtonText: deny all dataleft: truenoCookieButtonText: no Cookie Button textnoCookieText: no Cookie text, shown if no cookies are definedshow: truesmall: truetitle: Main popup title

installation:

npm install @magic-modules/gdpr

usage:

gdpr gets loaded automatically after being installed.

to configure it, add the object below to /src/app.mjs

// /src/app.mjsexport const state = {  gdpr: {    show: false, // || true    small: false, // if true, component has 30% of screen.    left: false, // popup is positioned to the left if true    right: false, // popup is positioned to the right if true    title: 'Main popup title',    content: 'text of cookie popup',    noCookieText: 'String or Array of Magic modules',    noCookieButtonText: 'String or Array of Magic modules',    cookieButtonText: 'String or Array of Magic modules',    allowAllCookiesButtonText: 'String or Array of Magic modules',    allowCookieButtonText: 'String or Array of Magic modules',    denyCookieButtonText: 'String or Array of Magic modules',    cookieText: 'String or Array of Magic modules',  },  cookies: [    ['name', { title: 'cookie1 title', content: 'cookie description' }],    ['cookie 2', { title: 'cookie title', content: 'cookie content' }],  ],})

source

the source for this page is in the example directory and gets built and published to github using @magic/core

\ No newline at end of file diff --git a/docs/magic.js b/docs/magic.js index aa5e4fc..12f84e8 100644 --- a/docs/magic.js +++ b/docs/magic.js @@ -1 +1 @@ -"use strict";function b(a){return o(a)||c(a)||m()}function c(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}function d(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function f(a){for(var b,c=1;cy)for(;x<=z;)c.insertBefore(p(u[x]=v(u[x++]),f,g),(k=t[w])&&k.node);else if(x>z)for(;w<=y;)c.removeChild(t[w++].node);else{for(var A=w,B={},C={};A<=y;A++)null!=(l=t[A].key)&&(B[l]=t[A]);for(;x<=z;){if(l=r(k=t[w]),m=r(u[x]=v(u[x],k)),C[l]||null!=m&&m===r(t[w+1])){null==l&&c.removeChild(k.node),w++;continue}null==m||1===d.type?(null==l&&(s(c,k&&k.node,k,u[x],f,g),x++),w++):(l===m?(s(c,k.node,k,u[x],f,g),C[m]=!0,w++):null==(h=B[m])?s(c,k&&k.node,null,u[x],f,g):(s(c,c.insertBefore(h.node,k&&k.node),h,u[x],f,g),C[m]=!0),x++)}for(;w<=y;)null==r(k=t[w++])&&c.removeChild(k.node);for(var A in B)null==C[A]&&c.removeChild(B[A].node)}}return e.node=c},t=function(c,a){for(var b in c)if(c[b]!==a[b])return!0;for(var b in a)if(c[b]!==a[b])return!0},u=function(a){return"object"===q(a)?a:x(a)},v=function(b,c){return b.type===a?((!c||c.type!==a||t(c.lazy,b.lazy))&&((c=u(b.lazy.view(b.lazy))).lazy=b.lazy),c):b},w=function(a,b,c,d,e,f){return{name:a,props:b,children:c,node:d,type:f,key:e}},x=function(a,e){return w(a,c,d,e,void 0,b)},y=function(a){return a.nodeType===b?x(a.nodeValue,a):w(a.nodeName.toLowerCase(),c,e.call(a.childNodes,y),a,void 0,1)};return{h:function h(a,b){for(var d,e=[],g=[],h=arguments.length;2y)for(;x<=z;)c.insertBefore(p(u[x]=v(u[x++]),f,g),(k=t[w])&&k.node);else if(x>z)for(;w<=y;)c.removeChild(t[w++].node);else{for(var A=w,B={},C={};A<=y;A++)null!=(l=t[A].key)&&(B[l]=t[A]);for(;x<=z;){if(l=r(k=t[w]),m=r(u[x]=v(u[x],k)),C[l]||null!=m&&m===r(t[w+1])){null==l&&c.removeChild(k.node),w++;continue}null==m||1===d.type?(null==l&&(s(c,k&&k.node,k,u[x],f,g),x++),w++):(l===m?(s(c,k.node,k,u[x],f,g),C[m]=!0,w++):null==(h=B[m])?s(c,k&&k.node,null,u[x],f,g):(s(c,c.insertBefore(h.node,k&&k.node),h,u[x],f,g),C[m]=!0),x++)}for(;w<=y;)null==r(k=t[w++])&&c.removeChild(k.node);for(var A in B)null==C[A]&&c.removeChild(B[A].node)}}return e.node=c},t=function(c,a){for(var b in c)if(c[b]!==a[b])return!0;for(var b in a)if(c[b]!==a[b])return!0},u=function(a){return"object"===q(a)?a:x(a)},v=function(b,c){return b.type===a?((!c||c.type!==a||t(c.lazy,b.lazy))&&((c=u(b.lazy.view(b.lazy))).lazy=b.lazy),c):b},w=function(a,b,c,d,e,f){return{name:a,props:b,children:c,node:d,type:f,key:e}},x=function(a,e){return w(a,c,d,e,void 0,b)},y=function(a){return a.nodeType===b?x(a.nodeValue,a):w(a.nodeName.toLowerCase(),c,e.call(a.childNodes,y),a,void 0,1)};return{h:function h(a,b){for(var d,e=[],g=[],h=arguments.length;2