1
1
mirror of https://github.com/ZeroCatDev/ClassworksKV.git synced 2025-12-08 05:24:40 +00:00

17 Commits

Author SHA1 Message Date
Sunwuyuan
7a010faa54
1 2025-11-23 16:48:27 +08:00
Sunwuyuan
1d7078874b
feat: 添加 Prometheus 指标支持,跟踪在线设备和注册设备总数 2025-11-15 16:21:40 +08:00
SunWuyuan
bb61e6e6f5
feat: Add AutoAuth functionality and enhance Apps API
- Introduced AutoAuth model to manage automatic authorization configurations for devices.
- Added new endpoint to obtain token via namespace and password for automatic authorization.
- Implemented functionality to set student names for student-type tokens.
- Enhanced AppInstall model to include deviceType and isReadOnly fields.
- Updated device creation to allow custom namespaces and ensure uniqueness.
- Added routes for managing AutoAuth configurations, including CRUD operations.
- Implemented checks for read-only tokens in KV operations.
- Created detailed API documentation for AutoAuth and new Apps API endpoints.
- Added migration scripts to accommodate new database schema changes.
2025-11-01 19:31:46 +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
6c05d71506
添加智教联盟登录 2025-10-07 14:46:53 +08:00
SunWuyuan
24c443bb89
Merge branch 'main' of https://github.com/ZeroCatDev/ClassworksKV 2025-10-06 11:11:17 +08:00
SunWuyuan
7b1e224f70
继续一大堆功能实现 2025-10-03 21:22:18 +08:00
SunWuyuan
521522c1d2
更新到一半 2025-10-02 12:07:50 +08:00
dependabot[bot]
2b516cffcb
Bump @opentelemetry/exporter-trace-otlp-proto from 0.201.1 to 0.205.0
Bumps [@opentelemetry/exporter-trace-otlp-proto](https://github.com/open-telemetry/opentelemetry-js) from 0.201.1 to 0.205.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.201.1...experimental/v0.205.0)

---
updated-dependencies:
- dependency-name: "@opentelemetry/exporter-trace-otlp-proto"
  dependency-version: 0.205.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-15 15:18:03 +00:00
SunWuyuan
d6ab4895d5
Update dependencies in package.json and pnpm-lock.yaml to latest versions, including @opentelemetry packages and debug, enhancing performance and security. 2025-05-25 09:28:35 +08:00
SunWuyuan
cf646d619f
Add bcrypt and js-base64 dependencies in package.json and pnpm-lock.yaml. Enhance authentication middleware in auth.js with password hint functionality and improve error handling. Update device management routes in kv.js to support password hint retrieval and modification, ensuring better security and user experience. 2025-05-18 14:33:16 +08:00
SunWuyuan
3bff254a22
Implement device authentication middleware and Prisma model for device management. Update routes to include device info retrieval and password management, enhancing security and functionality. 2025-05-17 20:02:55 +08:00
SunWuyuan
4a8b19c0b8
Enhance CORS configuration in app.js to support path-based options and set max age for preflight requests. Update dependencies in package.json and pnpm-lock.yaml to latest versions, including express, body-parser, http-errors, and morgan. 2025-05-11 11:35:08 +08:00
SunWuyuan
6897a082e7
Integrate OpenTelemetry instrumentation into app.js, add global and method-based rate limiting middleware, and enhance CORS configuration. Update package.json to include new dependencies for OpenTelemetry and rate limiting tests. 2025-05-11 11:30:26 +08:00
SunWuyuan
eeacc317a9
app.js 重构为 ES 模块,新增 KV 存储功能,并实现请求超时中间件。更新 package.json 中的依赖项并移除未使用的路由。完善 README,补充项目特性与安装使用说明。 2025-05-10 13:47:02 +08:00
SunWuyuan
0c8637f663
1 2025-02-23 14:51:02 +08:00
8ad86c103f first 2024-11-17 16:16:16 +08:00