2015-08-20 18:41:51 +02:00
|
|
|
<html>
|
|
|
|
<head>
|
2015-08-26 14:08:12 +02:00
|
|
|
<title>Lanceur - Pitaya</title>
|
2015-08-20 18:41:51 +02:00
|
|
|
<link rel="stylesheet" href="css/style.css" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2015-08-21 14:47:06 +02:00
|
|
|
<!-- Application root element -->
|
2015-08-26 14:08:12 +02:00
|
|
|
<div id="pitaya"></div>
|
2015-08-21 14:47:06 +02:00
|
|
|
|
|
|
|
<!-- Templates -->
|
2015-08-26 17:53:46 +02:00
|
|
|
|
|
|
|
<script id="launcher-view-tpl" type="text/x-template">
|
2015-08-26 20:17:18 +02:00
|
|
|
<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>
|
2015-08-26 17:53:46 +02:00
|
|
|
</script>
|
|
|
|
|
2015-08-20 18:41:51 +02:00
|
|
|
<script id="items-list-tpl" type="text/x-template">
|
|
|
|
<ul class="apps-list">
|
2015-08-26 17:53:46 +02:00
|
|
|
{{#each currentItem.items}}
|
|
|
|
{{> itemTpl currentItemPath=../currentItemPath}}
|
2015-08-20 18:41:51 +02:00
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
</script>
|
|
|
|
|
2015-08-26 17:53:46 +02:00
|
|
|
<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>
|
|
|
|
|
2015-08-21 14:47:06 +02:00
|
|
|
<!-- Scripts -->
|
2015-08-20 18:41:51 +02:00
|
|
|
<script type="text/javascript">
|
2015-08-27 18:24:29 +02:00
|
|
|
// React context detection workaround
|
|
|
|
global.document = global.window.document;
|
|
|
|
global.navigator = global.window.navigator;
|
|
|
|
|
|
|
|
// Auto transform JSX
|
|
|
|
require('node-jsx').install();
|
|
|
|
|
|
|
|
// Launch application
|
|
|
|
require('./js/app.jsx');
|
|
|
|
|
2015-08-20 18:41:51 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|