Commit Graph
304 Commits
Author SHA1 Message Date
blog-editor 870ce7ad31 编辑: 2026-10-05 14:06 2026-10-05 14:06:52 +00:00
blog-editor 237c8f5d4c 编辑: 2026-10-05 14:02 2026-10-05 14:02:19 +00:00
zqlit 5e9d328841 fix(排序): 同日文章 date 补全时分秒 + EdgeOne 部署重试增强
现象:小乖同一天发的第二篇排到了第一篇后面。

根因:front matter 的 date 只写到年月日(写入侧只收得到日期),
同一天多篇的时间戳完全并列 → 排序退化成比标题,前台/后台都错。

改动:
- 数据(6 篇):用目录名/slug 里的时间戳把 date 补全为
  'YYYY-MM-DDTHH:MM:SS+08:00',slug 即写作时刻。每篇仅 1 行 diff。
  2026-10-05 两篇(必须)、2026-06-02 / 06-03 四篇(同一 bug 的历史遗留)。
- 写入侧根治
  - editor-api/src/posts.mjs:新建时「只到天」补北京时间此刻;
    保存时「同日保真」——没换日子则原有时分秒一字符不动。
  - write-server/src/lib/posts.ts:parseDate 按 Asia/Shanghai 归日,
    列表同天排序不再受 UTC 时区漂移影响。
- 回归测试:新增 editor-api/test/date-time.mjs(8 项,自带一次性临时仓库)。
- .cnb.yml:EdgeOne stage 重试 3 次/20s → 5 次/30s。
  构建节点到 api.edgeone.ai 偶发 15s 超时会被 CLI 误报
  「Invalid EDGEONE_PAGES_API_TOKEN」,纯网络抖动,令牌没坏。
