| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* js/controller/generations.js (guix.generations.controller): Render
generations in reverse chronological order.
[sortedGenerations]: New variable.
|
|
|
|
|
|
|
|
| |
* js/controller/packages.js (guix.packages.controller): Do not render
pagination where there are no search results.
[emptyPages]: New variable.
[pages]: Don't chunk when there are no packages. Return emptyPackages
instead.
|
|
|
|
|
| |
* js/controller/packages.js (guix.packages.controller): Use the filtered
package list instead of the full package list when rendering.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* css/guix.css: New loading spinner.
* js/lib/kefir.js: New file.
* js/model/packages.js (guix.packages.Packages): Cache result.
(guix.packages.Sorter, guix.packages.Pager): Delete.
(guix.packages.installPackage): New function.
* js/utils.js (K): New variable.
(guix.withEmit, guix.withEmitAttr, guix.makeModule): New functions.
* js/view/ui.js (guix.ui.paginate, guix.ui.spinUntil): New functions.
(guix.ui.spinner): New variable.
* js/controller/generations.js: Rewrite.
* js/controller/packageInfo.js: Rewrite
* js/controller/packages.js: Rewrite.
* js/view/packages.js: Rewrite.
* js/view/generations.js: Delete.
* js/view/packageInfo.js: Delete.
* js/routes.js: Use new modules.
* guix/web/view/html.scm (javascripts): Update list.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* js/routes.js: Add new route.
* js/controller/packageInfo.js: New file.
* js/view/packageInfo.js: New file.
* js/model/packages.js (guix.packages.PackagesByName): New function.
* js/view/ui.js (guix.ui.licenseList): New function.
* js/view/packages.js (guix.packages.view): Render package links as
Mithril URLs. Remove factorized inner 'renderLicese' function.
* guix-web/view/html.scm (javascripts): Add new JS files.
(view-package): Delete.
|
|
|
|
|
|
|
| |
* js/controllers/packages.js (guix.packages.controller.sortAndPage): New
function.
(guix.packages.controller): Use 'sortAndPage'.
(guix.packages.controller.doSearch): Likewise.
|
|
|
|
|
|
|
|
|
|
| |
* js/controller/packages.js (guix.packages.packages): Default to empty
array.
* js/model/packages.js (guix.packages.Pager.currentPage): Always return
an array
* js/view/packages.js (guix.packages.view): Show spinner when there are
0 packages loaded from the server, not when there are 0 pages of
results.
|
|
|
|
|
|
| |
* js/utils.js (guix.add): New function.
* js/controllers/packages.js (guix.packages.controller.packageCount):
Reimplement.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* guix-web/controller.scm (controller): Add '/generations' route.
* guix-web/package.scm (profile-generations*): New procedure.
* guix-web/view.scm (generations-json): New procedure.
(javascripts): Add new JS files.
* js/model/generations.js: New file.
* js/controller/generations.js: New file.
* js/view/generations.js: New file.
* js/view/layout.js (guix.withLayout): Add 'Generations' navbar entry.
* js/routes.js: Add '/generations' route.
|
|
|
|
|
|
|
|
|
|
|
| |
* css/guix.css: Add spinner styles.
* js/controller/packages.js (guix.packages.view): Explicitly redraw
after loading packages.
* js/model/packages.js (guix.packages.Packages): Load packages in the
background.
* js/view/layout.js (guix.withLayout): Cast elem to array if needed.
* js/view/packages.js (guix.packages.view): Render spinner when there
are no packages to display.
|
|
* js/packages.js: Delete.
* js/model/packages.js: New file.
* js/view/packages.js: New file.
* js/controller/packages.js: New file.
* js/routes.js: Use new namespace for packages.
* guix-web/view.scm (javascripts): Add new JS files.
|