Sad-Dev Dairy
Although I feel very sad, but I have to admit that I've switched to TDSX which is a quick tool for Typescript library dev environment setup, by doing that I can fix the problem with Invalid React Hook which appears to be unfixable at this time by myself. Shame on me, I will figure out the real cause as soon as possible. Let's just focus on development for now.
So interesting to find out that Typescript will complain whenever a name of Component doesn't starts with a capital letter.
;; ; /** * SWR component * using AsyncGet as the fetcher * * @param * @returns {{ commentsData: commentsItemType[], isLoading: boolean, isError: string, }}; */; /** * Fetch comments data from the cloud * * @param * @returns {Promise<commentsItemType[]>} */;; ; });
功能实现清单
基础功能
- 标识页面 ID (内置 ID Generator 库,获取地址栏信息)
- 不同页面同标识实现 (属性配置展示「当前展示另一页面数据」的提示)
- 评论列表
最新评论在前 / 在后开关- 无限级评论 (展示两级,两级以上展示按钮弹窗加载新列表)
- 评论内容框
滑动过评论框后展示简洁样式并固定- MarkDown 支持
- 图片链接插入支持
- 滑块展示,左右按钮,最大 5 张,超过 5 张按钮弹窗加载新页面
- 图片点击展示大图,纯色背景上加载图片
公开性设置 (是否仅博主/评论者可见)- Emoji 选择
- 昵称 (必填)
- 邮箱 (必填)
- 密码 (开启编辑功能必须设置密码,发布前提示。密码已设置提示输入密码,否则提示是否开启编辑功能)
- 内容 (必填)
- 重置回复
- 回复
- 收到回复通知开关
- 管理员配置及验证
- 评论者 Tag
- 评论者信息 Local storage 储存
- 管理模式
- 评论精选
- 评论 Label