mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	Update JS and PY dependencies (#32388)
- Update all JS dependencies excluding stylelint (because of https://github.com/AndyOGo/stylelint-declaration-strict-value/issues/379). - Update all PY dependencies. - Replace `eslint-plugin-deprecation` with `@typescript-eslint/no-deprecated` rule. - Enabled `unicorn/prefer-math-min-max` and autofixed issues. - Tested all dependencies. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -167,7 +167,7 @@ export function autosize(textarea: HTMLTextAreaElement, {viewportMarginBottom = | ||||
|       const isBorderBox = computedStyle.boxSizing === 'border-box'; | ||||
|       const borderAddOn = isBorderBox ? topBorderWidth + bottomBorderWidth : 0; | ||||
|  | ||||
|       const adjustedViewportMarginBottom = bottom < viewportMarginBottom ? bottom : viewportMarginBottom; | ||||
|       const adjustedViewportMarginBottom = Math.min(bottom, viewportMarginBottom); | ||||
|       const curHeight = parseFloat(computedStyle.height); | ||||
|       const maxHeight = curHeight + bottom - adjustedViewportMarginBottom; | ||||
|  | ||||
| @@ -281,7 +281,7 @@ export function replaceTextareaSelection(textarea: HTMLTextAreaElement, text: st | ||||
|  | ||||
|   textarea.contentEditable = 'true'; | ||||
|   try { | ||||
|     success = document.execCommand('insertText', false, text); // eslint-disable-line deprecation/deprecation | ||||
|     success = document.execCommand('insertText', false, text); // eslint-disable-line @typescript-eslint/no-deprecated | ||||
|   } catch { | ||||
|     success = false; | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user