diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index e20e4c5e..6d518113 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -17,7 +17,7 @@
diff --git a/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png
index ccb74bb6..d2e6c844 100644
Binary files a/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png and b/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png differ
diff --git a/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png
index 752f3061..6e7740fd 100644
Binary files a/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png and b/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png differ
diff --git a/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png
index d50460a2..063d3239 100644
Binary files a/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png and b/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png differ
diff --git a/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png
index 359a7652..6ec08c5f 100644
Binary files a/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png and b/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png differ
diff --git a/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png
index b4737524..896919f3 100644
Binary files a/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png and b/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/android/app/src/main/res/mipmap-hdpi/launcher_icon.png b/android/app/src/main/res/mipmap-hdpi/launcher_icon.png
index 87750511..38e69ebd 100644
Binary files a/android/app/src/main/res/mipmap-hdpi/launcher_icon.png and b/android/app/src/main/res/mipmap-hdpi/launcher_icon.png differ
diff --git a/android/app/src/main/res/mipmap-mdpi/launcher_icon.png b/android/app/src/main/res/mipmap-mdpi/launcher_icon.png
index 16a85bac..0d005234 100644
Binary files a/android/app/src/main/res/mipmap-mdpi/launcher_icon.png and b/android/app/src/main/res/mipmap-mdpi/launcher_icon.png differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png b/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png
index 29f84b66..1c0b6137 100644
Binary files a/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png and b/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png b/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png
index 5dbd0cd4..e9e3d1fd 100644
Binary files a/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png and b/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png b/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png
index 3893e23a..c4bf2dbe 100644
Binary files a/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png and b/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png differ
diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml
index d150a391..2531ca64 100644
--- a/android/app/src/main/res/values/colors.xml
+++ b/android/app/src/main/res/values/colors.xml
@@ -1,4 +1,4 @@
- #2e2e2e
+ #FF8500
\ No newline at end of file
diff --git a/assets/images/img.png b/assets/images/img.png
new file mode 100644
index 00000000..a383e388
Binary files /dev/null and b/assets/images/img.png differ
diff --git a/assets/languages/en-US.json b/assets/languages/en-US.json
index bd956505..c43f7da1 100644
--- a/assets/languages/en-US.json
+++ b/assets/languages/en-US.json
@@ -1,8 +1,38 @@
{
- "app_name": "Maibu Mowing Robot",
+
+ "device_task_control": {
+ "title": "Task control",
+ "pause": "Pause task",
+ "resume": "Resume task",
+ "pause_hint": "Pause current work",
+ "resume_hint": "Paused · Tap to resume",
+ "no_task": "No current task",
+ "not_running": "The task is waiting to start or is ending. It cannot be paused or resumed yet.",
+ "load_failed": "Could not load the task pool. Please try again.",
+ "choose_task": "Select a task to pause or resume",
+ "task_number": "Task {id}",
+ "paused": "Paused · Can resume",
+ "running": "Running · Can pause",
+ "task_changed": "The task status has changed. Please select again.",
+ "unavailable": "This operation is currently unavailable.",
+ "pause_failed": "Could not pause the task. Please try again.",
+ "resume_failed": "Could not resume the task. Please try again.",
+ "operation_failed": "The operation failed. Please try again later."
+ },
+ "app_name": "飒沓·星枢",
"device_control_mode": {
+ "cancel_to_preview": "Skip to preview",
+ "preview_status": "Video preview. Confirm the mode to enable control.",
+ "confirm_mode": "Confirm mode",
"title": "Confirm control mode",
+ "switch_title": "Manual / autonomous mode",
+ "selection_target": "Select the target mode",
+ "switch_manual": "Manual (remote control)",
+ "switch_intelligent": "Intelligent (autonomous tasks)",
+ "selection_matched": "The live mode already matches your selection. Press OK without sending another request.",
+ "selection_hint": "Press OK to request %s.",
+ "switch_confirmed": "Operation successful. The live mode follows device reports.",
"unknown_mode": "The current mode has not been reported. Press OK to request %s.",
"current": "Current live mode",
"target": "Mode required by this page",
@@ -31,6 +61,9 @@
"login": {
"title": "Login",
+ "welcome_title": "Welcome to SATA Robotics",
+ "welcome_subtitle": "Manage your robots in one place",
+ "hero_caption": "SMART ROBOTICS · CONNECTED",
"username": "Username",
"password": "Password",
"login_button": "Login",
@@ -644,12 +677,10 @@
"overview_title": "Device overview",
"overview_desc": "Built for centralized multi-robot management",
"stat_total": "Total devices",
- "stat_alarm_offline": "Alarm/Offline",
"device_distribution": "Device distribution",
"total_devices_count": "%s devices in total",
"th_device_info": "Device",
"th_status": "Status",
- "th_location_task": "Location / Task",
"add_robot": "Add robot",
"scan_action": "Scan",
"add_device": "Add device",
@@ -836,9 +867,12 @@
"rec_efficiency": "Efficiency",
"fault_state": "Fault status",
"fault_none": "No faults",
- "fault_none_sub": "Device running normally, no anomaly detected",
+ "fault_none_sub": "No details available",
"fn_title": "Quick actions",
- "fn_edit_order": "Edit order",
+ "fn_edit_order": "Edit order (hold to drag)",
+ "fn_save_order": "Save",
+ "fn_drag_order": "Press and hold a tile, then drag to reorder",
+ "fn_save_failed": "Could not save the order. Please try again.",
"fn_realtime_video": "Live video",
"fn_remote": "Remote control",
"fn_find": "Find robot",
@@ -847,18 +881,19 @@
"fn_sensor": "Sensor monitoring",
"all_functions": "View all functions",
"set_group_device": "Device settings & upgrade",
+ "set_group_device_sub": "Device parameters and firmware",
"set_param": "Device parameters",
"set_param_sub": "Operation, chassis and blade parameters",
"set_firmware": "Firmware & OTA upgrade",
- "set_firmware_sub": "Current version V1.1.2 · Check for updates",
- "set_firmware_sub_old": "Current version V0.9.7 · Requires downtime",
- "set_check_update": "Check update",
- "set_group_blade": "Operation & blade strategy",
+ "set_unavailable": "Unavailable",
+ "set_not_connected": "Not yet available",
+ "set_group_blade": "Blade safety",
+ "set_group_blade_sub": "Obstacle stop and blade auto-resume",
"set_manage_perm": "Admin permission",
"set_obstacle_stop": "Blade stop on obstacle",
"set_obstacle_stop_sub": "Enabled · Stop blade by strategy on obstacle",
"set_enabled": "Enabled",
- "set_blade_resume": "Blade resume strategy",
+ "set_blade_resume": "Blade resume mode",
"set_blade_resume_sub": "Manual confirmation (recommended)",
"set_manual_confirm": "Manual confirm",
"set_chassis": "Chassis lift parameters",
@@ -876,7 +911,7 @@
"set_group_safety": "Safety settings",
"set_auto_stop": "Auto blade stop on obstacle",
"set_auto_stop_sub": "Stop the blade automatically when an obstacle is detected",
- "set_auto_resume": "Auto blade resume after clearing",
+ "set_auto_resume": "Auto-resume blade after obstacle clears",
"set_auto_resume_sub": "Resume mowing once the obstacle is removed",
"set_alarm": "Alarm & light settings",
"set_alarm_sub": "Volume, light prompts and alert methods",
@@ -895,8 +930,9 @@
"set_remote_ctrl": "Remote control settings",
"set_remote_ctrl_sub": "Preferences, layout and video latency",
"set_group_maintain": "Network & system maintenance",
- "set_net_loc": "Network & positioning",
- "set_net_loc_sub": "4G/Wi-Fi and GNSS communication",
+ "set_group_network": "Network & location",
+ "set_net_loc": "Network & location status",
+ "set_net_loc_sub": "View device connectivity and location",
"unbind": "Unbind device",
"unbinding": "Unbinding…",
"unbind_confirm_body": "After unbinding you can no longer monitor or control \"%s\". Rebinding is required. Unbind now?",
@@ -1413,7 +1449,7 @@
"todo": "This feature is not available yet",
"sec_profile": "Basic Profile",
"sec_runtime": "Runtime & Control",
- "footer": "Power type, last report, control session and fault count are demo values; they will be replaced once connected",
+ "footer": "Power type is a demo value",
"model_suffix": "%s · STD",
"tagline": "Dedicated video · Ultrasonic & light · Basic GNSS",
"pill_online": "Online · %s",
@@ -1663,15 +1699,18 @@
"maintenance": "Maintenance",
"maintenance_desc": "Plans, reminders and records",
"help_guide": "Help & Guide",
- "help_guide_desc": "Manuals, tutorials and FAQ",
+ "help_guide_desc": "Device binding, route planning and remote control",
"account_security": "Account & Security",
"account_security_desc": "Email/phone, password and devices",
"message_notice": "Notifications",
"message_notice_desc": "Device, work, service and auth messages",
"general_settings": "General Settings",
- "general_settings_desc": "Language, units, region and app preferences",
+ "general_settings_desc": "Language, navigation, float bar and updates",
+ "general_settings_basic_desc": "Language and navigation",
"about_legal": "About & Legal",
"about_legal_desc": "App version, terms and privacy policy",
+ "privacy_and_terms": "Privacy Policy & User Agreement",
+ "legal_unavailable": "The official document is not available yet",
"stat_processing_order": "Open Orders",
"stat_maintenance_reminder": "Maintenance",
"stat_tutorial": "Guides",
@@ -1753,6 +1792,29 @@
"create_task": "New Route",
"no_current_task": "No current work",
"no_current_task_sub": "You can switch the site",
+ "all_work": {
+ "title": "All Work",
+ "plans": "Task Plans",
+ "pool": "Task Pool",
+ "consecutive": "Consecutive Tasks",
+ "consecutive_pending": "The consecutive task list is coming later.",
+ "refresh": "Refresh list",
+ "retry": "Reload",
+ "empty": "No task plans for this site",
+ "count": "%s plans",
+ "device": "Device",
+ "route": "Route",
+ "schedule": "Schedule",
+ "starts_at": "Starts",
+ "ends_at": "Ends",
+ "month_days": "Days %s",
+ "delete": "Delete",
+ "deleting": "Deleting",
+ "delete_title": "Delete task plan",
+ "delete_message": "Delete the task plan “%s”?",
+ "delete_success": "Task plan deleted"
+ },
+
"task_pool": {
"no_user": "Sign in to view work tasks",
"no_site": "Select a site first",
@@ -1776,7 +1838,9 @@
"title": "Zones",
"new": "New",
"page_title": "Work Zone Management",
- "page_subtitle": "Draw work zones, no-go zones and obstacle zones in the map editor",
+ "page_subtitle": "View this site's work zones, or create and edit them on the map.",
+ "refresh": "Refresh zones",
+ "empty_site": "No work zones for this site yet",
"filter_all": "All zones",
"kind_work": "Work zone",
"kind_forbidden": "No-go zone",
@@ -1853,16 +1917,29 @@
"timing_scheduled": "Scheduled",
"scheduled_hint": "Set a cycle and date range. The device will run at the scheduled time.",
"immediate_hint": "Open the work center with the selected device and route, then tap Start Work to begin.",
- "area_immediate_hint": "Select the device and area, then confirm the work details.",
+ "area_immediate_hint": "Select areas and routes, arrange their order, then choose a robot from this site to dispatch.",
"selection_changed": "The station or device assignment changed. Reopen this page to select the device and route again.",
"task_info": "Task Details",
"schedule_settings": "Schedule Settings",
+ "area_load_hint": "Load the areas and routes for the current site.",
+ "area_reload": "Reload",
+ "area_select_title": "Select task areas",
+ "area_select_hint": "Select multiple areas. Each area's default route is selected automatically.",
+ "area_empty": "No available areas at this site. Create one in Area Management.",
+ "area_routes_title": "Select routes",
+ "area_routes_hint": "Choose from the selected areas' linked routes. Shared routes run once.",
+ "area_choose_first": "Select a task area first.",
+ "area_routes_empty": "No available routes. Link routes from this site in the area editor.",
+ "area_order_title": "Execution order",
+ "area_order_hint": "Drag the handle on the right to change the execution order.",
+ "area_order_empty": "Select routes to arrange their order.",
+ "area_remove_route": "Deselect route",
+ "area_success": "Area tasks dispatched successfully",
"area_label": "Work Area",
"area_pick": "Coming soon",
- "area_pending": "Area dispatch is coming soon. Choose Routes to schedule a task or open the work center.",
"immediate_pending": "Immediate dispatch is coming soon. Choose Scheduled to create a work plan.",
- "coming_soon": "Coming soon",
"submit_now": "Dispatch Now",
+ "submit_consecutive": "Dispatch consecutive tasks",
"subtitle": "Pick device and route, set the cycle, work starts automatically on time",
"name_label": "Plan Name",
"name_hint": "e.g. Zone A daily morning mowing",
@@ -1893,7 +1970,32 @@
"record": {
"title": "Work Records",
- "page_subtitle": "Every job archived by month; open one to see its report",
+ "page_subtitle": "View device execution history for this site. Tap a record for details.",
+ "history_scope": "Device execution history for this site",
+ "device_history_scope": "Work records for this device",
+ "device_page_subtitle": "View this device’s work history and execution details.",
+ "device_loaded_count": "%s records loaded for this device",
+ "loaded_count": "%s loaded · %s total",
+ "filter_canceled": "Canceled",
+ "retry": "Retry",
+ "load_hint": "No data to display. Select a site or retry.",
+ "task_id": "Task",
+ "device": "Device",
+ "status": "Status",
+ "unknown_status": "Unknown",
+ "created_at": "Created",
+ "started_at": "Started",
+ "finished_at": "Finished",
+ "updated_at": "Updated",
+ "route_id": "Route ID",
+ "plan_id": "Plan ID",
+ "task_type": "Task type",
+ "route_type": "Route type",
+ "accepted": "Device accepted",
+ "remark": "Remark",
+ "yes": "Yes",
+ "no": "No",
+ "details": "Details",
"filter_all": "All",
"filter_done": "Completed",
"filter_aborted": "Aborted",
@@ -1945,6 +2047,34 @@
"filter_all": "All routes",
"kind_coverage": "Coverage",
"kind_return": "Return",
+ "return_manage": "Return setup",
+ "return_subtitle": "Return points, linked devices and obstacles for this site",
+ "return_plan_title": "Site return plan",
+ "return_plan_id": "Plan ID",
+ "return_points": "Return points",
+ "return_obstacles": "Obstacles / restricted areas",
+ "return_bound_devices": "Linked devices",
+ "return_plan_hint": "Each site has one return plan. Edit its return points and obstacles together.",
+ "return_empty": "No return plan for this site",
+ "return_empty_hint": "Create a plan to place return points, link robots and configure obstacles on the map.",
+ "return_create": "Create return plan",
+ "return_edit": "Edit return plan",
+ "return_preview": "Plan map preview",
+ "return_expand": "Expand map",
+ "return_map_note": "Green numbers mark return points; red marks obstacles. These are not driven paths.",
+ "return_no_points": "No return points configured",
+ "return_no_obstacles": "No obstacles configured",
+ "return_point_index": "Return point %s",
+ "return_obstacle_index": "Obstacle %s",
+ "return_device": "Linked device",
+ "return_unbound": "No device linked",
+ "return_coordinates": "Coordinates (latitude, longitude)",
+ "return_size": "Size (width × height)",
+ "return_shape": "Shape",
+ "return_shape_rect": "Rectangle",
+ "return_shape_circle": "Circle",
+ "return_source": "Source",
+ "return_platform": "Platform",
"kind_edge": "Edge",
"kind_custom": "Custom",
"loading": "Loading routes…",
@@ -2124,5 +2254,435 @@
"municipal": "Municipal & Riverbank",
"airport": "Airport Facilities"
}
+ },
+ "autonomous_work": {
+ "path_point_count": "{count} path points",
+ "boundary_point_count": "{count} boundary points",
+ "no_route": "No route selected",
+ "position_single_no_heading": "Single point (no heading)",
+ "position_diff_no_heading": "Differential (no heading)",
+ "work_completed": "Work completed",
+ "work_ended": "Work ended",
+ "restore_failed": "Could not restore the task",
+ "route_kept": "Work is running. The current route was kept.",
+ "route_selected": "Selected route: {route}",
+ "route_no_geometry": "No path data is available for “{route}”",
+ "pick_route_first": "Choose a route from the Route Library first.",
+ "dispatch_offline": "The device is offline. Work cannot be dispatched.",
+ "start_title": "Confirm start",
+ "start_description": "Route: {route}{details}{warning}. Confirm to start work.",
+ "no_path_warning": " (no path data, dispatch may fail)",
+ "check_power": "The device is powered on and control is authorized",
+ "check_location": "Position is valid and the route matches the geofence",
+ "check_site": "The work area is safe and blade and emergency-stop interlocks are active",
+ "start_confirm": "Start work",
+ "task_query_failed": "Could not load tasks",
+ "other_route_active": "The device has a task for another route ({route}). Handle it in the task queue first.",
+ "dispatch_failed": "Could not dispatch work",
+ "dispatched_route": "Work dispatched: {route}",
+ "no_pausing_task": "No task can be paused",
+ "pause_title": "Confirm pause",
+ "pause_description": "Pausing keeps the task ID, route and resume point. The robot must first stop safely.",
+ "check_pause_speed": "Driving speed drops to a safe level",
+ "check_pause_blade": "Blades stop under the task’s safe-pause policy",
+ "check_pause_progress": "Save the resume point and covered area",
+ "pause_confirm": "Pause work",
+ "pause_failed": "Could not pause work",
+ "pause_sent": "Pause command sent",
+ "no_stopping_task": "No task can be stopped",
+ "stop_title": "Confirm stop",
+ "stop_description": "This ends the task and disables automatic resumption. The covered area, track and stop time are saved to work history.",
+ "check_stop_hardware": "Stop the chassis and blades safely first",
+ "check_stop_record": "Record the manual stop reason and covered area",
+ "check_stop_final": "A terminated task cannot be resumed",
+ "stop_confirm": "Stop work",
+ "stop_failed": "Could not stop work",
+ "work_stopped": "Work stopped",
+ "no_resuming_task": "No task can be resumed",
+ "resume_title": "Confirm resume",
+ "resume_description": "Resume “{route}” using the same route and saved coverage.",
+ "check_resume_cause": "The reason for the pause or fault has been resolved",
+ "check_resume_task": "Task ID, map, route and resume point match",
+ "check_resume_safety": "Position quality, control access, blades and chassis meet requirements",
+ "resume_confirm": "Resume work",
+ "resume_failed": "Could not resume work",
+ "resume_sent": "Resume command sent",
+ "no_canceling_task": "No queued task can be canceled",
+ "cancel_title": "Confirm task cancellation",
+ "cancel_description": "Only tasks that have not started can be canceled. Running tasks must be stopped.",
+ "check_cancel_queued": "Verify the task has not started",
+ "check_cancel_route": "The route stays in the library after cancellation",
+ "cancel_confirm": "Cancel task",
+ "cancel_failed": "Could not cancel the task",
+ "task_canceled": "Queued task canceled",
+ "multiple_active_tasks": "Multiple active tasks on this device",
+ "task_number": "Task #{id}",
+ "unknown_route": "Unknown route",
+ "library_unavailable": "The route library is unavailable in this environment",
+ "online_edit_unavailable": "Online route editing is unavailable in this environment",
+ "pause_before_route_change": "Pause or stop work before changing routes.",
+ "queue_unavailable": "The task queue is unavailable in this environment",
+ "return_demo": "Return commands are unavailable on this device. This is a preview only.",
+ "more": "More",
+ "more_description": "Shortcuts to common device features.",
+ "manual_control": "Manual control",
+ "manual_control_description": "Open landscape remote control",
+ "find_description": "Make the robot beep and flash its lights",
+ "light_sound_description": "Light and alert sound preferences",
+ "sensors_status": "Sensors and live status",
+ "sensors_description": "View sensor data and live status",
+ "title": "Autonomous Work",
+ "robot_model": "{name} · {type} · PLUS Smart Edition",
+ "status_details": "Status details",
+ "route_change_requires_pause": "Pause the running task safely before editing the route.",
+ "cannot_plot_route": "No path data to display for “{route}”",
+ "device_status": "Device status",
+ "stopped": "Stopped",
+ "current_faults": "Current faults",
+ "no_fault_count": "0",
+ "view_sensors": "View sensors and live status ›",
+ "work_paused": "Work paused",
+ "waiting": "Queued",
+ "work_interrupted": "Work interrupted",
+ "no_running_task": "No active task",
+ "task_running": "Current task · Running",
+ "task_paused": "Current task · Paused",
+ "task_interrupted": "Current task · Interrupted",
+ "task_queued": "Current task · Queued",
+ "task_not_started": "Current task · Not started",
+ "task_ended": "Current task · Ended",
+ "dispatched_at": "Dispatched at",
+ "settings": "Work settings",
+ "queue": "Task queue",
+ "run_ended": "This job has ended",
+ "run_in_progress": "Task running",
+ "pick_route_to_start": "No task dispatched · Select a route to start",
+ "progress": "{percent}% complete",
+ "covered_area": "Covered {covered} / {total} mu",
+ "dispatched_time": "Dispatched {time}",
+ "ready": "Ready",
+ "paused_with_checkpoint": "Paused · Resume point saved",
+ "interrupted": "Interrupted",
+ "ended": "Ended",
+ "leave_setup": "Exit setup",
+ "preview_route": "Preview / Select route",
+ "cancel_queued": "Cancel queued task",
+ "view_queue": "View queue",
+ "stop": "Stop work",
+ "view_status": "View status",
+ "robot_status_opened": "Robot status expanded",
+ "resume": "Resume work",
+ "view_records": "View work history",
+ "new_task": "Choose a new task",
+ "camera_front": "Front",
+ "camera_demo_switched": "Switched to {camera} video (demo)",
+ "confirmation_demo_note": "Demo only. Wait for the robot’s acknowledgement. A timeout is not a success.",
+ "pending_device_check": "Pending device check",
+ "records_unavailable": "Work history is unavailable in this environment",
+ "records_title": "Autonomous Work History",
+ "records_description": "Shows finished tasks and notifications received by this device. Missing area and duration values are left blank.",
+ "records_load_failed": "Could not load records",
+ "records_empty": "No work history for this device",
+ "terminated": "Terminated",
+ "record_task_id": "Task ID: {id}",
+ "record_dispatched_at": "Dispatched at: {time}",
+ "record_completed_points": "Arrival points received: {count}",
+ "records_refresh": "Refresh history",
+ "back_to_map": "Back to map",
+ "route_library_title": "Route Library · Choose a route",
+ "route_library_description": "An area can have several routes. Preview anytime. To change routes, stop the current task safely and confirm again.",
+ "route_create_edit": "+ New / Edit",
+ "route_confirm": "Confirm route",
+ "route_required": "Select a route first",
+ "route_number": "Route #{id}",
+ "queue_task_canceled": "Task #{id} canceled",
+ "queue_switch_failed": "Could not switch tasks",
+ "queue_task_switched": "Switched to task #{id}",
+ "queue_title": "Multi-Area Task Queue",
+ "queue_description": "Cancel tasks that have not started here. Use Stop Work to end a running task safely.",
+ "queue_refresh": "Refresh queue",
+ "queue_empty": "No active tasks on this device",
+ "processing": "Processing…",
+ "schedule_title": "Scheduled Task",
+ "schedule_description": "Scheduled work still requires safety checks and supervision before the robot can start.",
+ "demo_route": "Area A · Route 01",
+ "schedule_date": "Date",
+ "schedule_time": "Time",
+ "schedule_repeat": "Repeat",
+ "schedule_once": "Once",
+ "schedule_enabled": "Enable schedule",
+ "schedule_safety": "Safety and authorization required",
+ "schedule_save": "Save schedule",
+ "schedule_demo": "Dispatch is unavailable. This is a preview only.",
+ "schedule_demo_options": "These options are demo data.",
+ "settings_coverage": "Coverage",
+ "settings_blades": "Blades",
+ "settings_obstacles": "Safety",
+ "settings_resume": "Resume",
+ "settings_return": "Return",
+ "settings_network": "Network",
+ "settings_title": "Autonomous Work Settings",
+ "settings_description": "You can use the defaults for this task. Pause safely and run the checks again before changing motion or blade settings.",
+ "settings_save": "Save settings (demo)",
+ "settings_saved": "Demo preferences saved locally. No parameters were sent to the device.",
+ "coverage_title": "Route and coverage settings",
+ "cut_width": "Cutting width",
+ "cut_width_detail": "Based on the model’s blade size",
+ "route_overlap": "Route overlap",
+ "route_overlap_detail": "Applies to new tasks only",
+ "planning_direction": "Planning direction",
+ "planning_direction_detail": "Prefer the solar array direction",
+ "along_array": "Along array",
+ "edge_handling": "Edge handling",
+ "edge_handling_detail": "Follow the boundary along edges",
+ "standard": "Standard",
+ "blade_section": "Execution and blades",
+ "autonomous_speed": "Autonomous work speed",
+ "autonomous_speed_detail": "Capped at the maximum safe speed",
+ "automatic_blade": "Automatic blade start and stop",
+ "automatic_blade_detail": "Based on task status and safety conditions",
+ "chassis_height": "Chassis height policy",
+ "chassis_height_detail": "Available on supported devices",
+ "configured_per_task": "Per task",
+ "blade_safety_note": "Verify safety interlocks before operating blades. Blade height is shown only when reliable feedback is available.",
+ "obstacle_section": "Obstacle avoidance and safety",
+ "obstacle_monitoring": "Obstacle monitoring",
+ "obstacle_monitoring_detail": "View forward sensors and ultrasonic status",
+ "obstacle_response": "Response to obstacles",
+ "obstacle_response_detail": "A safe stop takes priority",
+ "pause_wait": "Pause and wait",
+ "person_alert": "Person proximity warning",
+ "person_alert_detail": "Applicable warnings stay enabled",
+ "obstacle_safety_note": "Mandatory collision protection, emergency stop and safety interlocks cannot be disabled here.",
+ "resume_section": "Resume points",
+ "resume_checkpoint": "Resume from checkpoint",
+ "resume_checkpoint_detail": "Keep the resume point and coverage after a pause or interruption",
+ "resume_checks": "Pre-resume checks",
+ "resume_checks_detail": "Position quality and route version must match",
+ "strict_checks": "Strict validation",
+ "resume_note": "Resuming requires a reliable position and task acknowledgement. Select the task again if validation fails.",
+ "return_section": "Return and completion",
+ "completion_action": "After task completion",
+ "completion_action_detail": "Default device action after completion",
+ "standby_in_place": "Stand by in place",
+ "low_battery_threshold": "Low battery threshold",
+ "low_battery_threshold_detail": "Suggest returning when the battery falls below this level",
+ "return_channel": "Return command",
+ "return_channel_detail": "Automatic return is unavailable on this device",
+ "notify_only": "Notify only",
+ "network_section": "Weak signal and reconnection",
+ "network_reconnect": "Reconnect on weak signal",
+ "network_reconnect_detail": "Reconnect automatically when signal fluctuates",
+ "command_timeout": "Command timeout policy",
+ "command_timeout_detail": "Do not resend hazardous commands after a timeout",
+ "scheduled_safety": "Scheduled task safety",
+ "scheduled_safety_detail": "Verify safety before running a scheduled task",
+ "network_safety_note": "Hazardous commands are not queued when signal is weak. Confirm again after reconnecting before sending.",
+ "settings_demo": "Sending parameters to the device is unavailable. This is a preview only.",
+ "stage_setup": "Setup",
+ "stage_pause": "Paused / Interrupted",
+ "camera_left": "Left",
+ "camera_right": "Right",
+ "camera_rear": "Rear"
+ },
+ "region_editor": {
+ "region_saving": "The region is being saved",
+ "region_readonly_saved": "Region saved. Tap New to draw another one.",
+ "invalid_coordinates": "The point coordinates are invalid",
+ "too_many_points": "A region needs 4 points. Undo or delete a point before adding another.",
+ "point_already_marked": "This location is already marked. Move to the next point.",
+ "editing_scope_changed": "The region or site changed. Reopen the editor.",
+ "four_points_required": "The region must have exactly 4 boundary points",
+ "invalid_boundary_points": "The boundary contains invalid coordinates",
+ "duplicate_boundary_points": "The 4 boundary points must be distinct",
+ "invalid_region_id": "Invalid region ID",
+ "invalid_region_site_id": "Invalid region or site ID",
+ "invalid_route": "Select a valid route",
+ "invalid_region": "Select a valid region",
+ "delete_retry": "The region was not deleted. Try again.",
+ "save_retry": "The region was not saved. Try again.",
+ "region_delete_failed": "Could not delete the region",
+ "region_save_failed": "Could not save the region",
+ "regions_invalid_response": "Invalid response while loading regions",
+ "regions_data_not_list": "Invalid region list data",
+ "region_delete_invalid_response": "Invalid response while deleting the region",
+ "region_save_invalid_response": "Invalid response while saving the region",
+ "mark_area": "Mark area",
+ "position_single_short": "Single",
+ "position_diff_short": "Diff.",
+ "position_ins_short": "INS",
+ "position_fixed_short": "Fixed",
+ "position_float_short": "Float",
+ "position_fixed": "Fixed",
+ "position_float": "Float",
+ "position_unknown": "Position unknown",
+ "map_not_ready": "The map is not ready. Try again shortly.",
+ "invalid_device_point": "The device position is invalid. A point could not be added.",
+ "work_point_added": "Added work area point {count}",
+ "add_work_points_first": "Add work area points first.",
+ "custom_route_generated": "Custom route generated ({count} points)",
+ "route_needs_three_points": "Add at least 3 work area points to generate a route.",
+ "coverage_route_generated": "Coverage route generated ({count} points)",
+ "work_point_undone": "Last work area point removed · {count} left",
+ "obstacle_undone": "Last no-go rectangle removed · {count} left",
+ "no_obstacle_to_undo": "No no-go zones to undo",
+ "no_point_to_delete": "No work area points to delete",
+ "no_obstacle_to_delete": "No no-go zones to delete",
+ "obstacles_cleared": "All no-go zones cleared",
+ "region_create_hint": "Move the map and mark 4 boundary points with the crosshair, then save.",
+ "region_edit_hint": "The region boundary is loaded. Edit its details or redraw it.",
+ "region_requires_scope": "Sign in and select a site. Reopen the editor after changing sites or accounts.",
+ "obstacle_mode_hint": "Obstacle mode: tap + to add a no-go rectangle separately from the region.",
+ "invalid_region_point": "The device position is invalid. A region point could not be added.",
+ "region_point_added": "Added region point {count}/4",
+ "region_already_saved": "Region saved. Tap New to draw another one.",
+ "region_saved": "Region “{name}” saved",
+ "region_point_count": "Region · {count}/4 points",
+ "redraw": "Redraw",
+ "saved": "Saved",
+ "edit": "Edit",
+ "work_point_deleted": "Deleted point {index} · {count} left",
+ "obstacle_deleted": "Deleted no-go rectangle {index} · {count} left",
+ "coverage_mode_hint": "Coverage mode: mark the boundary. The route closes the loop automatically.",
+ "custom_mode_hint": "Custom mode: the route follows points in the order marked.",
+ "select_site_first": "Choose a site from the site list first.",
+ "records_load_failed": "Could not load work history",
+ "geometry_load_failed": "Could not load route geometry",
+ "route_loaded": "Loaded “{name}”. You can edit it and save a copy.",
+ "centered_on_device": "Centered on the device",
+ "editor_reset": "Editor reset",
+ "return_mark_hint": "Marking with {mode} · Tap + to add a return point",
+ "crosshair": "Crosshair",
+ "device": "Device",
+ "return_point_summary": "{points} points · {devices} linked devices{saved}",
+ "saved_suffix": " · Saved",
+ "return_load_failed": "Could not load the return plan",
+ "return_new_hint": "New return plan: tap the green + to add a return point.",
+ "return_edit_hint": "Return plan loaded. Tap Edit to save changes.",
+ "return_mode_exited": "Exited return-point editing",
+ "invalid_return_point": "The device position is invalid. A return point could not be added.",
+ "return_point_added": "Added return point {count}",
+ "invalid_obstacle_point": "The device position is invalid. An obstacle could not be added.",
+ "return_obstacle_deleted": "Deleted return no-go zone {index} · {count} left",
+ "no_return_obstacle_to_undo": "No return no-go zones to undo",
+ "return_obstacle_undone": "Last return no-go zone removed · {count} left",
+ "return_point_canceled": "Return point removed · {count} left",
+ "no_return_point_to_undo": "No return points to undo",
+ "return_point_undone": "Last return point removed · {count} left",
+ "return_point_name": "Return point {index}",
+ "rename_return_point": "Name return point {index}",
+ "rename_return_point_hint": "Leave blank to use the default number",
+ "name": "Name",
+ "name_too_long": "Use no more than 20 characters",
+ "rename_obstacle": "Name obstacle {index}",
+ "rename_obstacle_hint": "Leave blank to use the dimensions",
+ "add_return_points_first": "Add return points on the map first.",
+ "select_site": "Select a site first.",
+ "site_changed": "The site changed. Reopen the editor before saving.",
+ "obstacle_point_name": "Obstacle point {index}",
+ "return_save_failed": "Could not save the return plan",
+ "return_saved": "Return plan saved: {points} return points{obstacles}",
+ "obstacles_suffix": " · {count} obstacles",
+ "return_execute_unavailable": "Return execution is unavailable. The return points were kept.",
+ "work_area_needs_three_points": "A work area needs at least 3 points.",
+ "save_area": "Save area",
+ "area_name_hint": "Enter an area name (max. 20 characters)",
+ "area_name": "Area name",
+ "area_name_required": "Enter an area name",
+ "area_name_too_long": "Use no more than 20 characters for the area name",
+ "saved_without_screenshot": "Saved “{name}”, but the map image could not be created",
+ "area_saved": "Saved “{name}”",
+ "area_summary": "{points} work points · {obstacles} no-go zones · {mode} mode",
+ "coverage": "Coverage",
+ "custom": "Custom",
+ "region_number": "Region #{id}",
+ "title": "Map and Region Editor",
+ "network_online": "4G online",
+ "battery_unknown": "Battery unknown",
+ "portrait": "Portrait",
+ "brightness_demo": "Map brightness controls are unavailable in this preview.",
+ "region": "Region",
+ "obstacle": "Obstacle",
+ "return_points_title": "Return to base · Points",
+ "new_area_at_site": "Current site · New area",
+ "new_area_steps": "Choose Mark Area and a work mode, add points, then finish and save.",
+ "region_four_point_title": "Region · 4-point boundary",
+ "mark_four_points": "Mark 4 boundary points in order",
+ "obstacle_mode": "Obstacle · No-go rectangle",
+ "resize_rectangle_hint": "Tap + to place a rectangle, then drag its sides or corners to resize.",
+ "return_obstacles_title": "Return to base · Obstacles",
+ "return_order": "Return in the order marked",
+ "mark_with_crosshair": "Crosshair",
+ "mark_with_device": "Device position",
+ "crosshair_return_hint": "Crosshair: add the return point at the map center",
+ "device_mark_hint": "Device position: use the device’s current coordinates",
+ "crosshair_mark_hint": "Crosshair: add the point at the map center",
+ "default_device": "Default device",
+ "obstacle_point": "Obstacle point",
+ "choose_device": "Select device",
+ "devices_empty": "No devices available",
+ "select_rectangle": "Select a rectangle on the map",
+ "return_obstacle_empty_hint": "Aim at the obstacle and tap the green + to add a rectangle. Tap its name to rename it.",
+ "obstacle_empty_hint": "Aim at the obstacle and tap the green + to add a rectangle.",
+ "region_points_empty": "Tap the green + to add 4 boundary points in order.",
+ "return_points_empty": "Tap the green + to add a point at the crosshair or device position.",
+ "return_obstacle_summary": "{count} obstacles{note}",
+ "independent_suffix": " · Separate from other regions and obstacles",
+ "saving": "Saving…",
+ "execute": "Run",
+ "row_spacing": "Row spacing",
+ "use_optimal_heading": "Use optimal heading",
+ "return_counts": "{points} return points · {obstacles} obstacles",
+ "return_plan": "Return plan",
+ "records_empty": "No work history for this site",
+ "unnamed_work": "Unnamed job",
+ "no_video": "No video stream available",
+ "rectangle_dimensions": "Rectangle dimensions",
+ "rectangle_width": "Width X (m)",
+ "rectangle_height": "Height Y (m)",
+ "rectangle_preview": "Name: {width} m × {height} m",
+ "rectangle_positive_dimensions": "Enter a width and height greater than 0",
+ "no_device_crosshair_hint": "No device selected. Move the map to align the crosshair with your target, then tap +.",
+ "dismiss_tip": "Dismiss tip",
+ "scope_changed_reopen": "The site or account changed. Reopen the editor before saving.",
+ "bind_routes": "Linked routes",
+ "no_routes_to_bind": "No routes to link at this site",
+ "new_region": "New region",
+ "edit_region": "Edit region",
+ "region_name_field": "Region name *",
+ "region_name_required": "Enter a region name",
+ "region_code": "Region code",
+ "route_load_failed": "Could not load routes",
+ "reload_routes": "Reload routes",
+ "default_route": "Default route",
+ "routes_loading": "Loading routes…",
+ "pick_default_route": "Select a default route (optional)",
+ "pick_linked_routes": "Select one or more routes to link",
+ "boundary_count": "Boundary points: {count}/4",
+ "save_confirm": "Save changes",
+ "delete_region": "Delete region",
+ "delete_region_message": "Delete “{region}”? This cannot be undone.",
+ "scope_changed_select_region": "The site or account changed. Select the region again.",
+ "region_deleted": "Region deleted",
+ "regions_count": "Regions ({count})",
+ "regions": "Regions",
+ "add_region": "Add",
+ "refresh_regions": "Refresh regions",
+ "close_regions": "Close list",
+ "sign_in_first": "Sign in first",
+ "select_site_for_regions": "Select a site to view its regions",
+ "regions_load_failed": "Could not load regions",
+ "reload_regions": "Reload regions",
+ "regions_empty": "No regions at this site. Tap Add to create one.",
+ "enabled": "Enabled",
+ "disabled": "Disabled",
+ "code_value": "Code: {code}",
+ "region_summary": "{points} boundary points · {routes} linked routes",
+ "redraw_required": "Redraw the boundary",
+ "route_type_title": "Select route type",
+ "route_type_mowing": "Mowing",
+ "route_type_inspection": "Inspection",
+ "route_type_predefined": "Predefined mode",
+ "route_type_other": "Other"
}
}
diff --git a/assets/languages/zh-CN.json b/assets/languages/zh-CN.json
index 19767bbd..6c6f239b 100644
--- a/assets/languages/zh-CN.json
+++ b/assets/languages/zh-CN.json
@@ -1,8 +1,38 @@
{
- "app_name": "麦步割草机器人",
+
+ "device_task_control": {
+ "title": "任务控制",
+ "pause": "任务暂停",
+ "resume": "恢复任务",
+ "pause_hint": "暂停当前作业",
+ "resume_hint": "已暂停 · 点击恢复",
+ "no_task": "当前没有任务",
+ "not_running": "当前任务尚未执行或正在结束,暂不能暂停或恢复。",
+ "load_failed": "任务池查询失败,请稍后重试。",
+ "choose_task": "选择要暂停或恢复的任务",
+ "task_number": "任务 {id}",
+ "paused": "已暂停 · 可恢复",
+ "running": "执行中 · 可暂停",
+ "task_changed": "任务状态已变化,请重新选择。",
+ "unavailable": "当前设备暂不支持此操作。",
+ "pause_failed": "暂停失败,请重试。",
+ "resume_failed": "恢复失败,请重试。",
+ "operation_failed": "操作失败,请稍后重试。"
+ },
+ "app_name": "飒沓·星枢",
"device_control_mode": {
+ "cancel_to_preview": "取消并预览",
+ "preview_status": "画面预览,确认模式后可遥控",
+ "confirm_mode": "确认模式",
"title": "控制模式确认",
+ "switch_title": "手动/智能切换",
+ "selection_target": "选择目标控制模式",
+ "switch_manual": "手动(远程控制)",
+ "switch_intelligent": "智能(自主任务)",
+ "selection_matched": "当前实时模式与所选模式一致,点击确定即可,无需重复下发。",
+ "selection_hint": "点击确定将下发切换为%s。",
+ "switch_confirmed": "操作成功,当前模式以设备实时上报为准。",
"unknown_mode": "暂未收到当前模式,点击确定将下发切换为%s。",
"current": "当前实时模式",
"target": "当前页面所需模式",
@@ -31,6 +61,9 @@
"login": {
"title": "登录",
+ "welcome_title": "欢迎使用飒沓机器人",
+ "welcome_subtitle": "统一管理您的机器人设备",
+ "hero_caption": "智能机器人 · 互联",
"username": "用户名",
"password": "密码",
"login_button": "登录",
@@ -643,12 +676,10 @@
"overview_title": "设备集中概览",
"overview_desc": "适合企业多机器人集中管理",
"stat_total": "设备总数",
- "stat_alarm_offline": "告警/离线",
"device_distribution": "设备分布",
"total_devices_count": "共 %s 台设备",
"th_device_info": "设备信息",
"th_status": "状态",
- "th_location_task": "位置/当前任务",
"add_robot": "添加机器人",
"scan_action": "扫一扫",
"add_device": "添加设备",
@@ -834,10 +865,13 @@
"rec_duration": "作业时长",
"rec_efficiency": "作业效率",
"fault_state": "故障状态",
- "fault_none": "当前无故障",
- "fault_none_sub": "设备运行正常,未检测到异常",
+ "fault_none": "暂无故障",
+ "fault_none_sub": "暂无详情",
"fn_title": "常用功能",
- "fn_edit_order": "编辑排序",
+ "fn_edit_order": "编辑排序(长按拖动)",
+ "fn_save_order": "保存",
+ "fn_drag_order": "长按磁贴,再拖动调整顺序",
+ "fn_save_failed": "排序保存失败,请重试",
"fn_realtime_video": "实时图传",
"fn_remote": "远程遥控",
"fn_find": "一键寻车",
@@ -846,18 +880,19 @@
"fn_sensor": "传感器监测",
"all_functions": "查看全部功能",
"set_group_device": "设备设置升级",
+ "set_group_device_sub": "设备参数、固件与 OTA",
"set_param": "设备参数设置",
- "set_param_sub": "作业参数、底盘参数、割刀参数等设置",
- "set_firmware": "固件与OTA升级",
- "set_firmware_sub": "当前版本 V1.1.2 · 可检查新版本",
- "set_firmware_sub_old": "当前版本 V0.9.7 · 需停机检查",
- "set_check_update": "检查升级",
- "set_group_blade": "作业与割刀策略",
+ "set_param_sub": "作业、底盘和割刀参数",
+ "set_firmware": "固件与 OTA 升级",
+ "set_unavailable": "暂未开放",
+ "set_not_connected": "暂未接入",
+ "set_group_blade": "割刀安全",
+ "set_group_blade_sub": "遇障停刀、自动恢复割刀",
"set_manage_perm": "管理权限",
- "set_obstacle_stop": "障碍物联动停刀",
+ "set_obstacle_stop": "遇障停刀",
"set_obstacle_stop_sub": "已启用 · 障碍触发时按策略停止割刀",
"set_enabled": "已启用",
- "set_blade_resume": "割刀恢复策略",
+ "set_blade_resume": "割刀恢复方式",
"set_blade_resume_sub": "人工确认恢复(推荐)",
"set_manual_confirm": "人工确认",
"set_chassis": "底盘升降参数",
@@ -875,7 +910,7 @@
"set_group_safety": "安全设置",
"set_auto_stop": "遥障自动关闭割刀",
"set_auto_stop_sub": "检测到障碍物时自动停止割刀,提升作业安全",
- "set_auto_resume": "障碍清除后自动开启割刀",
+ "set_auto_resume": "障碍清除后自动恢复割刀",
"set_auto_resume_sub": "障碍物移除后自动恢复割刀作业",
"set_alarm": "声光报警设置",
"set_alarm_sub": "报警音量、灯光提示、异常提醒方式",
@@ -894,8 +929,9 @@
"set_remote_ctrl": "远程智控设置",
"set_remote_ctrl_sub": "远程控制偏好、操作布局、图传延迟设置",
"set_group_maintain": "网络与系统维护",
- "set_net_loc": "网络与定位参数",
- "set_net_loc_sub": "4G/Wi-Fi配置、GNSS通信配置",
+ "set_group_network": "网络与定位",
+ "set_net_loc": "网络与定位状态",
+ "set_net_loc_sub": "查看设备在线状态和定位",
"unbind": "解绑设备",
"unbinding": "解绑中…",
"unbind_confirm_body": "解绑后将无法继续查看「%s」的监测与控制,需重新绑定才能使用。确定解绑?",
@@ -1412,7 +1448,7 @@
"todo": "功能暂未开发",
"sec_profile": "机器人基础资料",
"sec_runtime": "运行与控制信息",
- "footer": "动力类型、最近上报、控制会话、故障数为示例;接入后自动替换",
+ "footer": "动力类型目前为示例值",
"model_suffix": "%s · STD标准版",
"tagline": "独立图传 · 超声波声光 · 基础GNSS",
"pill_online": "在线 · %s",
@@ -1662,15 +1698,18 @@
"maintenance": "维修保养",
"maintenance_desc": "保养计划、提醒与维护记录",
"help_guide": "帮助与操作指南",
- "help_guide_desc": "产品说明书、教程及常见问题",
+ "help_guide_desc": "设备绑定、路径规划与远程控制",
"account_security": "账号与安全",
"account_security_desc": "邮箱/手机、密码及登录设备",
"message_notice": "消息通知",
"message_notice_desc": "设备、作业、服务及授权消息",
"general_settings": "通用设置",
- "general_settings_desc": "语言、单位、地区及APP偏好",
+ "general_settings_desc": "语言、底部导航、悬浮条与版本更新",
+ "general_settings_basic_desc": "语言与底部导航",
"about_legal": "关于与法律协议",
"about_legal_desc": "APP版本、协议和隐私政策",
+ "privacy_and_terms": "隐私政策与用户协议",
+ "legal_unavailable": "正式文件暂未提供",
"stat_processing_order": "处理中工单",
"stat_maintenance_reminder": "保养提醒",
"stat_tutorial": "教程",
@@ -1752,6 +1791,29 @@
"create_task": "新建路线",
"no_current_task": "暂无作业",
"no_current_task_sub": "可以更换场站",
+ "all_work": {
+ "title": "全部作业",
+ "plans": "任务计划",
+ "pool": "任务池",
+ "consecutive": "连续任务",
+ "consecutive_pending": "连续任务列表暂未开放",
+ "refresh": "刷新列表",
+ "retry": "重新加载",
+ "empty": "当前场站暂无任务计划",
+ "count": "共 %s 条计划",
+ "device": "执行设备",
+ "route": "作业路线",
+ "schedule": "执行规则",
+ "starts_at": "生效时间",
+ "ends_at": "结束时间",
+ "month_days": "每月 %s 日",
+ "delete": "删除",
+ "deleting": "正在删除",
+ "delete_title": "删除任务计划",
+ "delete_message": "确定删除任务计划“%s”吗?",
+ "delete_success": "任务计划已删除"
+ },
+
"task_pool": {
"no_user": "请先登录后查看作业任务",
"no_site": "请先选择场站",
@@ -1775,7 +1837,9 @@
"title": "区域管理",
"new": "新建",
"page_title": "作业区域管理",
- "page_subtitle": "在地图和区域编辑里画出作业区、禁行区与障碍区",
+ "page_subtitle": "查看当前场站的作业区域,或在地图上新建和编辑。",
+ "refresh": "刷新区域列表",
+ "empty_site": "当前场站暂无作业区域",
"filter_all": "全部区域",
"kind_work": "作业区",
"kind_forbidden": "禁行区",
@@ -1852,16 +1916,29 @@
"timing_scheduled": "定时任务",
"scheduled_hint": "设置周期与生效日期,设备将在设定时间自动执行。",
"immediate_hint": "先进入自主作业中心,核对所选设备和路线后,点击「开始作业」执行。",
- "area_immediate_hint": "选择设备和作业区域,确认本次作业内容。",
+ "area_immediate_hint": "选择区域及路线,调整执行顺序,再选择当前场站的机器人下发任务。",
"selection_changed": "场站或设备归属已变更,请重新进入页面选择设备和路线",
"task_info": "任务信息",
"schedule_settings": "定时设置",
+ "area_load_hint": "请加载当前场站的分区和路线",
+ "area_reload": "重新加载",
+ "area_select_title": "选择任务区域",
+ "area_select_hint": "可多选;新选区域会默认勾选它的默认路线。",
+ "area_empty": "当前场站暂无可用分区,请先在区域管理中新增。",
+ "area_routes_title": "选择执行路线",
+ "area_routes_hint": "显示所选区域的绑定路线,可多选;相同路线只执行一次。",
+ "area_choose_first": "请先选择任务区域",
+ "area_routes_empty": "所选区域暂无可用路线,请在区域编辑中绑定当前场站的路线。",
+ "area_order_title": "调整执行顺序",
+ "area_order_hint": "按住右侧拖拽柄调整,机器人将按下方顺序执行。",
+ "area_order_empty": "选择路线后显示执行顺序",
+ "area_remove_route": "取消选择路线",
+ "area_success": "区域作业任务下发成功",
"area_label": "作业区域",
- "area_pick": "区域选择即将开放",
- "area_pending": "区域下发即将开放。当前可选择「路线下发」创建定时任务或进入自主作业中心。",
+ "area_pick": "请选择任务区域",
"immediate_pending": "立即下发即将开放。当前可选择「定时任务」创建作业计划。",
- "coming_soon": "即将开放",
"submit_now": "立即下发",
+ "submit_consecutive": "连续任务下发",
"subtitle": "选择设备与路线,设置循环规则,到点自动开始作业",
"name_label": "方案名称",
"name_hint": "例如:A区每日早晨修剪",
@@ -1892,7 +1969,32 @@
"record": {
"title": "作业记录",
- "page_subtitle": "按月归档每一次作业,点开可查看单次作业报告",
+ "page_subtitle": "查看当前场站设备的真实执行历史,点击记录查看详情",
+ "history_scope": "当前场站设备执行历史",
+ "device_history_scope": "本设备作业记录",
+ "device_page_subtitle": "查看这台设备的作业历史和执行详情",
+ "device_loaded_count": "本设备已加载 %s 条记录",
+ "loaded_count": "已加载 %s 条 · 总计 %s 条",
+ "filter_canceled": "已取消",
+ "retry": "重试",
+ "load_hint": "暂无可显示的数据,请选择场站或点击重试",
+ "task_id": "任务",
+ "device": "执行设备",
+ "status": "任务状态",
+ "unknown_status": "未知状态",
+ "created_at": "创建时间",
+ "started_at": "开始时间",
+ "finished_at": "结束时间",
+ "updated_at": "更新时间",
+ "route_id": "路线 ID",
+ "plan_id": "计划 ID",
+ "task_type": "任务类型",
+ "route_type": "路线类型",
+ "accepted": "设备已接收",
+ "remark": "备注",
+ "yes": "是",
+ "no": "否",
+ "details": "详情",
"filter_all": "全部",
"filter_done": "已完成",
"filter_aborted": "已中止",
@@ -1944,6 +2046,34 @@
"filter_all": "全部路线",
"kind_coverage": "覆盖路线",
"kind_return": "返航路线",
+ "return_manage": "返航设置",
+ "return_subtitle": "查看当前场站的返航点、绑定设备与障碍物",
+ "return_plan_title": "场站返航方案",
+ "return_plan_id": "方案 ID",
+ "return_points": "返航点",
+ "return_obstacles": "障碍物/禁行区",
+ "return_bound_devices": "绑定设备",
+ "return_plan_hint": "每个场站维护一套返航方案,可统一编辑返航点和障碍物。",
+ "return_empty": "当前场站暂无返航方案",
+ "return_empty_hint": "新建方案后,可在地图上配置返航点、绑定机器人并设置障碍物。",
+ "return_create": "新建返航方案",
+ "return_edit": "编辑返航方案",
+ "return_preview": "方案地图预览",
+ "return_expand": "放大地图",
+ "return_map_note": "绿色编号为返航点,红色为障碍物/禁行区;不代表实际行驶轨迹。",
+ "return_no_points": "尚未配置返航点",
+ "return_no_obstacles": "尚未配置障碍物",
+ "return_point_index": "返航点 %s",
+ "return_obstacle_index": "障碍物 %s",
+ "return_device": "绑定设备",
+ "return_unbound": "未绑定设备",
+ "return_coordinates": "经纬度(纬度,经度)",
+ "return_size": "尺寸(宽 × 高)",
+ "return_shape": "形状",
+ "return_shape_rect": "矩形",
+ "return_shape_circle": "圆形",
+ "return_source": "来源",
+ "return_platform": "平台",
"kind_edge": "沿边路线",
"kind_custom": "自定义路线",
"loading": "正在加载路线…",
@@ -2123,5 +2253,435 @@
"municipal": "市政河堤",
"airport": "机场场所"
}
+ },
+ "autonomous_work": {
+ "path_point_count": "{count} 个路径点",
+ "boundary_point_count": "{count} 个边界点",
+ "no_route": "未选择作业路线",
+ "position_single_no_heading": "单点(无航向)",
+ "position_diff_no_heading": "差分(无航向)",
+ "work_completed": "作业已完成",
+ "work_ended": "作业已结束",
+ "restore_failed": "任务恢复失败",
+ "route_kept": "作业执行中,已保留当前任务路线",
+ "route_selected": "已选择路线:{route}",
+ "route_no_geometry": "「{route}」没有可用的路径数据",
+ "pick_route_first": "请先在「路线库」选择作业路线",
+ "dispatch_offline": "设备离线,无法下发作业",
+ "start_title": "开始作业 · 二次确认",
+ "start_description": "路线:{route}{details}{warning}。确认后开始执行。",
+ "no_path_warning": "(无路径数据,可能下发失败)",
+ "check_power": "设备已上电、控制权符合要求",
+ "check_location": "定位有效,路线及电子围栏匹配",
+ "check_site": "作业区域安全,割刀与急停互锁有效",
+ "start_confirm": "确认开始作业",
+ "task_query_failed": "任务查询失败",
+ "other_route_active": "设备上已有其它路线的任务({route}),请先在「任务队列」处理",
+ "dispatch_failed": "作业下发失败",
+ "dispatched_route": "作业已下发:{route}",
+ "no_pausing_task": "当前没有可暂停的任务",
+ "pause_title": "暂停作业 · 确认",
+ "pause_description": "暂停后保留当前任务ID、路线及作业断点;机器人需要先完成安全停止。",
+ "check_pause_speed": "行驶速度降至安全状态",
+ "check_pause_blade": "割刀按任务安全暂停策略停转",
+ "check_pause_progress": "保存断点位置与已覆盖区域",
+ "pause_confirm": "确认暂停",
+ "pause_failed": "暂停失败",
+ "pause_sent": "已下发暂停指令",
+ "no_stopping_task": "当前没有可停止的任务",
+ "stop_title": "停止作业 · 二次确认",
+ "stop_description": "本次任务将被终止,不会自动续作。已完成区域、轨迹与停止时间会保存到作业记录。",
+ "check_stop_hardware": "先安全停止底盘与割刀",
+ "check_stop_record": "记录人工停止原因与实际完成区域",
+ "check_stop_final": "已终止任务不能用“继续”恢复",
+ "stop_confirm": "确认停止作业",
+ "stop_failed": "停止失败",
+ "work_stopped": "作业已停止",
+ "no_resuming_task": "没有可继续的任务",
+ "resume_title": "继续 / 断点续作 · 确认",
+ "resume_description": "继续原任务「{route}」,沿用原路线与已保存的覆盖区域。",
+ "check_resume_cause": "暂停或故障原因已消除",
+ "check_resume_task": "任务ID、地图、路线与断点匹配",
+ "check_resume_safety": "定位质量、控制权限、割刀与底盘状态合格",
+ "resume_confirm": "确认继续作业",
+ "resume_failed": "继续失败",
+ "resume_sent": "已下发继续指令",
+ "no_canceling_task": "没有待取消的任务",
+ "cancel_title": "取消待执行任务 · 确认",
+ "cancel_description": "取消只撤销尚未运行的任务,不会把运行中的任务当作取消处理。",
+ "check_cancel_queued": "确认目标任务尚未开始执行",
+ "check_cancel_route": "取消后路线仍保留在路线库",
+ "cancel_confirm": "确认取消任务",
+ "cancel_failed": "取消失败",
+ "task_canceled": "已取消待执行任务",
+ "multiple_active_tasks": "设备上存在多个活跃任务",
+ "task_number": "任务 #{id}",
+ "unknown_route": "未知路线",
+ "library_unavailable": "当前环境未启用路线库",
+ "online_edit_unavailable": "当前环境不支持在线编辑路线",
+ "pause_before_route_change": "作业执行中,请先暂停或停止后再更换路线",
+ "queue_unavailable": "当前环境未启用任务队列",
+ "return_demo": "返航指令通道未接入(设备端未开放),仅作界面演示",
+ "more": "更多功能",
+ "more_description": "以下为设备常用能力的快捷入口,点击后进入对应页面或面板。",
+ "manual_control": "手动遥控",
+ "manual_control_description": "进入遥控页(横屏)",
+ "find_description": "让机器人发出提示音并闪灯",
+ "light_sound_description": "灯光与提示音偏好",
+ "sensors_status": "传感器与运行状态",
+ "sensors_description": "查看传感器与实时状态详情",
+ "title": "自主作业中心",
+ "robot_model": "{name} · {type} · PLUS 智能版",
+ "status_details": "状态详情",
+ "route_change_requires_pause": "当前任务正在执行,修改路线前需要安全暂停",
+ "cannot_plot_route": "「{route}」无路径数据,地图上无法显示轨迹",
+ "device_status": "设备运行",
+ "stopped": "已停止",
+ "current_faults": "当前故障",
+ "no_fault_count": "0 项",
+ "view_sensors": "查看传感器与运行状态 ›",
+ "work_paused": "作业已暂停",
+ "waiting": "等待执行",
+ "work_interrupted": "作业异常中断",
+ "no_running_task": "暂无进行中",
+ "task_running": "当前任务 · 执行中",
+ "task_paused": "当前任务 · 已暂停",
+ "task_interrupted": "当前任务 · 异常中断",
+ "task_queued": "当前任务 · 待执行",
+ "task_not_started": "当前任务 · 未开始",
+ "task_ended": "当前任务 · 已结束",
+ "dispatched_at": "下发时间",
+ "settings": "作业设置",
+ "queue": "任务队列",
+ "run_ended": "本次作业已结束",
+ "run_in_progress": "任务执行中",
+ "pick_route_to_start": "尚未下发任务 · 选择路线后开始作业",
+ "progress": "已完成 {percent}%",
+ "covered_area": "已覆盖 {covered} / {total} 亩",
+ "dispatched_time": "下发 {time}",
+ "ready": "准备就绪",
+ "paused_with_checkpoint": "暂停 · 保留断点",
+ "interrupted": "异常中断",
+ "ended": "已结束",
+ "leave_setup": "放弃准备",
+ "preview_route": "预览 / 选择路线",
+ "cancel_queued": "取消待执行任务",
+ "view_queue": "查看任务队列",
+ "stop": "停止作业",
+ "view_status": "查看状态",
+ "robot_status_opened": "已展开「机器人信息」运行状态",
+ "resume": "继续 / 断点续作",
+ "view_records": "查看作业记录",
+ "new_task": "选择新任务",
+ "camera_front": "前置",
+ "camera_demo_switched": "已切换为「{camera}」视频(演示)",
+ "confirmation_demo_note": "这是视觉交互演示。实际确认结果必须等待机器人回执;超时不能直接显示成功。",
+ "pending_device_check": "待设备校验",
+ "records_unavailable": "当前环境尚未提供真实作业记录",
+ "records_title": "自主作业记录",
+ "records_description": "显示任务池中的结束任务及本机收到的完成通知;未提供的面积、耗时不作估算。",
+ "records_load_failed": "记录加载失败",
+ "records_empty": "该设备暂无可查询的作业记录",
+ "terminated": "已终止",
+ "record_task_id": "任务 ID:{id}",
+ "record_dispatched_at": "下发时间:{time}",
+ "record_completed_points": "已接收到达点:{count} 个",
+ "records_refresh": "刷新记录",
+ "back_to_map": "返回地图",
+ "route_library_title": "路线库 · 选择已有路线",
+ "route_library_description": "一个区域可保存多条路线。执行期间可预览,但更换执行路线前必须先安全停止原任务并重新确认。",
+ "route_create_edit": "+ 新建 / 编辑",
+ "route_confirm": "确认路线",
+ "route_required": "请先选择一条路线",
+ "route_number": "路线 #{id}",
+ "queue_task_canceled": "已取消任务 #{id}",
+ "queue_switch_failed": "切换任务失败",
+ "queue_task_switched": "已切换到任务 #{id}",
+ "queue_title": "多区域连续任务队列",
+ "queue_description": "尚未启动的任务可在此取消;正在执行的任务需要通过“停止作业”安全终止。",
+ "queue_refresh": "刷新队列",
+ "queue_empty": "该设备当前没有活跃任务",
+ "processing": "处理中…",
+ "schedule_title": "定时任务计划",
+ "schedule_description": "时间到达后需执行安全准入验证,不代表机器人可以无人监护地无条件启动。",
+ "demo_route": "A区 · 路线01",
+ "schedule_date": "执行日期",
+ "schedule_time": "时间",
+ "schedule_repeat": "重复规则",
+ "schedule_once": "仅一次",
+ "schedule_enabled": "启用计划",
+ "schedule_safety": "需满足安全策略与权限",
+ "schedule_save": "保存计划",
+ "schedule_demo": "计划下发通道未接入,仅作视觉演示",
+ "schedule_demo_options": "表单选项为演示数据",
+ "settings_coverage": "路线覆盖",
+ "settings_blades": "执行割刀",
+ "settings_obstacles": "避障安全",
+ "settings_resume": "断点恢复",
+ "settings_return": "返航策略",
+ "settings_network": "弱网策略",
+ "settings_title": "自主作业设置",
+ "settings_description": "本次任务可使用默认配置;任务执行中改变运动/割刀参数应先安全暂停并重新校验。",
+ "settings_save": "保存设置(演示)",
+ "settings_saved": "设置已保存为本地演示偏好,未向设备下发参数",
+ "coverage_title": "路径与覆盖规划参数",
+ "cut_width": "作业割幅",
+ "cut_width_detail": "依据机型割刀尺寸",
+ "route_overlap": "路线重叠率",
+ "route_overlap_detail": "仅影响新规划任务",
+ "planning_direction": "规划方向",
+ "planning_direction_detail": "沿光伏阵列方向优先",
+ "along_array": "沿阵列",
+ "edge_handling": "边缘处理",
+ "edge_handling_detail": "地块边界贴边作业策略",
+ "standard": "标准",
+ "blade_section": "作业执行与割刀",
+ "autonomous_speed": "自主作业速度",
+ "autonomous_speed_detail": "受最大安全速度限制",
+ "automatic_blade": "任务内割刀自动启停",
+ "automatic_blade_detail": "依据任务状态和必要的安全条件",
+ "chassis_height": "底盘高度策略",
+ "chassis_height_detail": "当前设备可用时开放",
+ "configured_per_task": "按任务配置",
+ "blade_safety_note": "割刀动作前必须核验安全互锁;没有可靠高度反馈的机器不展示虚假的刀盘状态。",
+ "obstacle_section": "避障与安全策略",
+ "obstacle_monitoring": "避障状态监测",
+ "obstacle_monitoring_detail": "查看前向感知和超声波状态",
+ "obstacle_response": "障碍触发的任务处理",
+ "obstacle_response_detail": "安全停车为优先策略",
+ "pause_wait": "暂停并等待",
+ "person_alert": "人员接近预警",
+ "person_alert_detail": "适用的警示机制保持启用",
+ "obstacle_safety_note": "不可通过此页面关闭不可绕过的碰撞保护、急停及必要的安全互锁。",
+ "resume_section": "断点与恢复",
+ "resume_checkpoint": "断点续作",
+ "resume_checkpoint_detail": "任务中断或暂停后保留断点位置与已覆盖区域",
+ "resume_checks": "恢复前校验",
+ "resume_checks_detail": "定位质量与路线版本必须匹配",
+ "strict_checks": "严格校验",
+ "resume_note": "断点恢复依赖可靠的定位与任务回执;校验不通过时应重新选择任务。",
+ "return_section": "返航与收尾",
+ "completion_action": "任务结束后动作",
+ "completion_action_detail": "任务完成后设备默认动作",
+ "standby_in_place": "原地待命",
+ "low_battery_threshold": "低电量返航阈值",
+ "low_battery_threshold_detail": "低于阈值触发返航提示",
+ "return_channel": "返航通道",
+ "return_channel_detail": "当前设备未开放自动返航指令位",
+ "notify_only": "仅提示",
+ "network_section": "弱网与重连",
+ "network_reconnect": "弱网重连",
+ "network_reconnect_detail": "信号波动时自动重建链路",
+ "command_timeout": "指令超时处理",
+ "command_timeout_detail": "超时后不重发危险指令",
+ "scheduled_safety": "定时任务准入",
+ "scheduled_safety_detail": "启用计划任务执行前的安全准入验证",
+ "network_safety_note": "弱网下不缓存危险指令;恢复后可先在界面重新确认再下发。",
+ "settings_demo": "参数下发通道未接入,本页仅作视觉演示",
+ "stage_setup": "准备",
+ "stage_pause": "暂停/中断",
+ "camera_left": "左视",
+ "camera_right": "右视",
+ "camera_rear": "后视"
+ },
+ "region_editor": {
+ "region_saving": "分区正在保存",
+ "region_readonly_saved": "分区已保存,请点「新建」绘制下一个分区",
+ "invalid_coordinates": "打点经纬度无效",
+ "too_many_points": "分区只需要 4 个打点,请撤回或删除后重打",
+ "point_already_marked": "该位置已打点,请移动到下一个位置",
+ "editing_scope_changed": "分区或场站已切换,请重新打开编辑",
+ "four_points_required": "分区范围需要恰好 4 个打点",
+ "invalid_boundary_points": "分区范围包含无效经纬度",
+ "duplicate_boundary_points": "分区的 4 个打点不能重复",
+ "invalid_region_id": "分区 ID 无效",
+ "invalid_region_site_id": "分区 ID 或场站 ID 无效",
+ "invalid_route": "请选择有效路线",
+ "invalid_region": "请选择有效分区",
+ "delete_retry": "分区未删除,请重试",
+ "save_retry": "分区未保存,请重试",
+ "region_delete_failed": "分区删除失败",
+ "region_save_failed": "分区保存失败",
+ "regions_invalid_response": "分区列表响应格式错误",
+ "regions_data_not_list": "分区列表 data 必须为数组",
+ "region_delete_invalid_response": "分区删除响应格式错误",
+ "region_save_invalid_response": "分区保存响应格式错误",
+ "mark_area": "圈地",
+ "position_single_short": "单点",
+ "position_diff_short": "差分",
+ "position_ins_short": "惯导",
+ "position_fixed_short": "固定解",
+ "position_float_short": "浮点解",
+ "position_fixed": "固定",
+ "position_float": "浮点",
+ "position_unknown": "定位未知",
+ "map_not_ready": "地图中心尚未就绪,请稍后重试",
+ "invalid_device_point": "设备坐标无效,无法添加打点!",
+ "work_point_added": "已添加第 {count} 个作业区域打点",
+ "add_work_points_first": "请先添加作业区域打点!",
+ "custom_route_generated": "已生成路线(自定义模式,{count} 个点)",
+ "route_needs_three_points": "作业区域至少需要3个打点才能生成路径!",
+ "coverage_route_generated": "已生成路线(覆盖模式,{count} 个点)",
+ "work_point_undone": "已撤回作业区域最后一个点,剩余 {count} 个点",
+ "obstacle_undone": "已撤回上一个禁行区矩形,剩余 {count} 个",
+ "no_obstacle_to_undo": "暂无可撤回的禁行区",
+ "no_point_to_delete": "暂无作业区域点可删除",
+ "no_obstacle_to_delete": "暂无可删除的禁行区",
+ "obstacles_cleared": "已清空所有禁行区",
+ "region_create_hint": "移动地图,用准星依次打 4 个边界点后保存分区",
+ "region_edit_hint": "已回填分区范围,可修改信息或重画边界",
+ "region_requires_scope": "请先选择场站并登录;场站或账号切换后需重新进入编辑器",
+ "obstacle_mode_hint": "障碍物模式:点「+」独立添加禁行区矩形(与分区互不影响)",
+ "invalid_region_point": "设备坐标无效,无法添加分区点",
+ "region_point_added": "已添加分区第 {count}/4 个点",
+ "region_already_saved": "该分区已保存,请点「新建」绘制下一个分区",
+ "region_saved": "分区「{name}」已保存",
+ "region_point_count": "分区 {count}/4 个点",
+ "redraw": "重画",
+ "saved": "已保存",
+ "edit": "修改",
+ "work_point_deleted": "已删除第 {index} 个点,剩余 {count} 个",
+ "obstacle_deleted": "已删除第 {index} 个禁行区矩形,剩余 {count} 个",
+ "coverage_mode_hint": "覆盖模式:沿边界打点,生成时首尾闭合",
+ "custom_mode_hint": "自定义模式:按打点顺序生成路线",
+ "select_site_first": "请先在场站列表中选择一个场站!",
+ "records_load_failed": "作业记录加载失败",
+ "geometry_load_failed": "路线几何加载失败",
+ "route_loaded": "已载入「{name}」,可继续编辑并另存",
+ "centered_on_device": "已回到设备当前位置",
+ "editor_reset": "已重置页面状态",
+ "return_mark_hint": "打点方式:{mode} · 点「+」添加返航点",
+ "crosshair": "准星",
+ "device": "设备",
+ "return_point_summary": "共 {points} 点 · 已绑定设备 {devices} 台{saved}",
+ "saved_suffix": " · 已保存",
+ "return_load_failed": "返航方案加载失败",
+ "return_new_hint": "新建返航方案:点绿色「+」添加返航点",
+ "return_edit_hint": "已载入返航方案,修改后点「修改」保存",
+ "return_mode_exited": "已退出返航打点模式",
+ "invalid_return_point": "设备坐标无效,无法添加返航点!",
+ "return_point_added": "已添加第 {count} 个返航点",
+ "invalid_obstacle_point": "设备坐标无效,无法添加障碍!",
+ "return_obstacle_deleted": "已删除第 {index} 个返航禁行区,剩余 {count} 个",
+ "no_return_obstacle_to_undo": "暂无可撤回的返航禁行区",
+ "return_obstacle_undone": "已撤回上一个返航禁行区,剩余 {count} 个",
+ "return_point_canceled": "已取消该返航点,剩余 {count} 个",
+ "no_return_point_to_undo": "暂无可撤回的返航点",
+ "return_point_undone": "已撤回最后一个返航点,剩余 {count} 个",
+ "return_point_name": "返航点-{index}",
+ "rename_return_point": "命名返航点 {index}",
+ "rename_return_point_hint": "给这个返航点起个名字(留空用默认编号)",
+ "name": "名字",
+ "name_too_long": "名字不能超过 20 个字符",
+ "rename_obstacle": "命名障碍 {index}",
+ "rename_obstacle_hint": "给这个障碍起个名字(留空用尺寸)",
+ "add_return_points_first": "请先在地图上添加返航点",
+ "select_site": "请先选择一个场站!",
+ "site_changed": "场站已切换,请重新进入编辑器后保存",
+ "obstacle_point_name": "障碍物点-{index}",
+ "return_save_failed": "返航方案保存失败",
+ "return_saved": "返航方案已保存:{points} 个返航点{obstacles}",
+ "obstacles_suffix": " · {count} 个障碍",
+ "return_execute_unavailable": "返航执行接口尚未接入,返航点已保留",
+ "work_area_needs_three_points": "作业区域至少需要 3 个打点!",
+ "save_area": "保存区域",
+ "area_name_hint": "请输入区域名称(最多 20 字)",
+ "area_name": "区域名称",
+ "area_name_required": "区域名称不能为空",
+ "area_name_too_long": "区域名称不能超过 20 个字符",
+ "saved_without_screenshot": "「{name}」已保存,但地图截图生成失败",
+ "area_saved": "「{name}」已保存",
+ "area_summary": "作业区 {points} 点 · 禁行区 {obstacles} 处 · {mode}模式",
+ "coverage": "覆盖",
+ "custom": "自定义",
+ "region_number": "分区 #{id}",
+ "title": "地图与区域编辑",
+ "network_online": "4G在线",
+ "battery_unknown": "电量未知",
+ "portrait": "竖屏",
+ "brightness_demo": "地图亮度调节暂未开发(演示)",
+ "region": "分区",
+ "obstacle": "障碍物",
+ "return_points_title": "一键返航 · 返航点",
+ "new_area_at_site": "当前场站 · 新建区域",
+ "new_area_steps": "点「圈地」选择作业模式 → 打点 → 完成 → 保存区域",
+ "region_four_point_title": "分区 · 四点范围",
+ "mark_four_points": "依次打 4 个边界点",
+ "obstacle_mode": "障碍物 · 禁行区矩形",
+ "resize_rectangle_hint": "点「+」放置矩形,拖动边或角调尺寸",
+ "return_obstacles_title": "一键返航 · 障碍点",
+ "return_order": "按打点顺序返航",
+ "mark_with_crosshair": "准星打点",
+ "mark_with_device": "设备打点",
+ "crosshair_return_hint": "准星打点:地图中心即返航点",
+ "device_mark_hint": "设备打点:取设备实时坐标",
+ "crosshair_mark_hint": "准星打点:地图中心即打点位置",
+ "default_device": "默认设备",
+ "obstacle_point": "障碍点",
+ "choose_device": "选择设备",
+ "devices_empty": "暂无可用设备",
+ "select_rectangle": "在地图上选中矩形",
+ "return_obstacle_empty_hint": "对准障碍位置点绿色「+」在返航线上落一个矩形(点名字可改名)",
+ "obstacle_empty_hint": "对准障碍物位置点绿色「+」落一个矩形",
+ "region_points_empty": "尚未加分区点:点绿色「+」依次打 4 个边界点",
+ "return_points_empty": "尚未添加返航点:点绿色「+」在当前准星/设备位置打点",
+ "return_obstacle_summary": "障碍点 {count} 个{note}",
+ "independent_suffix": " · 与分区/障碍互不影响",
+ "saving": "保存中",
+ "execute": "执行",
+ "row_spacing": "作业行距",
+ "use_optimal_heading": "使用最优航向",
+ "return_counts": "{points} 个返航点 · {obstacles} 个障碍",
+ "return_plan": "返航方案",
+ "records_empty": "当前场站暂无作业记录",
+ "unnamed_work": "未命名作业",
+ "no_video": "未获取到视频流",
+ "rectangle_dimensions": "矩形尺寸",
+ "rectangle_width": "宽 X(米)",
+ "rectangle_height": "高 Y(米)",
+ "rectangle_preview": "名字:{width}m×{height}m",
+ "rectangle_positive_dimensions": "请输入大于 0 的宽高",
+ "no_device_crosshair_hint": "未选择设备,请使用「准星打点」:移动地图,将准星对准目标位置后点「+」。",
+ "dismiss_tip": "关闭提示",
+ "scope_changed_reopen": "场站或账号已切换,请重新进入编辑器后保存",
+ "bind_routes": "绑定路线",
+ "no_routes_to_bind": "当前场站暂无可绑定路线",
+ "new_region": "新建分区",
+ "edit_region": "编辑分区",
+ "region_name_field": "分区名称 *",
+ "region_name_required": "请填写分区名称",
+ "region_code": "分区编码",
+ "route_load_failed": "路线加载失败",
+ "reload_routes": "重新加载路线",
+ "default_route": "默认路线",
+ "routes_loading": "路线加载中",
+ "pick_default_route": "请选择默认路线(可选)",
+ "pick_linked_routes": "请选择绑定路线(可多选)",
+ "boundary_count": "当前区域范围点数:{count}/4",
+ "save_confirm": "确认保存",
+ "delete_region": "删除分区",
+ "delete_region_message": "确定删除「{region}」?删除后无法恢复。",
+ "scope_changed_select_region": "场站或账号已切换,请重新选择分区",
+ "region_deleted": "分区已删除",
+ "regions_count": "分区列表({count})",
+ "regions": "分区列表",
+ "add_region": "新增",
+ "refresh_regions": "刷新分区",
+ "close_regions": "关闭列表",
+ "sign_in_first": "请先登录",
+ "select_site_for_regions": "请选择场站后查看分区",
+ "regions_load_failed": "分区加载失败",
+ "reload_regions": "重新加载分区",
+ "regions_empty": "当前场站暂无分区,可点击「新增」",
+ "enabled": "启用",
+ "disabled": "停用",
+ "code_value": "编码:{code}",
+ "region_summary": "{points} 个范围点 · {routes} 条绑定路线",
+ "redraw_required": "范围需重新打点",
+ "route_type_title": "选择规划类型",
+ "route_type_mowing": "割草任务",
+ "route_type_inspection": "巡检任务",
+ "route_type_predefined": "预定义模式",
+ "route_type_other": "其他类型"
}
}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
index dc9ada47..db1da6da 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
index 7353c41e..15de6704 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
index 797d452e..989c8115 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
index 6ed2d933..7fdca99c 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
index 4cd7b009..fc35f0d4 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
index fe730945..ada70882 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
index 321773cd..d948e411 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
index 797d452e..989c8115 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
index 502f463a..20b87aeb 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
index 0ec30343..2f8eac9c 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
index 0ec30343..2f8eac9c 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
index e9f5fea2..3ab68f03 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
index 84ac32ae..9e73d780 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
index 8953cba0..cc6f715a 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
index 0467bf12..a3e0afc0 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index 14303516..23463170 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -7,7 +7,7 @@
CFBundleDevelopmentRegion
$(DEVELOPMENT_LANGUAGE)
CFBundleDisplayName
- Maibu Satabot V2
+ 飒沓·星枢
CFBundleExecutable
$(EXECUTABLE_NAME)
CFBundleIdentifier
@@ -15,7 +15,7 @@
CFBundleInfoDictionaryVersion
6.0
CFBundleName
- maibu_satabot_v2
+ 飒沓·星枢
CFBundlePackageType
APPL
CFBundleShortVersionString
diff --git a/lib/components/language_selection_dialog.dart b/lib/components/language_selection_dialog.dart
index a171e439..87a6e6be 100644
--- a/lib/components/language_selection_dialog.dart
+++ b/lib/components/language_selection_dialog.dart
@@ -1,6 +1,9 @@
+import 'dart:async';
+
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
+import 'package:maibu_satabot_v2/core/localization/app_localizations.dart';
import 'package:maibu_satabot_v2/core/localization/locale_cubit.dart';
/// 可选语言项:tag 对应 assets/languages/{tag}.json,nativeName 用该语言本地写法展示。
@@ -22,8 +25,8 @@ class AppLanguages {
static final AppLanguages instance = AppLanguages._();
final List items = const [
- LanguageItem(Locale('zh', 'CN'), '简体中文'),
- LanguageItem(Locale('en', 'US'), 'English'),
+ LanguageItem(AppLocalizations.chinese, '简体中文'),
+ LanguageItem(AppLocalizations.english, 'English'),
];
String nameOf(Locale locale) {
@@ -44,56 +47,154 @@ class LanguageSelectionDialog extends StatelessWidget {
final bool mandatory;
const LanguageSelectionDialog({super.key, this.mandatory = true});
- Future _onSelect(BuildContext context, Locale locale) async {
- await context.read().setLocale(locale);
- if (context.mounted) Navigator.of(context).pop();
+ void _onSelect(BuildContext context, Locale locale) {
+ if (ModalRoute.of(context)?.isCurrent != true) return;
+ unawaited(context.read().setLocale(locale));
+ Navigator.of(context).pop();
}
- /// “继续”:不改变当前(默认)语言,仅确认已选并关闭,后续启动不再弹。
- Future _onContinue(BuildContext context, Locale current) async {
- await context.read().setLocale(current);
- if (context.mounted) Navigator.of(context).pop();
- }
+ static const _navy = Color(0xFF1A2B4A);
+ static const _blue = Color(0xFF1C96F6);
+ static const _gray = Color(0xFF63758A);
+ static const _border = Color(0xFFE5EDF7);
+ static const _softBlue = Color(0xFFEAF3FE);
@override
Widget build(BuildContext context) {
- final current = context.select(
- (c) => c.state,
+ final current = context.select((c) => c.state);
+ final isChinese = current.languageCode == 'zh';
+ final buttonShape = RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(12),
);
return PopScope(
- // 强制弹窗时拦截返回键,必须选一个才能继续使用
canPop: !mandatory,
- child: AlertDialog(
- title: const Text('选择语言 / Select Language'),
- content: SizedBox(
- width: 300,
+ child: Dialog(
+ backgroundColor: Colors.white,
+ surfaceTintColor: Colors.transparent,
+ insetPadding: const EdgeInsets.symmetric(horizontal: 24, vertical: 20),
+ constraints: const BoxConstraints(maxWidth: 360),
+ shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(24)),
+ child: SingleChildScrollView(
+ padding: const EdgeInsets.all(20),
child: Column(
mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
- for (final item in AppLanguages.instance.items)
- RadioListTile(
- value: item.tag,
- // 高亮当前语言:按 languageCode 匹配,兼容国家码为空的历史值
- groupValue: current.countryCode == null ||
- current.countryCode!.isEmpty
- ? current.languageCode
- : '${current.languageCode}-${current.countryCode}',
- title: Text(item.nativeName),
- onChanged: (_) => _onSelect(context, item.locale),
+ Row(
+ children: [
+ Container(
+ width: 44,
+ height: 44,
+ decoration: BoxDecoration(
+ color: _softBlue,
+ borderRadius: BorderRadius.circular(12),
+ ),
+ child: const Icon(Icons.language_rounded, color: _blue),
+ ),
+ const SizedBox(width: 12),
+ Expanded(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
+ isChinese ? '选择语言' : 'Select language',
+ style: const TextStyle(
+ color: _navy,
+ fontSize: 18,
+ fontWeight: FontWeight.w800,
+ ),
+ ),
+ const SizedBox(height: 2),
+ Text(
+ isChinese ? 'Select language' : '选择语言',
+ style: const TextStyle(color: _gray, fontSize: 12),
+ ),
+ ],
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(height: 18),
+ for (final item in AppLanguages.instance.items) ...[
+ _languageOption(context, item, selected: item.locale == current),
+ const SizedBox(height: 8),
+ ],
+ const SizedBox(height: 8),
+ if (mandatory)
+ FilledButton(
+ style: FilledButton.styleFrom(
+ backgroundColor: const Color(0xFF0B6DCC),
+ foregroundColor: Colors.white,
+ minimumSize: const Size.fromHeight(44),
+ shape: buttonShape,
+ ),
+ onPressed: () => _onSelect(context, current),
+ child: Text(isChinese ? '继续 / Continue' : 'Continue / 继续'),
+ )
+ else
+ OutlinedButton(
+ style: OutlinedButton.styleFrom(
+ foregroundColor: _navy,
+ side: const BorderSide(color: _border),
+ minimumSize: const Size.fromHeight(44),
+ shape: buttonShape,
+ ),
+ onPressed: () => Navigator.of(context).pop(),
+ child: Text(
+ AppLocalizations.of(context).translate('common.cancel'),
+ ),
),
],
),
),
- actions: [
- // 强制弹窗:提供“继续”出口,保持当前默认语言并确认后关闭;非强制:取消
- TextButton(
- onPressed: () => mandatory
- ? _onContinue(context, current)
- : Navigator.of(context).pop(),
- child: Text(mandatory ? '继续 / Continue' : '取消'),
+ ),
+ );
+ }
+
+ Widget _languageOption(
+ BuildContext context,
+ LanguageItem item, {
+ required bool selected,
+ }) {
+ return Semantics(
+ selected: selected,
+ button: true,
+ child: Material(
+ color: selected ? _softBlue : const Color(0xFFF6FAFE),
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(12),
+ side: BorderSide(color: selected ? _blue : _border),
+ ),
+ clipBehavior: Clip.antiAlias,
+ child: InkWell(
+ onTap: () => _onSelect(context, item.locale),
+ child: Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 14),
+ child: Row(
+ children: [
+ Expanded(
+ child: Text(
+ item.nativeName,
+ style: const TextStyle(
+ color: _navy,
+ fontSize: 15,
+ fontWeight: FontWeight.w600,
+ ),
+ ),
+ ),
+ const SizedBox(width: 10),
+ Icon(
+ selected
+ ? Icons.check_circle_rounded
+ : Icons.radio_button_unchecked_rounded,
+ size: 20,
+ color: selected ? _blue : const Color(0xFFABBBCD),
+ ),
+ ],
+ ),
),
- ],
+ ),
),
);
}
diff --git a/lib/components/route_type_picker.dart b/lib/components/route_type_picker.dart
index ae0669da..bc3e433e 100644
--- a/lib/components/route_type_picker.dart
+++ b/lib/components/route_type_picker.dart
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
+import 'package:maibu_satabot_v2/core/localization/app_localizations.dart';
import 'package:maibu_satabot_v2/features/home/presentation/widgets/common/enum.dart';
@@ -13,7 +14,7 @@ import 'package:maibu_satabot_v2/features/home/presentation/widgets/common/enum.
/// [initial]:默认选中项,默认「割草任务」。
Future showRouteTypePicker(
BuildContext context, {
- String title = '选择规划类型',
+ String? title,
RouteType? initial,
double? maxWidth,
EdgeInsets? insetPadding,
@@ -21,7 +22,7 @@ Future showRouteTypePicker(
return showDialog(
context: context,
builder: (dialogContext) => _RouteTypeDialog(
- title: title,
+ title: title ?? AppLocalizations.of(dialogContext).translate('region_editor.route_type_title'),
initial: initial ?? RouteType.mowingTask,
maxWidth: maxWidth,
insetPadding: insetPadding,
@@ -47,6 +48,8 @@ class _RouteTypeDialog extends StatefulWidget {
}
class _RouteTypeDialogState extends State<_RouteTypeDialog> {
+ AppLocalizations get _l10n => AppLocalizations.of(context);
+
late RouteType _picked = widget.initial;
@override
@@ -77,12 +80,12 @@ class _RouteTypeDialogState extends State<_RouteTypeDialog> {
actions: [
TextButton(
onPressed: () => Navigator.of(context).pop(),
- child: const Text('取消'),
+ child: Text(_l10n.translate('common.cancel')),
),
TextButton(
onPressed: () => Navigator.of(context).pop(_picked),
child: Text(
- '确定',
+ _l10n.translate('common.ok'),
style: TextStyle(
color: accent,
fontWeight: FontWeight.w600,
@@ -117,7 +120,12 @@ class _RouteTypeDialogState extends State<_RouteTypeDialog> {
const SizedBox(width: 10),
Expanded(
child: Text(
- type.label,
+ _l10n.translate(switch (type) {
+ RouteType.mowingTask => 'region_editor.route_type_mowing',
+ RouteType.inspectionTask => 'region_editor.route_type_inspection',
+ RouteType.predefinedPath => 'region_editor.route_type_predefined',
+ RouteType.other => 'region_editor.route_type_other',
+ }),
style: TextStyle(
fontSize: 15,
color: selected ? accent : null,
diff --git a/lib/core/consts/http_api_consts.dart b/lib/core/consts/http_api_consts.dart
index 1c454354..920971ac 100644
--- a/lib/core/consts/http_api_consts.dart
+++ b/lib/core/consts/http_api_consts.dart
@@ -2,6 +2,12 @@ import '../env/env_config.dart';
class HttpApiConsts {
static String get baseUrl => EnvConfig.baseUrl;
+ static String get siteDevicePlans => '$baseUrl/iot/deviceTask/getSiteDevicePlan';
+ static String get deleteDevicePlan => '$baseUrl/iot/deviceTask/delete';
+ static String get siteDeviceTaskHistory =>
+ '$baseUrl/iot/deviceTask/getSiteDeviceTaskHistory';
+ static String get createConsecutiveTask =>
+ '$baseUrl/iot/deviceTask/createConsecutiveTask';
static String get saveRegion => '$baseUrl/system/region/save';
static String get regionsBySite => '$baseUrl/system/region/selectBySiteId';
static String get deleteRegions => '$baseUrl/system/region/delete';
diff --git a/lib/core/di/injection.dart b/lib/core/di/injection.dart
index 23d3d8a0..57551fdd 100644
--- a/lib/core/di/injection.dart
+++ b/lib/core/di/injection.dart
@@ -1,3 +1,20 @@
+import '../../features/autonomous_work/domain/usecases/load_site_return_plan_usecase.dart';
+import '../../features/v2/work/presentation/cubit/return_plan_library_cubit.dart';
+import '../../features/site_task_plans/data/datasources/site_task_plan_remote_datasource.dart';
+import '../../features/site_task_plans/data/repositories/site_task_plan_repository_impl.dart';
+import '../../features/site_task_plans/domain/repositories/site_task_plan_repository.dart';
+import '../../features/site_task_plans/domain/usecases/site_task_plan_usecases.dart';
+import '../../features/site_task_plans/presentation/cubit/site_task_plans_cubit.dart';
+import '../../features/work_history/data/datasources/work_history_remote_datasource.dart';
+import '../../features/work_history/data/repositories/work_history_repository_impl.dart';
+import '../../features/work_history/domain/repositories/work_history_repository.dart';
+import '../../features/work_history/domain/usecases/load_site_work_history_usecase.dart';
+import '../../features/work_history/presentation/cubit/work_history_cubit.dart';
+import '../../features/consecutive_tasks/data/datasources/consecutive_task_remote_datasource.dart';
+import '../../features/consecutive_tasks/data/repositories/consecutive_task_repository_impl.dart';
+import '../../features/consecutive_tasks/domain/repositories/consecutive_task_repository.dart';
+import '../../features/consecutive_tasks/domain/usecases/create_consecutive_task_usecase.dart';
+import '../../features/consecutive_tasks/presentation/cubit/area_task_create_cubit.dart';
import 'package:dio/dio.dart';
import 'adapters/device_control_mode_realtime_adapter.dart';
import '../../features/device_control_mode/data/datasources/control_mode_remote_datasource.dart';
@@ -508,7 +525,7 @@ Future init() async {
);
// 🔥 语言管理 Cubit (单例)
- sl.registerLazySingleton(() => LocaleCubit());
+ sl.registerLazySingleton(() => LocaleCubit(sl()));
// 🔥 主题管理 Cubit (单例,管理亮/暗/跟随系统)
sl.registerLazySingleton(() => ThemeCubit());
@@ -640,6 +657,24 @@ Future init() async {
);
sl.registerLazySingleton(() => GetDeviceTaskPoolUseCase(sl()));
sl.registerFactory(() => WorkHomeTaskCubit(sl()));
+ sl.registerLazySingleton(
+ () => SiteTaskPlanRemoteDatasource(sl(), sl()),
+ );
+ sl.registerLazySingleton(
+ () => SiteTaskPlanRepositoryImpl(sl()),
+ );
+ sl.registerLazySingleton(
+ () => LoadSiteTaskPlansUseCase(sl()),
+ );
+ sl.registerLazySingleton(
+ () => DeleteSiteTaskPlanUseCase(sl()),
+ );
+ sl.registerFactory(
+ () => SiteTaskPlansCubit(
+ sl(),
+ sl(),
+ ),
+ );
sl.registerLazySingleton(() => CancelTaskUseCase(sl()));
sl.registerLazySingleton(() => PauseTaskUseCase(sl()));
sl.registerLazySingleton(() => RecoveryTaskUseCase(sl()));
@@ -688,7 +723,39 @@ Future init() async {
() => LoadRegionRoutesUseCase(sl()),
);
sl.registerLazySingleton(() => LoadRegionsUseCase(sl()));
+ sl.registerLazySingleton(
+ () => LoadSiteReturnPlanUseCase(sl()),
+ );
+ sl.registerFactory(
+ () => ReturnPlanLibraryCubit(sl()),
+ );
sl.registerLazySingleton(() => DeleteRegionsUseCase(sl()));
+ sl.registerLazySingleton(
+ () => WorkHistoryRemoteDatasource(sl(), sl()),
+ );
+ sl.registerLazySingleton(
+ () => WorkHistoryRepositoryImpl(sl()),
+ );
+ sl.registerLazySingleton(
+ () => LoadSiteWorkHistoryUseCase(sl()),
+ );
+ sl.registerFactory(() => WorkHistoryCubit(sl()));
+ sl.registerLazySingleton(
+ () => ConsecutiveTaskRemoteDatasource(sl(), sl()),
+ );
+ sl.registerLazySingleton(
+ () => ConsecutiveTaskRepositoryImpl(sl()),
+ );
+ sl.registerLazySingleton(
+ () => CreateConsecutiveTaskUseCase(sl()),
+ );
+ sl.registerFactory(
+ () => AreaTaskCreateCubit(
+ sl(),
+ sl(),
+ sl(),
+ ),
+ );
sl.registerFactory(
() => RegionListCubit(sl(), sl()),
);
diff --git a/lib/core/domain/entities/user_entity.dart b/lib/core/domain/entities/user_entity.dart
index 9a4cc452..b7ee0cfe 100644
--- a/lib/core/domain/entities/user_entity.dart
+++ b/lib/core/domain/entities/user_entity.dart
@@ -1,6 +1,8 @@
import 'package:equatable/equatable.dart';
class UserEntity extends Equatable {
+ static const adminRoleKey = 'admin';
+
final String userId;
final String username;
final String nickname;
@@ -25,6 +27,8 @@ class UserEntity extends Equatable {
this.siteId,
});
+ bool get isAdmin => roleKey == adminRoleKey;
+
@override
List