whoswhip 46615aba5b Refactor endpoints and update HTML for new API
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.
2024-10-25 16:40:26 -04:00
2024-08-18 21:55:50 -04:00
2024-10-19 15:21:52 -04:00
2024-08-23 12:51:05 -04:00
2024-08-18 21:55:50 -04:00
2024-10-19 15:19:33 -04:00

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 confirmations
  • Update 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.

Languages
C# 49.5%
Svelte 35.3%
TypeScript 13.3%
HTML 1.1%
CSS 0.3%
Other 0.5%