Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: magic-modules/light-switch
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 85d9da3c7765545f124d773b7614bb48c7fd6f08
Choose a base ref
...
head repository: magic-modules/light-switch
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 827c0036b09f18744905e25f8fa09a75b921b68a
Choose a head ref
  • 19 commits
  • 9 files changed
  • 1 contributor

Commits on Jul 18, 2020

  1. pkg: update deps

    jaeh committed Jul 18, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    8fbe2ce View commit details
  2. docs: update

    jaeh committed Jul 18, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    07b93ef View commit details

Commits on Aug 28, 2020

  1. pkg: update deps

    jaeh committed Aug 28, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    5657aec View commit details
  2. docs: update

    jaeh committed Aug 28, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    cc9785d View commit details

Commits on Oct 5, 2020

  1. pkg: update deps

    jaeh committed Oct 5, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    7075073 View commit details
  2. docs: update

    jaeh committed Oct 5, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    f456b25 View commit details

Commits on Oct 8, 2020

  1. pkg: update deps

    jaeh committed Oct 8, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    fe10c48 View commit details
  2. docs: update

    jaeh committed Oct 8, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    1abf0ae View commit details

Commits on Nov 3, 2020

  1. pkg: update deps

    jaeh committed Nov 3, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    513c309 View commit details
  2. docs: update

    jaeh committed Nov 3, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    931458a View commit details

Commits on Nov 22, 2020

  1. pkg: update deps

    jaeh committed Nov 22, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    9145386 View commit details
  2. docs: update

    jaeh committed Nov 22, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    97134a4 View commit details

Commits on Jan 5, 2021

  1. pkg: update deps

    jaeh committed Jan 5, 2021

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    0c02b45 View commit details
  2. docs: update

    jaeh committed Jan 5, 2021

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    1746c80 View commit details

Commits on Jan 17, 2021

  1. pkg: update deps

    jaeh committed Jan 17, 2021

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    bc52fac View commit details
  2. docs: update

    jaeh committed Jan 17, 2021

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    b9dd86d View commit details
  3. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    7b9d614 View commit details
  4. update changelog

    jaeh committed Jan 17, 2021

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    40b5467 View commit details
  5. 0.0.10

    jaeh committed Jan 17, 2021

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jaeh jascha ehrenreich
    Copy the full SHA
    827c003 View commit details
Showing with 863 additions and 881 deletions.
  1. +4 −1 README.md
  2. +1 −1 docs/404.html
  3. +2 −2 docs/index.html
  4. +1 −1 docs/magic.css
  5. +1 −1 docs/magic.js
  6. +2 −2 docs/sitemap.xml
  7. +5 −5 docs/sri-hashes.json
  8. +841 −862 package-lock.json
  9. +6 −6 package.json
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -76,5 +76,8 @@ set default height and width in svg only
* remove button container
* simplify css

##### 0.0.10 - unreleased
##### 0.0.10
bump required node version to 14.15.4

