Commit Graph

74 Commits

Author SHA1 Message Date
MinRK
c49f04545a don't use result.safe to communicate incomplete information 2014-03-03 16:10:19 -08:00
MinRK
028ce17c62 fix tagName comparison 2014-03-03 16:10:19 -08:00
MinRK
3897b1c39f don't populate sanitized.safe by default
since it's potentially expensive.

walk nodes in is_safe
2014-03-03 16:10:18 -08:00
MinRK
367b4f85c2 wrap caja.sanitizeAttribs to trust data-* attributes 2014-03-03 16:10:17 -08:00
MinRK
eec5d427a4 add cmp_tree, in case caja log can't be trusted
(spoiler: it can't)
2014-03-03 16:10:17 -08:00
MinRK
2a0451fdde use google-caja for sanitization 2014-03-03 16:06:41 -08:00
Brian E. Granger
07cdb1e195 Adding first round of security tests of is_safe. 2014-03-03 16:06:41 -08:00
Brian E. Granger
fa3f998295 Adding security.js with 1st attempt at is_safe. 2014-03-03 16:06:40 -08:00
Brian E. Granger
af7dd15181 Removing old keyboard handling from IPython.utils. 2014-03-03 13:13:50 -08:00
Brian E. Granger
ec6ea72873 Adding utility functions. 2014-03-03 13:10:17 -08:00
Brian E. Granger
ff1492f8c9 Creating new base/js/keyboard.js 2014-03-03 13:10:17 -08:00
Jonathan Frederic
a7fb5e1e55 Merge pull request #5114 from minrk/empty-button
use non-breaking space for button with no description
2014-02-17 08:37:08 -08:00
Thomas Kluyver
d6986cf4ec Merge pull request #4778 from minrk/install-nbextensions
add APIs for installing notebook extensions
2014-02-14 15:21:15 -08:00
MinRK
9c452998ea add utils.escape_html 2014-02-13 11:08:44 -08:00
Jonathan Frederic
af5b5cea7d Revert "Change stretch to flex-start"
This reverts commit 774073116dd4195037c452d48f05b432bba38801.
2014-02-09 13:51:20 -08:00
Jonathan Frederic
ff14cabf7f Change stretch to flex-start 2014-02-09 13:51:19 -08:00
Jonathan Frederic
aba9f7e9f8 Automatic width adjustment for flex0 2014-02-09 13:51:18 -08:00
Jonathan Frederic
7ae028e01f Corrected a lot of small misuses of the new flex model. 2014-02-09 13:51:17 -08:00
MinRK
8264362179 document utils.parse_url 2014-02-08 23:09:25 -08:00
MinRK
24e59106c0 add utils.parse_url
strip repeated '//' in url_path_join
2014-02-08 23:09:25 -08:00
MinRK
a93040e810 s/get_data/get_body_data/ 2014-02-08 23:09:24 -08:00
MinRK
beaa75b416 add utils.get_data
for extracting *decoded* items from $('body').data
2014-02-08 23:09:23 -08:00
MinRK
f3f1695b06 add IPython.load_extensions in js 2014-02-08 21:32:31 -08:00
MinRK
95d3d6de8b fix flex: auto
flex: 0 doesn't seem to mean what box-flex meant (auto)

closes #5069
2014-02-07 20:20:24 -08:00
Jonathan Frederic
33586b7ac8 Convert tabs to spaces 2014-02-06 16:27:45 -08:00
Jonathan Frederic
66c14d34ce New 'flex' support
http://dev.w3.org/csswg/css-flexbox/
https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Flexible_boxes
2014-02-06 14:02:18 -08:00
Brian E. Granger
bc7b51d1b0 Merge pull request #4374 from jdfreder/widget-msg
IPEP 23: Backbone.js Widgets
2014-01-28 14:58:00 -08:00
Jonathan Frederic
13694d04c3 Removed blame comment 2014-01-28 11:43:53 -08:00
Brian E. Granger
5137961bf2 Protect against navigator undefined in platform. 2014-01-28 10:19:44 -08:00
Brian E. Granger
0af185787a Added platform dep. logic. 2014-01-27 16:27:25 -08:00
Jonathan Frederic
3390f64dc2 Added flex properties to container.
Also replaced underscores in flex align properties with dashes.
2014-01-16 10:56:58 +00:00
Jonathan Frederic
2ba2d42e84 Added flexible box model align properties. 2014-01-16 10:56:58 +00:00
MinRK
c7a3676804 allow utils.js to be loaded in node
where navigator is undefined
2014-01-14 10:30:09 -08:00
Brian E. Granger
d8db72564a Merge pull request #3605 from ellisonbg/newux
Modal UI - a whole new world of fun....its like vim, but not!
2014-01-10 16:10:25 -08:00
Brian E. Granger
06aa0d540d Using a more specific approach for managing CM focus.
I used to try and enter command mode when a cell looses focus. The
problem with that is that focusing an output area would remain in
edit mode.

Now, I bind this logic to the code mirror blur event, so that
focusing the output area enters command mode.
2014-01-07 14:42:37 -08:00
Brian E. Granger
b865c98567 Removing KBN null mode and replacing with enable/disable. 2014-01-07 14:42:35 -08:00
Brian E. Granger
caffba142e Adding keyboard manager logic.
This is currently very broken.
2014-01-07 14:42:35 -08:00
MinRK
21632ac564 add error css 2013-12-22 17:58:27 -08:00
Min RK
8be6c4b617 Merge pull request #4575 from minrk/encode_paths
make sure to encode URL components for API requests
2013-12-19 09:49:16 -08:00
Brian E. Granger
2734f4cc5b Cleaning up indentation and spacing of less files touched. 2013-12-05 12:30:28 -08:00
Brian E. Granger
57a9457f78 More tabs to spaces on less files. 2013-11-22 14:25:57 -08:00
MinRK
1869e1a1a3 add utils.url_join_encode
like url_path_join, but escapes url components
2013-11-21 15:05:06 -08:00
Min RK
6368dbb6f3 Merge pull request #4444 from Carreau/css-cleaning
CSS cleaning

- vbox / hbox via classes
- adds notebook/style_noapp.less, which excludes body/toolbar/menubar stuff not necessary in embedded contexts
2013-11-11 12:00:46 -08:00
Matthias BUSSONNIER
74683da8ad use baseBorderRadius instead of corner_radius
as it already exist in Bootstrap
2013-11-11 15:58:56 +01:00
MinRK
71d6a80629 add setup.py jsversion
for writing the IPython version to `IPython.version` in javascript.

supersedes #4357
2013-11-07 16:34:13 -08:00
Min RK
0aaafce4af Merge pull request #4195 from minrk/widget-msg
IPEP 21:  widget messages
2013-10-24 12:19:41 -07:00
Paul Ivanov
19a20a3c70 add Ctrl-M keyboard shortcut 2013-10-23 11:05:59 -07:00
Paul Ivanov
65810a49e4 utility functions + tests for shift- & ctrl-enter 2013-10-23 11:05:58 -07:00
Paul Ivanov
c68eaca621 added a shorthand way to trigger keyboard events
as suggested by @ellisonbg in #4285
2013-10-23 11:05:58 -07:00
MinRK
5c83cd3e52 move comm.js to kernel service 2013-10-22 19:44:44 -07:00