mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	Update JS deps, misc tweaks (#35643)
- Update all JS dependencies - Enable eslint `no-useless-assignment` and fix 2 discovered issues - Replace `gitea-vscode` svg with new `octicon-vscode` - Remove now-unused `@ts-expect-error` comments - Change Monaco wrapping behaviour to match the wrapping in code view: no wrapping indent and break on any character.
This commit is contained in:
		| @@ -38,6 +38,9 @@ const baseOptions: MonacoOpts = { | ||||
|   scrollbar: {horizontalScrollbarSize: 6, verticalScrollbarSize: 6}, | ||||
|   scrollBeyondLastLine: false, | ||||
|   automaticLayout: true, | ||||
|   wrappingIndent: 'none', | ||||
|   wordWrapBreakAfterCharacters: '', | ||||
|   wordWrapBreakBeforeCharacters: '', | ||||
| }; | ||||
|  | ||||
| function getEditorconfig(input: HTMLInputElement): EditorConfig | null { | ||||
|   | ||||
| @@ -28,7 +28,6 @@ async function createDropzone(el: HTMLElement, opts: DropzoneOptions) { | ||||
| export function generateMarkdownLinkForAttachment(file: Partial<CustomDropzoneFile>, {width, dppx}: {width?: number, dppx?: number} = {}) { | ||||
|   let fileMarkdown = `[${file.name}](/attachments/${file.uuid})`; | ||||
|   if (isImageFile(file)) { | ||||
|     fileMarkdown = `!${fileMarkdown}`; | ||||
|     if (width > 0 && dppx > 1) { | ||||
|       // Scale down images from HiDPI monitors. This uses the <img> tag because it's the only | ||||
|       // method to change image size in Markdown that is supported by all implementations. | ||||
|   | ||||
| @@ -53,7 +53,7 @@ function checkAuth() { | ||||
| } | ||||
|  | ||||
| function checkItems(tokenAuth: boolean) { | ||||
|   let enableItems = false; | ||||
|   let enableItems: boolean; | ||||
|   if (tokenAuth) { | ||||
|     enableItems = token?.value !== ''; | ||||
|   } else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user