From 4323a8b77419068c1cfe95a3ddcec11cf6696680 Mon Sep 17 00:00:00 2001 From: Schluffe Date: Mon, 19 Oct 2026 23:15:19 +0200 Subject: [PATCH] Add gitea link --- public/gitea.svg | 31 +++++++++++++++++++++++++++++++ scripts/browser-check.ts | 2 +- src/App.vue | 5 +++++ src/style.css | 4 ++++ 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 public/gitea.svg diff --git a/public/gitea.svg b/public/gitea.svg new file mode 100644 index 0000000..9df6b83 --- /dev/null +++ b/public/gitea.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/scripts/browser-check.ts b/scripts/browser-check.ts index e39418c..2cb4c1e 100644 --- a/scripts/browser-check.ts +++ b/scripts/browser-check.ts @@ -27,7 +27,7 @@ const server = createServer(async (req, res) => { const base = join(root, 'dist'); const path = resolve(base, '.' + (pathname === '/' ? '/index.html' : pathname)); if (!path.startsWith(base + '/')) throw new Error('Invalid path'); - const types: Record = { '.js': 'text/javascript', '.css': 'text/css', '.html': 'text/html', '.png': 'image/png' }; + const types: Record = { '.js': 'text/javascript', '.css': 'text/css', '.html': 'text/html', '.png': 'image/png', '.svg': 'image/svg+xml' }; res.setHeader('Content-Type', types[extname(path)] || 'application/octet-stream'); res.end(await readFile(path)); } catch { res.statusCode = 404; res.end(); } diff --git a/src/App.vue b/src/App.vue index 3ea2091..11216a9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -12,6 +12,7 @@ import { asError } from './lib/validation.ts'; const props = defineProps<{ initialCode?: string }>(); const logoUrl = `${import.meta.env.BASE_URL}HellNet_alt.png`; +const giteaIconUrl = `${import.meta.env.BASE_URL}gitea.svg`; const connections = ref([]), selected = ref(''); const states = ref>({}); const current = computed(() => connections.value.find(item => item.id === selected.value)); @@ -157,6 +158,10 @@ async function remove() {

Trust your browser and the app’s host: its code can read selected files and use your device identity. HTTPS protects delivery. A TURN relay is used only after opt-in.

Clearing site data removes saved connections, identities, and history.

+ + + Source code +
diff --git a/src/style.css b/src/style.css index e1ba665..62fc441 100644 --- a/src/style.css +++ b/src/style.css @@ -297,6 +297,10 @@ p.stun-hint { .sidebar-footer { margin-top: auto; padding: var(--space-xl) 0.65rem 0.25rem; color: var(--muted); font-size: 0.72rem; line-height: 1.65; } .sidebar-tag { font-weight: 600; color: var(--text); } .sidebar-footer p { margin: 0.5rem 0 1rem; } +.source-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.4rem; color: var(--muted); text-decoration: none; } +.source-link:hover { color: var(--text); } +.source-link img { filter: grayscale(1); opacity: 0.6; } +.source-link:hover img { opacity: 0.9; } summary { cursor: pointer; color: var(--muted); font-size: 0.83rem; padding: 0.4rem 0; } summary:hover { color: var(--text); } summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }