summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add a currently useless abort button to the package install modal.David Thompson2014-08-151-1/+1
| | | | * js/guix-packages.js (guix.view): Render abort button in derivation phase.
* Use the current user's guix profile.David Thompson2014-08-151-1/+3
| | | | * guix-web/package.scm (%profile): Use the per-user profile of $USER.
* Tweak messaging during package installation.David Thompson2014-08-151-1/+7
| | | | * js/guix-packages.js (guix.view): Tweak messaging during derivation phase.
* Always return to the first page of results after searching.David Thompson2014-08-151-0/+2
| | | | | * js/guix-packages.js (guix.controller.prototype.doSearch): Reset currentPageIndex to 0.
* Show close button on modal when installation fails.David Thompson2014-08-151-1/+1
| | | | * js/guix-packages.js (guix.view): Show close button on the error phase.
* Wrap controller procedure in a trampoline.David Thompson2014-08-151-1/+1
| | | | * scripts/guix-web: Trampoline it.
* Add basic, hacky package installation.David Thompson2014-08-154-4/+192
| | | | | | | | | | | * guix-web/controller.scm (controller): Add package installation route. * guix-web/package.scm: New file. * guix-web/render.scm (unprocessable-entity, created): New procedures. * js/guix-packages.js (guix.PHASE_NONE, guix.PHASE_PROMPT, guix.PHASE_DERIVATION, guix.PHASE_SUCCESS, guix.PHASE_ERROR): New variables. (guix.controller.phase, guix.controller.selectedPackage): New properties. (guix.controller.prototype.installSelectedPackage): New method. (guix.view): Add modal for package installation UI.
* Better encapsulate JS data types.David Thompson2014-08-131-88/+98
| | | | | * js/guix-packages.js (guix.Sorter, guix.controller): Use module pattern to encapsulate data type creation.
* Make logo link to package list.David Thompson2014-08-131-1/+2
| | | | * guix-web/view.scm (main-layout): Wrap image tag in anchor tag.
* Add javascript record type.David Thompson2014-08-131-15/+31
| | | | | | | | * guix-web/view.scm (<javascript>): New record type. (javascript, javascript?, javascript-source-uri, javascript-license, javascript-license-uri): New procedures. (javascripts): Use javascript constructor. (script-tag, librejs): Use new javascript procedures.
* Add column sorting to package table.David Thompson2014-08-133-9/+66
| | | | | | | | | | | * css/guix.css: New file. * guix-web/view.scm (main-layout): Include guix.css. * js/guix-packages.js (guix.Sorter.prototype.reverse): New method. (guix.controller.sorter): Make property. (guix.controller.columns): New variable. (guix.controller.prototype.paginate): Use sorter property. (guix.controller.prototype.sortBy): New method. (guix.view): Render column sorting UI.
* Add package sorting.David Thompson2014-08-131-0/+12
| | | | | | * guix-packages.js (guix.Sorter): New data type. (guix.Soter.prototype.sort): New method. (guix.controller): Sort by name by default.
* Move pagination function to controller prototype.David Thompson2014-08-131-6/+6
| | | | | | * js/guix-packages.js (guix.paginate): Delete it. (guix.controller): Use new paginate method. (guix.controller.prototype.paginate): New method.
* Add copyright and licensing information to page footer.David Thompson2014-08-111-3/+16
|
* Create utility module.David Thompson2014-08-092-9/+45
| | | | | | * guix-web/server.scm (file-extension, directory?, request-path-components): Delete them. * guix-web/util.scm: New module.
* Fix view-package.David Thompson2014-08-091-1/+2
| | | | * guix-web/view.scm (view-package): Filter out non-package inputs.
* README: Rephrase features.David Thompson2014-08-091-2/+2
| | | | * README.md ("Features"): Rephrase.
* Add JSON endpoint for a specific package name.David Thompson2014-08-092-30/+61
| | | | | | | | * guix-web/controller.scm (controller): Allow use of '.json' file extension. * guix-web/view.scm (view-package-json, license->json, package->json): New procedures. (all-packages-json): Refactor. (view-package): Filter out non-package inputs.
* README: Expand features and wishlist.David Thompson2014-08-091-0/+4
| | | | | * README.md ("Features"): Add LibreJS compatibility. ("Wishlist"): Add more desired features.
* README: Fix formatting of copyright information.David Thompson2014-08-091-0/+1
| | | | * README.md ("Copyright"): Fix formatting.
* Update README.David Thompson2014-08-091-0/+20
| | | | README.md ("Features", "Wishlist", "Dependencies"): New sections.
* Show package inputs when viewing package details.David Thompson2014-08-091-1/+26
| | | | | * guix-web/view.scm (view-package): Display inputs, native inputs, and propagated inputs when present.
* Remove unused variable guix-web-router.David Thompson2014-08-091-16/+1
| | | | * guix-web/config.scm (guix-web-router): Delete it.
* Move controller methods to prototype.David Thompson2014-08-091-24/+24
| | | | | * js/guix-packages.js: Move functions defined on each instance of guix.controller to guix.controller's prototype.
* Add pagination.David Thompson2014-08-091-7/+95
| | | | | | | | | | | | * js/guix-packages.js: (guix.chunk): New function. (guix.paginate): New function. (guix.controller.pages, guix.controller.currentPageIndex, guix.controller.pageSize): New variables. (guix.controller.currentPage, guix.controller.isFirstPage, guix.controller.isLastPage, guix.controller.isCurrentPage, guix.controller.packageCount): New functions. (guix.controller.doSearch): Paginate. (guix.view): Render pagination UI.
* Perform case insensitive search.David Thompson2014-08-081-1/+1
| | | | * js/guix-packages.js: Specify case insensitive mode when creating regexp.
* Add Emacs local variable compile-command setting.David Thompson2014-08-081-0/+1
| | | | * scripts/guix-web: Add it.
* Remove extraneous parens.David Thompson2014-08-081-1/+1
| | | | * scripts/guix-web: Remove them.
* Display visible packages in badge on package search page.David Thompson2014-08-071-1/+1
| | | | * js/guix-packages.js (guix.view): Display ctrl.visiblePackages() in badge.
* Break guix-web script into many modules.David Thompson2014-08-076-239/+361
| | | | | | | | | * guix-web/config.scm: New file. * guix-web/controller.scm: New file. * guix-web/render.scm: New file. * guix-web/server.scm: New file. * guix-web/view.scm: New file. * scripts/guix-web: Remove extracted code.
* Move guix-web to scripts directory.David Thompson2014-08-073-2/+8
| | | | | | | * README.md ("Use"): Update. * guix-web: Moved. * pre-inst-env: New file. * scripts/guix-web: New file.
* Rename guix-web.js to guix-packages.js.David Thompson2014-08-072-3/+8
| | | | | | * guix-web (javascripts): Update. * js/guix-packages.js: New file. * js/guix-web.js: Delete it.
* Allow connections from any computer on the network.David Thompson2014-08-071-1/+4
| | | | * guix-web: use INADDR_ANY for http server addr.
* Rename weblabels to librejs.David Thompson2014-08-071-3/+4
| | | | | | * guix-web (run-route): Call librejs. (weblabels): Renamed. (librejs): New procedure.
* Extract common page layout to procedure.David Thompson2014-08-071-34/+38
| | | | | * guix-web (main-layout): New procedure. (all-packages, view-package, weblabels): Use main-layout.
* Add "versions" to package count badge.David Thompson2014-08-071-1/+9
| | | | | * guix-web (view-package): Pluralize "version" if needed and render next to package count.
* Add /package endpoint.David Thompson2014-08-072-9/+44
| | | | | | | | | * guix-web (file-mime-types): Add image/png. (run-route): Add /package endpoint. (license-link): Delete it. (render-package-license): New procedure. (view-package): New procedure. * images/logo.png: New file.
* Allow binary files to be served.David Thompson2014-08-071-2/+2
| | | | * guix-web (serve-static-asset): Read file as bytevector instead of string.
* js: Add form-control class to search input.David Thompson2014-08-071-12/+9
| | | | * js/guix-web.js (guix.view): Add it.
* js: Apply search terms to package synopsis.David Thompson2014-08-071-1/+2
| | | | | * js/guix-web.js (guix.controller.doSearch): Test regexp against package synopsis.
* Add LibreJS weblabels page.David Thompson2014-08-071-3/+31
| | | | | | | * guix-web (javascripts): Use absolute paths. (run-route): Add weblabels route. (all-packages): Add js license information link. (weblabels): New procedure.
* Render JSON directly to client port.David Thompson2014-08-071-2/+2
| | | | * guix-web (render-json): Output to port instead of string.
* Render HTML directly to client port rather than to string.David Thompson2014-08-071-5/+3
| | | | * guix-web (render-html): Render to port.
* Use uncompressed source code for mithril.js.David Thompson2014-08-073-9/+675
| | | | | | * guix-web: Update javascripts. * js/mithril.js: New file. * js/mithril.min.js: Delete it.
* Move Emacs local variables to bottom of file.David Thompson2014-08-071-5/+5
| | | | * guix-web: Move local variable commnents.
* Fix shebang.David Thompson2014-08-071-1/+2
| | | | * guix-web: Fix it.
* Add copyright information to source files.David Thompson2014-08-072-0/+34
| | | | | * guix-web: * js/guix-web.js: Add it.
* README: Add brief usage information.David Thompson2014-08-071-0/+5
| | | | * README.md ("Use"): New section.
* Add AGPL 3.0 license.David Thompson2014-08-072-1/+677
| | | | | * COPYING: New file. * README.md ("Copyright"): Expand licensing information.
* The license is really AGPLv3.David Thompson2014-08-061-1/+1
|