This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/app
Martin Brennan db4c52ca26
DEV: Add single file progress and cancel for uppy in composer (#15053)
This commit adds handlers for the composer uppy mixin to allow
for cancelling individual file uploads, not just all of them
at once. This is also combined with better tracking of in progress
uploads along with their progress percentage, for UI that needs
to be able to display the progress for individual files and
also cancel individual files.

To use this, a cancel button in the UI should call a function like this:

```javascript
cancelSingleUpload(fileId) {
  this.appEvents.trigger(`${this.eventPrefix}:cancel-upload`, {
    fileId,
  });
},
```

Additionally, the `inProgressUploads` can be shown in the UI. It is an array of objects with the file name, ID, and the progress percentage. We can add more data to this if needed down the line.
2021-11-23 14:00:23 +10:00
..
adapters DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
components FEATURE: Local chunked uppy backup uploads with a new uploader plugin (#14894) 2021-11-23 08:45:42 +10:00
controllers Refine dismiss notification confirmation (#15017) 2021-11-22 09:11:24 +08:00
helpers DEV: Remove jQuery global usage where possible (#14905) 2021-11-12 19:23:20 +01:00
initializers DEV: Remove JQuery from discourse/lib/text-direction (#15014) 2021-11-19 01:09:36 +00:00
lib DEV: Add if a user is using an Apple device in widget capabilities (#15021) 2021-11-23 11:21:31 +08:00
mixins DEV: Add single file progress and cancel for uppy in composer (#15053) 2021-11-23 14:00:23 +10:00
models DEV: Make store an actual service (#14996) 2021-11-18 16:51:20 +01:00
pre-initializers DEV: Add if a user is using an Apple device in widget capabilities (#15021) 2021-11-23 11:21:31 +08:00
raw-views DEV: Use method definition syntax consistently (#14915) 2021-11-13 14:01:55 +01:00
routes FIX: Don't hit permalink-check if not authorized (#15039) 2021-11-22 19:44:00 +01:00
services DEV: Refactor logs-notice/global-notice (#15000) 2021-11-18 21:49:58 +01:00
styles DEV: Migrate to Ember CLI (#11932) 2021-02-03 14:22:20 -05:00
templates DEV: add plugin outlet before topic list views (#15054) 2021-11-22 22:52:46 -05:00
widgets Refine dismiss notification confirmation (#15017) 2021-11-22 09:11:24 +08:00
app.js DEV: uses forked Mousetrap to avoid leaking listeners (#14198) 2021-09-08 14:48:13 +02:00
index.html FIX: Ember CLI was always loading the admin payload in dev mode 2021-10-05 08:34:10 -04:00
mapping-router.js DEV: prevents route nodes to leak on each test run (#14457) 2021-09-28 17:08:05 +02:00