mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-11 23:40:24 +00:00
- 增加全局掉线检测弹窗 - 增强登录错误解析,支持显示 serverErrorCode 和 message - 优化二维码登录 UI,错误时显示详细原因并提供大按钮重新获取 - 核心层解耦,通过事件抛出 KickedOffLine 通知 - 支持前端点击刷新二维码接口
25 lines
543 B
TypeScript
25 lines
543 B
TypeScript
export interface SystemStatus {
|
|
cpu: {
|
|
model: string,
|
|
speed: string;
|
|
usage: {
|
|
system: string;
|
|
qq: string;
|
|
},
|
|
core: number;
|
|
},
|
|
memory: {
|
|
total: string;
|
|
usage: {
|
|
system: string;
|
|
qq: string;
|
|
};
|
|
},
|
|
arch: string;
|
|
}
|
|
export interface IStatusHelperSubscription {
|
|
on (event: 'statusUpdate', listener: (status: SystemStatus) => void): this;
|
|
off (event: 'statusUpdate', listener: (status: SystemStatus) => void): this;
|
|
emit (event: 'statusUpdate', status: SystemStatus): boolean;
|
|
}
|