mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	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:
		| @@ -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); | ||||
| } | ||||
|   | ||||
| @@ -3,6 +3,5 @@ export default async function createDropzone(el, opts) { | ||||
|     import(/* webpackChunkName: "dropzone" */'dropzone'), | ||||
|     import(/* webpackChunkName: "dropzone" */'dropzone/dist/dropzone.css'), | ||||
|   ]); | ||||
|   Dropzone.autoDiscover = false; | ||||
|   return new Dropzone(el, opts); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user