feat: 添加项目配置和依赖更新

配置更新:
1. 前端配置
   - 添加 hook-fetch 依赖用于 HTTP 请求
   - 更新 vite.config.mts 配置
   - 添加 .npmrc 配置文件

2. 后端配置
   - 更新 application.yml 和 application-dev.yml 配置
   - 更新 docker-compose.yml 配置

3. 代码优化
   - OSS 客户端优化
   - SSE 管理器优化
   - 聊天服务和向量存储策略优化

4. 项目文档
   - 添加 CLAUDE.md 项目指南

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
大壮
2026-04-02 09:44:56 +00:00
parent ac8e6ca088
commit 2f25a943b8
14 changed files with 584 additions and 98 deletions

1
hzhub-admin/.npmrc Normal file
View File

@@ -0,0 +1 @@
auto-install-peers=true

View File

@@ -51,6 +51,7 @@
"cropperjs": "^1.6.2",
"dayjs": "catalog:",
"echarts": "^5.5.1",
"hook-fetch": "^2.3.2",
"lodash-es": "^4.17.21",
"pinia": "catalog:",
"tinymce": "7.9.1",

View File

@@ -72,6 +72,10 @@ export default defineConfig(async () => {
target: 'http://127.0.0.1:6039',
ws: true,
},
'/resource': {
changeOrigin: true,
target: 'http://127.0.0.1:6039',
},
},
},
},

View File

@@ -664,6 +664,9 @@ importers:
echarts:
specifier: ^5.5.1
version: 5.6.0
hook-fetch:
specifier: ^2.3.2
version: 2.3.2(react@19.2.4)(typescript-api-pro@1.0.1)(vue@3.5.25(typescript@5.9.3))
lodash-es:
specifier: ^4.17.21
version: 4.17.23
@@ -6897,6 +6900,7 @@ packages:
glob@10.5.0:
resolution: {integrity: sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==}
deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me
hasBin: true
glob@11.1.0:
@@ -7038,6 +7042,13 @@ packages:
resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==}
engines: {node: '>=0.10.0'}
hook-fetch@2.3.2:
resolution: {integrity: sha512-56tODERta74J7O1TmSB/GvwQQlNaXIpzWLNXSnDfXxQDcofjwGlLIKeC27CzRHRb2ifb661wXA2H6D+MnvovxQ==}
peerDependencies:
react: '>=19.1.0'
typescript-api-pro: '>=0.0.6'
vue: ^3.5.17
hookable@5.5.3:
resolution: {integrity: sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==}
@@ -8991,6 +9002,10 @@ packages:
queue-microtask@1.2.3:
resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
radash@12.1.1:
resolution: {integrity: sha512-h36JMxKRqrAxVD8201FrCpyeNuUY9Y5zZwujr20fFO77tpUtGa6EZzfKw/3WaiBX95fq7+MpsuMLNdSnORAwSA==}
engines: {node: '>=14.18.0'}
radix-vue@1.9.17:
resolution: {integrity: sha512-mVCu7I2vXt1L2IUYHTt0sZMz7s1K2ZtqKeTIxG3yC5mMFfLBG4FtE1FDeRMpDd+Hhg/ybi9+iXmAP1ISREndoQ==}
peerDependencies:
@@ -9013,6 +9028,10 @@ packages:
resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==}
hasBin: true
react@19.2.4:
resolution: {integrity: sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==}
engines: {node: '>=0.10.0'}
read-cache@1.0.0:
resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==}
@@ -9964,6 +9983,9 @@ packages:
resolution: {integrity: sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==}
engines: {node: '>= 0.4'}
typescript-api-pro@1.0.1:
resolution: {integrity: sha512-hu0JSP/Wfzmdf3BO/X2Cp/E+1FJKKWyoVsrmtG7s9SSH7CkHyKknNB7ZeaO7m14ALYCPxvEsa5LxQg/UcyvEig==}
typescript@5.8.2:
resolution: {integrity: sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==}
engines: {node: '>=14.17'}
@@ -10480,6 +10502,7 @@ packages:
whatwg-encoding@3.1.1:
resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==}
engines: {node: '>=18'}
deprecated: Use @exodus/bytes instead for a more spec-conformant and faster implementation
whatwg-mimetype@3.0.0:
resolution: {integrity: sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==}
@@ -16787,6 +16810,14 @@ snapshots:
dependencies:
parse-passwd: 1.0.0
hook-fetch@2.3.2(react@19.2.4)(typescript-api-pro@1.0.1)(vue@3.5.25(typescript@5.9.3)):
dependencies:
qs: 6.14.0
radash: 12.1.1
react: 19.2.4
typescript-api-pro: 1.0.1
vue: 3.5.25(typescript@5.9.3)
hookable@5.5.3: {}
hookified@1.14.0: {}
@@ -18654,6 +18685,8 @@ snapshots:
queue-microtask@1.2.3: {}
radash@12.1.1: {}
radix-vue@1.9.17(vue@3.5.25(typescript@5.9.3)):
dependencies:
'@floating-ui/dom': 1.7.4
@@ -18691,6 +18724,8 @@ snapshots:
minimist: 1.2.8
strip-json-comments: 2.0.1
react@19.2.4: {}
read-cache@1.0.0:
dependencies:
pify: 2.3.0
@@ -19759,6 +19794,8 @@ snapshots:
possible-typed-array-names: 1.1.0
reflect.getprototypeof: 1.0.10
typescript-api-pro@1.0.1: {}
typescript@5.8.2: {}
typescript@5.9.3: {}