- .gitignore:忽略 *.zip 与 .edgeone/(误留的 blog.zip 达 361MB)。
2026-10-05 21:54:03 +08:00
blog-editor 5d16c8c8d6 编辑: 2026-10-05 13:31 2026-10-05 13:31:26 +00:00
blog-editor ec8d1c45f2 编辑: 2026-10-05 04:09 2026-10-05 04:09:17 +00:00
zqlit a4758dbbfd 同步编辑器里已删除的两篇测试文章(工作区与远端保持一致) 2026-10-04 23:40:31 +08:00
zqlit 4215e08113 删除一篇文章
Deploy to Production / pre-check (push) Successful in 2m32s
Deploy to Production / build (push) Successful in 9m30s
Deploy to Production / deploy-edgeone (push) Successful in 4m5s
Deploy to Production / finalize (push) Successful in 29s
Deploy to Production / notify-failure (push) Skipped
2026-10-02 18:04:21 +08:00
zqlit 04d0274d9f 修改文章
Deploy to Production / pre-check (push) Successful in 1m17s
Deploy to Production / build (push) Successful in 9m27s
Deploy to Production / deploy-edgeone (push) Successful in 4m43s
Deploy to Production / finalize (push) Successful in 33s
Deploy to Production / notify-failure (push) Skipped
2026-10-02 16:44:28 +08:00
Write Server 1ebb167a60 发布: 评论组件被人恶意sql注入,25端口被封,邮件无法发信
Deploy to Production / pre-check (push) Successful in 2m8s
Deploy to Production / build (push) Successful in 10m13s
Deploy to Production / deploy-edgeone (push) Successful in 4m14s
Deploy to Production / finalize (push) Successful in 28s
Deploy to Production / notify-failure (push) Skipped
2026-10-02 08:15:58 +00:00
Write Server 16c5ce3395 发布: 测试部署 2026-10-01 12:50:18 +00:00
Write Server 95a8455c0e 发布: 删除《GitHub用量又超了》
Deploy to Production / pre-check (push) Successful in 2m18s
Deploy to Production / build (push) Successful in 5m30s
Deploy to Production / deploy-edgeone (push) Successful in 4m1s
Deploy to Production / deploy-upyun (push) Successful in 6s
Deploy to Production / finalize (push) Successful in 37s
Deploy to Production / notify-failure (push) Skipped
2026-10-01 06:46:45 +00:00
Write Server 11dda8e66c 发布: 自建了 Gitea,测试一下部署
Deploy to Production / pre-check (push) Successful in 1m33s
Deploy to Production / build (push) Successful in 9m0s
Deploy to Production / deploy-edgeone (push) Successful in 4m6s
Deploy to Production / deploy-upyun (push) Successful in 8s
Deploy to Production / finalize (push) Successful in 33s
Deploy to Production / notify-failure (push) Skipped
2026-10-01 05:51:21 +00:00
Write Server 52aac9f507 发布: GitHub用量又超了 2026-09-08 07:40:10 +00:00
Write Server 651b5e2c45 发布: 流量卡还真得选御三家😂 2026-07-24 02:23:34 +00:00
Write Server 1b96cc4938 发布: 最成功的一次红烧鱼 2026-07-19 03:52:07 +00:00
Write Server 5cf989a5f0 发布: 国企面试,别太当回事儿 2026-07-08 03:20:35 +00:00
GitHub Actions 017b6599bd chore: auto-optimize images [skip ci] 2026-07-04 10:09:26 +08:00
Write Server a7e8b80511 发布: 入手了智能手表 OPPO watch x3 2026-07-04 02:07:49 +00:00
Write Server 084719491c 发布: GitHub Action 缓存额度超了,发不出文章😅 2026-06-30 08:40:12 +00:00
Write Server d527672d1a 发布: 复刻了某红书的西红柿鸡蛋炒牛肉 2026-06-30 08:27:51 +00:00
Write Server 4de59bd22b 发布: GitHub Action 缓存额度超了,发不出文章😅 2026-06-30 04:47:39 +00:00
Write Server 98195aeb39 发布: GitHub Action 缓存额度超了,发不出文章😅 2026-06-30 04:21:19 +00:00
Write Server 8942769fc6 发布: GitHub Action 缓存额度超了,发不出文章😅 2026-06-30 03:49:12 +00:00
Write Server 78e8e3c737 发布: GitHub Action 缓存额度超了,发不出文章😅 2026-06-30 03:21:38 +00:00
Write Server f7e8d9ac1f 发布: GitHub Action 缓存额度超了,发不出文章😅 2026-06-30 03:12:01 +00:00
Write Server 1bf40d8810 发布: GitHub Action 缓存额度超了,发不出文章😅 2026-06-30 02:37:45 +00:00
Write Server 5dbadc51ea 发布: GitHub Action 缓存额度超了,发不出文章😅 2026-06-29 14:45:57 +00:00
Write Server 8e0c00948c 发布: 小黄的富士随拍:🌲和 🐈 2026-06-26 04:21:28 +00:00
Write Server db675813ed 发布: 怎么也飞不出,花花的世界 2026-06-25 12:47:42 +00:00
Vaica 2a403918c9 2032 2026-06-25 20:32:12 +08:00
Vaica ae1a59789e 2025 2026-06-25 20:25:08 +08:00
Write Server fd1cd64d56 发布: 怎么也飞不出,花花的世界 2026-06-25 09:53:40 +00:00
Write Server 22a140aa2a 发布: 和朋友在武汉东湖 city walk 回忆录 2026-06-24 14:03:46 +00:00
Vaica 56ea059fc0 2022 主题bug修复 2026-06-24 20:22:40 +08:00
Write Server 41ea665a72 发布: 测试 2026-06-24 10:15:47 +00:00
Write Server c0e1e08077 发布: 博客订阅的最新姿势 GitHub Action版 2026-06-23 10:35:41 +00:00
Write Server 741ed22cfb 发布文章 2026-06-22 12:42:27 +00:00
Vaica fb8f74bd7c 删除文章 2026-06-22 18:50:49 +08:00
Write Server 4eb4a3b02b 发布文章 2026-06-22 10:49:09 +00:00
Vaica 4d98e5ca1e 1343 2026-06-22 13:43:22 +08:00
Write Server 3ac06f87d8 发布文章 2026-06-22 05:37:36 +00:00
Vaica 21571cd413 Merge branch 'main' of https://github.com/zqlit/blog 2026-06-21 20:42:47 +08:00
Vaica d78f3f811b added:增加Linux-server 2026-06-21 20:42:44 +08:00
GitHub Actions 7f82ecb5a5 chore: auto-optimize images [skip ci] 2026-06-15 14:51:23 +08:00
Vaica 6fe4e9d23f 发布: 静态博客 Gridea 新平替:Gridea Pro 2026-06-15 14:46:23 +08:00
Vaica c29baf50b3 发布: 分享一个一直自用的博客评论自动填充脚本 2026-06-05 14:43:11 +08:00
Vaica 171d1ee714 发布: 用 Python 给博客字体瘦了一下身 2026-06-04 10:51:53 +08:00
Vaica baf3d0fd44 发布: 分享一个好用的跳开屏广告 app 2026-06-03 18:47:04 +08:00
Vaica 53870c6312 发布: 分享一个好用的跳开屏广告 app 2026-06-03 18:41:53 +08:00
Vaica 77a71e7d67 发布文章 2026-06-03 18:33:01 +08:00