all repos — h3rald @ 629fe8608e55a89dfb51ec92563cef366638e3bc

The sources of https://h3rald.com

Release new project versions.
h3rald h3rald@h3rald.com
Sat, 31 Oct 2020 23:56:21 +0100
commit

629fe8608e55a89dfb51ec92563cef366638e3bc

parent

3eedfa8d004d3d08c4216ad1ba7a46da8230aef9

M assets/h3/H3_DeveloperGuide.htmassets/h3/H3_DeveloperGuide.htm

@@ -7252,7 +7252,7 @@ </li>

<li><a href="#Quick-Start">Quick Start</a> <ul> <li><a href="#Create-a-basic-HTML-file">Create a basic HTML file</a></li> - <li><a href="#Import-h3.js">Import h3.js</a></li> + <li><a href="#Import-h3-and-h-from-h3.js">Import h3 and h from h3.js</a></li> <li><a href="#Create-your-SPA">Create your SPA</a></li> </ul> </li>

@@ -7337,7 +7337,7 @@ <p>Here, look, it&rsquo;s just one file:</p>

<p><a href="https://raw.githubusercontent.com/h3rald/h3/v0.11.0/h3.js" target="_blank" class="button primary">Download v0.11.0 (Keen Klingon)</a></p> -<p><small>Or get the minified version <a href="https://raw.githubusercontent.com/h3rald/h3/v0.9.0/h3.min.js">here</a>.</small></p> +<p><small>Or get the minified version <a href="https://raw.githubusercontent.com/h3rald/h3/v0.11.0/h3.min.js" target="_blank">here</a>.</small></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>

@@ -7346,7 +7346,7 @@ <h3>Hello, World?<a href="#document-top" title="Go to top"></a></h3>

<p>Here&rsquo;s an example of an extremely minimal SPA created with H3:</p> -<pre><code class="js">import h3 from "./h3.js"; +<pre><code class="js">import { h3, h } from "./h3.js"; h3.init(() =&gt; h("h1", "Hello, World!")); </code></pre>

@@ -7402,22 +7402,22 @@ </code></pre>

<p>Note that the script must be marked as an ES6 module (<code>type="module"</code>), otherwise your imports won&rsquo;t work.</p> -<a name="Import-h3.js"></a> -<h3>Import h3.js<a href="#document-top" title="Go to top"></a></h3> +<a name="Import-h3-and-h-from-h3.js"></a> +<h3>Import h3 and h from h3.js<a href="#document-top" title="Go to top"></a></h3> -<p>Then, inside your <code>app.js</code> file, import <code>h3.js</code>, which should be accessible somewhere in your app:</p> +<p>Then, inside your <code>app.js</code> file, import <code>h</code> and <code>h3</code> from <code>h3.js</code>, which should be accessible somewhere in your app:</p> -<pre><code class="js">import h3 from "./h3.js"; +<pre><code class="js">import { h3, h } from "./h3.js"; </code></pre> -<p>This will work in <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules">every modern browser except Internet Explorer</a>. You don&rsquo;t need a transpiler, you don&rsquo;t need something to convert your beautiful ES6 code back to cluncky ES5.</p> +<p>This will work in <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules">every modern browser except Internet Explorer</a>. You don&rsquo;t need a transpiler, you don&rsquo;t need something to convert your beautiful ES6 code back to clunky ES5.</p> <p>Unless your company tells you to, do yourself a favor and don&rsquo;t support IE. It&rsquo;s 2020, even <a href="https://www.theverge.com/2020/1/15/21066767/microsoft-edge-chromium-new-browser-windows-mac-download-os">Microsoft moved on</a>, and now ES6 modules work in all major browsers.</p> <a name="Create-your-SPA"></a> <h3>Create your SPA<a href="#document-top" title="Go to top"></a></h3> -<p>After importing the <code>h3</code> object, you can start developing your SPA. A bare minimum SPA is comprised by a single component passed to the <code>h3.init()</code> method:</p> +<p>After importing the <code>h3</code> object and the <code>h</code> function, you can start developing your SPA. A bare minimum SPA is comprised by a single component passed to the <code>h3.init()</code> method:</p> <pre><code class="js">// A simple component printing the current date and time // Pressig the Refresh button causes the application to redraw

