feat(comments): full 1:1 zibll comment kernel for posts, forum, shop

Extract shared comment helpers (content/item/form/geo/actions), port GIF
[g=] smilies + FixedInput/moveForm UX, wire close_comments/city/quick
settings, REST comment get, and align product review chrome with zibll.
This commit is contained in:
2026-07-18 15:51:47 +08:00
parent 9edd39c33d
commit 276a2891ba
116 changed files with 2658 additions and 1848 deletions
@@ -23,6 +23,10 @@ export const commentSchema = {
comment_hot_threshold: 10,
comment_quick_s: true,
comment_city_s: true,
comment_city_type: 'province_city',
comment_quick_often: '不错,学习了
感谢分享
期待更新',
comment_author_tag: true,
comment_corderby: true,
comment_empty_text: '暂无评论,来做第一个评论的人吧~',
@@ -83,6 +87,14 @@ export const commentSchema = {
{ key: 'comment_like_s', label: '评论点赞', type: 'switch', default: true },
{ key: 'comment_quick_s', label: '快捷回复', type: 'switch', default: true },
{ key: 'comment_city_s', label: '评论城市', type: 'switch', default: true },
{ key: 'comment_city_type', label: '城市显示格式', type: 'radio', default: 'province_city', options: [
{ label: '省份+城市', value: 'province_city' },
{ label: '仅省份', value: 'province' },
{ label: '国家+省份', value: 'country_province' },
], dependsOn: { key: 'comment_city_s', value: true } },
{ key: 'comment_quick_often', label: '快捷回复短语', type: 'textarea', default: '不错,学习了
感谢分享
期待更新', help: '每行一条', dependsOn: { key: 'comment_quick_s', value: true } },
{ key: 'comment_author_tag', label: '作者标签', type: 'switch', default: true },
{ key: 'comment_corderby', label: '评论排序切换', type: 'switch', default: true, help: '前台显示最新/最早/最热切换按钮' },
],