summaryrefslogtreecommitdiff
path: root/js
Commit message (Collapse)AuthorAgeFilesLines
* Add basic, hacky package installation.David Thompson2014-08-151-3/+122
| | | | | | | | | | | * 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.
* Add column sorting to package table.David Thompson2014-08-131-8/+52
| | | | | | | | | | | * 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.
* 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.
* 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.
* Rename guix-web.js to guix-packages.js.David Thompson2014-08-071-2/+7
| | | | | | * guix-web (javascripts): Update. * js/guix-packages.js: New file. * js/guix-web.js: Delete it.
* 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.
* Use uncompressed source code for mithril.js.David Thompson2014-08-072-8/+674
| | | | | | * guix-web: Update javascripts. * js/mithril.js: New file. * js/mithril.min.js: Delete it.
* Add copyright information to source files.David Thompson2014-08-071-0/+17
| | | | | * guix-web: * js/guix-web.js: Add it.
* First commit.David Thompson2014-08-063-0/+1445