augushong
57187a9d1d
refactor(phone-image): three-column layout with content flow and paginated preview
...
T6: Rewrite phone_image.html to three-column layout (toolbar 220px | content flow 540px | paginated preview flex:1)
- Remove: template buttons, font selector, AI section, preview button, page navigation
- Add: content-flow area, paginated-preview area, export long image button
- Update: postData with coverText, layoutContentHtml, savedConfig restore
- Debounced doRender (300ms), auto-render on page load
2026-05-02 09:30:20 +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
0e3a442ddd
fix(API): 修复文章发布时 publish_time 自动填充逻辑
...
统一处理 publish_time 参数,空字符串按未传处理。在创建和更新文章时,当文章状态为发布且未提供 publish_time 时,自动填充当前时间。同时修复更新文章时,从草稿首次发布且原 publish_time 为 0 时自动填充时间的逻辑。
2026-05-01 20:57:20 +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
d1300b8796
fix: 修复上传文件处理和粘贴图片URL替换的问题
...
- 修复 UploadFiles 中 $request->file() 可能返回 null 导致类型错误的问题,确保 $files 始终为数组
- 优化粘贴外部图片 URL 处理逻辑,使用正则匹配提取所有外部 URL 后统一延迟处理,避免替换错误
- 增加 URL 转义处理,防止特殊字符在正则替换时出错
2026-05-01 09:11:43 +08:00
augushong
aed4b285d8
feat: 添加Vditor编辑器支持并扩展文件上传功能
...
- 新增Vditor编辑器静态资源文件,包括图片、字体和样式文件
- 在文件上传控制器中添加vditorSave方法,支持Vditor编辑器文件上传
- 在文章创建页面添加编辑器类型选择(富文本/Markdown)
- 更新.gitignore文件,排除Playwright和QA截图目录
- 扩展UploadFiles类以支持Vditor编辑器的文件上传格式
2026-04-30 22:27:03 +08:00
augushong
cbf9b21b96
feat(api): 增强文章API功能并更新文档
...
- 为文章创建和更新接口添加 `publish_time` 字段支持
- 升级 Markdown 解析器以支持表格扩展
- 增加数据库字段默认值设置,避免严格模式错误
- 禁止客户端设置 `create_time` 和 `update_time` 字段
- 更新 API 文档以反映上述更改
- 将临时文件和工具目录添加到 .gitignore
2026-04-30 12:17:50 +08:00
augushong
6f332467df
feat(content-type): add content_type field, markdown auto-conversion, and API doc updates
...
- Add content_type column to ul_post via migration
- Install league/commonmark for markdown->HTML conversion
- Add Post model accessors/setters for content_type and content
- Update API Articles controller save/update with content_type support
- Update API docs with content_type parameter and markdown example
Closes content-type-support plan
2026-04-29 20:46:44 +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
df6b22d35c
feat: 导出时增加默认的代码类型
2025-11-09 13:07:27 +08:00
augushong
c17b69fcdf
feat: 增加平台信息跳转
2025-10-05 14:28:46 +08:00
augushong
9a0bd9b2b0
feat: 优化三方平台加载
2025-10-04 10:51:10 +08:00
augushong
bfe89fcdef
feat: 优化行内样式生成
2025-10-04 10:37:03 +08:00
augushong
23f6db5b48
feat: 导出增加分类显示
2025-06-27 12:52:47 +08:00
augushong
a955283b73
feat: 优化导出功能菜单
2025-06-23 12:47:58 +08:00
augushong
6e698a37ec
feat: 增加编辑和导出互相跳转
2025-06-23 12:28:34 +08:00
augushong
3220b1a340
feat: 增加markdown下载
2025-06-23 12:23:15 +08:00
augushong
1706941705
feat: 导出页面可以直接编辑
2025-06-21 12:40:57 +08:00
augushong
d9452530e0
feat: 完善三方平台设置;完善导出管理
2025-06-16 13:38:47 +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
669c7c3b77
style: 格式化代码
2025-05-05 10:31:01 +08:00
augushong
70b17cbd10
feat: 完成三方平台发布管理
2025-05-05 10:29:49 +08:00
augushong
d27772ef03
style: 格式化
2025-05-04 18:23:44 +08:00
augushong
0b2bc05cd7
feat: 开始复制类型记录
2025-05-04 18:23:21 +08:00
augushong
e6a8d46222
fix: 修复登录后账号展示;
2025-02-09 16:21:44 +08:00
augushong
49015e3ec8
修复评论头像错误
2024-05-20 09:51:43 +08:00
augushong
aa9ae7f30b
完成显示水印功能;
2024-02-18 15:41:14 +08:00
augushong
a59b124e70
优化机器人名称显示;
2023-11-27 09:20:39 +08:00
augushong
c3b92ca169
优化seo设置;优化编辑
2023-11-16 11:30:28 +08:00
augushong
aed08bc7a1
修改导出面板
2023-10-19 00:21:39 +08:00
augushong
26a93bd789
修改用户头像
2023-10-05 15:02:45 +08:00
augushong
50d29b941e
修复获取用户信息错误
2023-10-05 14:55:05 +08:00
augushong
32fddfb943
优化备案链接
2023-08-11 19:13:36 +08:00
augushong
a5bee1eec1
将标记在页面开头执行
2023-07-10 18:06:29 +08:00
augushong
ee5641b453
增加jsrun标志
2023-07-08 17:47:45 +08:00
augushong
ab9eda3eec
修改缓存和客户端处理
2023-07-08 09:51:17 +08:00
augushong
944000ecce
增加访问分析缓存
2023-07-08 09:22:29 +08:00
augushong
a726c8a12d
修复按钮bug
2023-06-30 16:03:11 +08:00
augushong
31957f2b0e
修复文件存储问题;增加文件上传;修复字段错误
2023-06-30 15:31:58 +08:00
augushong
72a6cce5e3
增加图片点击放大;优化标题导航效果
2023-06-29 18:06:51 +08:00
augushong
f567fffbfa
增加文章左侧标题导航
2023-06-29 17:52:06 +08:00
augushong
c0e7430249
修复登录错误
2023-06-29 10:35:18 +08:00
augushong
9d3a0221b3
增加访问记录列表
2023-06-29 10:31:39 +08:00
augushong
37c20ae141
新增文章统计;新增浏览文章查看
2023-06-28 16:09:53 +08:00
augushong
95d80fe568
优化用户信息展示
2023-06-28 11:17:18 +08:00
augushong
65e1800c6f
增加访问记录功能
2023-06-28 11:12:30 +08:00