discourse/public/javascripts
Martin Brennan b626373b31
FEATURE: First pass of using uppy in the composer (#13935)
Adds uppy upload functionality behind a
enable_experimental_composer_uploader site setting (default false,
and hidden).

When enabled this site setting will make the composer-editor-uppy
component be used within composer.hbs, which in turn points to
a ComposerUploadUppy mixin which overrides the relevant
functions from ComposerUpload. This uppy uploader has parity
with all the features of jQuery file uploader in the original
composer-editor, including:

progress tracking
error handling
number of files validation
pasting files
dragging and dropping files
updating upload placeholders
upload markdown resolvers
processing actions (the only one we have so far is the media optimization
worker by falco, this works)
cancelling uploads
For now all uploads still go via the /uploads.json endpoint, direct
S3 support will be added later.

Also included in this PR are some changes to the media optimization
service, to support uppy's different file data structures, and also
to make the promise tracking and resolving more robust. Currently
it uses the file name to track promises, we can switch to something
more unique later if needed.

Does not include custom upload handlers, that will come
in a later PR, it is a tricky problem to handle.

Also, this new functionality will not be used in encrypted PMs because
encrypted PM uploads rely on custom upload handlers.
2021-08-13 09:14:34 +10:00
..
@json-editor/json-editor/2.5.2 DEV: Add experimental json_scheme site setting type (#12226) 2021-03-01 09:15:17 -05:00
ace DEV: Upgrade ACE Editor to 1.4.12, remove extra ACE files (#10431) 2020-08-13 21:53:27 -04:00
ace.js/1.4.12 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
chart.js DEV: Update chart.js from 2.9.3 to 2.9.4 (#13026) 2021-05-12 17:28:16 +02:00
chartjs-plugin-datalabels/0.7.0 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
diffhtml/1.0.0-beta.18 FEATURE: Use diffhtml to update composer preview (#11237) 2021-02-18 16:07:26 +02:00
magnific-popup/1.1.0 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
pikaday/1.8.0 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
spectrum-colorpicker/1.8.0 DEV - write JS files to versioned subdirectories (#10707) 2020-09-21 15:06:56 -04:00
squoosh FEATURE: Optimize images before upload (#13432) 2021-06-23 12:31:12 -03:00
workbox DEV: enable CORS to all CDN get requests from workbox. (#11896) 2021-02-02 11:38:29 +05:30
Chart.min.js DEV: Update chart.js from 2.9.3 to 2.9.4 (#13026) 2021-05-12 17:28:16 +02:00
chartjs-plugin-datalabels.min.js FEATURE: Poll breakdown 2.0 (#10345) 2020-08-06 17:57:06 +02:00
count.js FIX: More safety when displaying link counts on blogs 2014-05-20 15:20:33 -04:00
diffhtml.min.js FEATURE: Use diffhtml to update composer preview (#11237) 2021-02-18 16:07:26 +02:00
embed-topics.js FIX: The attribute is `discourse-url` not `data-discourse-url` 2020-10-28 17:12:29 -04:00
embed.js FEATURE: Use "no-referrer-when-downgrade" as our embed policy 2020-10-16 13:23:06 -04:00
jquery.magnific-popup.min.js Use image gallery feature of magnific 2017-04-25 11:23:15 +09:00
media-optimization-worker.js FEATURE: First pass of using uppy in the composer (#13935) 2021-08-13 09:14:34 +10:00
pikaday.js DEV: pikaday 1.8.0 (#7536) 2019-05-13 15:09:04 +02:00
spectrum.css Use Yarn to manage dependencies, cleanup unused bootstrap libs (#6436) 2018-10-03 10:15:43 -04:00
spectrum.js Update moment and spectrum 2020-01-06 12:56:47 -05:00