lego-dom 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -432
- package/docs/.vitepress/config.js +4 -4
- package/docs/.vitepress/dist/404.html +3 -3
- package/docs/.vitepress/dist/api/define.html +6 -6
- package/docs/.vitepress/dist/api/directives.html +6 -6
- package/docs/.vitepress/dist/api/globals.html +7 -7
- package/docs/.vitepress/dist/api/index.html +7 -7
- package/docs/.vitepress/dist/api/lifecycle.html +6 -6
- package/docs/.vitepress/dist/api/route.html +6 -6
- package/docs/.vitepress/dist/api/vite-plugin.html +7 -7
- package/docs/.vitepress/dist/assets/{api_globals.md.DOjt7AV0.js → api_globals.md.CEznyRAY.js} +1 -1
- package/docs/.vitepress/dist/assets/api_index.md.IEYUxUIr.js +1 -0
- package/docs/.vitepress/dist/assets/{api_vite-plugin.md.DNn9VhL5.js → api_vite-plugin.md.DC8Li09k.js} +1 -1
- package/docs/.vitepress/dist/assets/{app.BG5s3B0P.js → app.BfblNDJy.js} +1 -1
- package/docs/.vitepress/dist/assets/chunks/@localSearchIndexroot.Crdp7-Zp.js +1 -0
- package/docs/.vitepress/dist/assets/chunks/{VPLocalSearchBox.BO-PSxt1.js → VPLocalSearchBox.C18E44rY.js} +1 -1
- package/docs/.vitepress/dist/assets/chunks/{theme.DA-iSa9B.js → theme.VX3itTW6.js} +2 -2
- package/docs/.vitepress/dist/assets/{examples_form.md.B3stGKbu.js → examples_form.md.DQoAgbLR.js} +1 -1
- package/docs/.vitepress/dist/assets/{examples_index.md.BDEG_D4J.js → examples_index.md.CVJJjXXE.js} +3 -5
- package/docs/.vitepress/dist/assets/{examples_routing.md.bqZ9DjDK.js → examples_routing.md.sRnA5RXw.js} +4 -4
- package/docs/.vitepress/dist/assets/{examples_sfc-showcase.md.DLXaUiop.js → examples_sfc-showcase.md.DPf9Wm99.js} +4 -4
- package/docs/.vitepress/dist/assets/{examples_todo-app.md.D5RhZoo5.js → examples_todo-app.md.CqF4JaWn.js} +2 -2
- package/docs/.vitepress/dist/assets/{guide_cdn-usage.md.CAjf03Lr.js → guide_cdn-usage.md.CjIjusre.js} +8 -8
- package/docs/.vitepress/dist/assets/{guide_components.md.BIFWF1Hc.js → guide_components.md.CMU3iM6R.js} +1 -1
- package/docs/.vitepress/dist/assets/guide_contributing.md.Crrv3T_0.js +1 -0
- package/docs/.vitepress/dist/assets/{guide_directives.md.Bi3ynu1d.js → guide_directives.md.DFwqvqOv.js} +1 -1
- package/docs/.vitepress/dist/assets/{guide_getting-started.md.2Nr1lp2z.js → guide_getting-started.md.DtaJPe0i.js} +5 -5
- package/docs/.vitepress/dist/assets/guide_index.md.DtJVpLI9.js +2 -0
- package/docs/.vitepress/dist/assets/guide_index.md.DtJVpLI9.lean.js +1 -0
- package/docs/.vitepress/dist/assets/{guide_lifecycle.md.B28j1OzS.js → guide_lifecycle.md.CfY3jlU1.js} +1 -1
- package/docs/.vitepress/dist/assets/{guide_quick-start.md.CNk3VGTF.js → guide_quick-start.md.CwdNNA21.js} +4 -4
- package/docs/.vitepress/dist/assets/{guide_reactivity.md.CVsaMaPv.js → guide_reactivity.md.DgTH0MTn.js} +8 -8
- package/docs/.vitepress/dist/assets/{guide_routing.md.DSpDP25o.js → guide_routing.md.nMB0QOBR.js} +3 -3
- package/docs/.vitepress/dist/assets/{guide_sfc.md.CVUP66tS.js → guide_sfc.md.BUkWma1z.js} +39 -39
- package/docs/.vitepress/dist/assets/{guide_templating.md.BgCGe4aa.js → guide_templating.md.XI3uUlYI.js} +2 -2
- package/docs/.vitepress/dist/assets/guide_templating.md.XI3uUlYI.lean.js +1 -0
- package/docs/.vitepress/dist/assets/{index.md.xV1taCED.js → index.md.M4_o26kF.js} +2 -2
- package/docs/.vitepress/dist/assets/index.md.M4_o26kF.lean.js +1 -0
- package/docs/.vitepress/dist/examples/form.html +7 -7
- package/docs/.vitepress/dist/examples/index.html +26 -342
- package/docs/.vitepress/dist/examples/routing.html +11 -11
- package/docs/.vitepress/dist/examples/sfc-showcase.html +11 -11
- package/docs/.vitepress/dist/examples/todo-app.html +8 -8
- package/docs/.vitepress/dist/guide/cdn-usage.html +14 -14
- package/docs/.vitepress/dist/guide/components.html +7 -7
- package/docs/.vitepress/dist/guide/contributing.html +7 -7
- package/docs/.vitepress/dist/guide/directives.html +8 -8
- package/docs/.vitepress/dist/guide/getting-started.html +11 -11
- package/docs/.vitepress/dist/guide/index.html +8 -8
- package/docs/.vitepress/dist/guide/lifecycle.html +7 -7
- package/docs/.vitepress/dist/guide/quick-start.html +10 -10
- package/docs/.vitepress/dist/guide/reactivity.html +14 -14
- package/docs/.vitepress/dist/guide/routing.html +9 -9
- package/docs/.vitepress/dist/guide/sfc.html +46 -46
- package/docs/.vitepress/dist/guide/templating.html +8 -8
- package/docs/.vitepress/dist/hashmap.json +1 -1
- package/docs/.vitepress/dist/index.html +8 -8
- package/docs/.vitepress/dist/logo.svg +1 -1
- package/docs/api/globals.md +1 -1
- package/docs/api/index.md +2 -2
- package/docs/api/vite-plugin.md +1 -1
- package/docs/examples/form.md +1 -1
- package/docs/examples/index.md +3 -3
- package/docs/examples/routing.md +4 -4
- package/docs/examples/sfc-showcase.md +4 -4
- package/docs/examples/todo-app.md +2 -2
- package/docs/guide/cdn-usage.md +8 -8
- package/docs/guide/components.md +1 -1
- package/docs/guide/contributing.md +2 -2
- package/docs/guide/directives.md +1 -1
- package/docs/guide/getting-started.md +6 -6
- package/docs/guide/index.md +9 -9
- package/docs/guide/lifecycle.md +1 -1
- package/docs/guide/quick-start.md +4 -4
- package/docs/guide/reactivity.md +8 -8
- package/docs/guide/routing.md +3 -3
- package/docs/guide/sfc.md +39 -39
- package/docs/guide/templating.md +2 -2
- package/docs/index.md +10 -10
- package/docs/public/logo.svg +17 -38
- package/examples/vite-app/README.md +2 -2
- package/examples/vite-app/index.html +8 -4
- package/examples/vite-app/src/components/greeting-card.lego +25 -25
- package/examples/vite-app/src/components/sample-component.lego +44 -44
- package/examples/vite-app/src/components/todo-list.lego +242 -0
- package/examples/vite-app/src/main.js +3 -3
- package/examples/vite-app/vite.config.js +2 -1
- package/examples.js +3 -3
- package/go.html +117 -0
- package/lego.js +2 -0
- package/main.js +41 -35
- package/package.json +8 -3
- package/parse-lego.test.js +1 -1
- package/vite-plugin.js +2 -2
- package/docs/.vitepress/dist/assets/api_index.md.OS6h01ct.js +0 -1
- package/docs/.vitepress/dist/assets/chunks/@localSearchIndexroot.DQmuWC2Z.js +0 -1
- package/docs/.vitepress/dist/assets/guide_contributing.md.BgbUN-Mr.js +0 -1
- package/docs/.vitepress/dist/assets/guide_index.md.GvZq_Yf2.js +0 -2
- package/docs/.vitepress/dist/assets/guide_index.md.GvZq_Yf2.lean.js +0 -1
- package/docs/.vitepress/dist/assets/guide_templating.md.BgCGe4aa.lean.js +0 -1
- package/docs/.vitepress/dist/assets/index.md.xV1taCED.lean.js +0 -1
- /package/docs/.vitepress/dist/assets/{api_globals.md.DOjt7AV0.lean.js → api_globals.md.CEznyRAY.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{api_index.md.OS6h01ct.lean.js → api_index.md.IEYUxUIr.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{api_vite-plugin.md.DNn9VhL5.lean.js → api_vite-plugin.md.DC8Li09k.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{examples_form.md.B3stGKbu.lean.js → examples_form.md.DQoAgbLR.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{examples_index.md.BDEG_D4J.lean.js → examples_index.md.CVJJjXXE.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{examples_routing.md.bqZ9DjDK.lean.js → examples_routing.md.sRnA5RXw.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{examples_sfc-showcase.md.DLXaUiop.lean.js → examples_sfc-showcase.md.DPf9Wm99.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{examples_todo-app.md.D5RhZoo5.lean.js → examples_todo-app.md.CqF4JaWn.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{guide_cdn-usage.md.CAjf03Lr.lean.js → guide_cdn-usage.md.CjIjusre.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{guide_components.md.BIFWF1Hc.lean.js → guide_components.md.CMU3iM6R.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{guide_contributing.md.BgbUN-Mr.lean.js → guide_contributing.md.Crrv3T_0.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{guide_directives.md.Bi3ynu1d.lean.js → guide_directives.md.DFwqvqOv.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{guide_getting-started.md.2Nr1lp2z.lean.js → guide_getting-started.md.DtaJPe0i.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{guide_lifecycle.md.B28j1OzS.lean.js → guide_lifecycle.md.CfY3jlU1.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{guide_quick-start.md.CNk3VGTF.lean.js → guide_quick-start.md.CwdNNA21.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{guide_reactivity.md.CVsaMaPv.lean.js → guide_reactivity.md.DgTH0MTn.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{guide_routing.md.DSpDP25o.lean.js → guide_routing.md.nMB0QOBR.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{guide_sfc.md.CVUP66tS.lean.js → guide_sfc.md.BUkWma1z.lean.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as t,c as i,o as a,ag as s}from"./chunks/framework.B7OFBR9X.js";const u=JSON.parse('{"title":"Contributing","description":"","frontmatter":{},"headers":[],"relativePath":"guide/contributing.md","filePath":"guide/contributing.md"}'),n={name:"guide/contributing.md"};function l(o,e,r,d,p,h){return a(),i("div",null,[...e[0]||(e[0]=[s('<h1 id="contributing" tabindex="-1">Contributing <a class="header-anchor" href="#contributing" aria-label="Permalink to "Contributing""></a></h1><p>Thank you for your interest in contributing to LegoJS!</p><h2 id="development-setup" tabindex="-1">Development Setup <a class="header-anchor" href="#development-setup" aria-label="Permalink to "Development Setup""></a></h2><ol><li><p>Clone the repository:</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> clone</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> https://github.com/rayattack/LegoJS.git</span></span></code></pre></div></li><li><p>Install dependencies:</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">yarn</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> install</span></span></code></pre></div></li><li><p>Run the dev server for docs:</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">yarn</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> docs:dev</span></span></code></pre></div></li></ol><h2 id="pull-requests" tabindex="-1">Pull Requests <a class="header-anchor" href="#pull-requests" aria-label="Permalink to "Pull Requests""></a></h2><ol><li>Fork the repo and create your branch from <code>main</code>.</li><li>If you've added code that should be tested, add tests.</li><li>If you've changed APIs, update the documentation.</li><li>Ensure the test suite passes.</li><li>Make sure your code lints.</li></ol><h2 id="license" tabindex="-1">License <a class="header-anchor" href="#license" aria-label="Permalink to "License""></a></h2><p>By contributing, you agree that your contributions will be licensed under its MIT License.</p>',8)])])}const g=t(n,[["render",l]]);export{u as __pageData,g as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as a,c as l,o,ag as n,j as e,a as i,t as s}from"./chunks/framework.B7OFBR9X.js";const f=JSON.parse('{"title":"What is LegoJS?","description":"","frontmatter":{},"headers":[],"relativePath":"guide/index.md","filePath":"guide/index.md"}'),r={name:"guide/index.md"},d={tabindex:"0"};function u(h,t,p,g,m,c){return o(),l("div",null,[t[9]||(t[9]=n(`<h1 id="what-is-legojs" tabindex="-1">What is LegoJS? <a class="header-anchor" href="#what-is-legojs" aria-label="Permalink to "What is LegoJS?""></a></h1><p>LegoJS is a tiny, zero-dependency JavaScript library for building reactive Web Components directly in the browser.</p><h2 id="the-philosophy" tabindex="-1">The Philosophy <a class="header-anchor" href="#the-philosophy" aria-label="Permalink to "The Philosophy""></a></h2><p>LegoJS is built on a simple belief: <strong>the DOM is not your enemy</strong>.</p><p>Modern frameworks introduced virtual DOMs and compilation steps to solve problems that arose from trying to make the DOM do things it wasn't designed for. LegoJS takes a different approach—it embraces the DOM and Web Components as they were intended to be used.</p><h2 id="key-principles" tabindex="-1">Key Principles <a class="header-anchor" href="#key-principles" aria-label="Permalink to "Key Principles""></a></h2><h3 id="_1-mental-model-simplicity" tabindex="-1">1. Mental Model Simplicity <a class="header-anchor" href="#_1-mental-model-simplicity" aria-label="Permalink to "1. Mental Model Simplicity""></a></h3><p>There are no new concepts to learn. If you know:</p><ul><li>HTML</li><li>JavaScript objects</li><li>Basic DOM events</li></ul><p>You already know LegoJS.</p><h3 id="_2-no-build-step-required" tabindex="-1">2. No Build Step Required <a class="header-anchor" href="#_2-no-build-step-required" aria-label="Permalink to "2. No Build Step Required""></a></h3><p>Drop a <code><script></code> tag in your HTML and you're ready to go. Build tools are optional, not mandatory.</p><h3 id="_3-true-reactivity" tabindex="-1">3. True Reactivity <a class="header-anchor" href="#_3-true-reactivity" aria-label="Permalink to "3. True Reactivity""></a></h3><p>Change an object → the DOM updates. That's it. No <code>setState</code>, no <code>dispatch</code>, no <code>computed properties</code> to configure.</p><div class="language-js vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">js</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// This just works</span></span>
|
|
2
|
-
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">component._studs.count</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">++</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">;</span></span></code></pre></div><h3 id="_4-web-standards-first" tabindex="-1">4. Web Standards First <a class="header-anchor" href="#_4-web-standards-first" aria-label="Permalink to "4. Web Standards First""></a></h3><p>LegoJS uses:</p><ul><li><strong>Web Components</strong> - Standard custom elements</li><li><strong>Shadow DOM</strong> - Native encapsulation</li><li><strong>ES6 Proxies</strong> - For reactivity</li><li><strong>Template literals</strong> - For templating</li></ul><p>No proprietary APIs. Everything is built on web standards.</p><h2 id="when-to-use-legojs" tabindex="-1">When to Use LegoJS <a class="header-anchor" href="#when-to-use-legojs" aria-label="Permalink to "When to Use LegoJS""></a></h2><h3 id="✅-legojs-is-great-for" tabindex="-1">✅ LegoJS is Great For: <a class="header-anchor" href="#✅-legojs-is-great-for" aria-label="Permalink to "✅ LegoJS is Great For:""></a></h3><ul><li><strong>Small to medium applications</strong> where framework overhead isn't worth it</li><li><strong>Embedded widgets</strong> that need to work anywhere</li><li><strong>Progressive enhancement</strong> of existing sites</li><li><strong>Learning</strong> how reactive systems work under the hood</li><li><strong>Projects</strong> where you want full control and no dependencies</li></ul><h3 id="⚠️-consider-alternatives-if" tabindex="-1">⚠️ Consider Alternatives If: <a class="header-anchor" href="#⚠️-consider-alternatives-if" aria-label="Permalink to "⚠️ Consider Alternatives If:""></a></h3><ul><li>You need a massive ecosystem of pre-built components</li><li>Your team is already invested in React/Vue/Angular</li><li>You need SSR (Server-Side Rendering) out of the box</li><li>You're building something extremely complex with hundreds of components</li></ul><h2 id="how-small-is-it" tabindex="-1">How Small Is It? <a class="header-anchor" href="#how-small-is-it" aria-label="Permalink to "How Small Is It?""></a></h2><p>The core library (<code>main.js</code>) is <strong>under 500 lines</strong> of well-commented JavaScript.</p><ul><li><strong>No dependencies</strong> - Zero <code>node_modules</code> bloat</li><li><strong>~17KB</strong> - Unminified, human-readable code</li><li><strong>~6KB</strong> - Minified and gzipped</li></ul><p>Compare that to:</p><ul><li>Vue 3: ~33KB (minified + gzipped)</li><li>React + ReactDOM: ~40KB (minified + gzipped)</li><li>Angular: ~100KB+ (minified + gzipped)</li></ul><h2 id="what-makes-it-different" tabindex="-1">What Makes It Different? <a class="header-anchor" href="#what-makes-it-different" aria-label="Permalink to "What Makes It Different?""></a></h2>`,30)),e("table",d,[t[8]||(t[8]=e("thead",null,[e("tr",null,[e("th",null,"Aspect"),e("th",null,"LegoJS"),e("th",null,"Traditional Frameworks")])],-1)),e("tbody",null,[t[3]||(t[3]=e("tr",null,[e("td",null,[e("strong",null,"Reactivity")]),e("td",null,"Direct object mutation"),e("td",null,"setState / dispatch / ref()")],-1)),e("tr",null,[t[1]||(t[1]=e("td",null,[e("strong",null,"Templates")],-1)),e("td",null,[t[0]||(t[0]=i("HTML with ",-1)),e("code",null,s(),1)]),t[2]||(t[2]=e("td",null,"JSX / template syntax",-1))]),t[4]||(t[4]=e("tr",null,[e("td",null,[e("strong",null,"Styles")]),e("td",null,"Shadow DOM (native)"),e("td",null,"CSS-in-JS / scoped CSS")],-1)),t[5]||(t[5]=e("tr",null,[e("td",null,[e("strong",null,"Build")]),e("td",null,"Optional"),e("td",null,"Required")],-1)),t[6]||(t[6]=e("tr",null,[e("td",null,[e("strong",null,"Learning Curve")]),e("td",null,"Hours"),e("td",null,"Days/Weeks")],-1)),t[7]||(t[7]=e("tr",null,[e("td",null,[e("strong",null,"Philosophy")]),e("td",null,"Embrace the platform"),e("td",null,"Abstract the platform")],-1))])]),t[10]||(t[10]=e("h2",{id:"next-steps",tabindex:"-1"},[i("Next Steps "),e("a",{class:"header-anchor",href:"#next-steps","aria-label":'Permalink to "Next Steps"'},"")],-1)),t[11]||(t[11]=e("p",null,[i("Ready to dive in? Head to the "),e("a",{href:"/LegoJS/guide/getting-started.html"},"Getting Started"),i(" guide to build your first component in under 5 minutes.")],-1))])}const y=a(r,[["render",u]]);export{f as __pageData,y as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as a,c as l,o,ag as n,j as e,a as i,t as s}from"./chunks/framework.B7OFBR9X.js";const f=JSON.parse('{"title":"What is LegoJS?","description":"","frontmatter":{},"headers":[],"relativePath":"guide/index.md","filePath":"guide/index.md"}'),r={name:"guide/index.md"},d={tabindex:"0"};function u(h,t,p,g,m,c){return o(),l("div",null,[t[9]||(t[9]=n("",30)),e("table",d,[t[8]||(t[8]=e("thead",null,[e("tr",null,[e("th",null,"Aspect"),e("th",null,"LegoJS"),e("th",null,"Traditional Frameworks")])],-1)),e("tbody",null,[t[3]||(t[3]=e("tr",null,[e("td",null,[e("strong",null,"Reactivity")]),e("td",null,"Direct object mutation"),e("td",null,"setState / dispatch / ref()")],-1)),e("tr",null,[t[1]||(t[1]=e("td",null,[e("strong",null,"Templates")],-1)),e("td",null,[t[0]||(t[0]=i("HTML with ",-1)),e("code",null,s(),1)]),t[2]||(t[2]=e("td",null,"JSX / template syntax",-1))]),t[4]||(t[4]=e("tr",null,[e("td",null,[e("strong",null,"Styles")]),e("td",null,"Shadow DOM (native)"),e("td",null,"CSS-in-JS / scoped CSS")],-1)),t[5]||(t[5]=e("tr",null,[e("td",null,[e("strong",null,"Build")]),e("td",null,"Optional"),e("td",null,"Required")],-1)),t[6]||(t[6]=e("tr",null,[e("td",null,[e("strong",null,"Learning Curve")]),e("td",null,"Hours"),e("td",null,"Days/Weeks")],-1)),t[7]||(t[7]=e("tr",null,[e("td",null,[e("strong",null,"Philosophy")]),e("td",null,"Embrace the platform"),e("td",null,"Abstract the platform")],-1))])]),t[10]||(t[10]=e("h2",{id:"next-steps",tabindex:"-1"},[i("Next Steps "),e("a",{class:"header-anchor",href:"#next-steps","aria-label":'Permalink to "Next Steps"'},"")],-1)),t[11]||(t[11]=e("p",null,[i("Ready to dive in? Head to the "),e("a",{href:"/LegoJS/guide/getting-started.html"},"Getting Started"),i(" guide to build your first component in under 5 minutes.")],-1))])}const y=a(r,[["render",u]]);export{f as __pageData,y as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as l,c as h,o as e,j as i,ag as t,a,t as n}from"./chunks/framework.B7OFBR9X.js";const y=JSON.parse('{"title":"Templating","description":"","frontmatter":{},"headers":[],"relativePath":"guide/templating.md","filePath":"guide/templating.md"}'),p={name:"guide/templating.md"};function k(E,s,d,r,g,o){return e(),h("div",null,[s[4]||(s[4]=i("h1",{id:"templating",tabindex:"-1"},[a("Templating "),i("a",{class:"header-anchor",href:"#templating","aria-label":'Permalink to "Templating"'},"")],-1)),s[5]||(s[5]=i("p",null,"Learn about LegoJS templating features and syntax.",-1)),s[6]||(s[6]=i("h2",{id:"interpolation",tabindex:"-1"},[a("Interpolation "),i("a",{class:"header-anchor",href:"#interpolation","aria-label":'Permalink to "Interpolation"'},"")],-1)),i("p",null,[s[0]||(s[0]=a("Use ",-1)),i("code",null,n(),1),s[1]||(s[1]=a(" to insert dynamic content:",-1))]),s[7]||(s[7]=t("",29)),i("p",null,[s[2]||(s[2]=a("Inside ",-1)),i("code",null,n(),1),s[3]||(s[3]=a(", you have access to:",-1))]),s[8]||(s[8]=t("",59))])}const u=l(p,[["render",k]]);export{y as __pageData,u as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as i,c as t,o as a,ag as e}from"./chunks/framework.B7OFBR9X.js";const E=JSON.parse(`{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"LegoJS","text":"Build Reactive Web Components","tagline":"A tiny, zero-dependency JavaScript library for creating reactive Web Components directly in the browser","image":{"src":"/logo.svg","alt":"LegoJS"},"actions":[{"theme":"brand","text":"Get Started","link":"/guide/getting-started"},{"theme":"alt","text":"View on GitHub","link":"https://github.com/rayattack/LegoJS"},{"theme":"alt","text":"Try Examples","link":"/examples/"}]},"features":[{"icon":"🎯","title":"Mental Model Simplicity","details":"No virtual DOM, no compilation step, no JSX. Just HTML with a few directives and reactive objects."},{"icon":"⚡","title":"Zero Dependencies","details":"Under 500 lines of code with no external dependencies. The entire library is smaller than most framework router plugins."},{"icon":"🔄","title":"True Reactivity","details":"Direct object mutation triggers updates. No setters, no actions, no reducers. Just change the data and the DOM updates."},{"icon":"🧩","title":"Web Components Native","details":"Built on standard Web Components with Shadow DOM. Works anywhere, plays well with existing code."},{"icon":"📦","title":"Single File Components","details":"Use .lego files with Vite for a modern development experience, or load directly in the browser."},{"icon":"🎨","title":"Scoped Styles","details":"Shadow DOM encapsulation means your styles never leak. Use the 'self' keyword to target component root."},{"icon":"🛣️","title":"Built-in Router","details":"Client-side routing included. Define routes, handle parameters, and add middleware without extra packages."},{"icon":"💪","title":"TypeScript Ready","details":"Full JSDoc annotations for excellent IDE support and optional TypeScript integration."},{"icon":"🚀","title":"Production Ready","details":"Battle-tested patterns from Vue and React, adapted for pure Web Components. No framework lock-in."}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}`),n={name:"index.md"};function l(h,s,p,r,o,k){return a(),t("div",null,[...s[0]||(s[0]=[e("",16)])])}const g=i(n,[["render",l]]);export{E as __pageData,g as default};
|
|
File without changes
|
/package/docs/.vitepress/dist/assets/{api_index.md.OS6h01ct.lean.js → api_index.md.IEYUxUIr.lean.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/docs/.vitepress/dist/assets/{guide_sfc.md.CVUP66tS.lean.js → guide_sfc.md.BUkWma1z.lean.js}
RENAMED
|
File without changes
|