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
This commit is contained in:
silverwind 2021-11-11 02:52:16 +01:00 committed by GitHub
parent 0e189eecaa
commit 433e81aecf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 1385 additions and 3181 deletions

View file

@ -45,7 +45,7 @@ function getLanguage(filename) {
function updateEditor(monaco, editor, filename, lineWrapExts) {
editor.updateOptions(getFileBasedOptions(filename, lineWrapExts));
const model = editor.getModel();
const language = model.getModeId();
const language = model.getLanguageId();
const newLanguage = getLanguage(filename);
if (language !== newLanguage) monaco.editor.setModelLanguage(model, newLanguage);
}