Commit Graph

76 Commits

Author SHA1 Message Date
dmy
f08c513bbe feat: 添加环境变量配置并优化部署路径
添加开发和生产环境变量文件
更新前端构建命令以使用不同模式
优化部署脚本中的前端部署路径
在认证守卫中添加日志记录
2026-01-18 15:44:37 +08:00
dmy
b6a6398864 feat: 添加用户认证系统
引入基于 Basic Auth 的用户认证系统,包括用户管理、登录界面和 API 鉴权
- 新增用户实体和管理功能
- 实现前端登录界面和凭证管理
- 重构 API 鉴权为 Basic Auth 模式
- 添加用户管理脚本工具
2026-01-18 12:47:16 +08:00
dmy
a55dfd78d2 feat: 更新部署配置和API类型定义
将部署配置更改为生产环境服务器设置
将AxiosRequestConfig替换为InternalAxiosRequestConfig
2026-01-18 11:17:12 +08:00
dmy
810a420a46 feat(date): enhance date formatting and timezone handling
- Update formatDateTime function to handle timezone-aware date strings directly.
- Introduce utcToBeijingISOString function for consistent Beijing time formatting in ISO string.
- Modify BidsService to utilize the new utcToBeijingISOString for date conversions.
- Add unit tests for AuthGuard to validate API key authentication and access control.
- Create end-to-end tests for API key handling in various scenarios.
- Update .gitignore to exclude 'qingyun' directory.
- Add environment configuration for production settings in .env.production.
- Include Tailwind CSS setup in the uni-app version for styling.
2026-01-16 23:31:58 +08:00
dmy
300e930c64 feat(auth): implement API key authentication and enhance request handling
- Add AuthGuard to validate API key for public access.
- Create AuthModule to provide the AuthGuard globally.
- Update API request interceptor to automatically include API key for non-localhost requests.
- Modify .env and .env.example to include API_KEY configuration.
- Enhance API request handling with improved error logging and client IP detection.
2026-01-16 11:26:02 +08:00
dmy
9257c78e72 feat(timezone): implement UTC and Beijing time conversion utilities and update bid handling
- Add functions to convert between UTC and Beijing time in timezone utility.
- Update BidsService to return latest update and publish dates in Beijing time.
- Modify BidCrawlerService to store publish dates in UTC format.
- Change database timezone configuration to UTC for consistency.
2026-01-16 00:00:00 +08:00
dmy
e8beeec2b9 chore(env): update log level to debug and modify .gitignore
- Change log level from 'info' to 'debug' for enhanced logging during development.
- Add '.cursor' to .gitignore to prevent tracking of cursor files.
2026-01-15 23:48:07 +08:00
dmy
9dc01eeb46 fix(api): increase request timeout and format latest update date
- Update API request timeout from 60 seconds to 120 seconds for improved performance.
- Format latest update date to append 'Z' if it exists, ensuring consistency in date handling.
2026-01-15 23:31:05 +08:00
dmy
811ad927f3 feat(logging): add logging middleware for HTTP requests and update API timeout
- Introduce LoggingMiddleware to log incoming requests and their response times
- Update AppModule to apply the new logging middleware globally
- Increase API request timeout from 10 seconds to 60 seconds
- Modify PromptString to include additional project types of interest
2026-01-15 21:52:40 +08:00
dmy
3033eb622f feat(deploy): implement new deployment script using ssh2-sftp-client
- Replace PowerShell deploy script with TypeScript-based deploy script
- Add SSH2 SFTP client for secure file uploads to remote server
- Include error handling and logging for deployment process
- Update package.json to reflect changes in deploy command and add new dependencies
2026-01-15 21:02:36 +08:00
dmy
5edebd9d55 refactor: improve date handling and timezone consistency
- Add timezone support to database module (+08:00)
- Extract date formatting utilities to shared modules
- Standardize timezone handling across frontend and backend
- Improve date formatting consistency in UI components
- Refactor crawler page.goto options for better readability
2026-01-15 16:17:41 +08:00
dmy
eba5c7e5c5 feat(crawler): add human-like behavior simulation to prevent detection
refactor(manifest): update appid and format manifest file
2026-01-15 15:34:00 +08:00
dmy
36cbb6fda1 feat(api): add unified request utility with type definitions
Implement a centralized API request utility with proper TypeScript interfaces
for bid items, AI recommendations, and crawl statistics. The utility handles
base URL configuration, request/response typing, and error handling.
2026-01-15 14:28:04 +08:00
dmy
20c7c0da0c feat: 添加代理隧道连接失败的重试机制
refactor(crawler): 在各爬虫服务中实现代理错误重试逻辑
feat(uni-app): 新增投标项目查看器的uni-app版本
2026-01-15 14:03:46 +08:00
dmy
37200aa115 fix(electron): 更新开发模式支持和控制台编码设置
- 在主进程中添加对Windows控制台UTF-8编码的支持
- 优化开发模式检测逻辑,确保在开发环境下正确打开开发者工具
- 改进后端进程的启动逻辑,确保在启动失败时提供详细错误信息
2026-01-15 10:14:54 +08:00
dmy
af78fd0682 chore: 更新数据库连接配置 2026-01-15 02:20:04 +08:00
dmy
20619bb87b fix: 移除Windows控制台配置并修改后端进程stdio设置 2026-01-15 02:19:38 +08:00
dmy
70f0498c44 build(electron): 在Windows配置中禁用控制台窗口
修改electron-builder.json配置,将win.console设置为false以隐藏应用启动时的控制台窗口
2026-01-15 01:32:16 +08:00
dmy
0f510554ed fix(electron): 修复生产环境后端路径问题并优化构建配置
调整 electron-builder 配置文件以正确处理打包路径
修复生产环境下后端服务路径问题
添加对开发工具中 Autofill 错误信息的过滤
更新构建脚本确保前端先构建
2026-01-15 01:30:47 +08:00
dmy
5a7cbc6daa feat: 禁用应用菜单以提供更简洁的界面
添加 Menu.setApplicationMenu(null) 来隐藏默认的 Electron 应用菜单,提升用户体验
2026-01-15 00:45:30 +08:00
dmy
e804e3998f refactor: 移除表格列的fixed属性并更新electron启动脚本
移除CrawlInfo组件中操作列的fixed属性以改善布局
将electron:start重命名为electron:dev并更新构建命令
2026-01-15 00:41:56 +08:00
dmy
eca3f4f9fd feat(electron): 添加Electron桌面应用支持
- 新增Electron主进程、预加载脚本和构建配置
- 修改前端配置以支持Electron打包
- 更新项目文档和依赖
- 重构API调用使用统一axios实例
2026-01-15 00:35:19 +08:00
dmy
f736f30248 refactor(crawler): 优化爬虫类型定义和接口导出
将 Crawler 接口替换为 AnyCrawler 类型,统一爬虫类型定义
导出 CrawlInfoAddStats 接口以便其他模块使用
简化爬虫调用方式,使用类型断言替代接口方法调用
2026-01-14 22:51:36 +08:00
dmy
82f5a81887 chore: 更新.gitignore并添加新文件
在.gitignore中添加对*.png、*.log、*-lock.json、*.woff2文件的忽略规则,并新增OFL.txt文件。同时,添加vue.svg图标文件以支持前端展示。更新多个TypeScript文件以优化代码格式和增强可读性。
2026-01-14 22:26:32 +08:00
dmy
10565af001 fix: 处理错误信息字段的空值和空字符串
更新多个文件以确保错误信息字段在处理时将空字符串和未定义值转换为null,增强数据一致性和展示逻辑。包括前端组件和后端服务的相应调整。
2026-01-14 21:33:35 +08:00
dmy
740c11527f feat: 更新数据库配置并添加同步脚本
将数据库配置从本地MariaDB切换为腾讯云MySQL
添加数据库同步脚本命令到package.json
禁用数据库自动同步功能
2026-01-14 20:58:07 +08:00
dmy
3f6d10061d feat: 添加单源爬取功能并优化数据库同步
新增单源爬取功能,支持在界面上单独更新每个数据源
添加数据库同步脚本,支持主从数据库结构同步和数据同步
优化华能集团爬虫的页面导航和稳定性
新增系统托盘功能,支持最小化到托盘
2026-01-14 16:25:01 +08:00
dmy
bcd7af4e69 feat: 添加爬虫状态监控功能
新增爬虫统计信息展示组件,包括后端数据查询接口和前端展示界面。同时简化日期显示格式并添加刷新提示功能。
2026-01-14 09:26:04 +08:00
dmy
571eea0f66 build: 更新.gitignore并添加TailwindCSS和OpenAI依赖 2026-01-14 01:10:48 +08:00
dmy
6a9c52fe10 feat: 添加AI推荐功能及自动刷新机制
新增AI推荐模块,包括后端数据获取接口和前端展示组件
实现自动刷新功能,每5分钟自动更新当前标签页数据
添加手动刷新按钮,优化用户交互体验
2026-01-14 01:06:15 +08:00
dmy
8e4429558c feat: 添加投标项目查看器组件及后端支持 2026-01-14 00:56:30 +08:00
dmy
2fcfb452ec docs: 更新README以反映投标监控系统项目详情 2026-01-13 21:32:59 +08:00
dmy
e410053ddd refactor: 从Dashboard-AI组件中移除未使用的ArrowDown图标 2026-01-13 21:26:52 +08:00
dmy
f32c04b8df refactor: 移除未使用的 ArrowDown 图标导入 2026-01-13 21:26:25 +08:00
dmy
3b3cef582e fix: 修正"Pined"拼写错误为"Pinned 2026-01-13 21:20:52 +08:00
dmy
d1e64596aa feat: 在投标列表中添加置顶功能 2026-01-13 21:20:30 +08:00
dmy
f050d38140 feat: 实现 PinnedProject 组件与父组件的双向交互
添加 PinnedProject 组件引用和 pin-changed 事件处理
在 Dashboard 和 Dashboard-AI 中同步 pin 状态
暴露 loadPinnedBids 方法供父组件调用
2026-01-13 21:16:23 +08:00
dmy
feb18c01bb refactor: 将置顶项目功能提取为独立组件 2026-01-13 21:03:52 +08:00
dmy
50bc930663 feat: 添加项目置顶功能
在仪表盘中添加置顶项目功能,包括:
- 新增置顶项目展示区域
- 为AI推荐项目添加置顶/取消置顶操作
- 后端接口支持置顶状态管理
2026-01-13 20:56:21 +08:00
dmy
4f4355c1cd refactor: 移除高优先级投标功能及相关代码 2026-01-13 20:42:34 +08:00
dmy
6825885005 feat: 更新AI提示并增强后端功能
更新AI提示字符串包含海南地区
添加CrawlInfoAdd实体到Bids模块
优化爬虫信息统计查询
增加请求体大小限制和启用CORS
修正前端部署路径
2026-01-13 19:46:41 +08:00
dmy
894976e680 feat: 在部署脚本中添加src目录上传功能 2026-01-13 19:01:50 +08:00
dmy
333748a6b9 feat: 添加部署脚本和AI推荐脚本 2026-01-13 18:59:07 +08:00
dmy
72e5230584 feat: 添加AI推荐脚本并更新提示词
添加AI推荐生成脚本,查询近3天的招标项目并调用AI服务获取推荐结果。同时更新提示词,要求至少推荐10个项目。
2026-01-13 18:33:30 +08:00
dmy
b3d784f1e3 feat: 添加Tailwind CSS支持并修复URL拼接问题
添加Tailwind CSS及相关配置
修复多个爬虫服务中的URL拼接问题,避免双斜杠
调整前端导航菜单项顺序
2026-01-13 18:07:00 +08:00
dmy
b261ff074c refactor: 优化 Dashboard-AI 组件布局和样式 2026-01-13 16:54:30 +08:00
dmy
7f36e014e6 feat: 在AI仪表板中添加高优先级投标展示 2026-01-13 16:34:32 +08:00
dmy
5024d2c502 feat: 添加重复投标项目清理脚本并更新相关逻辑
更新依赖版本,移除调试日志,修改静态文件排除规则,将投标项目查重逻辑从URL改为标题,并添加清理重复投标项目的脚本
2026-01-13 00:39:43 +08:00
dmy
5f186bfb2a feat: 按发布时间倒序排列AI推荐结果 2026-01-12 22:56:35 +08:00
dmy
996289c671 feat: 在AI推荐列表中添加发布日期字段并更新AI服务配置 2026-01-12 22:48:43 +08:00