big updat:
All checks were successful
Android Build / publish (push) Successful in 57s
Linux Build / publish (push) Successful in 53s

- update dependencies
- add webp support and webp conversion for profile images
This commit is contained in:
olcxja 2026-07-02 22:40:46 +02:00
commit 95aaaa69ea
244 changed files with 121382 additions and 86 deletions

View file

@ -268,10 +268,9 @@
</main>
</body>
</html>
<script src="../main.js"></script>
<script>
const container = document.getElementById('auth-container');
const authContainer = document.getElementById('auth-container');
const toRegister = document.getElementById('to-register');
@ -307,15 +306,15 @@
toRegister.addEventListener('click', () => {
container.className = 'auth-container show-register';
authContainer.className = 'auth-container show-register';
});
toLogin.addEventListener('click', () => {
container.className = 'auth-container';
authContainer.className = 'auth-container';
});
backToReg.addEventListener('click', () => {
container.className = 'auth-container show-register';
authContainer.className = 'auth-container show-register';
});
@ -349,7 +348,7 @@
} catch (error) {
console.log(error);
showBlahNotification("error:something.wrong.mayb.pass");
container.className = 'auth-container';
authContainer.className = 'auth-container';
}
});
@ -363,17 +362,17 @@
if (!registerUsername.value || registerUsername.value.trim() === '') {
showBlahNotification("error:username.cant.empty");
container.className = 'auth-container show-register';
authContainer.className = 'auth-container show-register';
return;
}
if (!registerPassword.value || registerPassword.value.trim() === '') {
showBlahNotification("error:password.cant.empty");
container.className = 'auth-container show-register';
authContainer.className = 'auth-container show-register';
return;
}
if (registerPassword.value != registerPasswordConfirm.value) {
showBlahNotification("error:passwords.not.match");
container.className = 'auth-container show-register';
authContainer.className = 'auth-container show-register';
return;
}
@ -402,20 +401,20 @@
}
const imageObjectURL = URL.createObjectURL(imageBlob);
document.getElementById('captcha-image').src = imageObjectURL;
container.className = 'auth-container show-captcha';
authContainer.className = 'auth-container show-captcha';
} catch (error) {
console.log(error);
if (res.length > 64 || res.length <= 1) {
throw new Error();
}
showBlahNotification(res);
container.className = 'auth-container show-register';
authContainer.className = 'auth-container show-register';
}
} catch (error) {
console.log(error);
showBlahNotification("error:something.wrong");
container.className = 'auth-container show-register';
authContainer.className = 'auth-container show-register';
}
});
@ -451,12 +450,12 @@
} else {
showBlahNotification(res);
container.className = 'auth-container show-register';
authContainer.className = 'auth-container show-register';
}
}
} catch (error) {
showBlahNotification("error:something.wrong");
container.className = 'auth-container show-register';
authContainer.className = 'auth-container show-register';
}
});
@ -507,4 +506,5 @@
}
</script>
<script src="../main.js"></script>
<script src="../userscript.js"></script>