zulip/zerver/lib/bugdown
Aditya Bansal 98a4e87e1d thumbor: Complete implementation of thumbnailing.
Various pieces of our thumbor-based thumbnailing system were already
merged; this adds the remaining pieces required for it to work:

* a THUMBOR_URL Django setting that controls whether thumbor is
  enabled on the Zulip server (and if so, where thumbor is hosted).

* Replaces the overly complicated prototype cryptography logic

* Adds a /thumbnail endpoint (supported both on web and mobile) for
  accessing thumbnails in messages, designed to support hosting both
  external URLs as well as uploaded files (and applying Zulip's
  security model for access to thumbnails of uploaded files).

* Modifies bugdown to, when THUMBOR_URL is set, render images with the
  `src` attribute pointing /thumbnail (to provide a small thumbnail
  for the image), along with adding a "data-original" attribute that
  can be used to access the "original/full" size version of the image.

There are a few things that don't work quite yet:
* The S3 backend support is incomplete and doesn't work yet.
* The error pages for unauthorized access are ugly.
* We might want to rename data-original and /thumbnail?size=original
  to use some other name, like "full", that better reflects the fact
  that we're potentially not serving the original image URL.
2018-07-15 00:39:41 +05:30
..
__init__.py thumbor: Complete implementation of thumbnailing. 2018-07-15 00:39:41 +05:30
api_arguments_table_generator.py api docs: Clean of high levels of code nesting. 2018-07-13 17:39:20 +05:30
api_code_examples.py api docs: Remove unnecessary imports. 2018-06-23 12:42:11 +02:00
arguments.py bugdown: Move global variables to arguments.py. 2018-07-09 15:45:45 +05:30
fenced_code.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
help_settings_links.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
nested_code_blocks.py markdown: Render nested multi-line code blocks correctly. 2018-07-12 12:22:04 +05:30
testing_mocks.py zerver/lib: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
tlds-alpha-by-domain.txt [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00