1
1
mirror of https://github.com/ZeroCatDev/ClassworksKV.git synced 2025-12-07 13:03:09 +00:00

7 Commits

Author SHA1 Message Date
Sunwuyuan
c545612c9c
规范代码格式 2025-11-16 16:15:05 +08:00
Sunwuyuan
1d7078874b
feat: 添加 Prometheus 指标支持,跟踪在线设备和注册设备总数 2025-11-15 16:21:40 +08:00
SunWuyuan
02c0da037f
feat: integrate Socket.IO for real-time updates and online device management
- Added Socket.IO dependency to enable real-time communication.
- Initialized Socket.IO in the server and bound it to the HTTP server.
- Implemented functionality to allow clients to join device channels using KV tokens.
- Added endpoints to retrieve online devices and broadcast key changes.
- Enhanced existing routes to include device names in responses.
- Implemented broadcasting of key changes for KV operations.
- Updated documentation to reflect the new Socket.IO integration and usage.
2025-10-25 17:10:22 +08:00
SunWuyuan
6cfa20fe76
Update server listening address to '0.0.0.0' for external access; modify console log to reflect new address format. 2025-05-25 15:45:10 +08:00
SunWuyuan
0e490e5def
Refactor Dockerfile to include build arguments for database type and set production environment. Update npm commands for dependency installation and Prisma client generation. Modify GitHub Actions workflow to support multiple database types in Docker image builds. Adjust Express server port and enhance logging in www.js. Update Prisma schema to use SQLite and clean up model definitions. Revise routes in kv.js to improve key-value management functionality and update front-end fetch calls in index.ejs for batch import and UUID generation. 2025-05-24 14:57:57 +08:00
SunWuyuan
eeacc317a9
app.js 重构为 ES 模块,新增 KV 存储功能,并实现请求超时中间件。更新 package.json 中的依赖项并移除未使用的路由。完善 README,补充项目特性与安装使用说明。 2025-05-10 13:47:02 +08:00
8ad86c103f first 2024-11-17 16:16:16 +08:00