Skip to content

Commit

Permalink
Add author information and update plugin website
Browse files Browse the repository at this point in the history
  • Loading branch information
lukfor committed Jun 5, 2024
1 parent 132aee9 commit e293e02
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 12 deletions.
7 changes: 4 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="nf-test-plugins" />

<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>

</head>

<body>
<div class="container-lg px-3 my-5 markdown-body">
{{content}}
</div>
</body>

</html>
77 changes: 69 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,72 @@
layout: default
---

<h1>nf-test plugins</h1>

<ul>
{% for plugin in site.data.plugins %}
<li><a href="{{plugin.url}}">{{plugin.id}}</a> {{plugin.latest}}<br>
<small>{{plugin.description}}</small></li>
{% endfor %}
</ul>


<div class="container mt-5">

<h1 lass="mb-4">Plugins</h1>

<p>Explore nf-test plugins made by the community.</p>

<hr>

<div class="row">
{% for plugin in site.data.plugins %}
<div class="col-md-4 mb-4">
<div class="card">
<div class="card-body" style="height: 200px;">
<h5 class="card-title"><a href="{{plugin.url}}">{{plugin.id}}</a> {{plugin.latest}}</h5>
<h6 class="card-subtitle mb-2 text-muted">by {{plugin.author}}</h6>
<p>{{plugin.description}}</p>
</div>
<div class="card-footer">
<button data-plugin="{{plugin.id}}@{{plugin.latest}}"class="btn-install btn btn-secondary btn-sm">Install</button>
</div>
</div>
</div>
{% endfor %}
</div>

<!-- Modal -->
<div class="modal fade" id="pluginModal" tabindex="-1" role="dialog" aria-labelledby="pluginModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="pluginModalLabel">Installation</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<p>To activate the plugin please add it to your <code>nf-test.config</code> file:</p>
<textarea id="pluginInfo" class="control" style="width: 100%; height: 150px;"></textarea>

</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>

</div>


<script>
$(document).ready(function() {
$('.btn-install').on('click', function() {
var plugin = $(this).data('plugin');
var content = "config {\n" +
" plugins {\n" +
" load \"" + plugin + "\"\n" +
" }\n" +
"}"

$('#pluginInfo').text(content);
$('#pluginModal').modal('show');
});
});
</script>


8 changes: 7 additions & 1 deletion plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"latest": "1.0.0",
"url": "https://github.com/askimed/nft-fasta",
"description": "Provides support for FASTA files.",
"author": "Lukas Forer",
"keywords": [],
"releases": [{
"version": "1.0.0",
"url": "https://github.com/askimed/nft-fasta/releases/download/v1.0.0/nft-fasta-1.0.0.jar",
Expand All @@ -12,6 +14,8 @@
"latest": "1.0.2",
"url": "https://github.com/seppinho/nft-vcf",
"description": "Provides support for VCF files.",
"author": "Sebastian Schönherr",
"keywords": [],
"releases": [{
"version": "1.0.2",
"url": "https://github.com/seppinho/nft-vcf/releases/download/v1.0.2/nft-vcf-1.0.2-jar-with-dependencies.jar",
Expand All @@ -21,11 +25,13 @@
"latest": "0.1.1",
"url": "https://github.com/nvnieuwk/nft-bam",
"description": "Provides some helper functionality for handling SAM/BAM/CRAM files during tests",
"author": "Nicolas Vannieuwkerke",
"keywords": [],
"releases": [{
"version": "0.1.0",
"url": "https://github.com/nvnieuwk/nft-bam/releases/download/0.1.0/nft-bam-0.1.0.jar"
},{
"version": "0.1.1",
"version": "0.1.2",
"url": "https://github.com/nvnieuwk/nft-bam/releases/download/0.1.1/nft-bam-0.1.1.jar"
}]
}]

0 comments on commit e293e02

Please sign in to comment.