dashboard
repositories
filestore
activity
search
login
drone
/
drone-web
无人机操作系统
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
update device-firmware.ts
sean.zhou
2022-12-12
20e5f4cd989fbe345d949c96f73009901fdfd041
[drone/drone-web.git]
/
src
/
event-bus
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
import mitt, { Emitter } from 'mitt'
type Events = {
deviceUpgrade: any; // 设备升级
deviceLogUploadProgress: any // 设备日志上传
flightTaskWs: any // 机场任务消息
};
const emitter: Emitter<Events> = mitt<Events>()
export default emitter