Skip to content

Commit

Permalink
Add number of remotes to the web interface
Browse files Browse the repository at this point in the history
  • Loading branch information
02JanDal committed Nov 14, 2017
1 parent 99de8cf commit 945f07a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
*/__pycache__/
*.py[cod]
/dist/
*.egg-info/
*.egg-info/
conan_inquiry/data/web/packages.js
6 changes: 3 additions & 3 deletions conan_inquiry/data/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@
<section id="information">
<h1>Welcome to Conan Package Search!</h1>
<p>
This page allows you to search amongst <span class="badge badge-light" id="numPackages"></span> packages across several conan
remotes. You get information about the packaged libraries popularity and quick instructions for adding
it to your project.
This page allows you to search amongst <span class="badge badge-light" id="numPackages"></span> packages
across <span class="badge badge-light" id="numRemotes"></span> conan remotes. You get information about
the packaged libraries popularity and quick instructions for adding it to your project.
</p>
<p>
The data for this site is generated based on static data available on
Expand Down
4 changes: 4 additions & 0 deletions conan_inquiry/data/web/script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
$(function() {
$('#numPackages').html(packages_data.length);
var repos = _.uniq(_.flatten(_.map(packages_data, function(pkg) {
return _.map(pkg.recipies, function(r) { return r.repo.bintray.split('/').splice(0, 2).join('/'); })
})));
$('#numRemotes').html(repos.length);

var App = {
templates: {
Expand Down

0 comments on commit 945f07a

Please sign in to comment.