Skip to content

Commit

Permalink
put escapehtml into partsTree
Browse files Browse the repository at this point in the history
  • Loading branch information
floodfx committed Feb 11, 2022
1 parent ce845ce commit 4cebe65
Show file tree
Hide file tree
Showing 34 changed files with 197 additions and 161 deletions.
57 changes: 29 additions & 28 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="1644553396018" clover="3.2.0">
<project timestamp="1644553396018" name="All files">
<metrics statements="392" coveredstatements="392" conditionals="202" coveredconditionals="192" methods="86" coveredmethods="83" elements="680" coveredelements="667" complexity="0" loc="392" ncloc="392" packages="8" files="20" classes="20"/>
<coverage generated="1644594327371" clover="3.2.0">
<project timestamp="1644594327371" name="All files">
<metrics statements="393" coveredstatements="393" conditionals="202" coveredconditionals="192" methods="86" coveredmethods="84" elements="681" coveredelements="669" complexity="0" loc="393" ncloc="393" packages="8" files="20" classes="20"/>
<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 @@ -350,9 +350,9 @@
</file>
</package>
<package name="server.templates">
<metrics statements="37" coveredstatements="37" conditionals="13" coveredconditionals="13" methods="12" coveredmethods="11"/>
<metrics statements="38" coveredstatements="38" conditionals="13" coveredconditionals="13" methods="12" coveredmethods="12"/>
<file name="index.ts" path="/Users/donnie/src/github.com/floodfx/liveviewjs/src/server/templates/index.ts">
<metrics statements="37" coveredstatements="37" conditionals="13" coveredconditionals="13" methods="12" coveredmethods="11"/>
<metrics statements="38" coveredstatements="38" conditionals="13" coveredconditionals="13" methods="12" coveredmethods="12"/>
<line num="8" count="10" type="stmt"/>
<line num="19" count="10" type="stmt"/>
<line num="21" count="10" type="stmt"/>
Expand All @@ -362,34 +362,35 @@
<line num="28" count="6" type="stmt"/>
<line num="31" count="10" type="stmt"/>
<line num="32" count="23" type="stmt"/>
<line num="36" count="166" type="cond" truecount="1" falsecount="0"/>
<line num="35" count="10" type="stmt"/>
<line num="36" count="225" type="cond" truecount="1" falsecount="0"/>
<line num="37" count="39" type="stmt"/>
<line num="39" count="127" type="cond" truecount="1" falsecount="0"/>
<line num="39" count="186" type="cond" truecount="1" falsecount="0"/>
<line num="40" count="1" type="stmt"/>
<line num="42" count="126" type="stmt"/>
<line num="42" count="185" type="stmt"/>
<line num="45" count="10" type="stmt"/>
<line num="51" count="121" type="stmt"/>
<line num="52" count="121" type="stmt"/>
<line num="57" count="49" type="cond" truecount="1" falsecount="0"/>
<line num="58" count="31" type="stmt"/>
<line num="63" count="18" type="stmt"/>
<line num="64" count="59" type="cond" truecount="2" falsecount="0"/>
<line num="65" count="10" type="stmt"/>
<line num="69" count="49" type="cond" truecount="2" falsecount="0"/>
<line num="71" count="4" type="cond" truecount="2" falsecount="0"/>
<line num="51" count="127" type="stmt"/>
<line num="52" count="127" type="stmt"/>
<line num="57" count="55" type="cond" truecount="1" falsecount="0"/>
<line num="58" count="33" type="stmt"/>
<line num="63" count="22" type="stmt"/>
<line num="64" count="75" type="cond" truecount="2" falsecount="0"/>
<line num="65" count="12" type="stmt"/>
<line num="69" count="63" type="cond" truecount="2" falsecount="0"/>
<line num="71" count="6" type="cond" truecount="2" falsecount="0"/>
<line num="72" count="2" type="stmt"/>
<line num="79" count="8" type="stmt"/>
<line num="82" count="8" type="stmt"/>
<line num="83" count="2" type="stmt"/>
<line num="89" count="45" type="stmt"/>
<line num="96" count="18" type="cond" truecount="1" falsecount="0"/>
<line num="97" count="7" type="stmt"/>
<line num="99" count="18" type="stmt"/>
<line num="103" count="74" type="stmt"/>
<line num="104" count="166" type="stmt"/>
<line num="79" count="10" type="stmt"/>
<line num="82" count="10" type="stmt"/>
<line num="83" count="4" type="stmt"/>
<line num="90" count="57" type="stmt"/>
<line num="97" count="22" type="cond" truecount="1" falsecount="0"/>
<line num="98" count="9" type="stmt"/>
<line num="100" count="22" type="stmt"/>
<line num="104" count="74" type="stmt"/>
<line num="105" count="166" type="stmt"/>
<line num="111" count="10" type="stmt"/>
<line num="112" count="90" type="stmt"/>
<line num="106" count="166" type="stmt"/>
<line num="112" count="10" type="stmt"/>
<line num="113" count="96" type="stmt"/>
</file>
</package>
<package name="server.templates.helpers">
Expand Down
2 changes: 1 addition & 1 deletion 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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
26 changes: 13 additions & 13 deletions coverage/lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ <h1>All files</h1>
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">99.75% </span>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>412/413</span>
<span class='fraction'>414/414</span>
</div>


