summaryrefslogtreecommitdiff
path: root/js/utils.js
Commit message (Collapse)AuthorAgeFilesLines
* js: Clean up packageCount function.David Thompson2015-01-301-0/+7
| | | | | | * js/utils.js (guix.add): New function. * js/controllers/packages.js (guix.packages.controller.packageCount): Reimplement.
* js: Extract pagination model.David Thompson2014-10-161-0/+4
| | | | | | | | | | * js/utils.js (guix.clamp): New function. * js/controller/packages.js (guix.packages.controller): Remove 'pages', 'currentPageIndex', and 'pageSize' properties. Add 'pager' prop. Delete 'paginate', 'currentPage', 'isFirstPage', 'isLastPage', and 'isCurrentPage' methods. * js/model/packages.js (guix.packages.Pager): New function. * js/view/packages.js (guix.packages.view): Use new Pager API.
* js: utils file initializes guix namespace with certainty.David Thompson2014-10-151-1/+1
| | | | * js/utils.js (guix): Don't check for existing value (there isn't one).
* Restructure JavaScript files.David Thompson2014-10-151-0/+32
* js/guix-packages.js: Delete. * js/mithril.js: Delete. * js/underscore.js: Delete. * js/lib/mithril.js: New file. * js/lib/underscore.js: New file. * js/packages.js: New file. * js/routes.js: New file. * js/utils.js: New file. * js/view/layout.js: New file. * guix-web/view.scm (javascripts): Add new files. Delete old ones. * css/guix.css (logo): New class. * images/logo.png: Shrink logo.