feat(web): 构建漂流瓶移动端 PWA

- 演示登录、内存令牌、单 Promise 刷新与路由守卫\n- 投瓶、捞瓶、首次回复、会话与实时聊天\n- 独立管理员登录与审核/举报工作台\n- Socket 认证续期、断线补齐与账号切换清理\n- PWA 离线壳、深海主题与移动端无障碍
This commit is contained in:
root
2026-09-17 22:19:24 +08:00
parent fa0fa78312
commit 7ca855f19c
42 changed files with 8498 additions and 2900 deletions
+31
View File
@@ -0,0 +1,31 @@
{
"name": "@drift/web",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite --host 0.0.0.0",
"test": "vitest run",
"typecheck": "vue-tsc --noEmit",
"build": "vue-tsc --noEmit && vite build"
},
"dependencies": {
"@drift/contracts": "workspace:*",
"pinia": "^3.0.3",
"socket.io-client": "^4.8.1",
"vue": "^3.5.22",
"vue-router": "^4.5.1"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/vue": "^8.1.0",
"@vitejs/plugin-vue": "^6.0.1",
"@vue/test-utils": "^2.4.6",
"jsdom": "^27.0.0",
"typescript": "^5.6.3",
"vite": "^7.1.7",
"vite-plugin-pwa": "^1.0.3",
"vitest": "^4.1.11",
"vue-tsc": "^3.0.8"
}
}