Grant Nestor
135358e943
Fix terminal header flex box layout
2017-07-26 13:54:21 -07:00
Roy Hyunjin Han
9701f6b1cd
Revert 533aea11fd
...
The extra padding causes the first line of each markdown rendered code block to be indented, but does not indent the rest of the code block, resulting in a jagged left edge. Removing this bit of CSS restores a flat left edge.
You can verify this by trying to render the following:
abc
def
ghi
2017-07-26 15:41:32 -04:00
Grant Nestor
a9160356df
Merge pull request #2688 from jasongrout/jitter
...
Fix jitter caused by rounding height.
2017-07-26 08:53:23 -07:00
Kyle Kelley
937d06f0ca
Merge pull request #2689 from takluyver/application-mime-not-editable
...
Don't assume that application/ mime types are editable
2017-07-26 07:53:19 -07:00
Thomas Kluyver
5c66955fab
Smarter check for editable mimetypes
2017-07-26 14:38:44 +01:00
Thomas Kluyver
75f1b9ae26
Don't assume that application/ mime types are editable
...
The application media type includes many common binary files like
application/zip and application/pdf.
2017-07-26 13:55:19 +01:00
Jason Grout
b04db891f2
Fix jitter caused by rounding height.
2017-07-26 08:04:48 -04:00
Thomas Kluyver
5faa2ab9b5
Protect against no element with id=favicon
2017-07-26 12:59:25 +01:00
Thomas Kluyver
0bd5fe8759
Only show busy favicon when execution lasts > 1s
...
This avoids making lots of HTTP requests as we rapidly change the favicon
between the 'notebook' (idle) and 'busy' icons. Now it should be no more
than one per second in the most pathological case.
Closes gh-2673
2017-07-26 12:52:40 +01:00
Matthias Bussonnier
38b789a7d8
Merge pull request #2684 from gnestor/master
...
Reset the target cell's undo history after merge_cells
2017-07-25 13:41:14 -07:00
Grant Nestor
4532b14808
Reset the target cell's undo history after merge_cells
2017-07-25 12:12:17 -07:00
Grant Nestor
572cc37273
Fix hidden prompt overlay button
2017-07-24 16:37:53 -07:00
Grant Nestor
67b0723929
Merge pull request #2675 from takluyver/no-animated-favicon
...
Don't use animated favicon when kernel busy
2017-07-24 14:51:11 -07:00
M Pacer
e2405cebe9
clear equation labels on typesetting so that labels don't block renders
2017-07-20 15:29:43 -07:00
Kyle Kelley
c64104257a
Merge pull request #2674 from minrk/csp-fixes
...
ensure "default-src 'none'" CSP is added to APIHandlers
2017-07-20 07:18:35 -07:00
Thomas Kluyver
5c6a1c8f78
Don't use animated favicon when kernel busy
...
Addresses part of gh-2673
Each set of the favicon causes a new HTTP request.
If we want an animated favicon, I think it's possible to use an animated
GIF. But I find animated favicons annoying, so I'd rather just get rid
of it entirely. Just because we can doesn't mean we should. ;-)
2017-07-20 14:56:06 +01:00
Min RK
c4a5dc04bf
Merge pull request #2666 from takluyver/i2094
...
Expose URL with auth token in notebook UI
2017-07-20 15:42:48 +02:00
Min RK
2a08debd18
Merge pull request #2672 from takluyver/logout-not-logged-in
...
Render the logout page without auth tokens
2017-07-20 15:42:21 +02:00
Min RK
0308dc78d9
ensure "default-src 'none'" CSP is added to APIHandlers
...
even if custom Content-Security-Policy header is applied,
which was previously setting the same value for both APIHandlers and page handlers
2017-07-20 15:35:00 +02:00
Thomas Kluyver
22e2a7720f
Render the logout page without auth tokens
...
The user is technically still logged in when the logout page is
produced, but this is not obvious to the user, and they may leave the
page open.
This ensures that it is rendered without information such as auth tokens
which should only be available to a logged-in user.
2017-07-20 13:32:39 +01:00
Thomas Kluyver
227704cda5
Merge pull request #2671 from minrk/dont-modify-headers
...
avoid modifying settings['headers'] in add_default_headers
2017-07-20 11:03:32 +01:00
Thomas Kluyver
66049ea15e
Merge pull request #2670 from minrk/xsrf-csp-report-again
...
typo in skip_check_origin
2017-07-20 10:58:24 +01:00
Thomas Kluyver
208e7c74a6
Only provide token link if token is set and user logged in
2017-07-20 10:40:42 +01:00
Min RK
f512880fcb
allow overriding csp report uri via tornado settings
2017-07-20 10:51:38 +02:00
Min RK
fb7ee6f348
avoid modifying settings['headers'] in add_default_headers
...
Use a copy to avoid writing content security policy into settings['headers'],
which can be a problem because APIHandlers have a stricter CSP than page handlers.
If an API request is made before the first page request, pages will fail to load due to CSP violations.
2017-07-20 10:43:42 +02:00
Min RK
4e37ebfb47
typo in skip_check_origin
...
method was ignored because it had the wrong name
2017-07-20 10:00:33 +02:00
Thomas Kluyver
ea2bfeda8f
Expose URL with auth token in notebook UI
...
This provides a crude way to copy the link from one browser (right click
the Jupyter logo) to get authenticated in another browser.
Closes gh-2094
2017-07-19 16:41:45 +01:00
Grant Nestor
5192d72c63
Merge pull request #2656 from agermanidis/master
...
Use StaticFileHandler when files are local
2017-07-19 08:34:59 -07:00
Anastasis Germanidis
95a53b775e
Fixed bug in get_content_type
2017-07-19 10:10:19 -04:00
Anastasis Germanidis
180bbe88f6
Cleaning up AuthenticatedFileHandler.get
2017-07-19 09:44:58 -04:00
Anastasis Germanidis
539c2f7521
Added charset handling on AuthenticatedFileHandler
2017-07-19 09:42:26 -04:00
Thomas Kluyver
bcd0a1c638
Merge pull request #2665 from adl1995/patch-2
...
Remove space before ? in prompt message
2017-07-19 12:34:08 +01:00
Adeel Ahmad
3195dc6d2c
Remove leading whitespace from prompt message
2017-07-19 16:07:24 +05:00
Thomas Kluyver
0f011768f6
Merge pull request #2663 from minrk/xsrf-csp-report
...
Don’t check XSRF token on CSP reports
2017-07-19 11:59:37 +01:00
Min RK
d738a71bbc
Merge pull request #2662 from iSmartie/patch-1
...
Type error in notebookapp.py
2017-07-19 11:30:21 +02:00
Min RK
70865579a5
Don’t check XSRF token on CSP reports
...
browsers send these requests, we can’t add xsrf tokens to them.
2017-07-19 11:23:18 +02:00
Jason GAO
df177b0d1b
Type error in notebookapp.py
...
"though ssh" should be "through ssh"
2017-07-19 16:01:47 +08:00
Anastasis Germanidis
a82a510199
Use static file handler when files are local
2017-07-16 20:18:39 -04:00
John Emmons
f81fb46ff6
Preliminary i18n implementation as outlined in JEP 16 ( #2140 )
...
setting up internationalization for log and UI messages
See i18n README for details
Squashed to resolve CRLF, tab-indent issues.
2017-07-11 16:34:23 +02:00
Min RK
8fa09260b1
Merge pull request #2472 from ericjperry/fix/IE-terminal
...
Open terminal tab using a hash rather than undefined for IE compatibility.
2017-07-11 13:36:55 +02:00
Min RK
f707dde238
Merge pull request #2625 from takluyver/i2611
...
More specific check for missing body data
2017-07-11 10:51:32 +02:00
Min RK
80ca9e9926
Merge pull request #2628 from takluyver/rm-draft76
...
Remove old websocket draft76 protocol.
2017-07-11 10:50:43 +02:00
Min RK
cbdf9d0f77
Merge pull request #2540 from takluyver/i2539
...
Handle invalid file timestamps
2017-07-11 10:50:01 +02:00
Min RK
12c952de91
Merge pull request #2641 from takluyver/sort-notebook-list
...
Improvements to sorting file list
2017-07-11 10:42:22 +02:00
Thomas Kluyver
d12a42e31e
Merge pull request #2643 from cancan101/patch-1
...
Upgrade xterm.js to newly released 2.8.1
2017-07-11 09:21:23 +02:00
Alex Rothberg
5fd70d5a58
Upgrade xterm.js to newly released 2.8.1
2017-07-08 15:05:40 -04:00
Thomas Kluyver
7dc6b26c9f
When switching sort field, use ascending sort
2017-07-07 11:20:58 +01:00
Thomas Kluyver
a7e10e9303
Improvements to sorting notebook list
...
Closes gh-1218
Closes gh-1942
2017-07-07 11:10:51 +01:00
Thomas Kluyver
971e425c72
Merge pull request #2629 from takluyver/fix-modified-column
...
Fix last-modified column of notebook list
2017-07-06 18:46:00 +01:00
Thomas Kluyver
9873c93d23
Merge pull request #2638 from cancan101/patch-1
...
Upgrade xterm.js to newly released 2.8.0
2017-07-06 18:42:36 +01:00