@@ -7508,6 +7508,7 @@ <p>Screens are typically created using the <strong>h3.screen</strong> shorthand method, but they can stll created using an ordinary function returning a VNode, but you can optionally define a <strong>setup</strong> and a <strong>teardown</strong> async methods on them (functions are objects in JavaScript after all&hellip;) to be executed during each corresponding phase.</p>

<p>Note that: * Both the <strong>setup</strong> method take an object as a parameter, representing the component state. Such object will be empty the first time the <strong>setup</strong> method is called for a given component, but it may contain properties not removed during subsequent teardowns. +* If the <strong>setup</strong> method returns <strong>false</strong>, the <strong>display</strong> method of the screen (or the main screen function if you created it manually) will not be executed (and a <strong>$navigation</strong> event will be dispatched with <strong>null</strong> as data parameter). This can be useful in certain situations to interrupt navigation or perform redirects. * The <strong>teardown</strong> method can return an object, which will be retained as component state. If however nothing is returned, the component state object is emptied. * Both methods can be asynchronous, in which case H3 will wait for their completion before proceeding.</p>

@@ -7977,6 +7978,8 @@ </code></pre>

<p>This example shows how to implement a simple component that renders an employee profile in the <code>display</code> function, fetches data (if necessary) in the <code>setup</code> function, and preserves data in the <code>teardown</code> function.</p> +<p><strong>Tip</strong> To interrupt navigation or perform redirects, return <strong>false</strong> in the <strong>setup</strong> method.</p> + <a name="h3.dispatch(event:-string,-data:-any)"></a> <h3>h3.dispatch(event: string, data: any)<a href="#document-top" title="Go to top"></a></h3>

@@ -8125,7 +8128,7 @@ </ul>

</div> <div id="footer"> - <p><span class="copy"></span> Fabio Cevasco &ndash; August 2, 2020</p> + <p><span class="copy"></span> Fabio Cevasco &ndash; October 31, 2020</p> <p><span>Powered by</span> <a href="https://h3rald.com/hastyscribe"><span class="hastyscribe"></span></a></p> </div> </div>
M assets/hastyscribe/HastyScribe_UserGuide.htmassets/hastyscribe/HastyScribe_UserGuide.htm

@@ -7610,59 +7610,59 @@ </thead>

<tbody> <tr> <td><code>{{$timestamp}}</code> </td> -<td> 1587039634</td> +<td> 1598783377</td> </tr> <tr> <td><code>{{$date}}</code> </td> -<td> 2020-04-16</td> +<td> 2020-08-30</td> </tr> <tr> <td><code>{{$full-date}}</code> </td> -<td> Thursday, April 16, 2020</td> +<td> Sunday, August 30, 2020</td> </tr> <tr> <td><code>{{$long-date}}</code> </td> -<td> April 16, 2020</td> +<td> August 30, 2020</td> </tr> <tr> <td><code>{{$medium-date}}</code> </td> -<td> Apr 16, 2020</td> +<td> Aug 30, 2020</td> </tr> <tr> <td><code>{{$short-date}}</code> </td> -<td> 4/16/20</td> +<td> 8/30/20</td> </tr> <tr> <td><code>{{$short-time}}</code> </td> -<td> 14:20 PM</td> +<td> 12:29 PM</td> </tr> <tr> <td><code>{{$short-time-24}}</code> </td> -<td> 14:20</td> +<td> 12:29</td> </tr> <tr> <td><code>{{$time}}</code> </td> -<td> 14:20:34 PM</td> +<td> 12:29:37 PM</td> </tr> <tr> <td><code>{{$time-24}}</code> </td> -<td> 14:20:34</td> +<td> 12:29:37</td> </tr> <tr> <td><code>{{$day}}</code> </td> -<td> 16</td> +<td> 30</td> </tr> <tr> <td><code>{{$short-day}}</code> </td> -<td> 16</td> +<td> 30</td> </tr> <tr> <td><code>{{$month}}</code> </td> -<td> 04</td> +<td> 08</td> </tr> <tr> <td><code>{{$short-month}}</code> </td> -<td> 4</td> +<td> 8</td> </tr> <tr> <td><code>{{$year}}</code> </td>

@@ -7674,19 +7674,19 @@ <td> 20</td>

</tr> <tr> <td><code>{{$weekday}}</code> </td> -<td> Thursday</td> +<td> Sunday</td> </tr> <tr> <td><code>{{$weekday-abbr}}</code> </td> -<td> 16</td> +<td> 30</td> </tr> <tr> <td><code>{{$month-name}}</code> </td> -<td> April</td> +<td> August</td> </tr> <tr> <td><code>{{$month-name-abbr}}</code> </td> -<td> Apr</td> +<td> Aug</td> </tr> <tr> <td><code>{{$timezone-offset}}</code> </td>

@@ -8827,7 +8827,7 @@

<p style="text-align:center;"> <span class="fa-creative-commons"></span> <span class="fa-creative-commons-by"></span> <span class="fa-creative-commons-nc"></span> <span class="fa-creative-commons-nd"></span></p> </div> <div id="footer"> - <p><span class="copy"></span> Fabio Cevasco &ndash; April 16, 2020</p> + <p><span class="copy"></span> Fabio Cevasco &ndash; August 30, 2020</p> <p><span>Powered by</span> <a href="https://h3rald.com/hastyscribe"><span class="hastyscribe"></span></a></p> </div> </div>
M assets/hastysite/HastySite_UserGuide.htmassets/hastysite/HastySite_UserGuide.htm

@@ -7314,6 +7314,8 @@ </ul>

</li> <li><a href="#Changelog">Changelog</a> <ul> + <li><a href="#v1.3.5">v1.3.5</a></li> + <li><a href="#v1.3.4">v1.3.4</a></li> <li><a href="#v1.3.3">v1.3.3</a></li> <li><a href="#v1.3.2">v1.3.2</a></li> <li><a href="#v1.3.1">v1.3.1</a></li>

@@ -7412,9 +7414,9 @@

<p>You can download one of the following pre-built HastySite binaries:</p> <div class="unstyled"><ul> -<li><span class="apple"></span><a href="https://github.com/h3rald/hastysite/releases/download/v1.3.4/hastysite_v1.3.4_macosx_x64.zip">hastysite v1.3.4 for macOS (x64)</a></li> -<li><span class="windows"></span><a href="https://github.com/h3rald/hastysite/releases/download/v1.3.4/hastysite_v1.3.4_windows_x64.zip">hastysite v1.3.4 for Windows (x64)</a></li> -<li><span class="linux"></span><a href="https://github.com/h3rald/hastysite/releases/download/v1.3.4/hastysite_v1.3.4_linux_x64.zip">hastysite v1.3.4 for Linux (x64)</a></li> +<li><span class="apple"></span><a href="https://github.com/h3rald/hastysite/releases/download/v1.3.5/hastysite_v1.3.5_macosx_x64.zip">hastysite v1.3.5 for macOS (x64)</a></li> +<li><span class="windows"></span><a href="https://github.com/h3rald/hastysite/releases/download/v1.3.5/hastysite_v1.3.5_windows_x64.zip">hastysite v1.3.5 for Windows (x64)</a></li> +<li><span class="linux"></span><a href="https://github.com/h3rald/hastysite/releases/download/v1.3.5/hastysite_v1.3.5_linux_x64.zip">hastysite v1.3.5 for Linux (x64)</a></li> </ul> </div>

