zqlit
|
571d552c9d
|
fix(build): 消除构建期远程拉取隐患 + 评论提交反馈 + 友链卡片移动端
构建隐患(本次丢构建的根因)
- footer.html 用 resources.GetRemote 在每个页面渲染时拉 api/links 与 api/feeds,
构建节点连不上 Cloudflare 时重试撞穿 Hugo partial 30s 超时 → 整站构建失败
- 改为「流水线 curl 快照 + 模板读本地文件」:
· 新增 scripts/fetch_snapshots.sh,一次拉齐 conf / friend_links / friend_feeds
(--max-time 30 --retry 2,JSON 校验,失败一律删文件且恒 exit 0)
· .cnb.yml Hugo 构建 stage 改为调用该脚本
· footer.html 改读 site.Data.friend_links / site.Data.friend_feeds,缺失渲染空值
· .gitignore 忽略 /data/friend_links.json 与 /data/friend_feeds.json
- 降级实测:删掉快照后构建仍 EXIT=0,产物 friendLinks 为空数组
评论提交反馈(artalk.js 新增 __atkSubmit 模块)
- 校验:config.beforeSubmit 拦下 内容空 / 昵称空 / 邮箱空 / 邮箱格式错(网址不校验)
- 发送中:editor-submit 常驻 loading,超 7s 补「网络较慢」
- 成功:editor-submitted 按 normal/reply/edit 分文案,is_pending 提示等待审核
- 失败:拦 POST /api/v2/comments,403/429/4xx/5xx/网络异常全部翻译成人话
- 失败时输入内容保留,并清掉 Artalk 自带的重复小字通知
- 无头浏览器实测 19/19 通过(POST 走 mock,未向线上写数据)
友链申请卡片移动端
- max-width:640px 下隐藏 .atk-fl-nick(昵称 + 博主徽章),桌面端不变
改动:6 files, +282 / -61
|
2026-10-04 17:38:04 +08:00 |
|
zqlit
|
50a906e07c
|
perf(comments): 评论加载提速 + 骨架屏 + 友链弹窗 pjax 修复 + toast 统一 Message.js
优化:
- initArtalk 加节点级幂等守卫(mount.__atkInited,失败回滚),
消除 artalk.html/mypjax 多入口导致的 4× comments + 4× pv 重复请求
- fetch 包装层对无 body 的 GET/HEAD 去掉多余 content-type,
消掉 Artalk 对 GET /comments 的 CORS 预检(按完整 URL 缓存,
每篇文章都重付一次 RTT)。实测评论列表 +1150~1565ms → +626ms
修复:
- 评论列表骨架屏改注入 .atk-list-body(原骨架在 #Comments 内,
被 Artalk.init 清空),list-loaded/故障/12s 兜底移除
- 友链申请弹窗抽成 modules/friendlink.js 进 page-only bundle
(原内联脚本在 #pjax-container 外,pjax 后 flApplyOpenModal 未定义)
- toast 统一走本地化 Message.js/Qmsg 适配层(保留 window.Toast/showToast 旧 API)
文档:
- README / 架构总览 更新;新增 评论加载优化方案.md
|
2026-10-04 15:00:52 +08:00 |
|
zqlit
|
5858188628
|
友链卡片移动端适配:≤640px隐藏头像、收紧间距内边距、微调字号字距
Deploy to Production / pre-check (push) Successful in 47s
Deploy to Production / build (push) Successful in 4m17s
Deploy to Production / deploy-edgeone (push) Canceled after 37s
Deploy to Production / finalize (push) Canceled after 0s
Deploy to Production / notify-failure (push) Canceled after 0s
|
2026-10-03 17:29:20 +08:00 |
|
zqlit
|
627b6e6512
|
徽章样式补充卡片上下文(.atk-fl-card):卡片已移出.atk-comment导致博主徽章露出Artalk内联蓝底
Deploy to Production / pre-check (push) Canceled after 22s
Deploy to Production / build (push) Canceled after 0s
Deploy to Production / deploy-edgeone (push) Canceled after 0s
Deploy to Production / finalize (push) Canceled after 0s
Deploy to Production / notify-failure (push) Canceled after 0s
|
2026-10-03 17:22:58 +08:00 |
|
zqlit
|
c952620fd6
|
友链卡片固定在评论列表上方(不再被新评论挤到中间):整条评论用class隐藏,卡片插入atk-list-body首位
Deploy to Production / pre-check (push) Successful in 53s
Deploy to Production / build (push) Canceled after 1m2s
Deploy to Production / deploy-edgeone (push) Canceled after 0s
Deploy to Production / finalize (push) Canceled after 0s
Deploy to Production / notify-failure (push) Canceled after 0s
|
2026-10-03 17:20:04 +08:00 |
|
zqlit
|
ab94c25273
|
修复发评论后卡片被挤下去:原评论内容改用class+!important隐藏(Artalk重渲染会抹掉内联display),转换逻辑改幂等自愈
Deploy to Production / pre-check (push) Successful in 50s
Deploy to Production / build (push) Successful in 4m30s
Deploy to Production / deploy-edgeone (push) Canceled after 2m21s
Deploy to Production / finalize (push) Canceled after 0s
Deploy to Production / notify-failure (push) Canceled after 0s
|
2026-10-03 17:13:06 +08:00 |
|
zqlit
|
98126cafe6
|
评论徽章DOM/尺寸统一(拆badge-wrap+单一类名)、修复main.css!important劫持徽章尺寸、友链卡片挂到comment级与输入框对齐、卡片动效+打字机、申请弹窗按钮错位与滚动条修复
Deploy to Production / pre-check (push) Successful in 58s
Deploy to Production / build (push) Successful in 3m56s
Deploy to Production / deploy-edgeone (push) Canceled after 1m23s
Deploy to Production / finalize (push) Canceled after 0s
Deploy to Production / notify-failure (push) Canceled after 0s
|
2026-10-03 16:59:34 +08:00 |
|
zqlit
|
87c47d13c9
|
徽章样式定稿:博主浅底灰黑描边(回线上版)、置顶浅底红字描边;恢复Artalk默认徽章右间距与CN地域徽标原样
Deploy to Production / pre-check (push) Successful in 44s
Deploy to Production / build (push) Successful in 4m40s
Deploy to Production / deploy-edgeone (push) Successful in 3m48s
Deploy to Production / finalize (push) Successful in 24s
Deploy to Production / notify-failure (push) Skipped
|
2026-10-03 16:12:23 +08:00 |
|
zqlit
|
36e74d46f4
|
友链申请入口改URL评论触发+卡片原生风格化; 博主/头衔徽章改浅底描边风格与友链友圈官职统一
Deploy to Production / pre-check (push) Successful in 39s
Deploy to Production / build (push) Successful in 4m55s
Deploy to Production / deploy-edgeone (push) Successful in 4m1s
Deploy to Production / finalize (push) Successful in 25s
Deploy to Production / notify-failure (push) Skipped
|
2026-10-03 15:16:00 +08:00 |
|
Vaica
|
673af08c33
|
Update artalk.html
|
2026-06-30 12:47:27 +08:00 |
|
Vaica
|
2c6bd1c964
|
优化github action 逻辑
|
2026-06-02 10:56:59 +08:00 |
|
zqlit
|
9774eeac12
|
增加评论互动趣味性
|
2026-05-25 13:55:45 +08:00 |
|
zqlit
|
b83d6adb76
|
优化性能提交新功能
|
2026-05-25 12:23:00 +08:00 |
|
zqlit
|
9ab38b6e6a
|
修复流畅性
|
2026-05-25 00:03:50 +08:00 |
|
Vaica
|
d93167a114
|
fixed bug
|
2026-01-31 23:01:35 +08:00 |
|
Vaica
|
8c3232fadf
|
fixed bug
|
2026-01-31 21:27:06 +08:00 |
|
Vaica
|
7b945786ed
|
fixed bug
|
2026-01-31 18:18:19 +08:00 |
|
Vaica
|
0f7be7d270
|
added ai评论
|
2026-01-30 21:11:05 +08:00 |
|
Vaica
|
7de8d0e253
|
fixed 昼夜切换 bug
|
2026-01-29 20:33:30 +08:00 |
|
Vaica
|
830c2d5947
|
fixed bug 若干
|
2026-01-23 22:02:11 +08:00 |
|
Vaica
|
9e00544b19
|
fixed 移动端bug 评论手动刷新 bug
|
2026-01-23 16:20:37 +08:00 |
|
Vaica
|
7fb936ba78
|
fixed 文章页 评论区bug
|
2026-01-23 13:19:05 +08:00 |
|
Vaica
|
371ec8adca
|
fixed 关于页面bug
|
2026-01-22 21:26:48 +08:00 |
|
Vaica
|
c6adb1693f
|
fixed:文章id连续修复
|
2026-01-20 21:13:24 +08:00 |
|
Vaica
|
21fa47801b
|
修复若干bug
|
2026-01-20 20:09:46 +08:00 |
|
Vaica
|
c83c28fb9c
|
added:昼夜模式,毛玻璃特效
|
2026-01-18 23:09:07 +08:00 |
|
Vaica
|
7ecd47d514
|
2025.4.13
|
2025-04-13 19:08:41 +08:00 |
|
Vaica
|
7487c97d43
|
20250409
|
2025-04-09 11:06:39 +08:00 |
|
Vaica
|
c374f8128f
|
Update artalk.html
|
2025-04-06 14:53:50 +08:00 |
|
Vaica
|
8c0a488dce
|
修改暗夜模式适配
|
2025-03-31 10:46:45 +08:00 |
|
小赵同学
|
64c3e260d4
|
8.9 全部功能写完了
|
2024-08-09 12:58:42 +08:00 |
|
小赵同学
|
acde3e57aa
|
8.9 优化主题动效
|
2024-08-09 10:36:58 +08:00 |
|
小赵同学
|
3bdbcb59d5
|
8.8
|
2024-08-08 17:44:06 +08:00 |
|
小赵同学
|
d9f1fbdb28
|
8.8
|
2024-08-08 15:16:42 +08:00 |
|
小赵同学
|
91399bb457
|
7567
|
2024-08-08 13:30:21 +08:00 |
|