# HG changeset patch # User Drew Perttula # Date 1401256463 0 # Node ID a4632a7b2e17592bcb91544215fa82f9b0571f60 # Parent b65995e32a232bbb7ce16a95b2a94dc16b79c921 upgrade knockout and jquery, simplify the static/ dirs for all web services Ignore-this: 8637b7b61cc5d38e8cf15bb1afd7466c diff -r b65995e32a23 -r a4632a7b2e17 bin/effecteval --- a/bin/effecteval Tue May 27 07:34:58 2014 +0000 +++ b/bin/effecteval Wed May 28 05:54:23 2014 +0000 @@ -142,9 +142,10 @@ {'path': 'light9/effecteval', 'default_filename': 'index.html'}), (r'/effect', EffectEdit), (r'/(websocket\.js)', SFH, {'path': 'light9/rdfdb/web/'}), - (r'/(knockout-2\.2\.1\.js)', SFH, {'path': 'light9/subserver/'}), (r'/effect\.js', StaticCoffee, {'src': 'light9/effecteval/effect.coffee'}), - (r'/effectData', EffectData), + (r'/index\.js', StaticCoffee, {'src': 'light9/effecteval/index.coffee'}), + (r'/effectUpdates', EffectUpdates), + (r'/songEffectsUpdates', SongEffectsUpdates), (r'/static/(.*)', SFH, {'path': 'static/'}), (r'/effect/eval', EffectEval), (r'/songEffects/eval', SongEffectsEval), diff -r b65995e32a23 -r a4632a7b2e17 bin/rdfdb --- a/bin/rdfdb Tue May 27 07:34:58 2014 +0000 +++ b/bin/rdfdb Wed May 28 05:54:23 2014 +0000 @@ -456,6 +456,7 @@ (r'/patches', Patches), (r'/graphClients', GraphClients), + (r'/static/(.*)', cyclone.web.StaticFileHandler, {'path': 'static/'}), (r'/(.*)', NoExts, {"path" : "light9/rdfdb/web", "default_filename" : "index.xhtml"}), diff -r b65995e32a23 -r a4632a7b2e17 bin/subserver --- a/bin/subserver Tue May 27 07:34:58 2014 +0000 +++ b/bin/subserver Wed May 28 05:54:23 2014 +0000 @@ -49,15 +49,7 @@ return self.respondStaticJade("light9/subserver/%s.jade" % (path or 'index')) - oddlyPlaced = { - "websocket.js": "light9/rdfdb/web/websocket.js", - "jquery-1.7.2.min.js": "light9/rdfdb/web/lib/jquery-1.7.2.min.js", - } - if path in oddlyPlaced: - self.write(open(oddlyPlaced[path]).read()) - return - - if path.endswith(".js") and path not in ['knockout-2.2.1.js']: + if path.endswith(".js"): return self.responseStaticCoffee( 'light9/subserver/%s' % path.replace(".js", ".coffee")) # potential security hole @@ -144,6 +136,7 @@ reactor.listenTCP(port, cyclone.web.Application(handlers=[ (r'/live', Live), (r'/snapshot', Snapshot), + (r'/static/(.*)', cyclone.web.StaticFileHandler, {'path': 'static/'}), (r'/(.*)', Static, {"path" : "light9/subserver", "default_filename" : "index.jade"}), diff -r b65995e32a23 -r a4632a7b2e17 light9/ascoltami/index.html --- a/light9/ascoltami/index.html Tue May 27 07:34:58 2014 +0000 +++ b/light9/ascoltami/index.html Wed May 28 05:54:23 2014 +0000 @@ -5,7 +5,7 @@ xmlns:py="http://genshi.edgewall.org/"> ascoltami on ${host} - + diff -r b65995e32a23 -r a4632a7b2e17 light9/effecteval/effect.html --- a/light9/effecteval/effect.html Tue May 27 07:34:58 2014 +0000 +++ b/light9/effecteval/effect.html Wed May 28 05:54:23 2014 +0000 @@ -9,9 +9,10 @@
code:
- - - + + + + diff -r b65995e32a23 -r a4632a7b2e17 light9/effecteval/index.html --- a/light9/effecteval/index.html Tue May 27 07:34:58 2014 +0000 +++ b/light9/effecteval/index.html Wed May 28 05:54:23 2014 +0000 @@ -11,5 +11,9 @@
  • song1 -> opening look
  • song1 -> full
  • + + + + diff -r b65995e32a23 -r a4632a7b2e17 light9/rdfdb/web/graphView.xhtml --- a/light9/rdfdb/web/graphView.xhtml Tue May 27 07:34:58 2014 +0000 +++ b/light9/rdfdb/web/graphView.xhtml Wed May 28 05:54:23 2014 +0000 @@ -32,8 +32,8 @@ - - + + - \ No newline at end of file + diff -r b65995e32a23 -r a4632a7b2e17 light9/rdfdb/web/index.xhtml --- a/light9/rdfdb/web/index.xhtml Tue May 27 07:34:58 2014 +0000 +++ b/light9/rdfdb/web/index.xhtml Wed May 28 05:54:23 2014 +0000 @@ -22,8 +22,8 @@
    - - + +