@decentnetwork/beagle 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -0
- package/config/bootstrap-nodes.yaml +50 -0
- package/config/default-exits.yaml +49 -0
- package/dist/carrier-node.d.ts +108 -0
- package/dist/carrier-node.js +209 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +152 -0
- package/dist/desktop/app.js +3379 -0
- package/dist/desktop/index.html +55 -0
- package/dist/desktop/vendor/peer-webrtc.js +1070 -0
- package/dist/desktop/vendor/qrcode.js +2297 -0
- package/dist/desktop/vendor/react-dom.production.min.js +267 -0
- package/dist/desktop/vendor/react.production.min.js +31 -0
- package/dist/embedded-host.d.ts +37 -0
- package/dist/embedded-host.js +473 -0
- package/dist/exits.d.ts +7 -0
- package/dist/exits.js +24 -0
- package/dist/friend-meta.d.ts +36 -0
- package/dist/friend-meta.js +97 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +5 -0
- package/dist/ipc.d.ts +41 -0
- package/dist/ipc.js +76 -0
- package/dist/logger.d.ts +20 -0
- package/dist/logger.js +43 -0
- package/dist/message-store.d.ts +104 -0
- package/dist/message-store.js +201 -0
- package/dist/node-config.d.ts +16 -0
- package/dist/node-config.js +53 -0
- package/dist/peer-host.d.ts +49 -0
- package/dist/peer-host.js +102 -0
- package/dist/server.d.ts +29 -0
- package/dist/server.js +1187 -0
- package/package.json +45 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Beagle Chat</title>
|
|
7
|
+
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='5' fill='%230d1117'/%3E%3Cg fill='none' stroke='%233fb950' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 17 6-6-6-6'/%3E%3Cpath d='M12 18.5h7.5'/%3E%3C/g%3E%3C/svg%3E" />
|
|
8
|
+
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&display=swap" rel="stylesheet" />
|
|
9
|
+
<style>
|
|
10
|
+
* { box-sizing: border-box; }
|
|
11
|
+
html, body { margin: 0; padding: 0; height: 100%; }
|
|
12
|
+
body {
|
|
13
|
+
background: oklch(0.165 0.012 264);
|
|
14
|
+
font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
|
|
15
|
+
-webkit-font-smoothing: antialiased;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
}
|
|
18
|
+
#root { width: 100%; height: 100%; }
|
|
19
|
+
button { -webkit-tap-highlight-color: transparent; font-family: inherit; }
|
|
20
|
+
input { font-family: inherit; }
|
|
21
|
+
input::placeholder { color: var(--faint); }
|
|
22
|
+
input:focus { border-color: var(--accent) !important; }
|
|
23
|
+
::-webkit-scrollbar { width: 9px; height: 9px; }
|
|
24
|
+
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
|
|
25
|
+
::-webkit-scrollbar-track { background: transparent; }
|
|
26
|
+
.dk-md { white-space: normal; }
|
|
27
|
+
.dk-md p { margin: 0; }
|
|
28
|
+
.dk-md p + p, .dk-md p + ul, .dk-md p + ol, .dk-md p + pre,
|
|
29
|
+
.dk-md ul + p, .dk-md ol + p, .dk-md pre + p,
|
|
30
|
+
.dk-md h1 + p, .dk-md h2 + p, .dk-md h3 + p { margin-top: 0.5em; }
|
|
31
|
+
.dk-md h1, .dk-md h2, .dk-md h3, .dk-md h4, .dk-md h5, .dk-md h6 {
|
|
32
|
+
margin: 0 0 0.35em; font-size: 1em; line-height: 1.25; font-weight: 800;
|
|
33
|
+
}
|
|
34
|
+
.dk-md ul, .dk-md ol { margin: 0.25em 0; padding-left: 1.35em; }
|
|
35
|
+
.dk-md li { margin: 0.15em 0; }
|
|
36
|
+
.dk-md code { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 0.92em; background: rgba(0,0,0,0.18); border-radius: 4px; padding: 0.08em 0.3em; }
|
|
37
|
+
.dk-md pre { margin: 0.45em 0 0; padding: 8px 10px; overflow: auto; border-radius: 8px; background: rgba(0,0,0,0.22); }
|
|
38
|
+
.dk-md pre code { display: block; background: transparent; padding: 0; white-space: pre; }
|
|
39
|
+
.dk-md a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
|
|
40
|
+
@keyframes dkpulse { 0% { transform: scale(0.9); opacity: 0.7; } 70% { transform: scale(1.5); opacity: 0; } 100% { opacity: 0; } }
|
|
41
|
+
</style>
|
|
42
|
+
</head>
|
|
43
|
+
<body>
|
|
44
|
+
<div id="root"></div>
|
|
45
|
+
<!-- Vendored React (no CDN — works offline / behind the GFW). -->
|
|
46
|
+
<script src="vendor/react.production.min.js"></script>
|
|
47
|
+
<script src="vendor/react-dom.production.min.js"></script>
|
|
48
|
+
<!-- QR encoder (Kazuhiko Arase, MIT) — exposes window.qrcode for the QR-code button. -->
|
|
49
|
+
<script src="vendor/qrcode.js"></script>
|
|
50
|
+
<!-- peer-webrtc call engine (bundled IIFE) — exposes window.PeerWebRTC. -->
|
|
51
|
+
<script src="vendor/peer-webrtc.js"></script>
|
|
52
|
+
<!-- The whole desktop app, esbuild-transpiled from src/ui/desktop/*.jsx. -->
|
|
53
|
+
<script src="app.js"></script>
|
|
54
|
+
</body>
|
|
55
|
+
</html>
|