All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Shell 首次挂载时用 location.hash= 同步模块到 URL hash,会 push 一条多余 的 history 记录;webview 里第一次返回只是回到 hash 为空的同一页面没有 视觉变化,得再按一次才能真正退出。 改为 history.replaceState 更新 hash,切换 tab 也走 replace,整个应用 只占用一个 history 记录,一次返回即可退出。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
40 lines
1.1 KiB
JSON
40 lines
1.1 KiB
JSON
{
|
|
"name": "ln-bi",
|
|
"private": true,
|
|
"version": "1.1.3",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "concurrently -n server,client -c blue,green \"npm run dev:server\" \"npm run dev:client\"",
|
|
"dev:server": "tsx watch src/server/index.ts",
|
|
"dev:client": "vite --port=3000 --host=0.0.0.0",
|
|
"build": "vite build",
|
|
"start": "node --import tsx src/server/index.ts",
|
|
"lint": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@hono/node-server": "^1.13.0",
|
|
"@types/jsonwebtoken": "^9.0.10",
|
|
"dotenv": "^16.4.0",
|
|
"hono": "^4.7.0",
|
|
"jsonwebtoken": "^9.0.3",
|
|
"lucide-react": "^0.546.0",
|
|
"motion": "^12.23.24",
|
|
"mysql2": "^3.11.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"recharts": "^3.8.1",
|
|
"tsx": "^4.21.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/vite": "^4.1.14",
|
|
"@types/node": "^22.14.0",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"@vitejs/plugin-react": "^5.0.4",
|
|
"concurrently": "^9.1.0",
|
|
"tailwindcss": "^4.1.14",
|
|
"typescript": "~5.8.2",
|
|
"vite": "^6.2.0"
|
|
}
|
|
}
|