mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 15:16:04 +08:00
35f6441938
This PR adds uppy to the project with a custom JS build and the shims needed to import it into our JS code. We need a custom build of Uppy because we do not use webpack for our JS modules/build. The only way to get what you want from Uppy is to use the webpack modules or to include the entire Uppy project including all plugins in a single JS file. This way we can just use the plugins we actually want. Future PRs will actually use Uppy!
55 lines
1.6 KiB
JavaScript
55 lines
1.6 KiB
JavaScript
// Allow us to import Ember
|
|
define("ember", ["exports"], function (__exports__) {
|
|
// eslint-disable-next-line no-console
|
|
console.warn(
|
|
[
|
|
"Deprecation notice:",
|
|
"Use specific `@ember/*` imports instead of `ember`",
|
|
"(deprecated since Discourse 2.4.0)",
|
|
"(removal in Discourse 2.5.0)",
|
|
].join(" ")
|
|
);
|
|
|
|
__exports__.default = Ember;
|
|
});
|
|
|
|
define("message-bus-client", ["exports"], function (__exports__) {
|
|
__exports__.default = window.MessageBus;
|
|
});
|
|
|
|
define("mousetrap-global-bind", ["exports"], function (__exports__) {
|
|
// In the Rails app it's applied from the vendored file
|
|
__exports__.default = {};
|
|
});
|
|
|
|
define("ember-buffered-proxy/proxy", ["exports"], function (__exports__) {
|
|
__exports__.default = window.BufferedProxy;
|
|
});
|
|
|
|
define("bootbox", ["exports"], function (__exports__) {
|
|
__exports__.default = window.bootbox;
|
|
});
|
|
|
|
define("xss", ["exports"], function (__exports__) {
|
|
__exports__.default = window.filterXSS;
|
|
});
|
|
|
|
define("mousetrap", ["exports"], function (__exports__) {
|
|
__exports__.default = window.Mousetrap;
|
|
});
|
|
|
|
define("@popperjs/core", ["exports"], function (__exports__) {
|
|
__exports__.default = window.Popper;
|
|
__exports__.createPopper = window.Popper.createPopper;
|
|
__exports__.defaultModifiers = window.Popper.defaultModifiers;
|
|
__exports__.popperGenerator = window.Popper.popperGenerator;
|
|
});
|
|
|
|
define("uppy", ["exports"], function (__exports__) {
|
|
__exports__.default = window.Uppy.Core;
|
|
__exports__.Plugin = window.Uppy.Plugin;
|
|
__exports__.XHRUpload = window.Uppy.XHRUpload;
|
|
__exports__.AwsS3 = window.Uppy.AwsS3;
|
|
__exports__.AwsS3Multipart = window.Uppy.AwsS3Multipart;
|
|
});
|