Commit Graph
8 Commits
Author SHA1 Message Date
whoswhip 7281166aca refactor: simplify paste ID update logic 2025-10-07 21:28:25 -04:00
whoswhip 9bc5d0318d refactor: update CreatePaste method parameters 2025-10-07 21:27:47 -04:00
whoswhip 57d9a4e3b2 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. 2025-07-11 17:51:04 -04:00
whoswhip 57f1709032 Enhance paste management and user interface
- Updated `AuthController.cs` to include user `Type` in responses.
- Added `DeletePaste` and `ChangePasteID` endpoints in `PasteController.cs` with authentication and error handling.
- Removed `Logging.cs`, indicating a refactor of the logging mechanism.
- Implemented methods for deleting and updating paste IDs in `DatabaseService.cs`.
- Modified `SharpbinV2.Server.csproj` to exclude `logs` and `pastes` directories from compilation.
- Enhanced `paste.css` with styles for an edit icon.
- Introduced `userTypes` object in `dash.js` for better role management.
- Added delete button functionality in `paste.js` for authorized users.
- Updated `paste.html` to include edit and delete buttons for improved user experience.
2025-07-10 16:07:35 -04:00
whoswhip bea106ac72 Finish converting all apis to controllers, static endpoints next. 2025-07-09 14:50:59 -04:00
whoswhip ed98238c40 Improve paste handling and pagination logic
- Updated `PasteController.cs` to enhance visibility parameter handling and added methods for retrieving pastes with pagination and error handling.
- Added `UID` property to the `Paste` class for better identification.
- Refactored `Program.cs` to remove unused namespaces and improve response header handling.
- Enhanced `DatabaseService.cs` with new methods for retrieving pastes and user pastes, including better error handling.
- Adjusted pagination logic in `archive.js` and `dash.js` to start from page 1, improving user interface navigation.
2025-07-08 15:32:17 -04:00
whoswhip 181c401af7 Convert more apis to controllers
- pastes/id/info
- pastes/id
- pastes/id/views
2025-07-07 18:18:06 -04:00
whoswhip 3eb7374a07 Enhance user authentication and paste management
- Updated `AuthController.cs` to include token in `CreateSession` and improved validation for username and email.
- Refactored paste creation logic from `Program.cs` to a new `PasteController.cs`.
- Added email validation method in `HelperService.cs`.
- Introduced `CompressionService.cs` for handling string compression and decompression.
- Improved user experience with autocomplete and spellcheck in HTML forms.
- Enhanced date display in `archive.js` and refactored date formatting in `dash.js`.
- Updated API endpoints in `login.js` and `register.js` to reflect changes.
2025-07-06 22:55:29 -04:00