mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Add cropping support when modifying the user/org/repo avatar (#33498)
Fixed #33321 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -3,6 +3,7 @@ import {minimatch} from 'minimatch'; | ||||
| import {createMonaco} from './codeeditor.ts'; | ||||
| import {onInputDebounce, queryElems, toggleElem} from '../utils/dom.ts'; | ||||
| import {POST} from '../modules/fetch.ts'; | ||||
| import {initAvatarUploaderWithCropper} from './comp/Cropper.ts'; | ||||
| import {initRepoSettingsBranchesDrag} from './repo-settings-branches.ts'; | ||||
|  | ||||
| const {appSubUrl, csrfToken} = window.config; | ||||
| @@ -156,4 +157,6 @@ export function initRepoSettings() { | ||||
|   initRepoSettingsSearchTeamBox(); | ||||
|   initRepoSettingsGitHook(); | ||||
|   initRepoSettingsBranchesDrag(); | ||||
|  | ||||
|   queryElems(document, '.avatar-file-with-cropper', initAvatarUploaderWithCropper); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kerwin Bryant
					Kerwin Bryant