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:
parent
0e189eecaa
commit
433e81aecf
10 changed files with 1385 additions and 3181 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue