add cropper for change avatar/world image dialog

This commit is contained in:
pa
2026-02-28 17:01:19 +09:00
parent 93c34209b4
commit cc696701b5
6 changed files with 327 additions and 103 deletions

View File

@@ -22,7 +22,8 @@ function getInputElement(selector) {
export function handleImageUploadInput(event, options = {}) {
const {
inputSelector,
maxSize = 100000000,
// 20MB
maxSize = 20000000,
acceptPattern = /image.*/,
tooLargeMessage,
invalidTypeMessage,