Files
X-Financial/document/work-log/2026-05-06.md
DESKTOP-72TV0V4\caoxiaozhu ae63766c91 Add vue-router, login/setup flow and backend logging
Refactor frontend to route-based navigation with vue-router, add
system setup and login pages with API integration. Add structured
logging, access-log middleware and startup lifecycle to FastAPI
backend.
2026-05-06 22:23:42 +08:00

2.1 KiB
Raw Blame History

Work Log - 2026-05-06

Git Commits Today

无今日提交上次提交83d7da3

Uncommitted Changes

Modified Files (17 files, +1339/-397 lines)

File Lines Description
web/vite.config.js +693 添加 Vite 配置
web/start.sh +176 修复 Windows/Git Bash 启动
web/package-lock.json +187 更新依赖
web/src/App.vue -196 重构布局
web/composables/useNavigation.js +89 更新导航
web/composables/useAppShell.js +87 重构 App Shell
web/src/views/scripts/RequestsView.js +85 更新请求视图逻辑
.gitignore +4 更新忽略规则
README.md +25 更新文档
server/src/app/core/config.py +8 更新配置

New Files (14 files)

File Description
document/work-log/ 工作日志目录
server/src/app/core/logging.py 日志模块
server/src/app/middleware/ 中间件目录
web/src/assets/styles/views/setup-view.css 安装页面样式
web/src/composables/useSetupView.js 安装视图逻辑
web/src/composables/useSystemState.js 系统状态管理
web/src/router/ 路由目录
web/src/services/ 服务目录
web/src/utils/ 工具目录
web/src/views/SetupView.vue 安装页面
web/src/views/AppShellRouteView.vue App Shell 路由
web/src/views/LoginRouteView.vue 登录路由
.env, .env.example 环境变量文件

Summary

  1. 修复 server/start.sh

    • 问题Windows Git Bash 上无法运行,报错 "No module named pip"
    • 原因:.venv 指向不存在的 /usr/bin/python3
    • 解决:添加 venv_valid() 函数检测并重建虚拟环境
  2. 创建 work-log 技能

    • 自动读取 git 提交记录
    • 存储在 document/work-log/ 目录
    • 格式:YYYY-MM-DD.md
  3. 前端重构

    • 重构 App.vue 布局
    • 添加 SetupView 安装页面
    • 添加路由和服务模块

Notes

  • 需要安装 PostgreSQL 并创建 x_financial 数据库
  • 大量前端改动未提交

Tasks

  • 安装 PostgreSQL
  • 创建数据库 x_financial
  • 提交前端改动

Created with work-log skill