all repos — h3 @ ebce248329698c1158faef0fbf9c8818291b4ce3

A tiny, extremely minimalist JavaScript microframework.

$navigation is now fired before rendering begins.
h3rald h3rald@h3rald.com
Sat, 02 May 2020 19:50:18 +0200
commit

ebce248329698c1158faef0fbf9c8818291b4ce3

parent

843db90e49ee19b5491ff91ca8252570c368a84c

M README.mdREADME.md

@@ -19,7 +19,7 @@ ### I'm sold! Where can I get it?

Here, look, it's just one file: -<a href="https://raw.githubusercontent.com/h3rald/h3/v0.3.0/h3.js" target="_blank" class="button primary">Download v0.3.0 (Cunning Cardassian)</a> +<a href="https://raw.githubusercontent.com/h3rald/h3/v0.4.0/h3.js" target="_blank" class="button primary">Download v0.4.0 (Dedicated Denobulan)</a> Yes there is also a [NPM package](https://www.npmjs.com/package/@h3rald/h3) if you want to use it with WebPack and similar, but let me repeat: _it's just one file_.
M docs/H3_DeveloperGuide.htmdocs/H3_DeveloperGuide.htm

@@ -7331,7 +7331,7 @@ <h3>I&rsquo;m sold! Where can I get it?<a href="#document-top" title="Go to top"></a></h3>

<p>Here, look, it&rsquo;s just one file:</p> -<p><a href="https://raw.githubusercontent.com/h3rald/h3/v0.3.0/h3.js" target="_blank" class="button primary">Download v0.3.0 (Cunning Cardassian)</a></p> +<p><a href="https://raw.githubusercontent.com/h3rald/h3/v0.4.0/h3.js" target="_blank" class="button primary">Download v0.4.0 (Dedicated Denobulan)</a></p> <p>Yes there is also a <a href="https://www.npmjs.com/package/@h3rald/h3">NPM package</a> if you want to use it with WebPack and similar, but let me repeat: <em>it&rsquo;s just one file</em>.</p>

@@ -7662,8 +7662,8 @@ h3("a.logo.col-sm-1", { href: "#/" }, [

h3("img", { alt: "H3", src: "images/h3.svg" }), ]), h3("div.version.col-sm.col-md", [ - h3("div.version-number", "v0.3.0"), - h3("div.version-label", "“Cunning Cardassian“"), + h3("div.version-number", "v0.4.0"), + h3("div.version-label", "“Dedicated Denobulan“"), ]), h3("label.drawer-toggle.button.col-sm-last", { for: "drawer-control" }), ]);

@@ -7999,7 +7999,7 @@ </ul>

</div> <div id="footer"> - <p><span class="copy"></span> Fabio Cevasco &ndash; May 1, 2020</p> + <p><span class="copy"></span> Fabio Cevasco &ndash; May 2, 2020</p> <p><span>Powered by</span> <a href="https://h3rald.com/hastyscribe"><span class="hastyscribe"></span></a></p> </div> </div>
M docs/example/assets/js/h3.jsdocs/example/assets/js/h3.js

@@ -588,6 +588,7 @@ }

if (!this.route) { throw new Error(`[Router] No route matches '${fragment}'`); } + this.store.dispatch("$navigation", this.route); // Display View while (this.element.firstChild) { this.element.removeChild(this.element.firstChild);

@@ -597,7 +598,6 @@ this.element.appendChild(vnode.render());

this.setRedraw(vnode); window.scrollTo(0, 0); this.store.dispatch("$redraw", this.route); - this.store.dispatch("$navigation", this.route); }; processPath(); window.addEventListener("hashchange", processPath);
M docs/js/app.jsdocs/js/app.js

@@ -44,8 +44,8 @@ h3("a.logo.col-sm-1", { href: "#/" }, [

h3("img", { alt: "H3", src: "images/h3.svg" }), ]), h3("div.version.col-sm.col-md", [ - h3("div.version-number", "v0.3.0"), - h3("div.version-label", "“Cunning Cardassian“"), + h3("div.version-number", "v0.4.0"), + h3("div.version-label", "“Dedicated Denobulan“"), ]), h3("label.drawer-toggle.button.col-sm-last", { for: "drawer-control" }), ]);
M docs/js/h3.jsdocs/js/h3.js

@@ -588,6 +588,7 @@ }

if (!this.route) { throw new Error(`[Router] No route matches '${fragment}'`); } + this.store.dispatch("$navigation", this.route); // Display View while (this.element.firstChild) { this.element.removeChild(this.element.firstChild);

@@ -597,7 +598,6 @@ this.element.appendChild(vnode.render());

this.setRedraw(vnode); window.scrollTo(0, 0); this.store.dispatch("$redraw", this.route); - this.store.dispatch("$navigation", this.route); }; processPath(); window.addEventListener("hashchange", processPath);
M docs/md/overview.mddocs/md/overview.md

@@ -12,7 +12,7 @@ ### I'm sold! Where can I get it?

Here, look, it's just one file: -<a href="https://raw.githubusercontent.com/h3rald/h3/v0.3.0/h3.js" target="_blank" class="button primary">Download v0.3.0 (Cunning Cardassian)</a> +<a href="https://raw.githubusercontent.com/h3rald/h3/v0.4.0/h3.js" target="_blank" class="button primary">Download v0.4.0 (Dedicated Denobulan)</a> Yes there is also a [NPM package](https://www.npmjs.com/package/@h3rald/h3) if you want to use it with WebPack and similar, but let me repeat: _it's just one file_.
M docs/md/tutorial.mddocs/md/tutorial.md

@@ -118,8 +118,8 @@ h3("a.logo.col-sm-1", { href: "#/" }, [

h3("img", { alt: "H3", src: "images/h3.svg" }), ]), h3("div.version.col-sm.col-md", [ - h3("div.version-number", "v0.3.0"), - h3("div.version-label", "“Cunning Cardassian“"), + h3("div.version-number", "v0.4.0"), + h3("div.version-label", "“Dedicated Denobulan“"), ]), h3("label.drawer-toggle.button.col-sm-last", { for: "drawer-control" }), ]);
M h3.jsh3.js

@@ -588,6 +588,7 @@ }

if (!this.route) { throw new Error(`[Router] No route matches '${fragment}'`); } + this.store.dispatch("$navigation", this.route); // Display View while (this.element.firstChild) { this.element.removeChild(this.element.firstChild);

@@ -597,7 +598,6 @@ this.element.appendChild(vnode.render());

this.setRedraw(vnode); window.scrollTo(0, 0); this.store.dispatch("$redraw", this.route); - this.store.dispatch("$navigation", this.route); }; processPath(); window.addEventListener("hashchange", processPath);
M package.jsonpackage.json

@@ -1,7 +1,7 @@

{ "name": "@h3rald/h3", - "version": "0.3.0", - "versionName": "Cunning Cardassian", + "version": "0.4.0", + "versionName": "Dedicated Denobulan", "description": "A tiny, extremely minimalist JavaScript microframework.", "main": "h3.js", "scripts": {