From 293294f2401f3dac6d07e9af65b5582ba893a777 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 9 Feb 2015 08:34:37 -0500 Subject: js: Overhaul UI with FRP! * 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. --- guix/web/view/html.scm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'guix') diff --git a/guix/web/view/html.scm b/guix/web/view/html.scm index 462055c..170cfce 100644 --- a/guix/web/view/html.scm +++ b/guix/web/view/html.scm @@ -47,17 +47,16 @@ (define javascripts (list (javascript "/js/lib/underscore.js" expat) (javascript "/js/lib/mithril.js" expat) + (javascript "/js/lib/kefir.js" expat) (javascript "/js/utils.js" agpl3+) - (javascript "/js/view/ui.js" agpl3+) - (javascript "/js/view/layout.js" agpl3+) (javascript "/js/model/packages.js" agpl3+) (javascript "/js/model/generations.js" agpl3+) + (javascript "/js/view/ui.js" agpl3+) + (javascript "/js/view/layout.js" agpl3+) + (javascript "/js/view/packages.js" agpl3+) (javascript "/js/controller/packages.js" agpl3+) (javascript "/js/controller/packageInfo.js" agpl3+) (javascript "/js/controller/generations.js" agpl3+) - (javascript "/js/view/packages.js" agpl3+) - (javascript "/js/view/packageInfo.js" agpl3+) - (javascript "/js/view/generations.js" agpl3+) (javascript "/js/routes.js" agpl3+))) (define stylesheets -- cgit v1.2.3