mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-05 18:48:41 +00:00
46615aba5b5f0f8b452f44eea44798d945cb9345
Simplified /archive endpoint to return static HTML without dynamic content or database queries. Refactored CreatePaste method to accept a Paste object and conditionally write compressed or uncompressed content based on size. Added new /api/pastes/get endpoint for fetching paginated pastes in JSON format. Updated archives.html to remove dynamic placeholders, using JavaScript for fetching and displaying pastes, and handling user authentication and pagination. Improved index.html with new font family and font weight for buttons. Updated paste.html to truncate long paste titles for display. Removed unused using directive in Turnstile.cs. Updated Program.cs to include new API endpoint and refactored CreatePaste method.
Sharpbin
Sharpbin is a Pastebin type website completely in C#, except for the frontend, being pure HTML & CSS. Sharpbin can be used for sharing large amounts of text.
Features
- Account System
- Standalone
- Raw Text Serving
- Admin Panel that includes banning users
- Search feature for pastes
- Recent Pastes and Paste Archives
- Pastes can be deleted by an admin or the creator
- User profile pages
- Private encrypted pastes, sadly the encryption is server side, although client side may be soon!
- Mobile Support
- Captchas for logins and sign ups
- Editable pastes ... And more to come!
TODO
Fix css on the confirmationsUpdate file size when an edit is made in the database
Demo Website & Screenshots
You can find the test website at https://bin.whoswhip.top , there is no removed functionality and is the exact same code in this repo.
Description
Mirror of https://github.com/whoswhip/Sharpbin
https://sharpbin.cc
Readme
GPL-3.0
2.2 MiB
Languages
C#
49.5%
Svelte
35.3%
TypeScript
13.3%
HTML
1.1%
CSS
0.3%
Other
0.5%