using dynamic import for dialogs and widgets to speed up initial load

This commit is contained in:
zadam
2019-08-20 21:40:47 +02:00
parent b818f020a7
commit fab4c59f9b
72 changed files with 1393 additions and 450 deletions

View File

@@ -396,7 +396,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line35">line 35</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line43">line 43</a>
</li></ul></dd>
@@ -424,6 +424,8 @@
</div>
@@ -581,7 +583,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line345">line 345</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line360">line 360</a>
</li></ul></dd>
@@ -604,6 +606,8 @@
<h5>Returns:</h5>
@@ -769,6 +773,8 @@
<h5>Returns:</h5>
@@ -922,7 +928,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line356">line 356</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line371">line 371</a>
</li></ul></dd>
@@ -945,6 +951,8 @@
<h5>Returns:</h5>
@@ -1026,7 +1034,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line643">line 643</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line665">line 665</a>
</li></ul></dd>
@@ -1049,6 +1057,8 @@
<h5>Returns:</h5>
@@ -1126,7 +1136,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line671">line 671</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line693">line 693</a>
</li></ul></dd>
@@ -1149,6 +1159,8 @@
<h5>Returns:</h5>
@@ -1230,7 +1242,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line657">line 657</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line679">line 679</a>
</li></ul></dd>
@@ -1253,6 +1265,8 @@
<h5>Returns:</h5>
@@ -1357,6 +1371,8 @@
<h5>Returns:</h5>
@@ -1434,7 +1450,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line532">line 532</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line547">line 547</a>
</li></ul></dd>
@@ -1457,6 +1473,8 @@
<h5>Returns:</h5>
@@ -1665,7 +1683,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line555">line 555</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line570">line 570</a>
</li></ul></dd>
@@ -1688,6 +1706,8 @@
<h5>Returns:</h5>
@@ -1861,7 +1881,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line593">line 593</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line608">line 608</a>
</li></ul></dd>
@@ -1884,6 +1904,8 @@
<h5>Returns:</h5>
@@ -2057,7 +2079,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line602">line 602</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line617">line 617</a>
</li></ul></dd>
@@ -2080,6 +2102,8 @@
<h5>Returns:</h5>
@@ -2180,6 +2204,8 @@
<h5>Returns:</h5>
@@ -2306,7 +2332,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line443">line 443</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line458">line 458</a>
</li></ul></dd>
@@ -2329,6 +2355,8 @@
<h5>Returns:</h5>
@@ -2494,6 +2522,8 @@
<h5>Returns:</h5>
@@ -2659,6 +2689,8 @@
<h5>Returns:</h5>
@@ -2789,7 +2821,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line455">line 455</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line470">line 470</a>
</li></ul></dd>
@@ -2812,6 +2844,8 @@
<h5>Returns:</h5>
@@ -2845,7 +2879,7 @@
<h4 class="name" id="getLinks"><span class="type-signature">(async) </span>getLinks<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;<a href="Link.html">Link</a>>>}</span></h4>
<h4 class="name" id="getLinks"><span class="type-signature">(async) </span>getLinks<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;<a href="Attribute.html">Attribute</a>>>}</span></h4>
@@ -2885,6 +2919,8 @@
<dt class="important tag-deprecated">Deprecated:</dt><dd><ul class="dummy"><li>- not intended for general use</li></ul></dd>
@@ -2897,7 +2933,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line618">line 618</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line634">line 634</a>
</li></ul></dd>
@@ -2920,6 +2956,8 @@
<h5>Returns:</h5>
@@ -2931,7 +2969,7 @@
</dt>
<dd>
<span class="param-type">Promise.&lt;Array.&lt;<a href="Link.html">Link</a>>></span>
<span class="param-type">Promise.&lt;Array.&lt;<a href="Attribute.html">Attribute</a>>></span>
</dd>
@@ -2949,7 +2987,7 @@
<h4 class="name" id="getLinksWithDeleted"><span class="type-signature">(async) </span>getLinksWithDeleted<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;<a href="Link.html">Link</a>>>}</span></h4>
<h4 class="name" id="getLinksWithDeleted"><span class="type-signature">(async) </span>getLinksWithDeleted<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;Link>>}</span></h4>
@@ -3001,7 +3039,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line636">line 636</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line658">line 658</a>
</li></ul></dd>
@@ -3024,6 +3062,8 @@
<h5>Returns:</h5>
@@ -3035,7 +3075,7 @@
</dt>
<dd>
<span class="param-type">Promise.&lt;Array.&lt;<a href="Link.html">Link</a>>></span>
<span class="param-type">Promise.&lt;Array.&lt;Link>></span>
</dd>
@@ -3124,6 +3164,8 @@
<h5>Returns:</h5>
@@ -3205,7 +3247,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line683">line 683</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line705">line 705</a>
</li></ul></dd>
@@ -3228,6 +3270,8 @@
<h5>Returns:</h5>
@@ -3358,7 +3402,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line449">line 449</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line464">line 464</a>
</li></ul></dd>
@@ -3381,6 +3425,8 @@
<h5>Returns:</h5>
@@ -3523,7 +3569,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line255">line 255</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line270">line 270</a>
</li></ul></dd>
@@ -3546,6 +3592,8 @@
<h5>Returns:</h5>
@@ -3711,6 +3759,8 @@
<h5>Returns:</h5>
@@ -3841,7 +3891,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line467">line 467</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line482">line 482</a>
</li></ul></dd>
@@ -3864,6 +3914,8 @@
<h5>Returns:</h5>
@@ -3900,6 +3952,169 @@
<h4 class="name" id="getRelationTargets"><span class="type-signature">(async) </span>getRelationTargets<span class="signature">(name<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;<a href="Note.html">Note</a>>>}</span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Attributes</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>name</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last">relation name to filter</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line255">line 255</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Promise.&lt;Array.&lt;<a href="Note.html">Note</a>>></span>
</dd>
</dl>
<h4 class="name" id="getRelationValue"><span class="type-signature">(async) </span>getRelationValue<span class="signature">(name)</span><span class="type-signature"> &rarr; {Promise.&lt;string>}</span></h4>
@@ -3997,7 +4212,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line461">line 461</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line476">line 476</a>
</li></ul></dd>
@@ -4020,6 +4235,8 @@
<h5>Returns:</h5>
@@ -4105,7 +4322,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line609">line 609</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line624">line 624</a>
</li></ul></dd>
@@ -4128,6 +4345,8 @@
<h5>Returns:</h5>
@@ -4228,6 +4447,8 @@
<h5>Returns:</h5>
@@ -4261,7 +4482,7 @@
<h4 class="name" id="getTargetLinks"><span class="type-signature">(async) </span>getTargetLinks<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;<a href="Link.html">Link</a>>>}</span></h4>
<h4 class="name" id="getTargetLinks"><span class="type-signature">(async) </span>getTargetLinks<span class="signature">()</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;Link>>}</span></h4>
@@ -4313,7 +4534,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line627">line 627</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line649">line 649</a>
</li></ul></dd>
@@ -4336,6 +4557,8 @@
<h5>Returns:</h5>
@@ -4347,7 +4570,7 @@
</dt>
<dd>
<span class="param-type">Promise.&lt;Array.&lt;<a href="Link.html">Link</a>>></span>
<span class="param-type">Promise.&lt;Array.&lt;Link>></span>
</dd>
@@ -4436,6 +4659,8 @@
<h5>Returns:</h5>
@@ -4589,7 +4814,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line336">line 336</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line351">line 351</a>
</li></ul></dd>
@@ -4612,6 +4837,8 @@
<h5>Returns:</h5>
@@ -4693,7 +4920,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line650">line 650</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line672">line 672</a>
</li></ul></dd>
@@ -4716,6 +4943,8 @@
<h5>Returns:</h5>
@@ -4846,7 +5075,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line431">line 431</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line446">line 446</a>
</li></ul></dd>
@@ -4869,6 +5098,8 @@
<h5>Returns:</h5>
@@ -4999,7 +5230,7 @@
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line437">line 437</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line452">line 452</a>
</li></ul></dd>
@@ -5022,6 +5253,8 @@
<h5>Returns:</h5>
@@ -5108,7 +5341,7 @@ Cache is note instance scoped.
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line263">line 263</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line278">line 278</a>
</li></ul></dd>
@@ -5136,6 +5369,8 @@ Cache is note instance scoped.
@@ -5213,6 +5448,8 @@ Cache is note instance scoped.
<h5>Returns:</h5>
@@ -5317,6 +5554,8 @@ Cache is note instance scoped.
<h5>Returns:</h5>
@@ -5421,6 +5660,8 @@ Cache is note instance scoped.
<h5>Returns:</h5>
@@ -5525,6 +5766,8 @@ Cache is note instance scoped.
<h5>Returns:</h5>
@@ -5629,6 +5872,8 @@ Cache is note instance scoped.
<h5>Returns:</h5>
@@ -5710,7 +5955,7 @@ Cache is note instance scoped.
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line268">line 268</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line283">line 283</a>
</li></ul></dd>
@@ -5733,6 +5978,8 @@ Cache is note instance scoped.
<h5>Returns:</h5>
@@ -5937,7 +6184,7 @@ Cache is note instance scoped.
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line414">line 414</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line429">line 429</a>
</li></ul></dd>
@@ -5960,6 +6207,8 @@ Cache is note instance scoped.
<h5>Returns:</h5>
@@ -6133,7 +6382,7 @@ Cache is note instance scoped.
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line518">line 518</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line533">line 533</a>
</li></ul></dd>
@@ -6156,6 +6405,8 @@ Cache is note instance scoped.
<h5>Returns:</h5>
@@ -6329,7 +6580,7 @@ Cache is note instance scoped.
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line527">line 527</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line542">line 542</a>
</li></ul></dd>
@@ -6352,6 +6603,8 @@ Cache is note instance scoped.
<h5>Returns:</h5>
@@ -6556,7 +6809,7 @@ Cache is note instance scoped.
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line388">line 388</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line403">line 403</a>
</li></ul></dd>
@@ -6579,6 +6832,8 @@ Cache is note instance scoped.
<h5>Returns:</h5>
@@ -6679,6 +6934,8 @@ Cache is note instance scoped.
<h5>Returns:</h5>
@@ -6779,6 +7036,8 @@ Cache is note instance scoped.
<h5>Returns:</h5>
@@ -6952,7 +7211,7 @@ Cache is note instance scoped.
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line500">line 500</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line515">line 515</a>
</li></ul></dd>
@@ -6975,6 +7234,8 @@ Cache is note instance scoped.
<h5>Returns:</h5>
@@ -7148,7 +7409,7 @@ Cache is note instance scoped.
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line509">line 509</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line524">line 524</a>
</li></ul></dd>
@@ -7171,6 +7432,8 @@ Cache is note instance scoped.
<h5>Returns:</h5>
@@ -7406,7 +7669,7 @@ Cache is note instance scoped.
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line371">line 371</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line386">line 386</a>
</li></ul></dd>
@@ -7429,6 +7692,8 @@ Cache is note instance scoped.
<h5>Returns:</h5>
@@ -7633,7 +7898,7 @@ Cache is note instance scoped.
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line481">line 481</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line496">line 496</a>
</li></ul></dd>
@@ -7656,6 +7921,8 @@ Cache is note instance scoped.
<h5>Returns:</h5>
@@ -7860,7 +8127,7 @@ Cache is note instance scoped.
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line491">line 491</a>
<a href="entities_note.js.html">entities/note.js</a>, <a href="entities_note.js.html#line506">line 506</a>
</li></ul></dd>
@@ -7883,6 +8150,8 @@ Cache is note instance scoped.
<h5>Returns:</h5>
@@ -7922,13 +8191,13 @@ Cache is note instance scoped.
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ApiToken.html">ApiToken</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="Entity.html">Entity</a></li><li><a href="Link.html">Link</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ApiToken.html">ApiToken</a></li><li><a href="Attribute.html">Attribute</a></li><li><a href="BackendScriptApi.html">BackendScriptApi</a></li><li><a href="Branch.html">Branch</a></li><li><a href="Entity.html">Entity</a></li><li><a href="Note.html">Note</a></li><li><a href="NoteRevision.html">NoteRevision</a></li><li><a href="Option.html">Option</a></li><li><a href="RecentNote.html">RecentNote</a></li></ul><h3><a href="global.html">Global</a></h3>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.3</a>
</footer>
<script> prettyPrint(); </script>