Files
mihomo-patchbay/package.json
T
im0o 1fc052028e 改成左右布局,接上图标,措辞换成配置里的原词
图标用 unplugin-icons 在打包时内联成 SVG,运行时不发网络请求——目标机器可能没外网,
而且一个图标一次请求对 2 核的机器不划算。autoInstall 关掉,不让构建过程偷偷联网装东西。

出站显示从「跟着规则走」改成 RULE,其余解释性长句删掉或收进 title。
新增了紧凑模式(只显示图标),默认关:这工具是隔一阵子才动一次的,纯图标对偶尔来的人不友好。
2026-08-10 11:37:07 +08:00

33 lines
951 B
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:web": "vite",
"dev:kernel": "../binary/mihomo-windows-amd64-v3-go125.exe -d dev/home -f dev/home/config.yaml",
"dev:reset": "cp dev/config.yaml dev/home/config.yaml",
"build": "vite build",
"test": "bun test",
"smoke": "bun run scripts/api-smoke.ts",
"typecheck": "vue-tsc --noEmit"
},
"dependencies": {
"yaml": "^2.9.0",
"vue": "^3.5.13"
},
"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"
}
}