Skip to content

Commit

Permalink
deploy: 356b0b7
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethosa committed Dec 12, 2023
1 parent bab13f8 commit 0d2edae
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 24 deletions.
2 changes: 1 addition & 1 deletion happyx_native.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ <h1><a class="toc-backref" href="#19">Exports</a></h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-12-12 06:26:58 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-12-12 06:33:44 UTC</small>
</div>
</div>
</div>
Expand Down
35 changes: 21 additions & 14 deletions happyx_native/app/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ <h1 class="title">src/happyx_native/app/app</h1>
</select>
</div>
<ul class="simple simple-toc" id="toc-list">
<li><a class="reference" id="app_toc" href="#app">App</a></li>
<ul class="simple"><li><a class="reference" id="app-example_toc" href="#app-example">Example</a></li>
</ul><li><a class="reference" id="app_toc" href="#app">App</a></li>
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#17" id="67">Macros</a></summary>
Expand Down Expand Up @@ -103,7 +104,17 @@ <h1><a class="toc-backref" href="#17">Macros</a></h1>
<dt><pre><span class="Keyword">macro</span> <a href="#callback.m%2Cuntyped"><span class="Identifier">callback</span></a><span class="Other">(</span><span class="Identifier">body</span><span class="Other">:</span> <span class="Identifier">untyped</span><span class="Other">)</span></pre></dt>
<dd>


Creates callbacks for JS side
<h2><a class="toc-backref" id="app-example" href="#app-example">Example</a></h2><p><pre class="listing">
<span class="Keyword">import</span> <span class="Identifier">happyx_native</span>


<span class="Identifier">callback</span><span class="Punctuation">:</span>
<span class="Keyword">proc</span> <span class="Identifier">test</span><span class="Punctuation">(</span><span class="Identifier">x</span><span class="Punctuation">:</span> <span class="Identifier">int</span><span class="Punctuation">)</span> <span class="Operator">=</span>
<span class="Identifier">callJs</span><span class="Punctuation">(</span><span class="StringLit">&quot;test&quot;</span><span class="Punctuation">,</span> <span class="Identifier">x</span> <span class="Operator">*</span> <span class="Identifier">x</span><span class="Punctuation">)</span>

<span class="Identifier">nativeApp</span><span class="Punctuation">(</span><span class="StringLit">&quot;/assets&quot;</span><span class="Punctuation">)</span></pre></p>


</dd>
</div>
Expand Down Expand Up @@ -145,17 +156,13 @@ <h1><a class="toc-backref" href="#18">Templates</a></h1>
<span class="Identifier">resizeable</span><span class="Other">:</span> <span class="Identifier">bool</span> <span class="Other">=</span> <span class="Identifier">true</span><span class="Other">;</span> <span class="Identifier">establish</span><span class="Other">:</span> <span class="Identifier">bool</span> <span class="Other">=</span> <span class="Identifier">true</span><span class="Other">)</span> {.<span class="Identifier">dirty</span>.}</pre></dt>
<dd>

<pre>Compiles main happyx file, opens browser in `appMode` and
starts serving at localhost with `port

Your project should have this structure:

```
assets/
├─ index.html
├─ main.nim
app.nim
```</pre>
<p>Compiles main happyx file, opens browser in <tt class="docutils literal"><span class="pre"><span class="Identifier">appMode</span></span></tt> and starts serving at localhost with <tt class="docutils literal"><span class="pre"><span class="Identifier">port</span></span></tt></p>
<p>Your project should have this structure:</p>
<p><pre class="listing">
<span class="Identifier">assets</span><span class="Operator">/</span>
<span class="Identifier">├─</span> <span class="Identifier">index</span><span class="Operator">.</span><span class="Identifier">html</span>
<span class="Identifier">├─</span> <span class="Identifier">main</span><span class="Operator">.</span><span class="Identifier">nim</span>
<span class="Identifier">app</span><span class="Operator">.</span><span class="Identifier">nim</span></pre></p>


</dd>
Expand All @@ -172,7 +179,7 @@ <h1><a class="toc-backref" href="#18">Templates</a></h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-12-12 06:26:58 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-12-12 06:33:44 UTC</small>
</div>
</div>
</div>
Expand Down
7 changes: 4 additions & 3 deletions happyx_native/app/app.idx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
nimTitle app happyx_native/app/app.html module src/happyx_native/app/app 0
nim callback happyx_native/app/app.html#callback.m,untyped macro callback(body: untyped) 22
nim callJs happyx_native/app/app.html#callJs.m,string,varargs[untyped] macro callJs(funcName: string; params: varargs[untyped]) 54
nim onExit happyx_native/app/app.html#onExit.m,untyped macro onExit(body: untyped) 60
nim nativeApp happyx_native/app/app.html#nativeApp.t,string,int,int,int,int,int,bool,string,bool,bool template nativeApp(appDirectory: string = "/assets"; port: int = 5000; x: int = 512;\n y: int = 128; w: int = 720; h: int = 320; appMode: bool = true;\n title: string = ""; resizeable: bool = true; establish: bool = true) 68
nim callJs happyx_native/app/app.html#callJs.m,string,varargs[untyped] macro callJs(funcName: string; params: varargs[untyped]) 68
nim onExit happyx_native/app/app.html#onExit.m,untyped macro onExit(body: untyped) 74
nim nativeApp happyx_native/app/app.html#nativeApp.t,string,int,int,int,int,int,bool,string,bool,bool template nativeApp(appDirectory: string = "/assets"; port: int = 5000; x: int = 512;\n y: int = 128; w: int = 720; h: int = 320; appMode: bool = true;\n title: string = ""; resizeable: bool = true; establish: bool = true) 82
heading Example happyx_native/app/app.html#app-example Example 0
heading App happyx_native/app/app.html#app App 0
2 changes: 1 addition & 1 deletion happyx_native/core/constants.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ <h1><a class="toc-backref" href="#10">Consts</a></h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-12-12 06:26:55 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-12-12 06:33:41 UTC</small>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion happyx_native/core/exceptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ <h1><a class="toc-backref" href="#7">Types</a></h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-12-12 06:26:55 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-12-12 06:33:41 UTC</small>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion happyx_native/core/finder/chrome.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-12-12 06:26:58 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-12-12 06:33:44 UTC</small>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion happyx_native/core/finder/edge.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-12-12 06:26:58 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-12-12 06:33:44 UTC</small>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion happyx_native/core/finder/yandex.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ <h1><a class="toc-backref" href="#12">Procs</a></h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-12-12 06:26:58 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-12-12 06:33:44 UTC</small>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion theindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ <h1 class="title">Index</h1>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-12-12 06:26:58 UTC</small>
<small style="color: var(--hint);">Made with Nim. Generated: 2023-12-12 06:33:44 UTC</small>
</div>
</div>
</div>
Expand Down

0 comments on commit 0d2edae

Please sign in to comment.