Initial commit: abyssVpn project

- Tauri desktop app (apps/desktop)
- Python Django API service (services/api)
- Deployment scripts and docs
This commit is contained in:
arthur_chen
2026-05-15 09:06:10 +08:00
commit f69efb67ad
146 changed files with 18039 additions and 0 deletions
+240
View File
@@ -0,0 +1,240 @@
<!DOCTYPE html>
<html class="light" lang="en"><head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>NetGuard Workspace - Connecting</title>
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&amp;display=swap" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&amp;display=swap" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&amp;display=swap" rel="stylesheet"/>
<script id="tailwind-config">
tailwind.config = {
darkMode: "class",
theme: {
extend: {
"colors": {
"on-tertiary-fixed-variant": "#7b2e00",
"secondary-container": "#6bfd6a",
"on-tertiary-container": "#fffbff",
"on-secondary": "#ffffff",
"secondary-fixed-dim": "#4ee253",
"on-secondary-fixed-variant": "#00530e",
"primary-fixed": "#dbe1ff",
"on-secondary-fixed": "#002203",
"tertiary-fixed": "#ffdbcc",
"surface-container": "#ebeef6",
"inverse-on-surface": "#eef1f9",
"tertiary-fixed-dim": "#ffb695",
"primary": "#0050d6",
"tertiary": "#9e3e00",
"on-primary": "#ffffff",
"surface": "#f8f9ff",
"secondary-fixed": "#72ff70",
"surface-container-low": "#f1f3fc",
"on-secondary-container": "#007317",
"on-primary-fixed-variant": "#003ea8",
"surface-bright": "#f8f9ff",
"error": "#ba1a1a",
"on-primary-container": "#fefcff",
"on-error-container": "#93000a",
"surface-tint": "#0053db",
"surface-container-high": "#e5e8f0",
"primary-fixed-dim": "#b4c5ff",
"on-tertiary-fixed": "#351000",
"secondary": "#006e16",
"outline-variant": "#c3c6d8",
"primary-container": "#2a6af9",
"tertiary-container": "#c64f00",
"on-error": "#ffffff",
"outline": "#737687",
"on-primary-fixed": "#00174b",
"on-tertiary": "#ffffff",
"surface-variant": "#dfe2eb",
"surface-container-highest": "#dfe2eb",
"background": "#f8f9ff",
"on-surface-variant": "#424655",
"inverse-primary": "#b4c5ff",
"error-container": "#ffdad6",
"surface-container-lowest": "#ffffff",
"on-surface": "#181c22",
"on-background": "#181c22",
"surface-dim": "#d7dae2",
"inverse-surface": "#2d3137"
},
"borderRadius": {
"DEFAULT": "0.25rem",
"lg": "0.5rem",
"xl": "0.75rem",
"full": "9999px"
},
"spacing": {
"xs": "4px",
"sm": "8px",
"xl": "32px",
"lg": "24px",
"xxl": "48px",
"md": "16px"
},
"fontFamily": {
"h1": ["Inter"],
"body-lg": ["Inter"],
"caption": ["Inter"],
"label-sm": ["Inter"],
"label-md": ["Inter"],
"h2": ["Inter"],
"body-md": ["Inter"],
"display": ["Inter"]
},
"fontSize": {
"h1": ["24px", {"lineHeight": "32px", "fontWeight": "600"}],
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
"caption": ["12px", {"lineHeight": "18px", "fontWeight": "400"}],
"label-sm": ["12px", {"lineHeight": "18px", "fontWeight": "500"}],
"label-md": ["14px", {"lineHeight": "20px", "fontWeight": "500"}],
"h2": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
"body-md": ["14px", {"lineHeight": "22px", "fontWeight": "400"}],
"display": ["32px", {"lineHeight": "40px", "letterSpacing": "-0.02em", "fontWeight": "600"}]
}
},
},
}
</script>
<style>
.material-symbols-outlined {
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
}
.connecting-spinner {
border: 4px solid #DEE0E3;
border-top: 4px solid #3370FF;
border-radius: 50%;
width: 112px;
height: 112px;
animation: spin 1.2s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
<style>
body {
min-height: max(884px, 100dvh);
}
</style>
</head>
<body class="bg-[#F5F6F7] font-body-md text-on-surface">
<!-- TopAppBar -->
<header class="bg-white/95 backdrop-blur-md border-b border-gray-100 shadow-[0_2px_8px_rgba(31,35,41,0.05)] docked full-width top-0 z-50 fixed w-full">
<div class="flex justify-between items-center w-full px-5 h-14">
<div class="flex items-center gap-3">
<div class="w-8 h-8 rounded-full bg-primary-fixed-dim flex items-center justify-center overflow-hidden">
<img alt="Profile" class="w-full h-full object-cover" data-alt="close-up portrait of a professional man with a friendly expression in a corporate setting" src="https://lh3.googleusercontent.com/aida-public/AB6AXuDEOjt9qA7tP4QXXzXyr4mTl6c5PsuyiWXUnZqyIjmHcFcCsKw13_GVk4zBimi1ohboQEDtIfFnCWdMjY3wXAJWxuEd3C4LK9kN3Hpx6ToR6IlkXLpgSG_XLVd_RpPx0jcAKfxL0l0qL8z19m_Zrc8CnbvKold2PBFHVoTI1eLj44fKyo71NcyvRYKEwvgz-V_MvsRsup9kWFo5ITUYGtAtBSa1u_EhF7Hxknj0bCnIeXLtkFQ7NBlj0z7i-jxwStd59fRY_vuS823g"/>
</div>
<h1 class="text-xl font-bold text-[#1F2329] font-['Inter']">NetGuard Workspace</h1>
</div>
<button class="w-10 h-10 flex items-center justify-center rounded-lg hover:bg-gray-50 transition-colors active:opacity-70">
<span class="material-symbols-outlined text-gray-500" data-icon="settings">settings</span>
</button>
</div>
</header>
<main class="pt-20 pb-24 px-md max-w-lg mx-auto min-h-screen flex flex-col">
<!-- Connection State Canvas -->
<section class="flex-1 flex flex-col items-center justify-center py-xl">
<!-- Animated Central Button (Connecting State) -->
<div class="relative flex items-center justify-center mb-lg">
<!-- Spinner outer ring -->
<div class="connecting-spinner absolute"></div>
<!-- Inner button core -->
<button class="w-24 h-24 rounded-full bg-white shadow-xl flex items-center justify-center z-10 transition-transform active:scale-95">
<span class="material-symbols-outlined text-[40px] text-[#3370FF]" data-icon="security" data-weight="fill" style="font-variation-settings: 'FILL' 1;">security</span>
</button>
</div>
<div class="text-center space-y-2">
<h2 class="font-h1 text-h1 text-[#9e3e00]">Connecting...</h2>
<div class="flex flex-col items-center gap-1 opacity-80">
<p class="font-body-md text-label-md text-on-surface-variant">Fetching VPN Token...</p>
<p class="font-caption text-caption text-outline">Joining netclient...</p>
</div>
</div>
</section>
<!-- Bento Information Grid -->
<section class="grid grid-cols-2 gap-md mt-auto">
<!-- Selected Server Card -->
<div class="col-span-2 bg-white p-lg rounded-xl shadow-[0_2px_10px_rgba(31,35,41,0.03)] flex items-center justify-between border border-gray-100">
<div class="flex items-center gap-md">
<div class="w-10 h-10 rounded-lg bg-surface-container-low flex items-center justify-center">
<img alt="USA Flag" class="w-6 h-auto" data-alt="minimalist graphic representation of the United States flag for interface use" src="https://lh3.googleusercontent.com/aida-public/AB6AXuCpdBaDrjKaGjuUTMjHKeAU3gKzNpmUBYiNdoSHB_hszldrehLKSZlTzReAA_L_ygr7CckHeCnhHH5V8CIcZJiX1j4weUQ-3m7_NukSH6PUL0UO3F-fBUSXubrKJEhTyYnU0IZcJ5Mawsa5qm3Kg02VtrdozZ0WjjBZKEXHYq1253quYeSPZgITlTjVZL9OLvBV73Spcw8tLGpAkK-f9XLA32XO9Mxny6h2aPjL5Rz4mh2lvh3sBsEYTThJ7P7uDMtNdbj-pQlAjIcr"/>
</div>
<div>
<p class="font-label-md text-label-md text-outline">Selected Node</p>
<p class="font-h2 text-h2 text-on-surface">Silicon Valley, USA</p>
</div>
</div>
<span class="material-symbols-outlined text-outline" data-icon="chevron_right">chevron_right</span>
</div>
<!-- Protocol Chip -->
<div class="bg-white p-md rounded-xl shadow-[0_2px_10px_rgba(31,35,41,0.03)] border border-gray-100 flex flex-col gap-1">
<p class="font-caption text-caption text-outline">Protocol</p>
<div class="flex items-center gap-2">
<span class="w-2 h-2 rounded-full bg-primary animate-pulse"></span>
<p class="font-label-md text-label-md text-on-surface">WireGuard</p>
</div>
</div>
<!-- IP Address (Placeholder/Loading) -->
<div class="bg-white p-md rounded-xl shadow-[0_2px_10px_rgba(31,35,41,0.03)] border border-gray-100 flex flex-col gap-1">
<p class="font-caption text-caption text-outline">New IP</p>
<div class="h-5 w-20 bg-gray-100 rounded animate-pulse"></div>
</div>
<!-- Connection Stats (Disabled/Blurred-ish during connecting) -->
<div class="col-span-2 bg-surface-container-lowest p-lg rounded-xl border border-gray-100 border-dashed flex justify-around">
<div class="text-center">
<span class="material-symbols-outlined text-outline block mb-1" data-icon="arrow_downward">arrow_downward</span>
<p class="font-label-sm text-label-sm text-outline">0.0 Kb/s</p>
</div>
<div class="w-[1px] h-8 bg-gray-100"></div>
<div class="text-center">
<span class="material-symbols-outlined text-outline block mb-1" data-icon="arrow_upward">arrow_upward</span>
<p class="font-label-sm text-label-sm text-outline">0.0 Kb/s</p>
</div>
<div class="w-[1px] h-8 bg-gray-100"></div>
<div class="text-center">
<span class="material-symbols-outlined text-outline block mb-1" data-icon="timer">timer</span>
<p class="font-label-sm text-label-sm text-outline">00:00:00</p>
</div>
</div>
</section>
</main>
<!-- BottomNavBar -->
<nav class="bg-white fixed bottom-0 w-full z-50 pb-safe border-t border-gray-100 shadow-[0_-2px_10px_rgba(31,35,41,0.03)]">
<div class="flex justify-around items-center h-16 w-full px-2">
<!-- Connection Tab (Active) -->
<a class="flex flex-col items-center justify-center text-[#3370FF] transition-transform duration-150 active:scale-95" href="#">
<span class="material-symbols-outlined" data-icon="security" data-weight="fill" style="font-variation-settings: 'FILL' 1;">security</span>
<span class="font-['Inter'] text-[11px] font-medium">Connection</span>
</a>
<!-- Devices Tab -->
<a class="flex flex-col items-center justify-center text-gray-500 hover:text-[#3370FF] transition-transform duration-150 active:scale-95" href="#">
<span class="material-symbols-outlined" data-icon="devices">devices</span>
<span class="font-['Inter'] text-[11px] font-medium">Devices</span>
</a>
<!-- Logs Tab -->
<a class="flex flex-col items-center justify-center text-gray-500 hover:text-[#3370FF] transition-transform duration-150 active:scale-95" href="#">
<span class="material-symbols-outlined" data-icon="list_alt">list_alt</span>
<span class="font-['Inter'] text-[11px] font-medium">Logs</span>
</a>
<!-- Profile Tab -->
<a class="flex flex-col items-center justify-center text-gray-500 hover:text-[#3370FF] transition-transform duration-150 active:scale-95" href="#">
<span class="material-symbols-outlined" data-icon="person">person</span>
<span class="font-['Inter'] text-[11px] font-medium">Profile</span>
</a>
</div>
</nav>
</body></html>