feat: 添加 WebUI 静态资源包提示和相关错误处理逻辑
This commit is contained in:
@@ -80,6 +80,7 @@
|
||||
"startup.webui_auto_build_tool_missing": "❌ No supported frontend build tool was found, cannot auto-build WebUI",
|
||||
"startup.webui_cors_configured": "✅ CORS middleware configured",
|
||||
"startup.webui_dashboard_source_missing": "❌ WebUI frontend source directory not found: {dashboard_root}",
|
||||
"startup.webui_dashboard_package_hint": "💡 Install the prebuilt WebUI static asset package first, for example: {command}",
|
||||
"startup.webui_disabled": "WebUI is disabled",
|
||||
"startup.webui_index_missing": "❌ index.html not found: {index_path}",
|
||||
"startup.webui_manual_build_hint": "💡 Automatic recovery could not restore the frontend assets. Install dependencies and build manually in the dashboard directory: {command}",
|
||||
@@ -87,6 +88,7 @@
|
||||
"startup.webui_robots_route_register_failed": "❌ Failed to register robots.txt route: {error}",
|
||||
"startup.webui_robots_route_registered": "✅ robots.txt route registered",
|
||||
"startup.webui_server_init_failed": "Failed to initialize WebUI server: {error}",
|
||||
"startup.webui_static_assets_unavailable": "❌ No usable WebUI static assets were found (installed maibot-dashboard package or local dashboard/dist)",
|
||||
"startup.webui_static_assets_try_auto_build": "⚠️ WebUI static assets are unavailable, attempting to auto-build the frontend...",
|
||||
"startup.webui_static_dir_missing": "❌ WebUI static directory does not exist",
|
||||
"startup.webui_static_dir_missing_with_path": "❌ WebUI static directory does not exist: {static_path}",
|
||||
|
||||
@@ -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}",
|
||||
|
||||
@@ -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}",
|
||||
|
||||
@@ -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