mirror of
https://github.com/go-gitea/gitea
synced 2024-12-20 18:34:11 +01:00
9d3e69e867
- unvendor dropzone and upgrade it from 4.2.0 to 5.7.0 - make `csrf` available on window.config
9 lines
320 B
JavaScript
9 lines
320 B
JavaScript
export default async function createDropzone(el, opts) {
|
|
const [{ default: Dropzone }] = await Promise.all([
|
|
import(/* webpackChunkName: "dropzone" */'dropzone'),
|
|
import(/* webpackChunkName: "dropzone" */'dropzone/dist/dropzone.css'),
|
|
]);
|
|
|
|
Dropzone.autoDiscover = false;
|
|
return new Dropzone(el, opts);
|
|
}
|