diff --git a/public/index.html b/public/index.html deleted file mode 100644 index 39454cf..0000000 --- a/public/index.html +++ /dev/null @@ -1,879 +0,0 @@ - - - - - - DedPaste - Secure File Sharing - - - -
-
-

DedPaste

-

Secure, encrypted file and text sharing

-
- -
-
- - - -
- - -
-
-
📁
-

Drop your file here or click to browse

- Maximum file size: 100MB - -
- - - -
-

Encryption Options

-
-
- - -
-
- - -
-
- - -
-
-
- - - - - -
- - -
- -
- - -
-
- - -
-
- - -
- -
-

Encryption Options

-
-
- - -
-
- - -
-
- - -
-
-
- - - - - -
- - -
- -
- - -
-
- - -
-
- - -
- -
- - -
- -
- - -
- -
- -
-
- - -
-
-

Processing...

-
- - -
-

Success!

-

- -
-
-
- - - - \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index c9d497d..dab3fd1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -138,17 +138,6 @@ export default { }); } - // Serve the web interface - if (path === "/app" || path === "/app.html") { - const htmlContent = await getWebInterface(); - return new Response(htmlContent, { - headers: { - "Content-Type": "text/html", - "Access-Control-Allow-Origin": "*", - }, - }); - } - // Upload a new paste if (request.method === "POST") { // Handle API uploads for web interface @@ -2022,637 +2011,6 @@ function escapeHtml(unsafe: string): string { /** * Get the web interface HTML */ -async function getWebInterface(): Promise { - // Read the HTML file from the public directory - const htmlPath = "/public/index.html"; - // For now, we'll return the HTML inline since we can't easily read files in Cloudflare Workers - // In production, this would be served from a static asset or bundled - return ` - - - - - DedPaste - Secure File Sharing - - - -
-
-

DedPaste

-

Secure file and text sharing

-
- -
-
- - -
- - -
-
-
📁
-

Drop your file here or click to browse

- Maximum file size: 100MB - -
- - - -
- - -
- -
- - -
-
- - -
-
- - -
- -
- - -
- -
- - -
-
- - -
-
-

Processing...

-
- - -
-

Success!

-

- -
-
-
- - - -`; -} /** * Handle web upload API diff --git a/src/muiStyles.ts b/src/muiStyles.ts index d19d91d..9acdea1 100644 --- a/src/muiStyles.ts +++ b/src/muiStyles.ts @@ -1193,8 +1193,228 @@ curl -X POST https://paste.d3d.dev/api/paste \\
+ + + + + + + - `;