Split code into classes to make the codebase look cleaner

Added a new favicon/icon
Add more checks before uploading a paste, changed alert to use the showNotification function
Added password modal for private pastes instead of using alert
Fix a paste page navigation in dashboard
Improve auth css
This commit is contained in:
whoswhip
2025-05-23 18:54:29 -04:00
parent 2126c3a078
commit 73743399f1
17 changed files with 1027 additions and 491 deletions
+2 -2
View File
@@ -55,13 +55,13 @@ document.addEventListener("DOMContentLoaded", async function () {
await loadUserPastes(userData, 0);
currentPage = 0;
document.getElementById("user-prev-page").onclick = async function () {
document.getElementById("previous-button").onclick = async function () {
if (currentPage > 0) {
currentPage--;
await loadUserPastes(userData, currentPage);
}
};
document.getElementById("user-next-page").onclick = async function () {
document.getElementById("next-button").onclick = async function () {
if (!lastPage) {
currentPage++;
await loadUserPastes(userData, currentPage);