feat: 添加 WebUI 静态资源包提示和相关错误处理逻辑
This commit is contained in:
@@ -80,6 +80,7 @@
|
||||
"startup.webui_auto_build_tool_missing": "❌ 사용 가능한 프론트엔드 빌드 도구를 찾을 수 없어 WebUI를 자동으로 빌드할 수 없습니다",
|
||||
"startup.webui_cors_configured": "✅ CORS 미들웨어 설정 완료",
|
||||
"startup.webui_dashboard_source_missing": "❌ WebUI 프론트엔드 소스 디렉터리를 찾을 수 없습니다: {dashboard_root}",
|
||||
"startup.webui_dashboard_package_hint": "💡 미리 빌드된 WebUI 정적 리소스 패키지를 먼저 설치하세요. 예: {command}",
|
||||
"startup.webui_disabled": "WebUI가 비활성화되었습니다",
|
||||
"startup.webui_index_missing": "❌ index.html을 찾을 수 없습니다: {index_path}",
|
||||
"startup.webui_manual_build_hint": "💡 자동 복구로 프론트엔드 리소스를 수정하지 못했습니다. dashboard 디렉터리에서 의존성을 설치하고 수동으로 빌드하세요: {command}",
|
||||
@@ -87,6 +88,7 @@
|
||||
"startup.webui_robots_route_register_failed": "❌ robots.txt 라우트 등록 실패: {error}",
|
||||
"startup.webui_robots_route_registered": "✅ robots.txt 라우트 등록 완료",
|
||||
"startup.webui_server_init_failed": "WebUI 서버 초기화 실패: {error}",
|
||||
"startup.webui_static_assets_unavailable": "❌ 사용할 수 있는 WebUI 정적 리소스를 찾을 수 없습니다(설치된 maibot-dashboard 패키지 또는 로컬 dashboard/dist)",
|
||||
"startup.webui_static_assets_try_auto_build": "⚠️ WebUI 정적 리소스를 사용할 수 없어 프론트엔드 자동 빌드를 시도합니다...",
|
||||
"startup.webui_static_dir_missing": "❌ WebUI 정적 파일 디렉터리가 존재하지 않습니다",
|
||||
"startup.webui_static_dir_missing_with_path": "❌ WebUI 정적 파일 디렉터리가 존재하지 않습니다: {static_path}",
|
||||
|
||||
Reference in New Issue
Block a user