Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeh committed Jan 1, 2020
1 parent 4026d40 commit d504215
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/404.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><link rel="stylesheet" href="/gdpr/magic.css?Zq69ZfLn2z" integrity="sha384-Zq69ZfLn2zMms7j2K6iZ4EutxfQtqvQdMArbrmWD1ZCTC4BnxZbOaCKwKYosMrdy" crossorigin="anonymous"/><link rel="icon" href="/gdpr/favicon.ico"/><title>@magic-modules/gdpr</title><meta name="description" content="adds a gdpr compliant information popup with minimal intrusion and complexity to your page."/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-modules/gdpr"}</script></head><body><a class="SkipLink" href="/gdpr/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/gdpr/"><span>Gdpr</span></a><nav class="Menu"><ul><li><a href="/gdpr/#installation">installation</a></li><li><a href="/gdpr/#usage">usage</a></li><li><a href="/gdpr/#source">source</a></li></ul></nav></header><div class="Page" id="page"><div>404 - not found</div></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://github.com/magic/core">magic</a></div></div></footer></div></main><script src="/gdpr/magic.js?Motm/1DKmZ" integrity="sha384-Motm/1DKmZLM8sf3Y/yFzjVhRA7n0MAnAIX4v8J7a0nssk7mSJjv9y/CpQ+Kcjw1" crossorigin="anonymous"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><link rel="stylesheet" href="/gdpr/magic.css?aDdbwmFQFC" integrity="sha384-aDdbwmFQFCGU83wviar8BYmFFBtlZTR7eOGnIuTox420zTMJSxshPT6Q4WXJSLFk" crossorigin="anonymous"/><link rel="icon" href="/gdpr/favicon.ico"/><title>@magic-modules/gdpr</title><meta name="description" content="adds a gdpr compliant information popup with minimal intrusion and complexity to your page."/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-modules/gdpr"}</script></head><body><a class="SkipLink" href="/gdpr/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/gdpr/"><span>Gdpr</span></a><nav class="Menu"><ul><li><a href="/gdpr/#installation">installation</a></li><li><a href="/gdpr/#usage">usage</a></li><li><a href="/gdpr/#source">source</a></li></ul></nav></header><div class="Page" id="page"><div>404 - not found</div></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://github.com/magic/core">magic</a></div></div></footer></div></main><script src="/gdpr/magic.js?Motm/1DKmZ" integrity="sha384-Motm/1DKmZLM8sf3Y/yFzjVhRA7n0MAnAIX4v8J7a0nssk7mSJjv9y/CpQ+Kcjw1" crossorigin="anonymous"></script></body></html>
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><link rel="stylesheet" href="/gdpr/magic.css?Zq69ZfLn2z" integrity="sha384-Zq69ZfLn2zMms7j2K6iZ4EutxfQtqvQdMArbrmWD1ZCTC4BnxZbOaCKwKYosMrdy" crossorigin="anonymous"/><link rel="icon" href="/gdpr/favicon.ico"/><title>@magic-modules/gdpr</title><meta name="description" content="adds a gdpr compliant information popup with minimal intrusion and complexity to your page."/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-modules/gdpr"}</script></head><body><a class="SkipLink" href="/gdpr/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/gdpr/"><span>Gdpr</span></a><nav class="Menu"><ul><li><a href="/gdpr/#installation">installation</a></li><li><a href="/gdpr/#usage">usage</a></li><li><a href="/gdpr/#source">source</a></li></ul></nav></header><div class="Page" id="page"><h1>@magic-modules/gdpr</h1><p>this is the <a href="https://github.com/magic-modules" target="_blank" rel="noopener">@magic-modules</a> Gdpr component. adds a gdpr compliant information popup with minimal intrusion and complexity to your page.</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="colon">allowAllText</span>: all</code><code class="line"><span class="colon">allowText</span>: selected</code><code class="line"><span class="colon">allowTitle</span>: Title above the three cookie buttons</code><code class="line"><span class="colon">allowed</span>: </code><code class="line"><span class="colon">content</span>: Popup content text</code><code class="line"><span class="colon">denyText</span>: none</code><code class="line"><span class="colon">noDataText</span>: Button text <span class="keyword">if</span> no cookies are defined</code><code class="line"><span class="colon">show</span>: <span class="boolean">true</span></code><code class="line"><span class="colon">title</span>: Popup title</code></pre></div><ul class="GitBadges"><li><a href="https://www.npmjs.com/package/@magic-modules/gdpr" target="_blank" rel="noopener"><img src="https://img.shields.io/npm/v/@magic-modules/gdpr.svg" role="presentation" alt=""/></a></li><li><a href="https://travis-ci.com/magic-modules/gdpr" target="_blank" rel="noopener"><img src="https://img.shields.io/travis/com/magic-modules/gdpr/master" role="presentation" alt=""/></a></li><li><a href="https://ci.appveyor.com/project/magicmodules/gdpr/branch/master" target="_blank" rel="noopener"><img src="https://img.shields.io/appveyor/ci/magicmodules/gdpr/master.svg" role="presentation" alt=""/></a></li><li><a href="https://coveralls.io/github/magic-modules/gdpr" target="_blank" rel="noopener"><img src="https://img.shields.io/coveralls/github/magic-modules/gdpr/master.svg" role="presentation" alt=""/></a></li><li><a href="https://greenkeeper.io" target="_blank" rel="noopener"><img src="https://badges.greenkeeper.io/magic-modules/gdpr.svg" role="presentation" alt=""/></a></li><li><a href="https://snyk.io/test/github/magic-modules/gdpr" target="_blank" rel="noopener"><img src="https://img.shields.io/snyk/vulnerabilities/github/magic-modules/gdpr.svg" role="presentation" alt=""/></a></li></ul><h2 id="installation">installation:</h2><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">npm install @magic-modules/gdpr</code></pre></div><h2 id="usage">usage:</h2><h3>activate:</h3><p>to activate Gdpr, add it to the list of hoisted modules</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="comment">// src/<span class="object">config</span>.<span class="property">mjs</span></span></code><code class="line"><span class="keyword">export</span> <span class="keyword">default</span> {</code><code class="line"><span class="comment"> // ... other config variables</span></code><code class="line"></code><code class="line"> <span class="colon">HOIST</span>: [<span class="string">&#39;Gdpr&#39;</span>],</code><code class="line">}</code></pre></div><p>after doing this, the gdpr module will show up.</p><h3>change contents, add cookies:</h3><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="comment">// /src/<span class="object">app</span>.<span class="property">mjs</span></span></code><code class="line"><span class="keyword">export</span> <span class="keyword">const</span> <span class="state">state</span> = {</code><code class="line"> <span class="colon">gdpr</span>: {</code><code class="line"> <span class="colon">allowAllText</span>: <span class="string">&#39;button text <span class="keyword">for</span> allow all data&#39;</span>,</code><code class="line"> <span class="colon">allowText</span>: <span class="string">&#39;button text <span class="keyword">for</span> allow selected data&#39;</span>,</code><code class="line"> <span class="colon">allowTitle</span>: <span class="string">&#39;Title above the three cookie buttons&#39;</span>,</code><code class="line"> <span class="colon">content</span>: <span class="string">&#39;<span class="builtin">String</span> or <span class="builtin">Array</span> of Magic modules&#39;</span>,</code><code class="line"> <span class="colon">denyText</span>: <span class="string">&#39;button text <span class="keyword">for</span> no data allowed&#39;</span>,</code><code class="line"> <span class="colon">noDataText</span>: <span class="string">&#39;Button text <span class="keyword">if</span> no cookies are defined&#39;</span>,</code><code class="line"> <span class="colon">title</span>: <span class="string">&#39;Title text <span class="keyword">for</span> the gdpr popup&#39;</span>,</code><code class="line"> },</code><code class="line"> <span class="colon">cookies</span>: [</code><code class="line"> [<span class="string">&#39;name&#39;</span>, { <span class="colon">title</span>: <span class="string">&#39;cookie1 title&#39;</span>, <span class="colon">content</span>: <span class="string">&#39;cookie description&#39;</span> }],</code><code class="line"> [<span class="string">&#39;cookie 2&#39;</span>, { <span class="colon">title</span>: <span class="string">&#39;cookie title&#39;</span>, <span class="colon">content</span>: <span class="string">&#39;cookie content&#39;</span> }],</code><code class="line"> ],</code><code class="line">})</code></pre></div><h2 id="source">source</h2><p>the source for this page is in the <a href="https://github.com/magic-modules/gdpr/tree/master/example" target="_blank" rel="noopener">example directory</a> and gets built and published to github using <a href="https://github.com/magic/core" target="_blank" rel="noopener">@magic/core</a></p><button class="LightSwitch"></button></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://github.com/magic/core">magic</a></div></div></footer></div></main><script src="/gdpr/magic.js?Motm/1DKmZ" integrity="sha384-Motm/1DKmZLM8sf3Y/yFzjVhRA7n0MAnAIX4v8J7a0nssk7mSJjv9y/CpQ+Kcjw1" crossorigin="anonymous"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><link rel="stylesheet" href="/gdpr/magic.css?aDdbwmFQFC" integrity="sha384-aDdbwmFQFCGU83wviar8BYmFFBtlZTR7eOGnIuTox420zTMJSxshPT6Q4WXJSLFk" crossorigin="anonymous"/><link rel="icon" href="/gdpr/favicon.ico"/><title>@magic-modules/gdpr</title><meta name="description" content="adds a gdpr compliant information popup with minimal intrusion and complexity to your page."/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-modules/gdpr"}</script></head><body><a class="SkipLink" href="/gdpr/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/gdpr/"><span>Gdpr</span></a><nav class="Menu"><ul><li><a href="/gdpr/#installation">installation</a></li><li><a href="/gdpr/#usage">usage</a></li><li><a href="/gdpr/#source">source</a></li></ul></nav></header><div class="Page" id="page"><h1>@magic-modules/gdpr</h1><p>this is the <a href="https://github.com/magic-modules" target="_blank" rel="noopener">@magic-modules</a> Gdpr component. adds a gdpr compliant information popup with minimal intrusion and complexity to your page.</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="colon">allowAllText</span>: all</code><code class="line"><span class="colon">allowText</span>: selected</code><code class="line"><span class="colon">allowTitle</span>: Title above the three cookie buttons</code><code class="line"><span class="colon">allowed</span>: </code><code class="line"><span class="colon">content</span>: Popup content text</code><code class="line"><span class="colon">denyText</span>: none</code><code class="line"><span class="colon">noDataText</span>: Button text <span class="keyword">if</span> no cookies are defined</code><code class="line"><span class="colon">show</span>: <span class="boolean">true</span></code><code class="line"><span class="colon">title</span>: Popup title</code></pre></div><ul class="GitBadges"><li><a href="https://www.npmjs.com/package/@magic-modules/gdpr" target="_blank" rel="noopener"><img src="https://img.shields.io/npm/v/@magic-modules/gdpr.svg" role="presentation" alt=""/></a></li><li><a href="https://travis-ci.com/magic-modules/gdpr" target="_blank" rel="noopener"><img src="https://img.shields.io/travis/com/magic-modules/gdpr/master" role="presentation" alt=""/></a></li><li><a href="https://ci.appveyor.com/project/magicmodules/gdpr/branch/master" target="_blank" rel="noopener"><img src="https://img.shields.io/appveyor/ci/magicmodules/gdpr/master.svg" role="presentation" alt=""/></a></li><li><a href="https://coveralls.io/github/magic-modules/gdpr" target="_blank" rel="noopener"><img src="https://img.shields.io/coveralls/github/magic-modules/gdpr/master.svg" role="presentation" alt=""/></a></li><li><a href="https://greenkeeper.io" target="_blank" rel="noopener"><img src="https://badges.greenkeeper.io/magic-modules/gdpr.svg" role="presentation" alt=""/></a></li><li><a href="https://snyk.io/test/github/magic-modules/gdpr" target="_blank" rel="noopener"><img src="https://img.shields.io/snyk/vulnerabilities/github/magic-modules/gdpr.svg" role="presentation" alt=""/></a></li></ul><h2 id="installation">installation:</h2><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">npm install @magic-modules/gdpr</code></pre></div><h2 id="usage">usage:</h2><h3>activate:</h3><p>to activate Gdpr, add it to the list of hoisted modules</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="comment">// src/<span class="object">config</span>.<span class="property">mjs</span></span></code><code class="line"><span class="keyword">export</span> <span class="keyword">default</span> {</code><code class="line"><span class="comment"> // ... other config variables</span></code><code class="line"></code><code class="line"> <span class="colon">HOIST</span>: [<span class="string">&#39;Gdpr&#39;</span>],</code><code class="line">}</code></pre></div><p>after doing this, the gdpr module will show up.</p><h3>change contents, add cookies:</h3><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="comment">// /src/<span class="object">app</span>.<span class="property">mjs</span></span></code><code class="line"><span class="keyword">export</span> <span class="keyword">const</span> <span class="state">state</span> = {</code><code class="line"> <span class="colon">gdpr</span>: {</code><code class="line"> <span class="colon">allowAllText</span>: <span class="string">&#39;button text <span class="keyword">for</span> allow all data&#39;</span>,</code><code class="line"> <span class="colon">allowText</span>: <span class="string">&#39;button text <span class="keyword">for</span> allow selected data&#39;</span>,</code><code class="line"> <span class="colon">allowTitle</span>: <span class="string">&#39;Title above the three cookie buttons&#39;</span>,</code><code class="line"> <span class="colon">content</span>: <span class="string">&#39;<span class="builtin">String</span> or <span class="builtin">Array</span> of Magic modules&#39;</span>,</code><code class="line"> <span class="colon">denyText</span>: <span class="string">&#39;button text <span class="keyword">for</span> no data allowed&#39;</span>,</code><code class="line"> <span class="colon">noDataText</span>: <span class="string">&#39;Button text <span class="keyword">if</span> no cookies are defined&#39;</span>,</code><code class="line"> <span class="colon">title</span>: <span class="string">&#39;Title text <span class="keyword">for</span> the gdpr popup&#39;</span>,</code><code class="line"> },</code><code class="line"> <span class="colon">cookies</span>: [</code><code class="line"> [<span class="string">&#39;name&#39;</span>, { <span class="colon">title</span>: <span class="string">&#39;cookie1 title&#39;</span>, <span class="colon">content</span>: <span class="string">&#39;cookie description&#39;</span> }],</code><code class="line"> [<span class="string">&#39;cookie 2&#39;</span>, { <span class="colon">title</span>: <span class="string">&#39;cookie title&#39;</span>, <span class="colon">content</span>: <span class="string">&#39;cookie content&#39;</span> }],</code><code class="line"> ],</code><code class="line">})</code></pre></div><h2 id="source">source</h2><p>the source for this page is in the <a href="https://github.com/magic-modules/gdpr/tree/master/example" target="_blank" rel="noopener">example directory</a> and gets built and published to github using <a href="https://github.com/magic/core" target="_blank" rel="noopener">@magic/core</a></p><button class="LightSwitch"></button></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://github.com/magic/core">magic</a></div></div></footer></div></main><script src="/gdpr/magic.js?Motm/1DKmZ" integrity="sha384-Motm/1DKmZLM8sf3Y/yFzjVhRA7n0MAnAIX4v8J7a0nssk7mSJjv9y/CpQ+Kcjw1" crossorigin="anonymous"></script></body></html>
Loading

0 comments on commit d504215

Please sign in to comment.