Skip to content

Commit 36ad1a0

Browse files
committedApr 21, 2021
docs: update
1 parent 2d94676 commit 36ad1a0

File tree

21 files changed

+65
-65
lines changed

21 files changed

+65
-65
lines changed
 

‎docs/404.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +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"/><meta http-equiv="Permissions-Policy" content="interest-cohort=()"/><link rel="icon" href="/core/favicon.ico"/><title>@magic/core documentation</title><meta name="twitter:image" property="og:image" content="https:/magic.github.io/core/logo.png"/><meta name="twitter:card" content="summary_large_image"/><meta name="description" content="404 - not found."/><meta name="author" content="Jascha Ehrenreich"/><script type="application/ld+json"></script><link rel="stylesheet" href="/core/magic.css?JsePX/EMkI" integrity="sha384-JsePX/EMkIQmcYS+C30e+T3aTVb0vwHITFHrAdAd7erYPWxxtlwSOEsrQzQN3AmG" crossorigin="anonymous"/><link href="/core/addCss.css" rel="stylesheet"/></head><body><a class="SkipLink" href="/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/core/"><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>@magic</p><nav class="Menu"><ul><li><a href="/core/concepts/">concepts</a></li><li><a href="/core/files/">files &amp; directories</a></li><li><a href="/core/modules/">modules</a></li><li><a href="/core/themes/">themes</a></li><li><a href="/core/libraries/">libraries</a></li><li><a href="/core/news/">news</a></li><li><a href="/core/test/">test</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://magic.github.io/">magic</a></div></div></footer></div></main><div id="AddTag"></div><script src="/core/magic.js?iwWcPX7///" integrity="sha384-iwWcPX7///G1fpjnTyb8koxGzlx+fa4RjENqJ5FdHYynNaEWDsyp4AEMJrEh3o9i" crossorigin="anonymous"></script><script src="/core/addScript.js"></script></body></html>
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"/><meta http-equiv="Permissions-Policy" content="interest-cohort=()"/><link rel="icon" href="/core/favicon.ico"/><title>@magic/core documentation</title><meta name="twitter:image" property="og:image" content="https:/magic.github.io/core/logo.png"/><meta name="twitter:card" content="summary_large_image"/><meta name="description" content="404 - not found."/><meta name="author" content="Jascha Ehrenreich"/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic/core documentation","url":"https://magic.github.io/core/","about":"@magic framework core.","image":"https:/magic.github.io/core/logo.png","author":{"@type":"person","name":"Jascha Ehrenreich","jobTitle":"Technomancer","image":"https:/jaeh.at/img/jascha.ehrenreich.jpg","url":"https://jaeh.at"}}</script><link rel="stylesheet" href="/core/magic.css?JsePX/EMkI" integrity="sha384-JsePX/EMkIQmcYS+C30e+T3aTVb0vwHITFHrAdAd7erYPWxxtlwSOEsrQzQN3AmG" crossorigin="anonymous"/><link href="/core/addCss.css" rel="stylesheet"/></head><body><a class="SkipLink" href="/core/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/core/"><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>@magic</p><nav class="Menu"><ul><li><a href="/core/concepts/">concepts</a></li><li><a href="/core/files/">files &amp; directories</a></li><li><a href="/core/modules/">modules</a></li><li><a href="/core/themes/">themes</a></li><li><a href="/core/libraries/">libraries</a></li><li><a href="/core/news/">news</a></li><li><a href="/core/test/">test</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://magic.github.io/">magic</a></div></div></footer></div></main><div id="AddTag"></div><script src="/core/magic.js?whfVgTobYR" integrity="sha384-whfVgTobYR8Gr0IJ1jWeXwnY6wIMe6oJXsmVLGFqQHfzjmQ+08sHK2r/WsbDkT08" crossorigin="anonymous"></script><script src="/core/addScript.js"></script></body></html>

