Commit Graph
11 Commits
Author SHA1 Message Date
simonandClaude Code f3f9d19da7 refactor: 前端库整理与图表标准化
库文件整理:
- 所有JS/CSS/字体库统一到lib/js/、lib/css/、lib/webfonts/
- 按名称-版本格式重命名(jquery-3.6.0.min.js等)
- 删除约80个重复/废弃的库文件副本
- 更新17个文件中的引用路径

图表模式标准化:
- moneyflow/realestate/estate3个页面从$.ajax/PHP注入转为fetch+loading overlay模式
- 新增moneyflowData/estateData两个AJAX端点
- chartmoneyflow.js、estate.js移至deprecated

README.md更新为完整功能介绍

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-05-26 14:34:28 +08:00
simonandClaude Code 7e57cae242 refactor: 全面代码重构与项目结构整理
安全性:
- 所有SQL查询改用参数化查询(db_query),防止SQL注入
- TUSHARE_API_TOKEN集中到config.php常量,移除硬编码和多份拷贝
- getBasic.inc.php中$_REQUEST输出到JS时添加htmlspecialchars转义

代码组织:
- 21个页面文件移至charts/子目录,根目录仅保留入口文件
- ajax.inc.php拆分:esfTradeDaily/esfListDaily迁至getEstate.inc.php
- getBasic.inc.php拆分:HTML组件函数迁至新建的widgets.inc.php
- 前端依赖去重:移除lib/echarts.min.js、libai/3.4.16.js、research/js/3.4.16.js

规范化:
- AJAX响应格式统一为jsonResponse()标准封装
- 前端全局变量统一为window.chartConfig对象模式
- 修复PHP 8.4 Deprecated警告(getEstateData、getStockHistoryDataByTS参数顺序)
- html/head.php中jQuery/CSS路径改为绝对路径,修复charts/子目录加载问题

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-05-26 08:20:33 +08:00
杨水淼 4a56455151 feat: Update database connection and error display settings
- Changed database connection credentials in footer.php for improved security.
- Disabled error display in ajax.inc.php to prevent sensitive information exposure.
- Added comprehensive design documentation for the news flow application.
- Implemented a modernized index.php layout with responsive design and enhanced user experience.
- Developed main.js for dynamic news loading, including infinite scroll and date filtering functionalities.
- Structured interaction.md to detail core interactive features of the application.
- Organized outline.md to clarify project structure and core functionalities.
- Populated mock-data.json with realistic news data for testing and development purposes.
2025-10-13 16:16:46 +08:00
杨水淼 521e0687a4 Add stock dividend trend analysis page with chart rendering and data fetching 2025-09-02 12:41:09 +08:00
杨水淼 bd82783ddb 更新:js容错算法改善,增加2份Ai报表 2025-07-22 16:16:59 +08:00
杨水淼 bd4f92d465 更新:ajax 载入动图更新 2025-07-19 10:01:53 +08:00
杨水淼 de11c31f0b 更新:重构多个页面代码,简化代码。实现无刷新更新数据。 2025-07-14 12:46:48 +08:00
杨水淼 5152b3ee2f 更新:重构和迁移多个PHP文件到deprecated目录,删除不再使用的文件,更新pubfunc.js版本;index_trend,stock_trend 数据源以及代码重构简化 2025-07-09 15:21:52 +08:00
杨水淼 43a202c789 更新:添加每日和每月数据选项,修改相关URL参数,更新JavaScript文件,增加股票指数历史数据获取功能 2025-07-09 07:36:50 +08:00
yangshuimiao fdbbe445bb update: PV Counter 2023-10-24 09:03:37 +08:00
yangshuimiao 3a09f3ca67 first commit 2023-10-16 12:58:41 +08:00