doc/apps_fr.md

100 lines
4 KiB
Markdown
Raw Normal View History

2016-03-22 10:39:24 +01:00
#Apps officielles
<img src="/images/roundcube.png" width=50>
<img src="/images/ttrss.png" width=50>
<img src="/images/wordpress.png" width=50>
<img src="/images/transmission.png" width=50>
<img src="/images/jappix.png" width=50>
<img src="/images/logo-jirafeau.jpeg" width=50>
<img src="/images/Logo-wallabag-svg.svg" width=50>
<img src="/images/Searx_logo.svg" width=50>
<img src="/images/rainloop_logo.png" width=40>
<img src="/images/Nextcloud_Logo.svg" width=70>
2013-11-17 13:36:38 +01:00
2015-10-04 01:48:36 +02:00
<a class="btn btn-lg btn-default" href="/apps_fr" disabled>Apps officielles</a> <a class="btn btn-lg btn-default" href="/apps_in_progress_fr">Apps en cours</a> <a class="btn btn-lg btn-default" href="/apps_wishlist_fr">Apps souhaitées</a>
2015-04-01 16:00:14 +02:00
2015-10-05 12:57:17 +02:00
<div class="clearfix" style="margin-bottom: 1em;">
<div class="btn btn-default btn-xs pull-right" data-toggle="collapse" data-target="#app-accordion .collapse">Tout déplier</div>
</div>
2013-11-17 13:36:38 +01:00
<div class="panel-group" id="app-accordion"></div>
<script type="text/template" id="app-template">
<div class="panel panel-default">
<div class="panel-heading">
<div class="panel-title">
<a data-toggle="collapse" data-parent="#app-accordion" href="#app_{app_id}">{app_name} <em><small>({app_id})</small></em></a>
</div>
</div>
<div class="panel-collapse collapse app_{app_id}">
<div class="panel-body">
2015-10-04 14:51:26 +02:00
<p><strong>Description</strong> : {app_description}</p>
<p><strong>Dernière mise à jour (UTC)</strong> : {app_update}</p>
2017-01-12 13:11:55 +01:00
<p><strong>Niveau</strong>: {app_level}</p>
2015-10-04 14:51:26 +02:00
<p><strong>Mainteneur</strong> : {app_maintainer} <small class="text-muted">({app_mail})</small></p>
<p><strong>Dépôt git</strong> : <a href="{app_git}" target="_blank">{app_git}</a> <small class="text-muted">({app_branch})</small></p>
2014-06-15 16:35:14 +02:00
<a href="#/app_{app_id}_fr" target="_blank" class="btn btn-default">Documentation</a>
2013-11-17 13:36:38 +01:00
</div>
</div>
</script>
2015-10-05 23:42:32 +02:00
<br />
<div class="alert alert-info">Toutes les applications officielles sont sous licences libres.</div>
2013-11-17 13:36:38 +01:00
<script>
function timeConverter(UNIX_timestamp) {
var a = new Date(UNIX_timestamp*1000);
2015-10-05 23:42:32 +02:00
var months = ['janvier','février','mars','avril','mai','juin','juillet','août','septembre','octobre','novembre','décembre'];
2013-11-17 13:36:38 +01:00
var year = a.getFullYear();
var month = months[a.getMonth()];
var date = a.getDate();
var hour = a.getHours();
var min = a.getMinutes();
2013-12-09 15:14:36 +01:00
if (hour < 10) { hour = '0' + hour; }
if (min < 10) { min = '0' + min; }
2015-10-05 23:42:32 +02:00
var time = date+' '+month+' '+year+' à '+hour+':'+min;
2013-11-17 13:36:38 +01:00
return time;
}
$(document).ready(function () {
$.getJSON('https://app.yunohost.org/official.json', function(app_list) {
2014-11-20 15:19:14 +01:00
// Cast as array
var app_list = $.map(app_list, function(el) { return el; });
// Sort alpha
app_list.sort(function(a, b){
if (a.manifest.id > b.manifest.id) {return 1;}
else if (a.manifest.id < b.manifest.id) {return -1;}
return 0;
});
$.each(app_list, function(k, infos) {
app_id = infos.manifest.id;
2014-04-06 10:32:01 +02:00
if (typeof infos.manifest.description.fr === 'undefined') {
2013-11-17 13:40:01 +01:00
infos.manifest.description.fr = infos.manifest.description.en;
}
2013-11-17 13:36:38 +01:00
html = $('#app-template').html()
.replace(/{app_id}/g, app_id)
.replace(/{app_name}/g, infos.manifest.name)
.replace('{app_description}', infos.manifest.description.fr)
2015-01-05 21:46:26 +01:00
.replace(/{app_git}/g, infos.git.url)
2013-11-17 13:36:38 +01:00
.replace('{app_branch}', infos.git.branch)
.replace('{app_level}', infos.level)
2015-10-05 23:42:32 +02:00
.replace('{app_update}', timeConverter(infos.lastUpdate));
2015-01-05 21:46:26 +01:00
if (infos.manifest.developer) {
html = html
.replace('{app_maintainer}', infos.manifest.developer.name)
.replace('{app_mail}', infos.manifest.developer.email);
}
if (infos.manifest.maintainer) {
html = html
.replace('{app_maintainer}', infos.manifest.maintainer.name)
.replace('{app_mail}', infos.manifest.maintainer.email);
}
2013-11-17 13:36:38 +01:00
$('#app-accordion').append(html);
$('.app_'+ app_id).attr('id', 'app_'+ app_id);
});
});
});
2017-01-12 13:11:55 +01:00
</script>