Commit Graph

41 Commits

Author SHA1 Message Date
augushong
bf32bce922 feat(typesetting): 页面品牌标识 - 数据链路+渲染函数+分页修正
- Post.php: phoneImage()传递siteName/siteLogo到模板
- phone_image.html: postData增加siteName/siteLogo字段
- phone-image.js: 新增generateBrandHeader()+preloadBrandLogo()
- phone-image.js: 3个页面生成函数调用品牌头部
- phone-image.js: contentAreaHeight扣减BRAND_HEADER_HEIGHT(36px)
- logo预转base64规避html2canvas CORS,过滤默认头像
2026-05-17 11:12:56 +08:00
augushong
aa067ad202 refactor(typesetting): Wave1 - UPSERT改造 + 移除历史记录后端接口
- PhoneImage.php: saveConfigOnly/createOutput改为find-then-update-or-create
- Post.php: 移除6个历史记录方法(postOutputList/getOutputListJson等)
- 删除post_output/index.html模板
2026-05-17 00:22:04 +08:00
augushong
10879a8037 feat(output_view): 导出页面重构 - 长图卡片化展示、缩略图增大、预览优化、纯图片页原图保存
- output_view.html: 长图改为固定高度卡片(70px),Blob URL查看,缩略图minmax(280px,1fr),
  竖图预览优先填充视口高度,下载功能完整保留
- phone-image.js: renderPureImageToCanvas()使用naturalWidth/naturalHeight保持原图分辨率,
  新增长图生成和保存功能
- Post.php: 新增outputView()方法提供导出页面渲染数据
- PhoneImage.php: 图片数据改为DB存储,新增saveLongImage()方法
- phone_image.html: 添加导出页面入口按钮
- 新增数据库迁移: post_output_file表添加image_data字段
2026-05-14 23:22:19 +08:00
augushong
5f5dc180c9 feat(phone-image): add history popup with load config support 2026-05-03 21:22:00 +08:00
augushong
a65025add9 feat(post-output): add save-only and load-history endpoints 2026-05-03 21:08:58 +08:00
augushong
2bbde158b9 fix(Post): 修复排版内容副本读取时配置字段类型转换问题
确保从 postOutput 配置中读取 content_html 时,配置字段已转换为数组,避免因对象类型导致的错误。
2026-05-03 19:49:38 +08:00
augushong
c179ed27f1 fix(admin): 统一jpe/jpeg扩展名为jpg
检测到文件MIME类型对应的扩展名为jpe或jpeg时,统一转换为更常见的jpg格式,确保后续文件路径处理的一致性。
2026-05-02 22:10:42 +08:00
augushong
bcd00e32ea refactor(phone-image): Wave 2 - form, controller, JS engine, API updates
T3: Add cover_text textarea to post edit form

T4: Update Post controller - content copy + cover_text passing

T5: Refactor JS engine - remove old APIs, add forced breaks, page numbers, per-page alignment

