refactor: 重构硬件指纹模块并清理无关依赖

- 添加 ohash 和 systeminformation 依赖项到项目中
- 将硬件指纹生成模块从工具包移至服务器应用,并统一优化注释中的标点符号为中文全角格式,提升代码注释的可读性与一致性。
- 将硬件指纹获取方法的导入路径从 '@furtherverse/utils/fingerprint' 更新为 '@/lib/fingerprint'。
- 移除对本地 workspace 包 @furtherverse/utils 的依赖并清理相关配置
- 删除未使用的工具包配置文件并移除相关依赖项
- 删除硬件指纹测试文件,移除对 systeminformation 模块的模拟和相关测试用例。
- 移除对 fingerprint 工具函数的导出
- 删除未使用的 tsconfig 配置文件
This commit is contained in:
2026-01-24 03:42:12 +08:00
parent 8ceb212033
commit b0d3245b9d
8 changed files with 35 additions and 249 deletions

View File

@@ -25,7 +25,6 @@
"name": "@furtherverse/server",
"version": "1.0.0",
"dependencies": {
"@furtherverse/utils": "workspace:*",
"@orpc/client": "catalog:",
"@orpc/contract": "catalog:",
"@orpc/openapi": "catalog:",
@@ -40,9 +39,11 @@
"@tauri-apps/api": "catalog:",
"drizzle-orm": "catalog:",
"drizzle-zod": "catalog:",
"ohash": "catalog:",
"postgres": "catalog:",
"react": "catalog:",
"react-dom": "catalog:",
"systeminformation": "catalog:",
"uuid": "catalog:",
"zod": "catalog:",
},
@@ -71,18 +72,6 @@
"name": "@furtherverse/tsconfig",
"version": "1.0.0",
},
"packages/utils": {
"name": "@furtherverse/utils",
"version": "1.0.0",
"dependencies": {
"ohash": "catalog:",
"systeminformation": "catalog:",
},
"devDependencies": {
"@furtherverse/tsconfig": "workspace:*",
"typescript": "catalog:",
},
},
},
"catalog": {
"@biomejs/biome": "^2.3.11",
@@ -262,8 +251,6 @@
"@furtherverse/tsconfig": ["@furtherverse/tsconfig@workspace:packages/tsconfig"],
"@furtherverse/utils": ["@furtherverse/utils@workspace:packages/utils"],
"@jridgewell/gen-mapping": ["@jridgewell/gen-mapping@0.3.13", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="],
"@jridgewell/remapping": ["@jridgewell/remapping@2.3.5", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ=="],