metacpan / js-metacpan-org Goto Github PK
View Code? Open in Web Editor NEWProof of concept search page for using api.metacpan.org
Proof of concept search page for using api.metacpan.org
Here's a sample URL to review:
http://search.metacpan.org/#/search/module/CGI::Application
What I notice is that a number of module names and descriptions are elided to "..." even through there is plenty of room in my browser window to display them.
A reasonable minimum resolution to target now is 1024x768, leaving plenty of width to show more characters in both columns before eliding them.
Add OpenSeach plugins to access search.metacpan.org directly from the browser chrome:
See the OpenSearch specification: http://www.opensearch.org/Home
We could use a local storage method (Backbone.js has an add on for that actually) to store lists of favourite modules. Then we could add an option to do a search only on favourites.
Take all the downloaded javascript files and combine them into 1 to save on HHTP requests.
There are 3 files that I'm linking to externally but all the rest can be combine into one.
For development purposes, the search.metacpan.org specific javascript will be kept as separate files for now, but in the future these will also be condensed down to one file and minified.
Currently when the author view fades in, the results table isn't displayed until it's ajax call is finished. For Authors with many modules this takes a second or two, and there is no indication that anything is happening on the page in the meantime.
Some sort of loader image could be used below the Author info box to indicate that more is happening on the page still.
This one is nice in that I can make a call to highlight a particular element at will without having to re-highlight the entire page. It also has an auto-detection routine to figure out what highlighter should be used on any particular piece of code.
However it has some issues with Perl, in that if a chunk of code starts with a comment (starting with a # mark) then it doesn't seem to recognize it as Perl. Also it doesn't know what to do with POD.
I've used this one before and it works fairly well. This is probably the highlighter that I'd prefer to use. However I was having issues getting it to highlight code dynamically.
I tried this as well. It uses Google's Prettify as it's highlighting engine and wraps it in jQuery for easier use. This one had some serious issues with Perl code as well. It didn't seem to respect spacing in code properly, and it also seemed to have the issue with code blocks beginning with a comment.
However I might try it again, as I was only using it when I was pulling pod from search.cpan.org directly with YQL instead of using our internal pod. This was causing some nastiness with the pod formatting, so this plugin may now work properly.
Comments should be enabled on a per-module basis once the authentication layer is in place.
You are linking to URLs like http://deps.cpantesters.org/?module=Games::LogicPuzzle::0.10;perl=latest. Games::LogicPuzzle::0.10 is not a legal module name. You need to remove the ::$VERSION.
Update Google Groups link in footer, looks like Google closes existing service soon, and moved everything to the new one.
https://groups.google.com/forum/#!forum/cpan-api
There is currently a bunch of repeated code in the views that needs to be consolidated into one base view that the others can be extended from.
http://search.metacpan.org/#/search/module/Config
MOBY::Config has a very long description which makes the description column too wide.
For instance, go to: http://search.metacpan.org/#/showpod/ElasticSearch
In the table of contents, under Document-indexing methods
, click on set()
- this correctly scrolls you down the page.
Under the entry for set()
, where it says: set() is a synonym for "index()"
, click on index()
- this looks for a module called index
rather than an anchor within the current page
There is something wrong with the sorting of the 'Score' column currently.
It initially sorts properly on page adding data to the table, however clicking column header to resort the column is not working.
I've set the column type as numeric so that the initial sort works properly with 2 ore more digit values. If I just leave the column type as a string, then the column is sortable with the header, but as soon as a score value goes over 9.999~ it doesn't show up on top.
This appears to be due to the fact that I'm wrapping the inside of each cell with a
It's probably safe to leave the internal
Currently clicking on search results replaces the current page. This is not standard web ui behavior.
Integrate Yanick's work once it is ready for production.
The "us" in "having to us any" should be "use".
can we make it so we have just one search? instead of having to choose what we're searching for. I'd just as soon type 'xeno' into the search and get my author, without selecting xeno from the search options categorizing the results would be fine
Add to the dist page once this is info available in the index
in many searches... you can search the site once, and then the next time you want to search the site, in chrome's url bar you can put the domain, hit tab and you can search the site. this works well with search.cpan.org however doesn't seem to work with search.metacpan.org
I don't actually understand how chrome detects this, so I can't speak on what's missing
This was originally reported by Mark Stosberg in the CPAN-API bug queue. The bug is that the page is not returning. The feature request would be to try to match on the author name fields as well as PAUSEID.
A search for stosberg gives me a progress-bar-of-death:
http://search.metacpan.org/#/author/STOSBERG
But a search for "MARKSTOS" brings up a page for me quickly, including showing that my name is "Mark Stosberg"
Would be useful on author pages: http://developer.linkedin.com/community/widgets The "profile" widgets would be best.
via @lestrrat:
POD Viewer could be better
I'm not a designer, so I dont have concrete suggestion but I find it harder to read than before (not that original was great)
perhaps it's the font size and color. not sure tho.
It's fine to have "advanced" functions require javascript; but the basic functionality should work without.
This is a cross-domain ajax issue.
The api.metacpan.org and search.metacpan.org domains aren't liking each other. I assume this is because we aren't using a wildcard domain name yet.
So Opera (and I believe IE) don't like all the ajax calls to api.metacpan.org right now.
Hi, looks like some link on the website is broken
eg: http://cpan.metacpan.org/authors/id/S/SU/SUKRIA/Dancer-1.3011.tar.gz
but some links are OK
eg: http://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Moose-1.23.tar.gz
Add to dist page
Setup a Backbone.js model for storing the returned row results.
For example, searching for the Padre module gives back version 0.76 currently:
http://search.metacpan.org/#/search/module/Padre
However a search for the Padre distribution returns version 0.66:
http://search.metacpan.org/#/search/dist/Padre
A lot of the page transition code, ie, the fades from one page to the next and the loader images, is using setTimeout to ensure the transitions execute in the proper order.
This is also a problem when quickly going back and forward through history as multiple transitions will start running, and the end result is a page that might be showing the html from different views at the same time.
Perhaps make a transition controller that can queue the transitions better.
https://skitch.com/ranguard/fmnj2/search-results-for-data-pageset-search.metacpan.org
Same search on metacpan.org is ok.
Add PayPal button to author page if author accepts_donations
Pass/Fail/Unknown data should be on the dist page as soon as this is available in ES
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.