Refactor paste.js to improve readability and maintainability; introduce ELEMENTS utility for DOM manipulation, enhance modal functionality, and streamline password handling for private pastes. Update user.js to correct API endpoint for user information retrieval. Add modal.js for reusable modal components and styles. Update paste.html to include modal.js and adjust edit button visibility. Minor fixes in main.js for consistent formatting.

This commit is contained in:
whoswhip
2025-07-11 17:51:04 -04:00
parent f64b617089
commit 57d9a4e3b2
10 changed files with 1005 additions and 254 deletions
+2 -1
View File
@@ -23,7 +23,7 @@
<div class="paste-header">
<div style="display: flex;">
<h1 id="paste-title">Title</h1>
<span class=" edit-icon" style="width: 32px; height: 32px;" id="edit-button" title="Edit Paste"></span>
<span class="edit-icon" id="edit-button" style="width: 32px; height: 32px; display: none;" id="edit-button" title="Edit Paste"></span>
</div>
<div class="paste-information-card">
<div id="info-throbber" class="throbber"></div>
@@ -46,6 +46,7 @@
</div>
</div>
</body>
<script src="js/modal.js"></script>
<script src="js/paste.js"></script>
<script src="js/main.js"></script>
</html>