/connections 没有流式版本,只能全量轮询;断开是运行时动作,不走 落盘那条保护链路。两个容易做反的地方都收在 shared/connections.ts: chains 数组第一个是最终出口,显示要倒过来;没有连接时 connections 字段是 null 而不是空数组。虚拟滚动用 @tanstack/vue-virtual,ADR 0006 留的两个例外之一,它只有 virtual-core 一个运行时依赖。
35 lines
1.0 KiB
JSON
35 lines
1.0 KiB
JSON
{
|
|
"name": "patchbay",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "mihomo 配置的网页界面:把每一路入站接到它自己的出站上",
|
|
"scripts": {
|
|
"start": "vite build && bun run server/index.ts",
|
|
"dev": "bun run --hot server/index.ts",
|
|
"dev:all": "bun run scripts/dev-all.ts",
|
|
"dev:web": "vite",
|
|
"dev:kernel": "../binary/mihomo-windows-amd64-v3-go125.exe -d dev/home -f dev/home/config.yaml",
|
|
"dev:reset": "bun run scripts/dev-reset.ts",
|
|
"build": "vite build",
|
|
"test": "bun test",
|
|
"smoke": "bun run scripts/api-smoke.ts",
|
|
"typecheck": "vue-tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@tanstack/vue-virtual": "^3.13.35",
|
|
"vue": "^3.5.13",
|
|
"yaml": "^2.9.0"
|
|
},
|
|
"devDependencies": {
|
|
"@iconify-json/ri": "^1.2.10",
|
|
"@iconify/utils": "^3.1.4",
|
|
"@types/bun": "latest",
|
|
"@vitejs/plugin-vue": "^6.0.0",
|
|
"typescript": "^5.7.3",
|
|
"unplugin-icons": "^23.0.1",
|
|
"vite": "^7.0.0",
|
|
"vue-tsc": "^3.0.0"
|
|
}
|
|
}
|