@@ -8095,6 +8097,27 @@

<a name="Changelog"></a> <h2>Changelog<a href="#document-top" title="Go to top"></a></h2> +<a name="v1.3.5"></a> +<h3>v1.3.5<a href="#document-top" title="Go to top"></a></h3> + +<ul> +<li>Updated to min v0.21.1</li> +<li>Updated to hastyscribe v1.12.2</li> +<li>Fixed post/clean scripts</li> +<li>Compiled with Nim v.1.4.0</li> +</ul> + + +<a name="v1.3.4"></a> +<h3>v1.3.4<a href="#document-top" title="Go to top"></a></h3> + +<ul> +<li>Fixed Linux cross-compilation</li> +<li>Updated to min v0.20.1</li> +<li>Updated to hastyscribe v1.12.1</li> +</ul> + + <a name="v1.3.3"></a> <h3>v1.3.3<a href="#document-top" title="Go to top"></a></h3>

@@ -8193,7 +8216,7 @@ </ul>

</div> <div id="footer"> - <p><span class="copy"></span> Fabio Cevasco &ndash; September 6, 2020</p> + <p><span class="copy"></span> Fabio Cevasco &ndash; October 31, 2020</p> <p><span>Powered by</span> <a href="https://h3rald.com/hastyscribe"><span class="hastyscribe"></span></a></p> </div> </div>
M assets/litestore/LiteStore_UserGuide.htmassets/litestore/LiteStore_UserGuide.htm

@@ -7956,9 +7956,9 @@

<p>The easiest way to get LiteStore is by downloading one of the prebuilt binaries from the [Github Release Page][release]:</p> <ul> -<li><a href="https://github.com/h3rald/litestore/releases/download/1.9.1/litestore_1.9.1_macosx_x64.zip">LiteStore for Mac OS X (x64)</a></li> -<li><a href="https://github.com/h3rald/litestore/releases/download/1.9.1/litestore_1.9.1_windows_x64.zip">LiteStore for Windows (x64)</a></li> -<li><a href="https://github.com/h3rald/litestore/releases/download/1.9.1/litestore_1.9.1_linux_x64.zip">LiteStore for Linux (x64)</a></li> +<li><a href="https://github.com/h3rald/litestore/releases/download/1.9.2/litestore_1.9.2_macosx_x64.zip">LiteStore for Mac OS X (x64)</a></li> +<li><a href="https://github.com/h3rald/litestore/releases/download/1.9.2/litestore_1.9.2_windows_x64.zip">LiteStore for Windows (x64)</a></li> +<li><a href="https://github.com/h3rald/litestore/releases/download/1.9.2/litestore_1.9.2_linux_x64.zip">LiteStore for Linux (x64)</a></li> </ul>

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

</div> <div id="footer"> - <p><span class="copy"></span> Fabio Cevasco &ndash; September 6, 2020</p> + <p><span class="copy"></span> Fabio Cevasco &ndash; October 31, 2020</p> <p><span>Powered by</span> <a href="https://h3rald.com/hastyscribe"><span class="hastyscribe"></span></a></p> </div> </div>
M assets/min/Min_DeveloperGuide.htmassets/min/Min_DeveloperGuide.htm

@@ -7436,9 +7436,9 @@

<p>You can download one of the following pre-built min binaries:</p> <ul> -<li><a href="https://github.com/h3rald/min/releases/download/v0.20.0/min_v0.20.0_macosx_x64.zip">min v0.20.0 for macOS (x64)</a></li> -<li><a href="https://github.com/h3rald/min/releases/download/v0.20.0/min_v0.20.0_windows_x64.zip">min v0.20.0 for Windows (x64)</a></li> -<li><a href="https://github.com/h3rald/min/releases/download/v0.20.0/min_v0.20.0_linux_x64.zip">min v0.20.0 for Linux (x64)</a></li> +<li><a href="https://github.com/h3rald/min/releases/download/v0.21.1/min_v0.21.1_macosx_x64.zip">min v0.21.1 for macOS (x64)</a></li> +<li><a href="https://github.com/h3rald/min/releases/download/v0.21.1/min_v0.21.1_windows_x64.zip">min v0.21.1 for Windows (x64)</a></li> +<li><a href="https://github.com/h3rald/min/releases/download/v0.21.1/min_v0.21.1_linux_x64.zip">min v0.21.1 for Linux (x64)</a></li> </ul>

