peer paste updates

This commit is contained in:
Raven Scott
2026-05-27 23:08:45 -04:00
parent 1974145b79
commit 30153bf958
8 changed files with 570 additions and 33 deletions
+29
View File
@@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>peer.paste</title>
<link rel="stylesheet" href="/styles.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/styles/github-dark.min.css" />
</head>
<body>
<main class="page">
@@ -16,7 +17,22 @@
<section class="panel">
<form id="create-form" class="create-form">
<label for="content" class="label">Secret / Paste</label>
<div class="toolbar">
<select id="format">
<option value="text">Text</option>
<option value="markdown">Markdown</option>
</select>
<select id="theme">
<option value="dark">Dark</option>
<option value="light">Light</option>
</select>
<button type="button" id="toggle-preview" class="ghost">Preview</button>
<button type="button" id="copy-editor" class="ghost">Copy Text</button>
</div>
<textarea id="content" rows="14" required placeholder="Paste text here..."></textarea>
<div id="preview-panel" class="preview-panel hidden">
<div id="preview-content">Preview will appear here.</div>
</div>
<details class="advanced">
<summary>Advanced options</summary>
@@ -38,6 +54,12 @@
<input type="checkbox" id="publicPaste" />
Public paste (disable encryption)
</label>
<label>Passphrase (optional encryption key derivation)
<input id="passphrase" type="password" autocomplete="off" placeholder="Optional extra layer" />
</label>
<label>Attachments (max 4, 256KB each)
<input id="attachments" type="file" multiple />
</label>
</div>
</details>
@@ -68,6 +90,13 @@
<div id="list-loading" class="list-loading hidden">Loading more...</div>
</section>
</main>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/marked.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/purify.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/core.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/languages/javascript.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/languages/json.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/languages/bash.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/languages/markdown.min.js"></script>
<script src="/main.js"></script>
</body>
</html>