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:
@@ -330,6 +330,10 @@ code.hljs {
|
||||
background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23aaa" stroke-width="2" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="7.5" r="3.5"/><path d="M3 17c0-3.3 3.1-6 7-6s7 2.7 7 6"/></svg>') no-repeat center/1em 1em;
|
||||
}
|
||||
|
||||
.edit-icon {
|
||||
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-edit"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1" /><path d="M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z" /><path d="M16 5l3 3" /></svg>') no-repeat center/1em 1em;
|
||||
}
|
||||
|
||||
#password-modal-bg {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
|
||||
Reference in New Issue
Block a user