From 2c2bc8614c8ea0ce386369eb4924da1e6aa052d1 Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Wed, 27 Sep 2023 09:35:57 +0800
Subject: [PATCH] 添加环境配置区分
---
src/types/enums.ts | 50 +++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 43 insertions(+), 7 deletions(-)
diff --git a/src/types/enums.ts b/src/types/enums.ts
index 999f1e1..5d5fac1 100644
--- a/src/types/enums.ts
+++ b/src/types/enums.ts
@@ -1,6 +1,10 @@
export enum ERouterName {
ELEMENT = 'element',
+ LOGIN = 'login',
PROJECT = 'project',
+ ADD_PROJECT = 'add_project',
+ EDIT_PROJECT = 'edit_project',
+ PROJECT_LIST='project_list',
HOME = 'home',
TSA = 'tsa',
LAYER = 'layer',
@@ -14,12 +18,13 @@
TASK = 'task',
CREATE_PLAN = 'create-plan',
SELECT_PLAN = 'select-plan',
-
+ FIRMWARES = 'firmwares',
PILOT = 'pilot-login',
PILOT_HOME = 'pilot-home',
PILOT_MEDIA = 'pilot-media',
PILOT_LIVESHARE = 'pilot-liveshare',
- PILOT_BIND = 'pilot-bind'
+ PILOT_BIND = 'pilot-bind',
+ IMPLEMENT = 'implement',
}
export enum EStorageKey {
@@ -62,6 +67,7 @@
UserId = 'user_id',
Device = 'device',
GatewayOnline = 'gateway_online',
+ UserInfo = 'user_info',
}
export enum EPhotoType {
@@ -90,18 +96,48 @@
MapElementDelete = 'map_element_delete',
DeviceOnline = 'device_online',
DeviceOffline = 'device_offline',
- FlightTaskProgress = 'flighttask_progress',
DeviceHms = 'device_hms',
+
+ // 机场任务
+ FlightTaskProgress = 'flighttask_progress', // 机场任务执行进度
+ FlightTaskMediaProgress = 'file_upload_callback', // 机场任务媒体上传进度
+ FlightTaskMediaHighestPriority = 'highest_priority_upload_flighttask_media', // 机场任务媒体优先级上报
+
+ // 设备指令
+ DeviceReboot = 'device_reboot', // 机场重启
+ DroneOpen = 'drone_open', // 飞行器开机
+ DroneClose = 'drone_close', // 飞行器关机
+ DeviceFormat = 'device_format', // 机场数据格式化
+ DroneFormat = 'drone_format', // 飞行器数据格式化
+ CoverOpen = 'cover_open', // 打开舱盖
+ CoverClose = 'cover_close', // 关闭舱盖
+ PutterOpen = 'putter_open', // 推杆展开
+ PutterClose = 'putter_close', // 推杆闭合
+ ChargeOpen = 'charge_open', // 打开充电
+ ChargeClose = 'charge_close', // 关闭充电
+
+ // 设备升级
+ DeviceUpgrade = 'ota_progress', // 设备升级
+
+ // 设备日志
+ DeviceLogUploadProgress = 'fileupload_progress', // 设备日志上传
+
+ // 飞行指令消息
+ ControlSourceChange = 'control_source_change', // 控制权更新
+ FlyToPointProgress = 'fly_to_point_progress', // 飞向目标点
+ TakeoffToPointProgress = 'takeoff_to_point_progress', // 一键起飞
+ JoystickInvalidNotify = 'joystick_invalid_notify', // 设备端退出drc模式
+ DrcStatusNotify = 'drc_status_notify', // 飞行控制模式状态
}
export enum EDeviceTypeName {
- Aircraft = 'sub-device',
- Gateway = 'gateway',
- Dock = 'dock',
+ Aircraft = 0,
+ Gateway = 2,
+ Dock = 3,
}
export enum EHmsLevel {
NOTICE,
CAUTION,
WARN,
-}
\ No newline at end of file
+}
--
Gitblit v1.9.3