T8: Add cover_text to API default_fields, apidoc (4 places), AGENTS.md
2026-05-02 09:16:05 +08:00
augushong
34fe255829 feat(phone-image): 增加翻页预览与无封面图排版样式
- 为手机截图生成器添加翻页功能,支持在生成前预览各页内容
- 增加无封面图时的排版样式,使用装饰线条和居中布局
- 改进图片处理逻辑,清除内联样式并展平嵌套包装元素
- 修复 models.dev 同步接口,支持 GET 请求获取缓存数据
- 优化网络请求,添加直连失败后的本地代理重试机制
2026-05-01 16:31:26 +08:00
augushong
83a2bd48a2 feat(post): 新增手机图片排版与AI智能排版功能
- 新增手机图片排版功能,支持小红书/抖音尺寸输出
- 新增AI智能排版顾问,支持内容分析与优化推荐
- 新增AI供应商管理,支持多渠道配置与同步
- 新增文章输出管理页面,支持图片预览与批量下载
- 新增字体文件与排版样式配置
2026-05-01 12:23:17 +08:00
augushong
b4558b55fb feat(admin): 为登录功能添加验证码开关配置
- 在环境变量中引入 `captcha_login` 配置项,用于控制登录时是否需要验证码
- 根据配置动态显示或隐藏登录页面的验证码输入框
- 后端登录验证逻辑根据配置决定是否校验验证码
2026-05-01 10:49:22 +08:00
augushong
aed4b285d8 feat: 添加Vditor编辑器支持并扩展文件上传功能
- 新增Vditor编辑器静态资源文件,包括图片、字体和样式文件
- 在文件上传控制器中添加vditorSave方法,支持Vditor编辑器文件上传
- 在文章创建页面添加编辑器类型选择(富文本/Markdown)
- 更新.gitignore文件,排除Playwright和QA截图目录
- 扩展UploadFiles类以支持Vditor编辑器的文件上传格式
2026-04-30 22:27:03 +08:00
augushong
0e8944bc7f docs: 为 category-api 和 apikey-article-api 添加项目笔记文件
- 添加 category-api 的 problems、decisions、learnings、issues 文档
- 添加 apikey-article-api 的 issues、decisions、learnings 文档
- 包含架构决策、问题记录和学习总结
2026-04-28 21:03:15 +08:00
augushong
dc116a1c77 feat(api): add article/attachment API endpoints, admin management, and API docs
- Articles API: list/detail/create/update/delete with source-based permission control
- Attachments API: upload/list/delete with source-based permission control
- ApiKeyInfo API: query current key permissions
- Admin ApiKey management: generate/regenerate/toggle/permission settings with layui UI
- Frontend API documentation page with complete interface reference
2026-04-27 00:38:57 +08:00
augushong
c17b69fcdf feat: 增加平台信息跳转 2025-10-05 14:28:46 +08:00
augushong
23f6db5b48 feat: 导出增加分类显示 2025-06-27 12:52:47 +08:00
augushong
3220b1a340 feat: 增加markdown下载 2025-06-23 12:23:15 +08:00
augushong
81e079c8f9 feat: 完成平台发表情况查询 2025-05-05 11:33:00 +08:00
augushong
bf2af3a4b7 feat: 开始平台导出查询 2025-05-05 10:59:21 +08:00
augushong
70b17cbd10 feat: 完成三方平台发布管理 2025-05-05 10:29:49 +08:00
augushong
0b2bc05cd7 feat: 开始复制类型记录 2025-05-04 18:23:21 +08:00
augushong
31957f2b0e 修复文件存储问题;增加文件上传;修复字段错误 2023-06-30 15:31:58 +08:00
augushong
839a8e4734 增加通用开头功能 2023-06-27 00:51:30 +08:00
augushong
95eb8d8581 新增面板新增markdown导出 2022-07-28 16:26:10 +08:00
augushong
370a6cdc4d 优化网站性能; 2022-03-18 23:09:28 +08:00
augushong
d2cb402f71 优化分页问题; 2022-03-16 23:07:55 +08:00
augushong
aacc99aa98 新增sitemap 2022-03-16 11:36:39 +08:00
augushong
980be86c6d 完成临时图片的自动删除; 2022-03-15 08:56:08 +08:00
augushong
80b06b0b00 新增导出面板,便于转载拷贝发布; 2022-03-15 00:26:22 +08:00
augushong
43bf3b0c40 优化后台的标签和分类设置;优化后台头部菜单; 2022-03-05 21:57:16 +08:00
augushong
2806c7c204 完成图片上传; 2022-03-04 19:37:59 +08:00
augushong
1a7718be0c 基本完成新的编辑器; 2022-03-04 12:11:06 +08:00
augushong
90bbf61b6a 优化页面内的分类快速添加; 2022-02-12 15:37:36 +08:00
augushong
cc83df7fb9 完成评论统计 2021-01-03 22:02:34 +08:00
augushong
3b5a56aef5 完成评论 2021-01-03 21:52:54 +08:00
augushong
75f68fff25 打开另一个应用失败 2020-10-20 11:46:10 +08:00
augushong
63ec3c4356 后台直接进入前台 2020-10-20 10:12:14 +08:00
augushong
45f8a09b1c 优化url,多应用之间不能互相根据路由生成url,没有研究透 2020-08-15 00:08:16 +08:00
augushong
2a04ff970c 新增代码高亮,完善文章浏览体验 2020-08-14 13:08:59 +08:00
augushong
0ad0f54f9a 修改问题 2020-08-12 23:07:51 +08:00
augushong
3bc46a4b9c 初始化项目 2020-08-07 23:49:50 +08:00