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 { | ||||
|   | ||||
| @@ -1 +0,0 @@ | ||||
| <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-1 -1 34 34"><path d="M30.9 3.4 24.3.3a2 2 0 0 0-2.3.4L9.4 12.2 3.9 8c-.5-.4-1.2-.4-1.7 0L.4 9.8c-.5.5-.5 1.4 0 2L5.2 16 .4 20.3c-.5.6-.5 1.5 0 2L2.2 24c.5.5 1.2.5 1.7 0l5.5-4L22 31.2a2 2 0 0 0 2.3.4l6.6-3.2a2 2 0 0 0 1.1-1.8V5.2a2 2 0 0 0-1.1-1.8zM24 23.3 14.4 16 24 8.7z"/></svg> | ||||
| Before Width: | Height: | Size: 353 B | 
		Reference in New Issue
	
	Block a user