@@ -8682,9 +8682,9 @@ <span class="reference-title">dequote</span></p>

<div class="operator"><p><span class="kwd"> <span class="kwd">quot</span> <strong>&rArr;</strong> <span class="kwd">a<sub>*</sub></span></span></p> -<p>Pushes the contents of quotation <span class="kwd">quot</span> on the stack.</p></div> +<p>Pushes the contents of quotation <span class="kwd">quot</span> on the stack.</p> -<p>Each element is pushed on the stack one by one. If any error occurs, <span class="kwd">quot</span> is restored on the stack.</p> +<p>Each element is pushed on the stack one by one. If any error occurs, <span class="kwd">quot</span> is restored on the stack.</p></div> <p><a id="min-operator-id-eval"></a> <span class="reference-title">eval</span></p>

@@ -8996,6 +8996,13 @@

<pre><code>{} :myscope (2 :due scope @myscope) -&gt; </code></pre></div></div> +<p><a id="min-operator-id-saved-symbols"></a> +<span class="reference-title">saved-symbols</span></p> + +<div class="operator"><p><span class="kwd"> &#x2205; <strong>&rArr;</strong> (<span class="kwd">string<sub>*</sub></span>)</span></p> + +<p>Returns a quotation containing all symbols saved in the <span class="file">.min_symbols</span> file.</p></div> + <p><a id="min-operator-id-scope-sigils"></a> <span class="reference-title">scope-sigils</span></p>

@@ -9038,13 +9045,6 @@ <div class="operator"><p><span class="kwd"> <span class="kwd">&apos;sym</span> <strong>&rArr;</strong> <span class="kwd">quot</span></span></p>

<p>Display the source code of symbol <span class="kwd">&apos;sym</span> (if it has been implemented a <em>min</em> quotation).</p></div> -<p><a id="min-operator-id-stored-symbols"></a> -<span class="reference-title">stored-symbols</span></p> - -<div class="operator"><p><span class="kwd"> &#x2205; <strong>&rArr;</strong> (<span class="kwd">string<sub>*</sub></span>)</span></p> - -<p>Returns a quotation containing all symbols stored in the <span class="file">.min_symbols</span> file.</p></div> - <p><a id="min-operator-id-string"></a> <span class="reference-title">string</span></p>

@@ -10483,6 +10483,12 @@ <div class="operator"><p><span class="kwd"> ! <strong>&rArr;</strong> system</span></p>

<p>See <a href="#min-operator-id-system">system</a>.</p></div> +<p><span class="reference-title">!!</span></p> + +<div class="operator"><p><span class="kwd"> !! <strong>&rArr;</strong> system!</span></p> + +<p>See <a href="#min-operator-id-system!">system!</a>.</p></div> + <p><span class="reference-title">&amp;</span> <span class="sigil"></span></p> <div class="operator"><p><span class="kwd"> &amp;<span class="kwd">string</span> <strong>&rArr;</strong> <span class="kwd">string</span> run</span></p>

@@ -10689,6 +10695,13 @@

<div class="operator"><p><span class="kwd"> <span class="kwd">&apos;sym</span> <strong>&rArr;</strong> <span class="kwd">int</span></span></p> <p>Executes the external command <span class="kwd">&apos;sym</span> in the current directory and pushes its return code on the stack.</p></div> + +<p><a id="min-operator-id-system!"></a> +<span class="reference-title">system!</span></p> + +<div class="operator"><p><span class="kwd"> <span class="kwd">&apos;sym</span> <strong>&rArr;</strong> &#x2205;</span></p> + +<p>Executes the external command <span class="kwd">&apos;sym</span> in the current directory without pushing its return code on the stack.</p></div> <p><a id="min-operator-id-unzip"></a> <span class="reference-title">unzip</span></p>

