Akizon77
1d4c394ad8
refactor: 将notification模块重构为notifier
2025-07-13 15:39:21 +08:00
Akizon77
129e0be151
refactor: 简化GeoIP相关调用,可以插中间件了
2025-07-01 14:51:17 +08:00
Akizon77
c09bec5c20
refactor: 更新GeoIP服务实现
2025-06-27 21:05:59 +08:00
Akizon77
06ffc44530
refactor: 将time.Time 迁移到UTCTime
2025-06-27 13:53:03 +08:00
Akizon77
215fdc822c
feat: 使用go-cache替代安全映射
...
ci: main自动发布附件
2025-06-24 14:36:30 +08:00
Akizon77
8da28d6b95
fix : #57 api.Records引入线程安全的泛型映射
2025-06-23 23:09:21 +08:00
Akizon77
d6b58f6eed
feat: 增加Ping任务管理功能
2025-06-21 16:47:39 +08:00
Akizon77
b85d1d1a48
feat: #57 增加connectedClients、latestReport线程安全
2025-06-20 21:57:30 +08:00
Akizon77
5022148fd9
feat: 可配置的历史记录保存时长
...
wip: PING 检测
2025-06-19 15:07:17 +08:00
Akizon77
b7a276dd05
feat: 添加在线和离线通知功能,支持冷却和宽限期设置
2025-06-15 00:03:25 +08:00
Akizon77
2cd1159f94
feat: 添加批量执行任务
2025-06-04 16:19:22 +08:00
Akizon77
e0175e3b6c
refactor: 更新UploadBasicInfo函数以使用SaveClientInfo,移除UpdateOrInsertBasicInfo的依赖
2025-05-27 15:46:43 +08:00
Akizon77
513e59dbff
feat: 添加终端连接功能和会话管理
2025-05-16 22:04:44 +08:00
Akizon77
874b272f55
fix: 确保发给前端的数据中有cpu usage
2025-05-15 20:59:25 +08:00
Akizon77
9a6b2b8a35
feat: #19 1分钟的历史记录
2025-05-07 23:19:08 +08:00
Akizon77
de1dbe164f
refactor: 将Country字段更改为Region
2025-05-04 13:31:30 +08:00
Akizon77
29767b74bd
fix: 一不小心把 == 写成 != 了
2025-05-03 21:01:38 +08:00
Akizon77
d0b94abeb5
feat: #11 添加Geoip,Custom CSS、JS 合并为CustomHead
2025-05-03 20:41:04 +08:00
Akizon77
70a41b78cc
fix: 修复基础信息上报、ws上报
2025-04-28 21:58:54 +08:00
Akizon77
2a0d38007b
fix: report里不需要token
2025-04-28 21:32:12 +08:00
Akizon77
261a99bf11
feat: Agent 备注
...
fix: 按需更新ClientInfo
2025-04-28 20:53:16 +08:00
Akizon77
bd82d85431
fix: Docker 构建优化
...
feat: Github Actions
feat: 部分测试单元
style: 迁移akizon77到komari-monitor组织
2025-04-28 13:20:17 +08:00
Akizon77
cbabab1a20
新增 Dockerfile
...
新增 chpasswd 指令强制修改密码
修改 数据库init移入到server块
重命名 history 包至 records
2025-04-27 23:17:22 +08:00
Akizon77
2c2c81953e
移除 远程配置下发。
...
修改 客户端基本属性逻辑。
修改 最新上报key改为uuid
新增 客户端命名
新增 历史记录数据库压缩。
新增 在线节点信息。
新增 公开API /api/nodes 显示客户端基础属性
2025-04-27 18:57:37 +08:00
Akizon77
07ceb1b036
迁移komari-common到common
2025-04-27 17:28:39 +08:00
Akizon77
c3172059ef
添加对 komari_common 模块的支持,重构客户端管理功能
...
- 在 `go.mod` 中引入 `komari_common` 模块并进行路径替换。
- 更新 `GetMe` 函数以使用用户 UUID 获取用户名。
- 在 `AddClient` 和 `EditClient` 函数中重构客户端配置的处理逻辑,使用 `komari_common.ClientConfig`。
- 优化报告上传和获取功能,确保数据处理逻辑一致性。
- 增强错误处理,确保在数据库操作中更好地捕获和处理异常。
2025-04-18 00:41:00 +08:00
Akizon77
59a1e2f070
更新模块路径为 GitHub 地址,统一导入路径格式
2025-04-16 14:32:06 +08:00
Akizon77
9f7758f1da
Refactor database structure and session management
...
- Removed legacy session management code from `session.go` and `sqlite3.go`.
- Introduced new `accounts` package for user and session management.
- Implemented GORM for database interactions, replacing raw SQL queries.
- Created models for `User`, `Session`, `Client`, `History`, and other entities.
- Added functions for creating, retrieving, and deleting sessions.
- Implemented automatic cleanup of old history records.
- Updated `main.go` to initialize the database and create a default admin account.
- Enhanced error handling and logging throughout the database operations.
2025-04-15 21:14:55 +08:00
Akizon77
dc14f69894
feat: 更新报告上传和WebSocket功能,优化数据处理逻辑
2025-04-15 19:12:38 +08:00
Akizon77
5763b3b7d4
feat(ws): 实现客户端 WebSocket 报告获取功能
...
- 新增 WebSocket 升级检查和连接逻辑
- 实现客户端发送 "get" 消息获取最新报告
- 在报告中删除敏感的 token 信息
- 优化报告存储结构,提高数据查询效率
2025-04-13 14:28:49 +08:00
Akizon77
95c080d110
feat: 实现 Komari 服务器监控工具的基本功能
...
- 添加用户认证和权限控制
- 实现客户端管理功能,包括添加、编辑和删除客户端
- 支持客户端上传基础信息和监控报告
- 提供基本的自定义配置功能
- 实现数据库初始化和数据存储
2025-04-12 22:48:38 +08:00