]> git.morado.dev Git - env.morado.dev/commitdiff
Rename main
authorRoberto Morado <roramigator@duck.com>
Wed, 20 May 2026 21:52:45 +0000 (17:52 -0400)
committerRoberto Morado <roramigator@duck.com>
Wed, 20 May 2026 21:52:45 +0000 (17:52 -0400)
main.ts

diff --git a/main.ts b/main.ts
index ef3f729bfdcca1f7f4457df0e80392c55e58ad48..610b8495f7a78a825b33e6c2266d1ee17f104c40 100644 (file)
--- a/main.ts
+++ b/main.ts
@@ -1,5 +1,4 @@
 // ─────────────────────────────────────────────
-//  drop. — anonymous P2P chat & file share
 //  Single-file Deno server · WebRTC + SSE
 //  run: deno run --allow-net main.ts
 // ─────────────────────────────────────────────
@@ -7,6 +6,7 @@
 const PORT = Number(Deno.env.get("PORT")) ?? 8080;
 const SESSION_TTL_MS = 60 * 60 * 1000; // 1 hour
 const CHUNK_SIZE = 16 * 1024; // 16KB DataChannel chunks
+const NAME = ".env";
 
 // ── Types ────────────────────────────────────
 
@@ -306,7 +306,7 @@ function json(data: unknown, status = 200): Response {
 
 // ── Start ────────────────────────────────────
 
-console.log(`drop. running → http://localhost:${PORT}`);
+console.log(`${NAME} running → http://localhost:${PORT}`);
 Deno.serve(
   { port: PORT },
   (req, info) => handler(req, (info.remoteAddr as Deno.NetAddr).hostname),
@@ -319,7 +319,7 @@ const HTML = `<!DOCTYPE html>
 <head>
 <meta charset="UTF-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>drop.</title>
+<title>${NAME}</title>
 <style>
   @import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=DM+Sans:ital,opsz,wght@0,9..40,200;0,9..40,300;0,9..40,400;1,9..40,200&display=swap');
 
@@ -861,7 +861,7 @@ const HTML = `<!DOCTYPE html>
 
 <!-- Landing -->
 <div id="screen-land" class="screen active">
-  <div class="wordmark">drop.</div>
+  <div class="wordmark">${NAME}</div>
   <div class="tagline">anonymous · ephemeral · peer-to-peer</div>
   <div class="land-actions">
     <button class="btn btn-primary" onclick="App.createSession()">new session</button>
@@ -894,7 +894,7 @@ const HTML = `<!DOCTYPE html>
 <div id="screen-chat" class="screen">
   <div class="drop-overlay" id="drop-overlay"><div class="drop-hint">drop files to send</div></div>
   <div class="chat-header">
-    <div class="chat-wordmark">drop.</div>
+    <div class="chat-wordmark">${NAME}</div>
     <div class="chat-meta">
       <div class="session-pill" id="header-code" onclick="App.copyCode()" title="click to copy"></div>
       <div class="status-dot"></div>