Expand All @@ -37,16 +37,16 @@ <h1>All files</h1>


<div class='fl pad1y space-right2'>
<span class="strong">96.51% </span>
<span class="strong">97.67% </span>
<span class="quiet">Functions</span>
<span class='fraction'>83/86</span>
<span class='fraction'>84/86</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>392/392</span>
<span class='fraction'>393/393</span>
</div>


Expand Down Expand Up @@ -170,17 +170,17 @@ <h1>All files</h1>

<tr>
<td class="file high" data-value="server/templates"><a href="server/templates/index.html">server/templates</a></td>
<td data-value="97.5" class="pic high">
<div class="chart"><div class="cover-fill" style="width: 97%"></div><div class="cover-empty" style="width: 3%"></div></div>
<td data-value="100" class="pic high">
<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="97.5" class="pct high">97.5%</td>
<td data-value="40" class="abs high">39/40</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="41" class="abs high">41/41</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="13" class="abs high">13/13</td>
<td data-value="91.66" class="pct high">91.66%</td>
<td data-value="12" class="abs high">11/12</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="37" class="abs high">37/37</td>
<td data-value="12" class="abs high">12/12</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="38" class="abs high">38/38</td>
</tr>

<tr>
Expand All @@ -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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/server/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h1><a href="../index.html">All files</a> server</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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 GMT-0700 (Mountain Standard Time)
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/server/index.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">server</a> inde
<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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 GMT-0700 (Mountain Standard Time)
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/server/live_view_server.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">server</a> live
<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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 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 @@ -823,7 +823,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">server/socke
<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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/server/socket/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ <h1><a href="../../index.html">All files</a> server/socket</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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/server/socket/message_router.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">server/socke
<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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
4 changes: 2 additions & 2 deletions coverage/lcov-report/server/socket/types.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">server/socke
export type PhxBlurPayload = PhxEventPayload&lt;"blur", { value: string }&gt;;
&nbsp;
// Hook event
// initiated by calling this.this.pushEvent("edit"...) in client hook
// initiated by calling this.pushEvent("edit"...) in client hook in liveview.js
// {type: "hook", event: "edit", value: {id: "abc"}}
export type PhxHookPayload = PhxEventPayload&lt;"hook", Record&lt;string, string&gt;&gt;;</pre></td></tr></table></pre>

Expand All @@ -373,7 +373,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">server/socke
<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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/server/socket/util.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">server/socke
<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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 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 @@ -118,7 +118,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">server/te
<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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/server/templates/helpers/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ <h1><a href="../../../index.html">All files</a> server/templates/helpers</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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 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 @@ -85,7 +85,7 @@ <h1><a href="../../../index.html">All files</a> / <a href="index.html">server/te
<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 Thu Feb 10 2022 21:23:16 GMT-0700 (Mountain Standard Time)
at Fri Feb 11 2022 08:45:27 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../../prettify.js"></script>
<script>
Expand Down
Loading

0 comments on commit 4cebe65

Please sign in to comment.