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:
parent
558a3d76c4
commit
1f11938d60
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
}, []));
|
}, []));
|
||||||
|
|
Loading…
Add table
Reference in a new issue