‎docs/build/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +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"/><meta http-equiv="Permissions-Policy" content="interest-cohort=()"/><link rel="icon" href="/core/favicon.ico"/><title>@magic/core documentation</title><meta name="twitter:image" property="og:image" content="https:/magic.github.io/core/logo.png"/><meta name="twitter:card" content="summary_large_image"/><meta name="description" content="This is some static data, loaded via example/app.mjs#build and from example/assets/data/index.json."/><meta name="author" content="Jascha Ehrenreich"/><script type="application/ld+json"></script><link rel="stylesheet" href="/core/magic.css?JsePX/EMkI" integrity="sha384-JsePX/EMkIQmcYS+C30e+T3aTVb0vwHITFHrAdAd7erYPWxxtlwSOEsrQzQN3AmG" crossorigin="anonymous"/><link href="/core/addCss.css" rel="stylesheet"/></head><body><a class="SkipLink" href="/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/core/"><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>@magic</p><nav class="Menu"><ul><li><a href="/core/concepts/">concepts</a></li><li><a href="/core/files/">files &amp; directories</a></li><li><a href="/core/modules/">modules</a></li><li><a href="/core/themes/">themes</a></li><li><a href="/core/libraries/">libraries</a></li><li><a href="/core/news/">news</a></li><li><a href="/core/test/">test</a></li></ul></nav></header><div class="Page" id="page"><div><h3>external data</h3><p>This is some static data, loaded via example/app.mjs#build and from example/assets/data/index.json.</p><p><h4>state.data</h4><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">{</code><code class="line"> <span class="string">&quot;data&quot;</span>: {</code><code class="line"> <span class="string">&quot;title&quot;</span>: <span class="string">&quot;external data&quot;</span>,</code><code class="line"> <span class="string">&quot;description&quot;</span>: <span class="string">&quot;This is some static data, loaded via example/app.mjs#build and from example/assets/data/index.json.&quot;</span></code><code class="line"> }</code><code class="line">}</code></pre></div></p></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><div id="AddTag"></div><script src="/core/magic.js?iwWcPX7///" integrity="sha384-iwWcPX7///G1fpjnTyb8koxGzlx+fa4RjENqJ5FdHYynNaEWDsyp4AEMJrEh3o9i" crossorigin="anonymous"></script><script src="/core/addScript.js"></script></body></html>
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"/><meta http-equiv="Permissions-Policy" content="interest-cohort=()"/><link rel="icon" href="/core/favicon.ico"/><title>@magic/core documentation</title><meta name="twitter:image" property="og:image" content="https:/magic.github.io/core/logo.png"/><meta name="twitter:card" content="summary_large_image"/><meta name="description" content="This is some static data, loaded via example/app.mjs#build and from example/assets/data/index.json."/><meta name="author" content="Jascha Ehrenreich"/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic/core documentation","url":"https://magic.github.io/core/","about":"@magic framework core.","image":"https:/magic.github.io/core/logo.png","author":{"@type":"person","name":"Jascha Ehrenreich","jobTitle":"Technomancer","image":"https:/jaeh.at/img/jascha.ehrenreich.jpg","url":"https://jaeh.at"}}</script><link rel="stylesheet" href="/core/magic.css?JsePX/EMkI" integrity="sha384-JsePX/EMkIQmcYS+C30e+T3aTVb0vwHITFHrAdAd7erYPWxxtlwSOEsrQzQN3AmG" crossorigin="anonymous"/><link href="/core/addCss.css" rel="stylesheet"/></head><body><a class="SkipLink" href="/core/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/core/"><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>@magic</p><nav class="Menu"><ul><li><a href="/core/concepts/">concepts</a></li><li><a href="/core/files/">files &amp; directories</a></li><li><a href="/core/modules/">modules</a></li><li><a href="/core/themes/">themes</a></li><li><a href="/core/libraries/">libraries</a></li><li><a href="/core/news/">news</a></li><li><a href="/core/test/">test</a></li></ul></nav></header><div class="Page" id="page"><div><h3>external data</h3><p>This is some static data, loaded via example/app.mjs#build and from example/assets/data/index.json.</p><p><h4>state.data</h4><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">{</code><code class="line"> <span class="string">&quot;data&quot;</span>: {</code><code class="line"> <span class="string">&quot;title&quot;</span>: <span class="string">&quot;external data&quot;</span>,</code><code class="line"> <span class="string">&quot;description&quot;</span>: <span class="string">&quot;This is some static data, loaded via example/app.mjs#build and from example/assets/data/index.json.&quot;</span></code><code class="line"> }</code><code class="line">}</code></pre></div></p></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><div id="AddTag"></div><script src="/core/magic.js?whfVgTobYR" integrity="sha384-whfVgTobYR8Gr0IJ1jWeXwnY6wIMe6oJXsmVLGFqQHfzjmQ+08sHK2r/WsbDkT08" crossorigin="anonymous"></script><script src="/core/addScript.js"></script></body></html>

