mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
- 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.
51 lines
2.6 KiB
HTML
51 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="preload" href="css/style.css" as="style">
|
|
<link rel="preload" href="css/paste.css" as="style">
|
|
<link rel="stylesheet" href="css/style.css">
|
|
<link rel="stylesheet" href="css/paste.css">
|
|
<link rel="preload" href="js/paste.js" as="script">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Noto+Sans+Mono:wght@100..900&display=swap"
|
|
rel="stylesheet">
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlightjs-line-numbers.js/2.8.0/highlightjs-line-numbers.min.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="main-container">
|
|
<div class="paste-header">
|
|
<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>
|
|
<div class="paste-info-item"><span class="info-icon date-icon"></span><span id="paste-date">Date</span></div>
|
|
<div class="paste-info-item"><span class="info-icon size-icon"></span><span id="paste-size">Size</span></div>
|
|
<div class="paste-info-item"><span class="info-icon views-icon"></span><span id="paste-views">Views</span></div>
|
|
<div class="paste-info-item"><span class="info-icon author-icon"></span><a id="author-link" href="#"><span id="paste-author">Author</span></a></div>
|
|
</div>
|
|
</div>
|
|
<div class="paste-content">
|
|
<div class="paste-actions">
|
|
<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>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
<script src="js/paste.js"></script>
|
|
<script src="js/main.js"></script>
|
|
</html> |