summaryrefslogtreecommitdiff
path: root/guix/web
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-02-09 08:34:37 -0500
committerDavid Thompson <dthompson2@worcester.edu>2015-02-09 08:34:37 -0500
commit293294f2401f3dac6d07e9af65b5582ba893a777 (patch)
tree3f2b64f314d692e2359a613e3f0e2c5dd99e7f71 /guix/web
parent6546b8cae1aead78da45dd269d13219257af04ab (diff)
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.
Diffstat (limited to 'guix/web')
-rw-r--r--guix/web/view/html.scm9
1 files changed, 4 insertions, 5 deletions
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