silverwind
433e81aecf
Update JS dependencies ( #17611 )
...
- Update monaco, adapting to breaking changes
- Update dropzone, adapting to breaking changes
- Update linters, fix new issues, disable opinionated stylelint rules
- Rebuild SVGs and images
- Tested Dropzone and Monaco
Replaces: https://github.com/go-gitea/gitea/pull/17574
3 years ago
wxiaoguang
bb71ceeeb2
Improve async/await usage, and sort init calls in `index.js` ( #17386 )
...
* clean up async/await, and sort init calls in `index.js
* use `const _promise` to indicate that we do not need await an async function
3 years ago
zeripath
7088bcf61b
Fix Dropzone following #15315 ( #15353 )
...
* Fix Dropzone following #15315
#15315 appears to have caused a change in the way Dropzone is imported - and it
now produces a module rather than the constructor.
This PR rather hackily just adds another Dropzone call to the result.
Signed-off-by: Andrew Thornton <art27@cantab.net>
* use destructured export
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: 6543 <6543@obermui.de>
3 years ago
silverwind
e03d627769
Misc JS linting and naming tweaks ( #10652 )
...
- lowercase all js filenames except Vue components
- enable new lint rules, mostly focused on shorter code
- autofix new lint violations
- apply misc transformations indexOf -> includes and onevent-> addEventListener
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
5 years ago
silverwind
9d3e69e867
Move dropzone.js to npm/webpack ( #10645 )
...
- unvendor dropzone and upgrade it from 4.2.0 to 5.7.0
- make `csrf` available on window.config
5 years ago