cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shazron <shaz...@apache.org>
Subject [DISCUSS] Plugin search is broken
Date Sun, 19 Mar 2017 20:19:53 GMT
### PROBLEM

Plugin search is broken.

### DESCRIPTION

Page:
http://cordova.apache.org/plugins/

JIRA:
https://issues.apache.org/jira/browse/CB-12579


Q: How does the plugin search work?

A:
Page Source: http://cordova.apache.org/plugins
and the source (this specific line):
http://svn.apache.org/viewvc/cordova/site/public/plugins/index.html?view=markup#l117

which is added from here:
https://github.com/apache/cordova-docs/blob/master/www/plugins/index.html

which is generated from this React code:
https://github.com/apache/cordova-docs/blob/a3589ce66336821f2fd714a1115125cfcfa9fd1b/www/static/plugins/app.js

Nothing shows up as errors in the Web Inspector, so it is hard to track
down.

### MY PROPOSAL

The era of needing npmsearch.com to populate this page is over. We could
just redirect users to npmjs.com and add the "ecosystem:cordova" token (i.e
https://www.npmjs.com/search?q=ecosystem%3Acordova)

The alternative is to use npm's Registry API:
https://github.com/npm/registry/commits/master/docs/REGISTRY-API.md

The API was only documented earlier this year, if not we would have used it.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message