‎docs/concepts/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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"/><meta http-equiv="Permissions-Policy" content="interest-cohort=()"/><link rel="icon" href="/core/favicon.ico"/><title>@magic/core documentation</title><meta name="twitter:image" property="og:image" content="https:/magic.github.io/core/logo.png"/><meta name="twitter:card" content="summary_large_image"/><meta name="description" content="@magic/core conceptual information. explains the main concepts that make the @magic work."/><meta name="author" content="Jascha Ehrenreich"/><script type="application/ld+json"></script><link rel="stylesheet" href="/core/magic.css?JsePX/EMkI" integrity="sha384-JsePX/EMkIQmcYS+C30e+T3aTVb0vwHITFHrAdAd7erYPWxxtlwSOEsrQzQN3AmG" crossorigin="anonymous"/><link href="/core/addCss.css" rel="stylesheet"/></head><body><a class="SkipLink" href="/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/core/"><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>@magic</p><nav class="Menu"><ul><li class="active"><a href="/core/concepts/">concepts</a><ul><li><a href="/core/concepts/#modules">modules</a></li><li><a href="/core/concepts/#state">state</a></li><li><a href="/core/concepts/#actions">actions</a></li><li><a href="/core/concepts/#views">views</a></li><li><a href="/core/concepts/#styles">styles</a></li><li><a href="/core/concepts/#globals">global</a></li><li><a href="/core/concepts/#lambdas">server lambdas</a></li></ul></li><li><a href="/core/files/">files &amp; directories</a></li><li><a href="/core/modules/">modules</a></li><li><a href="/core/themes/">themes</a></li><li><a href="/core/libraries/">libraries</a></li><li><a href="/core/news/">news</a></li><li><a href="/core/test/">test</a></li></ul></nav></header><div class="Page" id="page"><h1 id="magiccore-concepts">@magic/core concepts</h1><p>magic concepts. These are the building blocks of every module in a magic app</p><h2 id="modules">@magic-modules</h2><p>modules are the main building block of magic.</p><p>a page is a module, a button is a module, a link is a module, an image is a module.
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"/><meta http-equiv="Permissions-Policy" content="interest-cohort=()"/><link rel="icon" href="/core/favicon.ico"/><title>@magic/core documentation</title><meta name="twitter:image" property="og:image" content="https:/magic.github.io/core/logo.png"/><meta name="twitter:card" content="summary_large_image"/><meta name="description" content="@magic/core conceptual information. explains the main concepts that make the @magic work."/><meta name="author" content="Jascha Ehrenreich"/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic/core documentation","url":"https://magic.github.io/core/","about":"@magic framework core.","image":"https:/magic.github.io/core/logo.png","author":{"@type":"person","name":"Jascha Ehrenreich","jobTitle":"Technomancer","image":"https:/jaeh.at/img/jascha.ehrenreich.jpg","url":"https://jaeh.at"}}</script><link rel="stylesheet" href="/core/magic.css?JsePX/EMkI" integrity="sha384-JsePX/EMkIQmcYS+C30e+T3aTVb0vwHITFHrAdAd7erYPWxxtlwSOEsrQzQN3AmG" crossorigin="anonymous"/><link href="/core/addCss.css" rel="stylesheet"/></head><body><a class="SkipLink" href="/core/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/core/"><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>@magic</p><nav class="Menu"><ul><li class="active"><a href="/core/concepts/">concepts</a><ul><li><a href="/core/concepts/#modules">modules</a></li><li><a href="/core/concepts/#state">state</a></li><li><a href="/core/concepts/#actions">actions</a></li><li><a href="/core/concepts/#views">views</a></li><li><a href="/core/concepts/#styles">styles</a></li><li><a href="/core/concepts/#globals">global</a></li><li><a href="/core/concepts/#lambdas">server lambdas</a></li></ul></li><li><a href="/core/files/">files &amp; directories</a></li><li><a href="/core/modules/">modules</a></li><li><a href="/core/themes/">themes</a></li><li><a href="/core/libraries/">libraries</a></li><li><a href="/core/news/">news</a></li><li><a href="/core/test/">test</a></li></ul></nav></header><div class="Page" id="page"><h1 id="magiccore-concepts">@magic/core concepts</h1><p>magic concepts. These are the building blocks of every module in a magic app</p><h2 id="modules">@magic-modules</h2><p>modules are the main building block of magic.</p><p>a page is a module, a button is a module, a link is a module, an image is a module.
22
even a theme is a module.</p><p>a @magic app contains modules containing modules that contain modules.
33
this can lead to inception.</p><h2 id="module-building-blocks">module building blocks</h2><h3 id="state">state</h3><p>state is a javascript object.
44
state can be mutated by actions,
@@ -14,4 +14,4 @@
1414
you can define functions that get transpiled into serverside lambdas.
1515
server side lambdas will be available for GET and/or POST requests.</p><p>the server side function signature is (req, res) =&gt; {},
1616
as it is in most nodejs http servers,
17-
with the addition of req.body being async =&gt; awaited before execution of the lambda.</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><div id="AddTag"></div><script src="/core/magic.js?iwWcPX7///" integrity="sha384-iwWcPX7///G1fpjnTyb8koxGzlx+fa4RjENqJ5FdHYynNaEWDsyp4AEMJrEh3o9i" crossorigin="anonymous"></script><script src="/core/addScript.js"></script></body></html>
17+
with the addition of req.body being async =&gt; awaited before execution of the lambda.</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><div id="AddTag"></div><script src="/core/magic.js?whfVgTobYR" integrity="sha384-whfVgTobYR8Gr0IJ1jWeXwnY6wIMe6oJXsmVLGFqQHfzjmQ+08sHK2r/WsbDkT08" crossorigin="anonymous"></script><script src="/core/addScript.js"></script></body></html>

0 commit comments

Comments
 (0)
Please sign in to comment.