##### 0.0.11 - unreleased
...
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"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="icon" href="/light-switch/favicon.ico"/><title>404 - not found</title><meta name="description" content="404 - not found."/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"404 - not found"}</script><link rel="stylesheet" href="/light-switch/magic.css?xw8YG2813p" integrity="sha384-xw8YG2813pkqyMuITUXUAeM42bzdvvuIj0+G9he+pxpET5IkJx4HrAjEHFGXQ1Pf" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/light-switch/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><div><a class="Logo" href="/light-switch/"><svg viewBox="0 0 512 444"><path d="M512 444L256 0 0 444z" fill="#663695"></path><circle cx="256" cy="294" r="130" fill="#fff"></circle><circle cx="256" cy="281" r="40" fill="#663695"></circle><path d="M256 350v44m24-44l1 13c1 27 29 27 29-7m-160-72s46-47 106-47c59 0 106 47 106 47s-47 43-106 43c-60 0-106-43-106-43zm65-75a134 134 0 0189 2" class="stroke"></path><path d="M256 81v53m184 270l-43-29M72 404l43-29" class="stroke white"></path></svg></a><p>LightSwitch</p><nav class="Menu"><ul><li><a href="/light-switch/#installation">installation</a></li><li><a href="/light-switch/#usage">usage</a></li><li><a href="/light-switch/#positioning">positioning</a></li><li><a href="/light-switch/#source">source</a></li></ul></nav></div></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://magic.github.io/">magic</a></div></div></footer></div></main><script src="/light-switch/magic.js?6Q6CKwK5SM" integrity="sha384-6Q6CKwK5SMqJs7aWBb3kJdXkhcLS8snvm87i2J/4UB7H5k0nRL2a9XL5QPTltQ1G" crossorigin="anonymous"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="icon" href="/light-switch/favicon.ico"/><title>404 - not found</title><meta name="description" content="404 - not found."/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"404 - not found"}</script><link rel="stylesheet" href="/light-switch/magic.css?DIusUD77fC" integrity="sha384-DIusUD77fCYxDczsgY9DjhmjdD/idZEn/NGVWo4QtcpSxysCher8U2D4waANcW+H" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/light-switch/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><div><a class="Logo" href="/light-switch/"><svg viewBox="0 0 512 444"><path d="M512 444L256 0 0 444z" fill="#663695"></path><circle cx="256" cy="294" r="130" fill="#fff"></circle><circle cx="256" cy="281" r="40" fill="#663695"></circle><path d="M256 350v44m24-44l1 13c1 27 29 27 29-7m-160-72s46-47 106-47c59 0 106 47 106 47s-47 43-106 43c-60 0-106-43-106-43zm65-75a134 134 0 0189 2" class="stroke"></path><path d="M256 81v53m184 270l-43-29M72 404l43-29" class="stroke white"></path></svg></a><p>LightSwitch</p><nav class="Menu"><ul><li><a href="/light-switch/#installation">installation</a></li><li><a href="/light-switch/#usage">usage</a></li><li><a href="/light-switch/#positioning">positioning</a></li><li><a href="/light-switch/#source">source</a></li></ul></nav></div></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://magic.github.io/">magic</a></div></div></footer></div></main><script src="/light-switch/magic.js?HHcCW0BvmO" integrity="sha384-HHcCW0BvmOZTg5w1Pop6U+h8pz0BEYvz60K6RRc2GHcIORcsiS4L0Z+dnXdt/Q7w" crossorigin="anonymous"></script></body></html>
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="icon" href="/light-switch/favicon.ico"/><title>@magic-modules/light-switch</title><meta name="description" content="@magic-modules LightSwitch. adds an intelligent light switching mechanism to your @magic app."/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-modules/light-switch"}</script><link rel="stylesheet" href="/light-switch/magic.css?xw8YG2813p" integrity="sha384-xw8YG2813pkqyMuITUXUAeM42bzdvvuIj0+G9he+pxpET5IkJx4HrAjEHFGXQ1Pf" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/light-switch/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><div><a class="Logo" href="/light-switch/"><svg viewBox="0 0 512 444"><path d="M512 444L256 0 0 444z" fill="#663695"></path><circle cx="256" cy="294" r="130" fill="#fff"></circle><circle cx="256" cy="281" r="40" fill="#663695"></circle><path d="M256 350v44m24-44l1 13c1 27 29 27 29-7m-160-72s46-47 106-47c59 0 106 47 106 47s-47 43-106 43c-60 0-106-43-106-43zm65-75a134 134 0 0189 2" class="stroke"></path><path d="M256 81v53m184 270l-43-29M72 404l43-29" class="stroke white"></path></svg></a><p>LightSwitch</p><nav class="Menu"><ul><li><a href="/light-switch/#installation">installation</a></li><li><a href="/light-switch/#usage">usage</a></li><li><a href="/light-switch/#positioning">positioning</a></li><li><a href="/light-switch/#source">source</a></li></ul></nav></div></header><div class="Page" id="page"><h1 id="magic-moduleslight-switch">@magic-modules/light-switch,</h1><p>this is the
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="icon" href="/light-switch/favicon.ico"/><title>@magic-modules/light-switch</title><meta name="description" content="@magic-modules LightSwitch. adds an intelligent light switching mechanism to your @magic app."/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-modules/light-switch"}</script><link rel="stylesheet" href="/light-switch/magic.css?DIusUD77fC" integrity="sha384-DIusUD77fCYxDczsgY9DjhmjdD/idZEn/NGVWo4QtcpSxysCher8U2D4waANcW+H" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/light-switch/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><div><a class="Logo" href="/light-switch/"><svg viewBox="0 0 512 444"><path d="M512 444L256 0 0 444z" fill="#663695"></path><circle cx="256" cy="294" r="130" fill="#fff"></circle><circle cx="256" cy="281" r="40" fill="#663695"></circle><path d="M256 350v44m24-44l1 13c1 27 29 27 29-7m-160-72s46-47 106-47c59 0 106 47 106 47s-47 43-106 43c-60 0-106-43-106-43zm65-75a134 134 0 0189 2" class="stroke"></path><path d="M256 81v53m184 270l-43-29M72 404l43-29" class="stroke white"></path></svg></a><p>LightSwitch</p><nav class="Menu"><ul><li><a href="/light-switch/#installation">installation</a></li><li><a href="/light-switch/#usage">usage</a></li><li><a href="/light-switch/#positioning">positioning</a></li><li><a href="/light-switch/#source">source</a></li></ul></nav></div></header><div class="Page" id="page"><h1 id="magic-moduleslight-switch">@magic-modules/light-switch,</h1><p>this is the
<a href="https://github.com/magic-modules" target="_blank" rel="noopener">@magic-modules</a>
LightSwitch component. It provides a color theme switch button.</p><ul class="GitBadges"><li><a href="https://www.npmjs.com/package/@magic-modules/light-switch" target="_blank" rel="noopener"><img src="https://img.shields.io/npm/v/@magic-modules/light-switch?color=blue" height="23" role="presentation" alt="" loading="lazy"/></a></li><li><img src="https://img.shields.io/node/v/@magic-modules/light-switch?color=blue" height="23" role="presentation" alt="" loading="lazy"/></li><li><img src="https://img.shields.io/npm/l/@magic-modules/light-switch?color=blue" height="23" role="presentation" alt="" loading="lazy"/></li><li><a href="https://travis-ci.com/magic-modules/light-switch" target="_blank" rel="noopener"><img src="https://img.shields.io/travis/com/magic-modules/light-switch/master" height="23" role="presentation" alt="" loading="lazy"/></a></li><li><a href="https://ci.appveyor.com/project/magicmodules/light-switch/branch/master" target="_blank" rel="noopener"><img src="https://img.shields.io/appveyor/ci/magicmodules/light-switch/master.svg" height="23" role="presentation" alt="" loading="lazy"/></a></li><li><a href="https://coveralls.io/github/magic-modules/light-switch" target="_blank" rel="noopener"><img src="https://img.shields.io/coveralls/github/magic-modules/light-switch/master.svg" height="23" role="presentation" alt="" loading="lazy"/></a></li><li><a href="https://snyk.io/test/github/magic-modules/light-switch" target="_blank" rel="noopener"><img src="https://img.shields.io/snyk/vulnerabilities/github/magic-modules/light-switch.svg" height="23" role="presentation" alt="" loading="lazy"/></a></li></ul><h2 id="installation">installation</h2><div class="Pre"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="keyword">npm</span> <span class="keyword">install</span> @magic-modules/light-switch</code></pre></div><h2 id="usage">usage</h2><p>hoist in src/config.mjs</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="comment">// /src/config.mjs</span></code><code class="line"><span class="keyword">export</span> <span class="keyword">default</span> {</code><code class="line"> HOIST: [<span class="string">&#39;LanguageSwitch&#39;</span>],</code><code class="line">}</code></pre></div><p>thats it, your magic app will now know to display the LightSwitch button.</p><h2 id="positioning">positioning</h2><p>to further customize the position or other css, just use the .LightSwitch class in your theme css.</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="comment">// /assets/theme/yourtheme/index.mjs</span></code><code class="line"><span class="keyword">export</span> <span class="keyword">default</span> {</code><code class="line"> <span class="comment">// ...other styles</span></code><code class="line"></code><code class="line"> <span class="comment">// top right</span></code><code class="line"> <span class="string">&#39;.LightSwitch&#39;</span>: {</code><code class="line"> left: <span class="string">&#39;auto&#39;</span>,</code><code class="line"> position: <span class="string">&#39;fixed&#39;</span>,</code><code class="line"> right: <span class="string">&#39;0.5em&#39;</span>,</code><code class="line"> top: <span class="string">&#39;0.5em&#39;</span>,</code><code class="line"> },</code><code class="line"></code><code class="line"> <span class="comment">// bottom right</span></code><code class="line"> <span class="string">&#39;.LightSwitch&#39;</span>: {</code><code class="line"> bottom: <span class="string">&#39;0.5em&#39;</span>,</code><code class="line"> left: <span class="string">&#39;auto&#39;</span>,</code><code class="line"> position: <span class="string">&#39;fixed&#39;</span>,</code><code class="line"> right: <span class="string">&#39;0.5em&#39;</span>,</code><code class="line"> top: <span class="string">&#39;auto&#39;</span>,</code><code class="line"> },</code><code class="line"></code><code class="line"> <span class="comment">// top left</span></code><code class="line"> <span class="string">&#39;.LightSwitch&#39;</span>: {</code><code class="line"> left: <span class="string">&#39;0.5em&#39;</span>,</code><code class="line"> position: <span class="string">&#39;fixed&#39;</span>,</code><code class="line"> top: <span class="string">&#39;0.5em&#39;</span>,</code><code class="line"> },</code><code class="line"></code><code class="line"> <span class="comment">// bottom left</span></code><code class="line"> <span class="string">&#39;.LightSwitch&#39;</span>: {</code><code class="line"> bottom: <span class="string">&#39;0.5em&#39;</span>,</code><code class="line"> left: <span class="string">&#39;0.5em&#39;</span>,</code><code class="line"> position: <span class="string">&#39;fixed&#39;</span>,</code><code class="line"> top: <span class="string">&#39;auto&#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/light-switch/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></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://magic.github.io/">magic</a></div></div></footer></div></main><script src="/light-switch/magic.js?6Q6CKwK5SM" integrity="sha384-6Q6CKwK5SMqJs7aWBb3kJdXkhcLS8snvm87i2J/4UB7H5k0nRL2a9XL5QPTltQ1G" crossorigin="anonymous"></script></body></html>
<a href="https://github.com/magic/core" target="_blank" rel="noopener">@magic/core</a></p></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://magic.github.io/">magic</a></div></div></footer></div></main><script src="/light-switch/magic.js?HHcCW0BvmO" integrity="sha384-HHcCW0BvmOZTg5w1Pop6U+h8pz0BEYvz60K6RRc2GHcIORcsiS4L0Z+dnXdt/Q7w" crossorigin="anonymous"></script></body></html>
Loading