Version React iso-fonctionnelle
This commit is contained in:
32
index.html
32
index.html
@ -7,37 +7,7 @@
|
||||
|
||||
<!-- Application root element -->
|
||||
<div id="pitaya"></div>
|
||||
|
||||
<!-- Templates -->
|
||||
|
||||
<script id="launcher-view-tpl" type="text/x-template">
|
||||
<div class="launcher">
|
||||
{{#unless isRoot}}
|
||||
<div class="category-header">
|
||||
<a href="#" class="goback" data-item-path="{{currentItemPath}}">◄</a>
|
||||
<span class="category-label">{{currentItem.label}}</span>
|
||||
</div>
|
||||
{{/unless}}
|
||||
{{> itemListTpl}}
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script id="items-list-tpl" type="text/x-template">
|
||||
<ul class="apps-list">
|
||||
{{#each currentItem.items}}
|
||||
{{> itemTpl currentItemPath=../currentItemPath}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
</script>
|
||||
|
||||
<script id="item-tpl" type="text/x-template">
|
||||
<li class="app-item"
|
||||
data-item-path="{{currentItemPath}}.{{@index}}">
|
||||
<img class="app-icon" src="{{icon}}" />
|
||||
<span class="app-label">{{label}}</span>
|
||||
</li>
|
||||
</script>
|
||||
|
||||
|
||||
<!-- Scripts -->
|
||||
<script type="text/javascript">
|
||||
// React context detection workaround
|
||||
|
Reference in New Issue
Block a user