feat: add PWA — mobile multi-model chat app (Vite + React)

- Vite + React + TypeScript + Tailwind v4
- vite-plugin-pwa for service worker and manifest
- Dark mode, borderless design with glow effects
- Reuses Elec components, adapted for mobile viewport
- Standalone-ready: can install to phone home screen

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
fyah
2026-05-09 12:19:19 +08:00
parent e5409c81bb
commit 91a8b6b7e4
17 changed files with 7150 additions and 0 deletions

15
PWA/index.html Normal file
View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<title>Elec</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>