As some of you may have noticed, I have started to work on a pijul frontend “a la cgit” a few days ago. You can found it on the Nest and I am planning to use the Nestling to browser the Nestling as soon as possible (this is so meta).
Of course, the Nestling is not an opponent of any sort of the Nest, which still is the best tool available to collaborate to write a software with pijul. The Nestling is a read-only front-end and nothing more.
one to get the list of patch hashes of a given branch of a given repo
one to get the patch info of a given hash
WebUI
The webUI is written in Purescript using Halogen.
A view to list the patches of a repository, with a branch selector
Rely on avatar to display a picture of an author
A patch can be selected to display only its dependencies
Future Work
There are still a lot of work to do. Before a first v0.1, I am planning to add a view to list the repositories and a view to visualize a patch alone. In a v0.2, I will tackle files browsering. Then, I intend to play a little with metrics of all sort.
The project is GPL3, so if you’d like to contribute, feel free to ping me on the #pijul irc channel.
My version of make may be too old (3.81). I got it running, but having some trouble with the cross-site thing - I tried Firefox and Chromium (the former with the CorsE add-on), but no luck so far.
Otherwise both the UI and backend seem to be running nicely
BranchSelector: fetching branches now
PatchesList: fetching patches now
:8001/#r/nestling/branch/master:1 XMLHttpRequest cannot load http://localhost:8000/repository/nestling/branches. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8001' is therefore not allowed access.
Uncaught Error: AJAX request failed: GET http://localhost:8000/repository/nestling/branches
at XMLHttpRequest.xhr.onerror (nestling.js:10842)
:8001/#r/nestling/branch/master:1 XMLHttpRequest cannot load http://localhost:8000/repository/nestling/branch/master/patches. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8001' is therefore not allowed access.
I am pretty sure you have an issue which is CORS-related. This is really annoying and I really need to dig this. For the record, I have cleaned my repository on the nest. I had some issue with duplicated patches and probably vicious unrecords but everything is fine now.
Hope I will be able to make some progress on nestling really soon.