1
0
Fork 0
mirror of https://github.com/correl/melpa.git synced 2025-04-06 17:00:13 -09:00

Allow searching for github packages by user on web page

This commit is contained in:
Steve Purcell 2015-01-17 19:19:30 +00:00
parent 558a3d76c4
commit 1f11938d60

View file

@ -33,7 +33,7 @@
"downloads", "fetcher", "recipeURL", "packageURL", "sourceURL", "oldNames"].map(function(p) { "downloads", "fetcher", "recipeURL", "packageURL", "sourceURL", "oldNames"].map(function(p) {
this[p] = data[p]; this[p] = data[p];
}.bind(this)); }.bind(this));
this._searchText = _([data.name, data.description, data.version]) this._searchText = _([data.name, data.description, data.version].concat(data.searchExtra || []))
.compact().valueOf().join(' ').toLowerCase(); .compact().valueOf().join(' ').toLowerCase();
this.readmeURL = "/packages/" + data.name + "-readme.txt"; this.readmeURL = "/packages/" + data.name + "-readme.txt";
this.badgeURL = "/packages/" + data.name + "-badge.svg"; this.badgeURL = "/packages/" + data.name + "-badge.svg";
@ -140,7 +140,8 @@
recipeURL: "https://github.com/milkypostman/melpa/blob/master/recipes/" + name, recipeURL: "https://github.com/milkypostman/melpa/blob/master/recipes/" + name,
packageURL: "packages/" + name + "-" + version + "." + (built.type == "single" ? "el" : "tar"), packageURL: "packages/" + name + "-" + version + "." + (built.type == "single" ? "el" : "tar"),
sourceURL: calculateSourceURL(name, recipe), sourceURL: calculateSourceURL(name, recipe),
oldNames: oldNames oldNames: oldNames,
searchExtra: [recipe.repo]
})); }));
return pkgs; return pkgs;
}, [])); }, []));