@@ -11369,7 +11382,7 @@

<p>Stops the currently-running HTTP server. This operator should be used within an HTTP server handler quotation.</p></div> </div> <div id="footer"> - <p><span class="copy"></span> Fabio Cevasco &ndash; June 18, 2020</p> + <p><span class="copy"></span> Fabio Cevasco &ndash; October 31, 2020</p> <p><span>Powered by</span> <a href="https://h3rald.com/hastyscribe"><span class="hastyscribe"></span></a></p> </div> </div>
M contents/h3.mdcontents/h3.md

@@ -10,7 +10,7 @@ summary: "A tiny, extremely minimalist JavaScript microframework"

content-type: project active: true download: "https://github.com/h3rald/h3/releases/download/" -version: 0.10.0 +version: 0.11.0 versionLabel: "Jittery Jem'Hadar" docs: /h3/H3_DeveloperGuide.htm -----
M contents/hastyscribe.mdcontents/hastyscribe.md

@@ -7,7 +7,7 @@ active: true

home: /hastyscribe/ docs: /hastyscribe/HastyScribe_UserGuide.htm summary: "A self-contained Markdown compiler that can generate self-contained HTML files, useful for writing essays, reports, meeting notes, etc." -version: "1.12.1" +version: "1.12.2" download: "https://github.com/h3rald/hastyscribe/releases/download/" ----- {{download => https://github.com/h3rald/hastyscribe/releases/download/}}
M contents/hastysite.mdcontents/hastysite.md

@@ -9,7 +9,7 @@ subtitle: "A small but powerful static site generator"

summary: "A self-contained static site generator featuring markdown support, mustache templates, and a powerful min-powered rule and script engine." content-type: project active: true -version: 1.3.4 +version: 1.3.5 download: "https://github.com/h3rald/hastysite/releases/download/" -----
M contents/litestore.mdcontents/litestore.md

@@ -5,7 +5,7 @@ github: litestore

home: /litestore/ active: true docs: /litestore/LiteStore_UserGuide.htm -version: 1.9.1 +version: 1.9.2 subtitle: "A tiny NoSQL database for rapid prototyping" summary: "A lightweight, self-contained, RESTful, multi-format NoSQL document store server written in Nim and powered by a SQLite backend for storage." download: "https://github.com/h3rald/litestore/releases/download/"
M contents/min.mdcontents/min.md

@@ -9,7 +9,7 @@ summary: "A functional, concatenative programming language with a minimalist syntax, a small but practical standard library, and an advanced REPL. All packed in about 1MB."

content-type: project active: true download: "https://github.com/h3rald/min/releases/download/" -version: 0.20.1 +version: 0.21.1 docs: /min/Min_DeveloperGuide.htm -----
M contents/nifty.mdcontents/nifty.md

@@ -8,7 +8,7 @@ subtitle: "A decentralized (pseudo) package manager and script runner"

summary: "A self-contained command-line program that can be used as a bare bones package manager and as a versatile script runner." content-type: project active: true -version: 1.2.1 +version: 1.2.2 download: "https://github.com/h3rald/nifty/releases/download/" -----
M contents/nimhttpd.mdcontents/nimhttpd.md

@@ -7,7 +7,7 @@ subtitle: "A tiny static file web server."

summary: "A tiny, self-contained program able to serve files within a directory via HTTP." content-type: project active: true -version: 1.1.0 +version: 1.1.1 download: "https://github.com/h3rald/nimhttpd/releases/download/" ----- _NimHHTPd_ is a minimal web server that can be used to serve static files.