KesterTong
75d7e69fc8
Use $.proxy instead of that
11 years ago
KesterTong
9881d17bb1
Remove unused event
...
This event never seems to get used.
11 years ago
KesterTong
0aada3ac5d
Remove deleted notebook from notebook list
...
Uses events to notify the NotebookList when the content manager deletes a notebook, and remove the deleted notebook in response to such an event.
11 years ago
KesterTong
077ba397c1
Removes unnecessary parameter from ContentManager.delete_notebook
11 years ago
Jeff Hemmelgarn
99323b1173
Move saving to contentmanager
...
Make notebook.save_notebook call contentmanager.save_notebook.
11 years ago
Jeff Hemmelgarn
5b5e194082
Move notebook.rename to contentmanager
...
Make notebook.rename call contentmanager.rename
11 years ago
Jeff Hemmelgarn
728c6f005f
Move deleting a notebook to contentmanager.js
...
Move code to handle deleting a notebook from notebooklist to
contentmanager.
11 years ago
KesterTong
d17ca85f5b
Adds dialog on new_notebook failure
...
This logic doesn't really belong in ContentManager. It would be better to trigger an event, which is handled somewhere else. But there's no obvious place to put this event, so creating the error dialog inside the new_notebook method is ok for now.
11 years ago
KesterTong
5717a3eb10
Make ContentManager stateless
...
Don't store notebook_path in ContentManager, because this sort of state (in addition to notebook_name) can change, and keeping track of this logic doesn't seem to be a part of the file management system. Instead, this logic can be left to the Notebook instance (and possible other places that manage it). This makes refactoring easier, and avoids having to replicate this logic in every implementation of ContentManager.
11 years ago
KesterTong
99f2647edd
Use IPython style constructor
11 years ago
KesterTong
21a5b5a965
Style and bug fixes
11 years ago
jhemmelg
112a74c566
ContentManager function signatures updated
11 years ago
jhemmelg
d5a84bb8a4
Initial interface for javascript contentmanagers
...
contentmanager.js is going to be a js proxy for the current
filenbmanager.py. This will allow a contentmanager for Google Drive to
be created.
11 years ago
Thomas Kluyver
c39939869f
Merge pull request #6653 from mattpap/fix_ansispan
...
Fix IPython.utils.ansispan() to ignore stray [0m
11 years ago
Matthias Bussonnier
d269912958
Merge pull request #6110 from minrk/binarycomm
...
support binary buffers in comm messages
11 years ago
MinRK
ab9e2b496d
move grid-float-breakpoint to 540px
...
collapses navbar before running over to two lines
due to help/indicator collision.
11 years ago
MinRK
36cd457b11
move the navbar-collapse transition to xs
...
avoids stacked navbar on narrow (but not too narrow) windows
11 years ago
Matthias Bussonnier
8aa3815130
Add notion of action that differs from shortcuts.
...
This decouple the notion of shortcut from the notion of executed "action"
This allow the shortcuts manager to be purely describe as data, and the
same action to be later refered to either from the shortcut, from a toolbar
button or a menu.
This also implement a more complete keyboard shortcut handler which is
able ton interpete sequences like `Cmd-X,Meta-v` By storing the
shortcuts in a tree.
11 years ago
MinRK
6cef7fcb86
use utf8.js
...
move message serialization to kernel.serialize module
11 years ago
MinRK
3a1c845f96
support buffers in comm messages
...
- add buffers arg to comm Python api
- support binary websocket messages when buffers are present
- reimplement utf8 in javascript, because javascript is the best
11 years ago
Matthias Bussonnier
3de3ef9add
add comment about codemirror.modeURL
11 years ago
MinRK
8e863d951c
use require to load CodeMirror modes
...
CM's loadmode addon only works if you *don't* load CodeMirror itself with require.
11 years ago
Matthias BUSSONNIER
5b355936df
Update to codemirror 4
...
Update to codemirror 4.6 and update most notebook to work wiht it
this include keyevent that where triggerd twice and the re-writing of
ipython-gfm anf ipython mode to work with require.
11 years ago
Jessica B. Hamrick
40ebe5d816
Make kernel dialogs be a special type of dialog
11 years ago
Jessica B. Hamrick
d606d53b4e
More informative error messages
11 years ago
Mateusz Paprocki
904216d546
Fix ansispan() to ignore stray [0m
11 years ago
MinRK
78fdc1ebb4
move mergeopt to utils
...
from Cell
12 years ago
Brian E. Granger
94f717781d
Merge pull request #6125 from jdfreder/flex
...
Embrace the flexible box model in the widgets
12 years ago
MinRK
6d542013a4
add utils.ajax_error_msg for extracting the JSON error message.
12 years ago
Jonathan Frederic
37f00f73d7
Added baseline and stretch
12 years ago
Matthias BUSSONNIER
d1dc31c9de
fix loginwidget css
12 years ago
Matthias BUSSONNIER
21222fe302
remove empty style function in page.js
12 years ago
Matthias BUSSONNIER
3b5b32f27b
move login widget style to css
12 years ago
Matthias BUSSONNIER
c261f45ea3
movestyling from js to css + deprecation warnign
12 years ago
Matthias BUSSONNIER
36e3f20d5e
fix some font-awesoem 4 icons
12 years ago
MinRK
c72cd05cf3
fix docstring in events.js
...
example shows registering a handler, not triggering an event.
12 years ago
MinRK
4097da724b
preserve backward-compatible $([IPython.events])
12 years ago
MinRK
b1291df14a
return global events from require(['base/js/events']).
...
In master, it is impossible to load code on IPython events without setting timeouts.
12 years ago
Min RK
2fe0687097
Merge pull request #6149 from jasongrout/less-upgrade
...
Less upgrade
12 years ago
MinRK
112c4083e9
add comments for style blocks in less
...
separates each component into individual line in compiled css,
reducing some churn in minified css files.
12 years ago
MinRK
98ac874131
cell toolbar and modal dialog fixes
...
- name conflict in modal
- cell.cell_type in cell toolbar
prevented edit metadata from working properly.
12 years ago
Matthias BUSSONNIER
17afb5a71f
remove pagemain.js
...
It does not seem to be usefull anymore.
The different main.js of /tree /notebook /etc do create an instance of
`page` themselves, error pages do have hardcoded styles that show header
and sites.
12 years ago
Jonathan Frederic
ee76005bc2
More review changes
12 years ago
Jonathan Frederic
669db572f2
Fix some dialog keyboard_manager problems
12 years ago
Jonathan Frederic
2d7a4a7879
Some JS test fixes
12 years ago
Jonathan Frederic
188072d190
@carreau review changes
12 years ago
Jonathan Frederic
c7961ae2db
Fix imports of "modules",
...
required after converting everything into dictionary returns.
12 years ago
Jonathan Frederic
0edfdbc703
Return dicts instead of classes,
...
this makes require.js more Python import like.
12 years ago
Jonathan Frederic
0e9e1dd5a3
MWE,
...
Fixed LOTS of bugs
12 years ago
Jonathan Frederic
516958ac07
Almost done!
...
Still need to check IPython uses in the widgets.
12 years ago
Jonathan Frederic
152e23dc76
Progress...
12 years ago
Jonathan Frederic
e6b7cc9ff9
Fixed events
12 years ago
Jonathan Frederic
9bfe5fc06c
Use ipython namepsace for instances.
12 years ago
Jonathan Frederic
629204a2bb
Fixed global IPython namespace.
12 years ago
Jonathan Frederic
b1c8d2662c
Finished making tree.html requirejs friendly
12 years ago
Jonathan Frederic
9f4a03ce79
Started work to make tree requirejs friendly.
12 years ago
Jonathan Frederic
855815d207
Make page.html require.js friendly.
12 years ago
Jonathan Frederic
99b1747c60
Bootstrap Tour related fixes
12 years ago
Jonathan Frederic
ea29056e7c
Review #2
12 years ago
Jonathan Frederic
83eee97e95
Review comments
12 years ago
Jonathan Frederic
3bb8c472cd
Modal fixes for BS3
12 years ago
Jonathan Frederic
8fd3515794
Post discussion with @ellisonbg
12 years ago
Jonathan Frederic
6834cb95bc
Rebase cleanup, comments and nesting
12 years ago
Jonathan Frederic
22c94ab404
Lots of small alignment tweaks to get Bootstrap3 looking better
12 years ago
jon
0cc924e5e3
Fixed IPython dialog
12 years ago
Jonathan Frederic
e30ff19ca8
Move header padding removal to base page style
12 years ago
Jonathan Frederic
204130d292
Re-enabled nav bar height
12 years ago
Jonathan Frederic
365aafdaa2
Automated pass on LESS variables
12 years ago
Jonathan Frederic
d88daf1bb7
Ran jdfreder/bootstrap2to3
12 years ago
Jonathan Frederic
5c47651786
Get notebook running with Bootstrap3
12 years ago
MinRK
33d2176bc5
complete_reply has cursor_start and cursor_end, not matched_text
12 years ago
MinRK
a74c79ceab
update completion_ and objection_info_request
...
both requests take:
- code (up to full cell)
- cursor_pos (cursor offset in unicode characters)
and object_info_replies return a mime-bundle, instead of structured data
12 years ago
MinRK
82964a09c2
log all failed ajax API requests
12 years ago
Min RK
673c644a4f
Merge pull request #5534 from minrk/pre-css
...
cleanup some `pre` css inheritance
12 years ago
MinRK
78ee21e533
master is 3.0.0-dev
12 years ago
MinRK
6d2774f0af
cleanup some `pre` css inheritance
...
We had various overrides of the bootstrap defaults for font-size and line-height every time we made a pre tag,
and then some overrides of our overrides when we wanted something slightly different.
This moves the most basic overrides to apply to all pre tags,
reducing the number of downstream changes we need.
12 years ago
MinRK
17bbc2b360
back to dev
12 years ago
MinRK
d482fb15b6
release 2.0.0
12 years ago
Min RK
e37bf2257d
Merge pull request #5449 from minrk/quickhelp-stretch
...
Stretch keyboard shortcut dialog
12 years ago
Thomas Kluyver
982aab67ba
Merge pull request #5290 from jdfreder/dual_tests
...
Add dual mode JS tests
12 years ago
MinRK
bfb3d8ec30
check that a handler is actually registered in ShortcutManager.handles
...
there are a few shortcuts that do not specify handlers
(just for quick help contents),
and this was preventing the actual events from ever firing.
12 years ago
MinRK
b3b200abcb
add modal_stretch class
...
for stretching a dialog to fill the screen
12 years ago
MinRK
4d955e9641
remove unneeded `width: 100%` firefox workaround
...
this is no longer needed with `display: flex`
12 years ago
MinRK
9552688a71
back to dev
12 years ago
MinRK
2adfb5254c
2.0.0-rc1
12 years ago
Jonathan Frederic
e1daedf95b
Fixed keyboard.js indent break
12 years ago
Jonathan Frederic
607b96b19a
Actually remove the trigger keydown method
12 years ago
Jonathan Frederic
ae2b0800cf
Partial fix of problems b/c keydown move
12 years ago
Jonathan Frederic
1b46a777fb
Removed trigger keydown from keyboard.js,
...
also added a bunch of missing semicolons (jshint)
12 years ago
Min RK
0493027d7e
Merge pull request #5403 from minrk/alt-shortcut-bad
...
remove alt-- shortcut
12 years ago
Brian E. Granger
e51030ea5f
Merge pull request #5368 from jdfreder/specifity
...
Flexbox classes specificity fixes
12 years ago
MinRK
2041dc6563
widen modal dialogs on wide displays
...
needed for quick help layout with multiple meta keys
12 years ago
Min RK
0ae0216b12
Merge pull request #5049 from ivanov/quickhelp-update
...
update quickhelp on adding and removing shortcuts
12 years ago
Brian E. Granger
bfdbdd456c
Merge pull request #5391 from jdfreder/netscape-keyboard
...
Fix Gecko (Netscape) keyboard handling
12 years ago
Paul Ivanov
54d9eb4358
really fix the '-' key shortcuts now
12 years ago
Paul Ivanov
77bf4a72dd
better handling of minus
12 years ago
Jonathan Frederic
a08fbff5d9
Fix Gecko (Netscape) keyboard handling
12 years ago
Paul Ivanov
21ebaf2e32
handle keyboard shortcuts ending with '-'
12 years ago
Paul Ivanov
4cf1717980
use - for shortcut separators
12 years ago
Paul Ivanov
597a5cb741
don't color code in crimson
...
do alliterate, aforementioned color alternative alias is amaranth
12 years ago
Paul Ivanov
b9ef37ac26
semicolon fixes buttress half of my js commits
12 years ago
Min RK
e64c2cb5d8
Merge pull request #5296 from ivanov/more-shortcuts
...
unify keyboard shortcut and codemirror interaction
12 years ago
Jonathan Frederic
77904a044c
Re-added already existing base for less backwards compatability.
12 years ago
Jonathan Frederic
0020b9f896
Fix specifity of flex modifier classes
12 years ago
Paul Ivanov
61b47695e4
renamed 'use_shortcut' method to 'handles'
12 years ago
MinRK
abe2dce926
back to dev
12 years ago
Paul Ivanov
1c23dee141
remove recreation of QuickHelp
12 years ago
Paul Ivanov
8bf4ffa2ca
rebuild.QuickHelp event sets the dirty bit
...
QuickHelp is rebuilt on show if the dirty bit was set.
12 years ago
Paul Ivanov
cdb7967cc2
removing keyboard shortcuts should also update help
12 years ago
Paul Ivanov
4a287569fc
update notebook quickhelp on new shortcuts
12 years ago
Paul Ivanov
2c9ff376a2
added new use_shortcut method to shortcuts
...
this way, you can ask if a particular event will be handled by the
shortcuts system. This takes away the need to special-case many
different possible keys which should be ignored by codemirror by
ignoring them en masse.
12 years ago
MinRK
3face719e8
setup jsversion
12 years ago
Brian E. Granger
f62ce75a62
Lots of CSS tweaks to get nbconvert output looking right.
12 years ago
MinRK
9396619f9d
security.js docstrings
12 years ago
MinRK
e7f3c05d28
remove unused get_attr_names
12 years ago
MinRK
46665483ed
remove struct-returning sanitize
...
only keep str-str sanitization
12 years ago
MinRK
d4780c2cfc
remove security.is_safe
12 years ago
MinRK
d59e44a190
default to allow_css = false
12 years ago
MinRK
4d35660f3c
sanitize CSS
...
rather than removing it entirely
12 years ago
MinRK
c49f04545a
don't use `result.safe` to communicate incomplete information
12 years ago
MinRK
028ce17c62
fix tagName comparison
12 years ago
MinRK
3897b1c39f
don't populate sanitized.safe by default
...
since it's potentially expensive.
walk nodes in is_safe
12 years ago
MinRK
367b4f85c2
wrap caja.sanitizeAttribs to trust data-* attributes
12 years ago
MinRK
eec5d427a4
add cmp_tree, in case caja log can't be trusted
...
(spoiler: it can't)
12 years ago
MinRK
2a0451fdde
use google-caja for sanitization
12 years ago
Brian E. Granger
07cdb1e195
Adding first round of security tests of is_safe.
12 years ago
Brian E. Granger
fa3f998295
Adding security.js with 1st attempt at is_safe.
12 years ago
Brian E. Granger
af7dd15181
Removing old keyboard handling from IPython.utils.
12 years ago
Brian E. Granger
ec6ea72873
Adding utility functions.
12 years ago
Brian E. Granger
ff1492f8c9
Creating new base/js/keyboard.js
12 years ago
Jonathan Frederic
a7fb5e1e55
Merge pull request #5114 from minrk/empty-button
...
use non-breaking space for button with no description
12 years ago
Thomas Kluyver
d6986cf4ec
Merge pull request #4778 from minrk/install-nbextensions
...
add APIs for installing notebook extensions
12 years ago
MinRK
9c452998ea
add utils.escape_html
12 years ago
Jonathan Frederic
af5b5cea7d
Revert "Change stretch to flex-start"
...
This reverts commit 774073116dd4195037c452d48f05b432bba38801.
12 years ago
Jonathan Frederic
ff14cabf7f
Change stretch to flex-start
12 years ago
Jonathan Frederic
aba9f7e9f8
Automatic width adjustment for flex0
12 years ago
Jonathan Frederic
7ae028e01f
Corrected a lot of small misuses of the new flex model.
12 years ago
MinRK
8264362179
document utils.parse_url
12 years ago
MinRK
24e59106c0
add utils.parse_url
...
strip repeated '//' in url_path_join
12 years ago
MinRK
a93040e810
s/get_data/get_body_data/
12 years ago
MinRK
beaa75b416
add utils.get_data
...
for extracting *decoded* items from $('body').data
12 years ago
MinRK
f3f1695b06
add IPython.load_extensions in js
12 years ago
MinRK
95d3d6de8b
fix flex: auto
...
flex: 0 doesn't seem to mean what box-flex meant (auto)
closes #5069
12 years ago
Jonathan Frederic
33586b7ac8
Convert tabs to spaces
12 years ago
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
12 years ago
Brian E. Granger
bc7b51d1b0
Merge pull request #4374 from jdfreder/widget-msg
...
IPEP 23: Backbone.js Widgets
12 years ago
Jonathan Frederic
13694d04c3
Removed blame comment
12 years ago
Brian E. Granger
5137961bf2
Protect against navigator undefined in platform.
12 years ago
Brian E. Granger
0af185787a
Added platform dep. logic.
12 years ago
Jonathan Frederic
3390f64dc2
Added flex properties to container.
...
Also replaced underscores in flex align properties with dashes.
12 years ago