Fixed a bunch of bugs
New admin panel style
Fixed formatting
Added so reports now into admin panel too
- Want to thank Logan Magnan for the help in debugging and suggestions.
Added
- Total views aggregation using MongoDB aggregation pipeline
- Total storage calculation using $strLenBytes operator
- Proper error handling and logging for stats calculation
- formatBytes helper function for human-readable storage display
Modified
- Combined duplicate /api/admin/stats routes into a single endpoint
- Updated stats calculation to handle null/missing values
- Added proper data validation and default values
- Improved response structure to include all stats (totalPastes, totalViews, storageUsed)
Fixed
- Server initialization order to properly handle routes
- Missing storage calculation that was causing undefined errors
- MongoDB aggregation to properly count views across all pastes
- Moved route initialization after Express app creation
- Version 1.0.1 (November 30, 2024)
- [NEW] Added IP address anonymization feature when sharing pastes
- [NEW] Automatic detection and hiding of IPv4 and IPv6 addresses with toggle option
- [NEW] Added Minecraft log format detection in language parser
- [IMPROVED] Better scroll handling for long code pastes
- [IMPROVED] Enhanced paste viewer container sizing
- [IMPROVED] Added "unsaved changes" warning when leaving page
- [FIXED] Fixed scrolling issues in code viewer
- [FIXED] Resolved leave page prompt appearing unnecessarily
- [FIXED] Fixed styling inconsistencies in dark mode
