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:
whoswhip
2025-07-10 16:07:35 -04:00
parent b95f540ef4
commit 57f1709032
9 changed files with 225 additions and 33 deletions
+12 -1
View File
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
@@ -9,6 +9,17 @@
<SignAssembly>False</SignAssembly>
</PropertyGroup>
<ItemGroup>
<Compile Remove="logs\**" />
<Compile Remove="pastes\**" />
<Content Remove="logs\**" />
<Content Remove="pastes\**" />
<EmbeddedResource Remove="logs\**" />
<EmbeddedResource Remove="pastes\**" />
<None Remove="logs\**" />
<None Remove="pastes\**" />
</ItemGroup>
<ItemGroup>
<Compile Remove="Classes.cs" />
</ItemGroup>