mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 08:09:33 +08:00
7911124d3d
This PR adds the first use of Uppy in our codebase, hidden behind a enable_experimental_image_uploader site setting. When the setting is enabled only the user card background uploader will use the new uppy-image-uploader component added in this PR. I've introduced an UppyUpload mixin that has feature parity with the existing Upload mixin, and improves it slightly to deal with multiple/single file distinctions and validations better. For now, this just supports the XHRUpload plugin for uppy, which keeps our existing POST to /uploads.json.
69 lines
2.3 KiB
JSON
69 lines
2.3 KiB
JSON
{
|
|
"name": "discourse",
|
|
"version": "1.0.0",
|
|
"main": "index.js",
|
|
"repository": "git@github.com:discourse/discourse.git",
|
|
"author": "Discourse",
|
|
"license": "GPL-2.0-only",
|
|
"dependencies": {
|
|
"@fortawesome/fontawesome-free": "5.11.2",
|
|
"@highlightjs/cdn-assets": "^10.6.0",
|
|
"@json-editor/json-editor": "^2.5.2",
|
|
"@popperjs/core": "v2.0.6",
|
|
"@uppy/aws-s3": "^1.7.12",
|
|
"@uppy/aws-s3-multipart": "^1.8.18",
|
|
"@uppy/core": "^1.19.2",
|
|
"@uppy/drop-target": "^0.2.4",
|
|
"@uppy/xhr-upload": "^1.7.5",
|
|
"ace-builds": "1.4.12",
|
|
"blueimp-file-upload": "10.13.0",
|
|
"bootbox": "3.2.0",
|
|
"bootstrap": "v3.4.1",
|
|
"chart.js": "2.9.4",
|
|
"chartjs-plugin-datalabels": "^0.7.0",
|
|
"diffhtml": "^1.0.0-beta.18",
|
|
"eslint-config-discourse": "^1.1.8",
|
|
"handlebars": "^4.7.7",
|
|
"jquery": "3.5.1",
|
|
"jquery-color": "3.0.0-alpha.1",
|
|
"jquery-tags-input": "1.3.5",
|
|
"jquery.autoellipsis": "https://github.com/pvdspek/jquery.autoellipsis",
|
|
"magnific-popup": "1.1.0",
|
|
"markdown-it": "10.0.0",
|
|
"moment": "2.29.1",
|
|
"moment-timezone": "0.5.31",
|
|
"moment-timezone-names-translations": "https://github.com/discourse/moment-timezone-names-translations",
|
|
"mousetrap": "https://github.com/discourse/mousetrap#firefox-alt-key",
|
|
"pikaday": "1.8.0",
|
|
"resumablejs": "1.1.0",
|
|
"spectrum-colorpicker": "1.8.0",
|
|
"workbox-cacheable-response": "^4.3.1",
|
|
"workbox-core": "^4.3.1",
|
|
"workbox-expiration": "^4.3.1",
|
|
"workbox-routing": "^4.3.1",
|
|
"workbox-strategies": "^4.3.1",
|
|
"workbox-sw": "^4.3.1"
|
|
},
|
|
"devDependencies": {
|
|
"@arkweid/lefthook": "^0.7.2",
|
|
"@mixer/parallel-prettier": "^2.0.1",
|
|
"browserify": "^17.0.0",
|
|
"chrome-launcher": "^0.12.0",
|
|
"chrome-remote-interface": "^0.25",
|
|
"lodash-cli": "https://github.com/lodash-archive/lodash-cli.git",
|
|
"pretender": "^1.6",
|
|
"puppeteer": "1.20",
|
|
"qunit": "2.8.0",
|
|
"route-recognizer": "^0.3.3",
|
|
"sinon": "^9.0.2",
|
|
"squoosh": "discourse/squoosh#dc9649d"
|
|
},
|
|
"resolutions": {
|
|
"lodash": "4.17.21"
|
|
},
|
|
"scripts": {
|
|
"preinstall": "node -e \"if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('NPM is not supported, please use Yarn instead. ')\"",
|
|
"postinstall": "yarn --cwd app/assets/javascripts/discourse"
|
|
}
|
|
}
|