mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
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.
This commit is contained in:
@@ -21,7 +21,10 @@
|
||||
<body>
|
||||
<div class="main-container">
|
||||
<div class="paste-header">
|
||||
<h1 id="paste-title">Title</h1>
|
||||
<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>
|
||||
</div>
|
||||
<div class="paste-information-card">
|
||||
<div id="info-throbber" class="throbber"></div>
|
||||
<div class="paste-info-item"><span class="info-icon syntax-icon"></span><span id="paste-syntax">Syntax</span></div>
|
||||
@@ -36,6 +39,7 @@
|
||||
<button id="copy-button">Copy</button>
|
||||
<button id="download-button">Download</button>
|
||||
<button id="raw-button">Raw</button>
|
||||
<button id="delete-button" style="display: none;">Delete</button>
|
||||
</div>
|
||||
<div id="content-throbber" class="throbber"></div>
|
||||
<pre id="paste-content">Loading...</pre>
|
||||
|
||||
Reference in New Issue
Block a user