Commit Graph

5871 Commits

Author SHA1 Message Date
Jonathan Frederic
b76d4d5c05 Use es6-promise polyfill 2014-11-15 08:49:44 -08:00
Jonathan Frederic
bed3a4cfda use es6 2014-11-15 08:48:36 -08:00
Jonathan Frederic
8c149c9112 Current state with lots and lots of debugging junk 2014-11-15 08:48:35 -08:00
Jonathan Frederic
b3c49fce66 Move the display Promise into a lower level method,
into the create view method of the widget manager.
This makes sure that views created by parent views
are also accounted for in the state/display order
guarantee.
2014-11-15 08:48:35 -08:00
Jonathan Frederic
6ee932f298 Add rsvp to setupbase 2014-11-15 08:48:35 -08:00
Jonathan Frederic
26d012b3b7 Add comment clarifying new hook function,
Refined Page Error output.
2014-11-15 08:48:35 -08:00
Jonathan Frederic
fed878fed9 Don't throw Errors with Objects as the message/ 2014-11-15 08:48:35 -08:00
Jonathan Frederic
17108fed3b Make errors clearer! 2014-11-15 08:48:35 -08:00
Jonathan Frederic
66caa322c5 Make Page Error output clearer 2014-11-15 08:48:35 -08:00
Jonathan Frederic
77789daa12 Test fixes 2014-11-15 08:48:35 -08:00
Jonathan Frederic
bbcd5cb55f Bug fixes 2014-11-15 08:48:34 -08:00
Jonathan Frederic
3870bb571b Use rsvp.js for Promises 2014-11-15 08:48:34 -08:00
Jonathan Frederic
c67dcc0dc3 Finished adding error handling. 2014-11-15 08:48:34 -08:00
Jonathan Frederic
1d1572421f Add a WrappedError class 2014-11-15 08:48:34 -08:00
Jonathan Frederic
b16b2e8749 Make display also pend on set_state. 2014-11-15 08:48:34 -08:00
Jason Grout
a4331a93cc Fix some this vs. that errors, as well as returning some promises to wait for fulfillment 2014-11-15 08:48:34 -08:00
Jason Grout
8e769a012f Load the utils module 2014-11-15 08:48:34 -08:00
Jason Grout
f11a51bb77 Dictionary key/value typo 2014-11-15 08:48:34 -08:00
Jason Grout
fc94383487 Better error messages with correct stack traces 2014-11-15 08:48:34 -08:00
Jason Grout
1b9948d178 Add some error handling for creating views and models 2014-11-15 08:48:33 -08:00
Jason Grout
686e73dfdf More simplifications due to promises 2014-11-15 08:48:33 -08:00
Jason Grout
4412c12929 Simplify code by using Promises in a better way; try_load -> load 2014-11-15 08:48:33 -08:00
Jonathan Frederic
c41dcb35e9 Proxy console.error calls 2014-11-15 08:48:33 -08:00
Jonathan Frederic
2eae36ac9a Use load_class in comms instead of callbacks. 2014-11-15 08:48:33 -08:00
Jonathan Frederic
5a745be138 Add Promise support to models. 2014-11-15 08:48:33 -08:00
Jonathan Frederic
78c0bbdb4d Fix view rendering order. 2014-11-15 08:48:33 -08:00
Jonathan Frederic
4beda5d0fb Initial stab at adding promises to the widget framework. 2014-11-15 08:48:33 -08:00
Jason Grout
ff680583c1 initial take on promises 2014-11-15 08:48:33 -08:00
Thomas Kluyver
2bfdbfc631 Fix some other bugs 2014-11-14 17:06:58 -08:00
Jonathan Frederic
ba9e7365be Fix #6385 2014-11-14 17:04:52 -08:00
Thomas Kluyver
89222b6dfd Actually define the module
I didn't forget something really obvious and important. Not at all.
2014-11-14 16:57:43 -08:00
Thomas Kluyver
17826aa0f9 Merge pull request #6801 from minrk/runMode
use CodeMirror.runMode to highlight in markdown
2014-11-14 16:52:07 -08:00
Thomas Kluyver
cbd4929785 Use promising_ajax in config API 2014-11-14 15:00:37 -08:00
Thomas Kluyver
625c4f5bc2 Fix punctuation 2014-11-14 14:55:07 -08:00
Thomas Kluyver
d9b71ff750 Add JS config API 2014-11-14 14:55:07 -08:00
Min RK
46f2ebf1de Remove highlight.js
from components and setupbase
2014-11-14 14:54:50 -08:00
MinRK
29e49329e2 use CodeMirror.runMode to highlight in markdown
instead of highlight.js
2014-11-14 14:53:52 -08:00
Min RK
388fec4f96 Merge pull request #6924 from takluyver/contents-promises
Use promises in the JS contents API
2014-11-14 14:46:37 -08:00
Thomas Kluyver
3dbb600968 Merge pull request #6940 from takluyver/i6937
Just use notebook_path in download URLs
2014-11-14 14:32:45 -08:00
Thomas Kluyver
f7860ce9d2 Remove trailing comma 2014-11-14 13:05:55 -08:00
Thomas Kluyver
8d9d317e91 Merge pull request #6857 from jdfreder/celltoolbar_metadata_fix
Fix bug cell toolbars not redrawing on metadata change
2014-11-14 12:57:15 -08:00
Thomas Kluyver
8c962df79c Load promises polyfill from a script tag
So all JS code can assume promises work, without needing to require it.
2014-11-14 12:43:44 -08:00
Thomas Kluyver
7240d2dafc Just use notebook_path in download URLs
notebook_name is now superfluous

Closes gh-6937
2014-11-14 12:16:59 -08:00
Jonathan Frederic
f2b6697098 Use a property instead of a setter method 2014-11-14 11:22:28 -08:00
Jason Grout
d11f48eadb Make favicon and logo images blocks in the template 2014-11-14 15:28:40 +00:00
Min RK
1fba948bd8 Merge pull request #6930 from rgbkrk/tree_fix
Fix link to /tree within notebooks
2014-11-13 16:25:46 -08:00
Kyle Kelley
d029a3f4a3 Fix link to /tree. 2014-11-13 17:50:57 -06:00
Thomas Kluyver
d3699c8e3b Update JS docstrings in contents API 2014-11-13 14:44:57 -08:00
Thomas Kluyver
1e53c1f924 Re-raise errors with throw instead of Promise.reject() 2014-11-13 14:25:28 -08:00
Thomas Kluyver
d04e41251d Merge pull request #6915 from minrk/contents-no-0
use Untitled instead of Untitled0
2014-11-13 14:04:00 -08:00