Initial commit: 知识库管理器应用

- 实现基于 PySide6 的 GUI 界面
- 集成 FastAPI 知识库服务器 API
- 支持查看、编辑、提交 Markdown 文件
- 包含完整的 pytest-qt 测试套件
- 添加功能列表文档
This commit is contained in:
2026-01-30 12:03:12 +08:00
commit 0ab3d4f9c1
10 changed files with 695 additions and 0 deletions

43
run.bat Normal file
View File

@@ -0,0 +1,43 @@
@echo off
chcp 65001 > nul
echo ================================================
echo 知识库管理器 - 启动脚本
echo ================================================
echo.
REM 检查 Python 是否安装
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo [错误] 未找到 Python请先安装 Python 3.8 或更高版本
pause
exit /b 1
)
echo [1/3] 检查依赖...
pip show PySide6 >nul 2>&1
if %errorlevel% neq 0 (
echo [提示] 未安装依赖,正在安装...
pip install -r requirements.txt
if %errorlevel% neq 0 (
echo [错误] 依赖安装失败
pause
exit /b 1
)
) else (
echo [成功] 依赖已安装
)
echo.
echo [2/3] 启动应用程序...
python main_window.py
if %errorlevel% neq 0 (
echo.
echo [错误] 应用程序启动失败
pause
exit /b 1
)
echo.
echo [成功] 应用程序已关闭
pause