Skip to content

Commit

Permalink
add option to ; update examples to use them; add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
floodfx committed Feb 16, 2022
1 parent d66a4e0 commit c98df77
Show file tree
Hide file tree
Showing 40 changed files with 359 additions and 234 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,11 @@ lvServer.registerLiveViewRoute("/light", new LightLiveViewComponent());
// then start the server
lvServer.start();
```

### Additional Feature Documentation
* [Updating HTML Document `<title />`](docs/updating-html-title.md)

#### Other features to be implemented:
* [Updating HTML Document Title](https://hexdocs.pm/phoenix_live_view/live-layouts.html#updating-the-html-document-title) - Vote for [Issue 16](https://github.com/floodfx/liveviewjs/issues/16)
* [LiveView Helpers](https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.Helpers.html) - Vote for [Issue 17](https://github.com/floodfx/liveviewjs/issues/17)
* [Temporary Assigns](https://hexdocs.pm/phoenix_live_view/dom-patching.html#temporary-assigns) - Vote for [Issue 18](https://github.com/floodfx/liveviewjs/issues/18)
* [Build in Flash Message Support](https://hexdocs.pm/phoenix_live_view/0.17.6/Phoenix.LiveView.html#put_flash/3) - Vote for [Issue 19](https://github.com/floodfx/liveviewjs/issues/19)
Expand Down
129 changes: 65 additions & 64 deletions coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1644984913436" clover="3.2.0">
<project timestamp="1644984913436" name="All files">
<metrics statements="468" coveredstatements="468" conditionals="256" coveredconditionals="246" methods="90" coveredmethods="89" elements="814" coveredelements="803" complexity="0" loc="468" ncloc="468" packages="8" files="21" classes="21"/>
<coverage generated="1644989803167" clover="3.2.0">
<project timestamp="1644989803167" name="All files">
<metrics statements="469" coveredstatements="469" conditionals="272" coveredconditionals="258" methods="90" coveredmethods="89" elements="831" coveredelements="816" complexity="0" loc="469" ncloc="469" packages="8" files="21" classes="21"/>
<package name="examples.autocomplete">
<metrics statements="5" coveredstatements="5" conditionals="1" coveredconditionals="1" methods="2" coveredmethods="2"/>
<file name="data.ts" path="/Users/donnie/src/github.com/floodfx/liveviewjs/src/examples/autocomplete/data.ts">
Expand Down Expand Up @@ -56,7 +56,7 @@
</file>
</package>
<package name="server">
<metrics statements="75" coveredstatements="75" conditionals="24" coveredconditionals="19" methods="13" coveredmethods="12"/>
<metrics statements="76" coveredstatements="76" conditionals="40" coveredconditionals="31" methods="13" coveredmethods="12"/>
<file name="index.ts" path="/Users/donnie/src/github.com/floodfx/liveviewjs/src/server/index.ts">
<metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
<line num="1" count="4" type="stmt"/>
Expand All @@ -66,7 +66,7 @@
<line num="5" count="4" type="stmt"/>
</file>
<file name="live_view_server.ts" path="/Users/donnie/src/github.com/floodfx/liveviewjs/src/server/live_view_server.ts">
<metrics statements="70" coveredstatements="70" conditionals="24" coveredconditionals="19" methods="13" coveredmethods="12"/>
<metrics statements="71" coveredstatements="71" conditionals="40" coveredconditionals="31" methods="13" coveredmethods="12"/>
<line num="2" count="4" type="stmt"/>
<line num="3" count="4" type="stmt"/>
<line num="4" count="4" type="stmt"/>
Expand All @@ -76,67 +76,68 @@
<line num="8" count="4" type="stmt"/>
<line num="9" count="4" type="stmt"/>
<line num="10" count="4" type="stmt"/>
<line num="29" count="4" type="stmt"/>
<line num="31" count="4" type="stmt"/>
<line num="32" count="8" type="stmt"/>
<line num="33" count="8" type="stmt"/>
<line num="35" count="8" type="stmt"/>
<line num="38" count="8" type="stmt"/>
<line num="36" count="4" type="stmt"/>
<line num="38" count="4" type="stmt"/>
<line num="39" count="8" type="stmt"/>
<line num="40" count="8" type="stmt"/>
<line num="41" count="8" type="stmt"/>
<line num="42" count="8" type="stmt"/>
<line num="48" count="8" type="cond" truecount="3" falsecount="1"/>
<line num="49" count="8" type="cond" truecount="3" falsecount="1"/>
<line num="50" count="8" type="cond" truecount="3" falsecount="1"/>
<line num="51" count="8" type="cond" truecount="1" falsecount="1"/>
<line num="52" count="8" type="cond" truecount="3" falsecount="1"/>
<line num="53" count="8" type="stmt"/>
<line num="54" count="8" type="stmt"/>
<line num="55" count="8" type="stmt"/>
<line num="56" count="8" type="stmt"/>
<line num="62" count="4" type="stmt"/>
<line num="66" count="6" type="stmt"/>
<line num="70" count="1" type="stmt"/>
<line num="74" count="3" type="stmt"/>
<line num="78" count="10" type="cond" truecount="2" falsecount="0"/>
<line num="79" count="2" type="stmt"/>
<line num="80" count="2" type="stmt"/>
<line num="82" count="8" type="stmt"/>
<line num="86" count="8" type="stmt"/>
<line num="89" count="8" type="stmt"/>
<line num="91" count="2" type="stmt"/>
<line num="93" count="2" type="stmt"/>
<line num="94" count="1" type="stmt"/>
<line num="45" count="8" type="stmt"/>
<line num="47" count="8" type="stmt"/>
<line num="48" count="8" type="stmt"/>
<line num="49" count="8" type="stmt"/>
<line num="56" count="8" type="cond" truecount="3" falsecount="1"/>
<line num="57" count="8" type="cond" truecount="3" falsecount="1"/>
<line num="58" count="8" type="cond" truecount="3" falsecount="1"/>
<line num="59" count="8" type="cond" truecount="1" falsecount="1"/>
<line num="60" count="8" type="cond" truecount="3" falsecount="1"/>
<line num="61" count="8" type="stmt"/>
<line num="62" count="8" type="stmt"/>
<line num="63" count="8" type="stmt"/>
<line num="64" count="8" type="stmt"/>
<line num="67" count="8" type="stmt"/>
<line num="71" count="4" type="stmt"/>
<line num="75" count="6" type="stmt"/>
<line num="79" count="1" type="stmt"/>
<line num="83" count="3" type="stmt"/>
<line num="87" count="10" type="cond" truecount="2" falsecount="0"/>
<line num="88" count="2" type="stmt"/>
<line num="89" count="2" type="stmt"/>
<line num="91" count="8" type="stmt"/>
<line num="95" count="8" type="stmt"/>
<line num="98" count="8" type="stmt"/>
<line num="99" count="4" type="stmt"/>
<line num="105" count="12" type="cond" truecount="2" falsecount="0"/>
<line num="106" count="4" type="stmt"/>
<line num="107" count="4" type="stmt"/>
<line num="109" count="8" type="stmt"/>
<line num="111" count="8" type="stmt"/>
<line num="112" count="8" type="stmt"/>
<line num="116" count="8" type="stmt"/>
<line num="100" count="2" type="stmt"/>
<line num="102" count="2" type="stmt"/>
<line num="103" count="1" type="stmt"/>
<line num="107" count="8" type="stmt"/>
<line num="108" count="4" type="stmt"/>
<line num="114" count="12" type="cond" truecount="2" falsecount="0"/>
<line num="115" count="4" type="stmt"/>
<line num="116" count="4" type="stmt"/>
<line num="118" count="8" type="stmt"/>
<line num="120" count="8" type="stmt"/>
<line num="121" count="8" type="stmt"/>
<line num="123" count="8" type="stmt"/>
<line num="133" count="8" type="stmt"/>
<line num="135" count="8" type="stmt"/>
<line num="136" count="2" type="stmt"/>
<line num="138" count="2" type="stmt"/>
<line num="141" count="2" type="stmt"/>
<line num="142" count="2" type="stmt"/>
<line num="152" count="2" type="stmt"/>
<line num="153" count="2" type="cond" truecount="1" falsecount="0"/>
<line num="157" count="1" type="stmt"/>
<line num="158" count="1" type="stmt"/>
<line num="162" count="1" type="cond" truecount="1" falsecount="0"/>
<line num="163" count="1" type="stmt"/>
<line num="125" count="8" type="stmt"/>
<line num="127" count="8" type="stmt"/>
<line num="129" count="8" type="stmt"/>
<line num="130" count="8" type="stmt"/>
<line num="132" count="8" type="stmt"/>
<line num="142" count="8" type="stmt"/>
<line num="144" count="8" type="stmt"/>
<line num="145" count="2" type="stmt"/>
<line num="147" count="2" type="stmt"/>
<line num="150" count="2" type="stmt"/>
<line num="151" count="2" type="stmt"/>
<line num="161" count="2" type="stmt"/>
<line num="162" count="2" type="cond" truecount="1" falsecount="0"/>
<line num="166" count="1" type="stmt"/>
<line num="171" count="1" type="stmt"/>
<line num="167" count="1" type="stmt"/>
<line num="171" count="1" type="cond" truecount="1" falsecount="0"/>
<line num="172" count="1" type="stmt"/>
<line num="175" count="1" type="stmt"/>
<line num="185" count="8" type="stmt"/>
<line num="180" count="1" type="stmt"/>
<line num="181" count="1" type="stmt"/>
<line num="184" count="1" type="stmt"/>
<line num="196" count="8" type="stmt"/>
</file>
</package>
<package name="server.component">
Expand Down Expand Up @@ -433,16 +434,16 @@
<line num="25" count="1" type="stmt"/>
<line num="28" count="6" type="stmt"/>
<line num="31" count="12" type="stmt"/>
<line num="32" count="27" type="stmt"/>
<line num="32" count="26" type="stmt"/>
<line num="35" count="12" type="stmt"/>
<line num="36" count="284" type="cond" truecount="1" falsecount="0"/>
<line num="37" count="43" type="stmt"/>
<line num="39" count="241" type="cond" truecount="1" falsecount="0"/>
<line num="37" count="42" type="stmt"/>
<line num="39" count="242" type="cond" truecount="1" falsecount="0"/>
<line num="40" count="1" type="stmt"/>
<line num="42" count="240" type="stmt"/>
<line num="42" count="241" type="stmt"/>
<line num="59" count="12" type="stmt"/>
<line num="65" count="179" type="stmt"/>
<line num="66" count="179" type="stmt"/>
<line num="65" count="178" type="stmt"/>
<line num="66" count="178" type="stmt"/>
<line num="71" count="103" type="cond" truecount="1" falsecount="0"/>
<line num="72" count="49" type="cond" truecount="1" falsecount="0"/>
<line num="73" count="1" type="stmt"/>
Expand All @@ -461,7 +462,7 @@
<line num="123" count="54" type="cond" truecount="1" falsecount="0"/>
<line num="124" count="35" type="stmt"/>
<line num="126" count="54" type="stmt"/>
<line num="130" count="83" type="stmt"/>
<line num="130" count="82" type="stmt"/>
<line num="131" count="187" type="stmt"/>
<line num="132" count="187" type="stmt"/>
<line num="138" count="12" type="stmt"/>
Expand Down
6 changes: 3 additions & 3 deletions coverage/coverage-final.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion coverage/lcov-report/examples/autocomplete/data.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -3106,7 +3106,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">examples/aut
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at Tue Feb 15 2022 21:15:13 GMT-0700 (Mountain Standard Time)
at Tue Feb 15 2022 22:36:43 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/examples/autocomplete/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> examples/autocomplete</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at Tue Feb 15 2022 21:15:13 GMT-0700 (Mountain Standard Time)
at Tue Feb 15 2022 22:36:43 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/examples/live-search/data.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">examples/liv
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at Tue Feb 15 2022 21:15:13 GMT-0700 (Mountain Standard Time)
at Tue Feb 15 2022 22:36:43 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/examples/live-search/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> examples/live-search</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at Tue Feb 15 2022 21:15:13 GMT-0700 (Mountain Standard Time)
at Tue Feb 15 2022 22:36:43 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/examples/volunteers/data.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">examples/vol
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at Tue Feb 15 2022 21:15:13 GMT-0700 (Mountain Standard Time)
at Tue Feb 15 2022 22:36:43 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/examples/volunteers/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> examples/volunteers</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at Tue Feb 15 2022 21:15:13 GMT-0700 (Mountain Standard Time)
at Tue Feb 15 2022 22:36:43 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
18 changes: 9 additions & 9 deletions coverage/lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ <h1>All files</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>491/491</span>
<span class='fraction'>492/492</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">96.09% </span>
<span class="strong">94.85% </span>
<span class="quiet">Branches</span>
<span class='fraction'>246/256</span>
<span class='fraction'>258/272</span>
</div>


Expand All @@ -46,7 +46,7 @@ <h1>All files</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>468/468</span>
<span class='fraction'>469/469</span>
</div>


Expand Down Expand Up @@ -129,13 +129,13 @@ <h1>All files</h1>
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="75" class="abs high">75/75</td>
<td data-value="79.16" class="pct medium">79.16%</td>
<td data-value="24" class="abs medium">19/24</td>
<td data-value="76" class="abs high">76/76</td>
<td data-value="77.5" class="pct medium">77.5%</td>
<td data-value="40" class="abs medium">31/40</td>
<td data-value="92.3" class="pct high">92.3%</td>
<td data-value="13" class="abs high">12/13</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="75" class="abs high">75/75</td>
<td data-value="76" class="abs high">76/76</td>
</tr>

<tr>
Expand Down Expand Up @@ -206,7 +206,7 @@ <h1>All files</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at Tue Feb 15 2022 21:15:13 GMT-0700 (Mountain Standard Time)
at Tue Feb 15 2022 22:36:43 GMT-0700 (Mountain Standard Time)
</div>
<script src="prettify.js"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">server/compo
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at Tue Feb 15 2022 21:15:13 GMT-0700 (Mountain Standard Time)
at Tue Feb 15 2022 22:36:43 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/server/component/changeset.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">server/compo
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at Tue Feb 15 2022 21:15:13 GMT-0700 (Mountain Standard Time)
at Tue Feb 15 2022 22:36:43 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/server/component/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h1><a href="../../index.html">All files</a> server/component</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at Tue Feb 15 2022 21:15:13 GMT-0700 (Mountain Standard Time)
at Tue Feb 15 2022 22:36:43 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/server/component/index.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">server/compo
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at Tue Feb 15 2022 21:15:13 GMT-0700 (Mountain Standard Time)
at Tue Feb 15 2022 22:36:43 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Loading

0 comments on commit c98df77

Please sign in to comment.