Artalk Versions Save

🌌 自托管评论系统 | Your Self-hosted Comment System.

v2.5.0

1 year ago

v2.5.0 (2023-03-10)

Features

  • migrate from echo to go-fiber
  • upgrade go to v1.20.1
  • display IP region of comment (#418) (#447)
  • docker ci add support for building arm64 wheels
  • more functions to handle artalk lifecycle (#426)
  • ui: add some static methods
  • ui/height_limit: support scrollable height limit area (#451)
  • ui/sidebar: add dark mode support (#450)
  • captcha: add support for reCAPTCHA and hCaptcha (#456)
  • captcha: support turnstile captcha by cloudflare (#453)
  • i18n: add i18n support for backend (#343)
  • i18n: translations for backend (#344)
  • i18n: add i18n support for sidebar (#353)
  • i18n: add zh-TW i18n translation for sidebar and app

Bug Fixes

  • ui: hash goto function check condition issue
  • ui/conf: avoid some conf overrides frontend from the backend (#449)
  • ui/editor: disable img upload cannot hide its btn
  • ui/i18n: subscribe event priority issue
  • ui/sidebar: array type of preference initial data issue
  • ui/sidebar: array type config option cannot be shown
  • ui/sidebar: boolean type setting option save issue (#431) (#444)
  • ui/sidebar: setting item save follow type of template
  • lint: add tsc check before vite compile (#440)
  • email: duplicate sending with multiple admins using same email addrs (#375)
  • email: email queue initialization issue (#374)
  • email: failback to email.mail_tpl if admin_notify.email.mail_tpl is empty
  • timeAgo function does not display the now
  • add .npmignore to fix NPM publish inclusion issue
  • sidebar navigation sorting (#361)

Performance Improvements

  • improve some css styles
  • add graceful shutdown
  • conf/i18n: detect and change locale when config file contains chinese
  • ui/list: remove useless function call
  • ui/sidebar: improve sidebar i18n

Code Refactoring

  • bump to monorepo
  • renamed from artalk-go to artalk
  • http origin checker
  • abstract email service
  • project package structure
  • remove version two-way check (#452)
  • build scripts and CI tests
  • replace pkger with go:embed
  • launch with vscode debugger
  • CI: one-key site creating with artalk integrated
  • CI: improve build and release workflows (#358)
  • captcha: abstract captcha service (#455)
  • comment: separate comment ui renders from single file (#427)
  • style: convert to use Sass as a style interpreter (#439)
  • ui: automatic dependency injection (#429)
  • ui/checker: simplify checker lifecycle function param table (#428)
  • ui/dark-mode: separate dark mode logic into its own module (#430)
  • ui/editor: modify editor ui to standalone module (#441)
  • ui/editor: change functions of editor to standalone modules (#443)
  • ui/height-limit: modify height limit function to standalone module (#435)
  • ui/i18n: improve i18n function to standalone module (#434)
  • ui/list: modify list pagination to standalone module (#437)
  • page/fetch: remove goquery dependency when extracting page data (#442)
  • anti_spam/qcloud-tms: implement qcloud tms api without sdk (#438)

Documentation

  • migrate ArtalkJS/Docs to monorepo docs
  • add CODE_OF_CONDUCT.md
  • add simplified README for artalk npm package
  • add translation section to CONTRIBUTING.md
  • fix wrong config value (#371)
  • fix broken links (#364)
  • add open api (#360)
  • add Project Structure section to CONTRIBUTING.md
  • refine and add frontend api docs
  • update setup-example-site.sh script usage
  • init artalk with new frontend api
  • deploy: add restart=always for docker to auto restart (#425)
  • extras: add deploy guide for vuepress (#436)

v2.4.3

1 year ago

⚠️ Are you looking for historical versions?

The backend code for Artalk has been merged into this repository. This page does not include all historical versions. Previous versions of the program can be found on the release page of the ArtalkJS/ArtalkGo code repository: https://github.com/ArtalkJS/ArtalkGo/releases.

(Related PR: #345)

⚠️ 您是否在寻找历史版本?

Artalk 后端代码已合并至该仓库,本页面并不包含所有历史版本,旧版程序可在 ArtalkJS/ArtalkGo 代码仓库的发行页中找到:https://github.com/ArtalkJS/ArtalkGo/releases

(相关的 PR: #345)

新增

  • 新增控制台 账户管理 功能 (#296)
  • 新增控制台 评论搜索 功能 (#294)
  • 新增控制台 独立登录页面
  • 默认引用来自后端 API 提供的前端配置 (默认启用 useBackendConf) (#302)
  • 新增配置项 avatarURLBuilder 支持自定义生成头像链接 (#295)

优化

  • 侧边栏呼出动画性能优化 (44ef08d)
  • 控制台设置界面优化 (70c6ee2)

修复

  • 修复对 base64 图片插入的支持 (#288)
  • 删除重复且无用的侧边栏 Layer 元素 (#293)
  • 修复控制台的若干问题

变动

⚠️ 前端目前已默认将 useBackendConf 设置为 true,这将默认引用来自后端 API 提供的配置:你在前端代码中编写的配置将会被覆盖。

new Artalk({
  useBackendConf: true // 新版默认此项为 true
})

你可在控制台“设置”界面修改前端配置项,若有需要可将 useBackendConf 设置为 false

(详情见文档:在后端控制前端)

后端更新

请升级后端到 v2.3.0+

Full Changelog: https://github.com/ArtalkJS/Artalk/compare/v2.4.2...v2.4.3

v2.4.1

1 year ago

新增

优化

修复

Full Changelog: https://github.com/ArtalkJS/Artalk/compare/v2.3.4...v2.4.0

v2.3.2

1 year ago

优化

  • imgUploader 配置项:返回值仅传递上传后的图片 URL by @inkss (#166)

修复

  • 修复 Loading 加载层界面可能失效的问题 (2770c13)

Full Changelog: https://github.com/ArtalkJS/Artalk/compare/v2.3.1...v2.3.2

v2.3.3

1 year ago

修复

  • 表情包只有1种时,this.$grpSwitcher 为 undefined by @inkss in (#169)
  • zh-CNemail 应为 邮箱 而不是 邮件

Full Changelog: https://github.com/ArtalkJS/Artalk/compare/v2.3.2...v2.3.3

v2.3.4

1 year ago

新增

  • 评论内容编辑功能 (管理员) (#188)

优化

  • 更新依赖到最新版本
  • 样式微调,zh-CN 语言微调
  • API 请求总是携带 site_name 站点名参数
  • Artalk.Use 方法名改小写为 .use(...),添加实例的 use 方法 (#189)

修复

  • 在 Context 中添加 setDarkMode 方法

后端请更新到 v2.1.10+

Full Changelog: https://github.com/ArtalkJS/Artalk/compare/v2.3.3...v2.3.4

v2.3.1

2 years ago
image

新增

优化

  • 样式调整,去除多余的线条,更为简洁
  • 去除默认 font-family CSS 样式

重构

变动

⚠ 事件名发生了改变,comments-loaded 改为 list-loaded。可以参考代码

Full Changelog: https://github.com/ArtalkJS/Artalk/compare/v2.2.12...v2.3.1

后端需升级 v2.1.7+

v2.2.12

2 years ago

新增

  • 子评论添加 AT 回复显示
  • 支持配置项 darkMode: "auto" 跟随操作系统
  • 支持关闭表情包功能 emotions: false
  • 将两层嵌套设置为默认配置
  • 新增配置项 nestSort
  • maxNesting 配置名称改为 nestMax
  • 支持在前端使用后端提供的配置
  • 侧边栏增加缓存操作按钮

优化

  • 优化 API 请求代码 (使用 AbortController)
  • 添加 AbortController Polyfill
  • 优化层级嵌套模式

修复

  • 修复评论回复找不到元素的异常
  • 修复侧边栏评论回复交互问题
  • 修复两层嵌套排序问题
  • 修复 conf.noComment 修改无效问题

Full Changelog: https://github.com/ArtalkJS/Artalk/compare/v2.2.7...v2.2.12

v2.2.6

2 years ago

image

前端更新 v2.1.1 ~ v2.2.6,后端更新内容见 Releases

更新

  • 图片上传
  • 评论排序
  • 评论置顶
  • 滑动验证码
  • 页面访问量计数
  • 样式表细节优化
  • 相对路径支持优化
  • 前后端版本匹配检测

侧边栏

  • 找不到站点时自动显示创建表单
  • 导入功能 (Artransfer) 优化
  • 一键更新页面标题功能

表情包

  • 表情包动态 / 嵌套加载
  • 表情包兼容 OwO 格式

配置项

  • conf.server 不再要求填入 /api 路径
  • conf.el 允许传入 HTMLElement 类型值

其他

  • 升级 marked 升级到最新版
  • 新增 latex 支持 (额外插件引入)
  • 新增 highlight js 支持 (额外插件引入)

修复

  • 管理员 Token 失效重新登录
  • Win 11 / macOS BigSur+ 系统版本识别
  • 相对链接跳转问题
  • 图片验证码尺寸太小问题
  • 同时显示两个 Checker Layer 问题
  • 需要密码响应信息误判问题
  • 侧边栏切换站点翻页问题

重构

  • 侧边栏独立拆分,并嵌入后端程序
  • monorepo 重新组织前端项目
  • yarn 切换使用 pnpm

截图演示

Latex / Geetest / 粘贴上传图片 / 后端 CLI 一键更新 / 标题一键更新 / 站点自动创建

文件体积

36.04 kB gzipped

gzipped

v2.1.3

2 years ago

image

更新

  1. 全新 Sidebar UI 设计
    1. 评论 / 页面 / 站点管理
    2. 全局文本内容编辑器
    3. 站点切换悬浮组件
    4. View / Tab 切换
    5. 头部显示头像 / 站点名
    6. 通用表单界面
  2. 数据迁移导出功能 (快速备份)
  3. 全局分页功能 (上下翻页,输入跳转)
  4. 全局操作按钮小组件 (ActionBtn)
  5. 内容限制高度 (heightLimit, 显示全文按钮)
    1. 评论内容限高 (heightLimit.content:200)
    2. 子评论 Wrap 限高 (heightLimit.children:300)
  6. 评论分页方式可选 (分页条 / 加载更多按钮 / 滚动加载)
  7. 小尺寸设备 UA 徽标换行显示
  8. 小尺寸设备自动切换显示为平铺模式 (flatMode:'auto')
  9. 加载组件图标延迟显示 (加载持续时间短则闪一下即可)
  10. 加载更多按钮样式改进 (不再横向铺满)
  11. 缩小版权文字 (不换行显示)
  12. 新增多个部分的加载动画
  13. 支持关闭显示 UA 徽标 (uaBadge:false)
  14. 支持关闭显示 投票按钮 (vote:false)
  15. 请求超时设定 (reqTimeout:8000)
  16. 最大嵌套数指定 (maxNesting:3)
  17. 前后端版本匹配检测(更新提示,可禁用)
  18. Event 事件绑定功能

后端程序请升级至 v2.0.4+

此版本 ArtalkConfig 发生了改变,可能需要修改前端配置 (default-conf.ts / artalk-config.d.ts)

详细食用方法请查阅 “Artalk 文档”(目前文档正在逐渐完善中...)

修复

  • 投票错误逻辑 (同时投反对和赞同)
  • 侧边栏打开时页面抖动问题
  • 评论数不同步问题 (创建新评论时)
  • 滚动加载更多评论 (autoLoad) 失效
  • 用户 link 未设定时,点击昵称打开新的当前页
  • 同时显示多个相同的 Checker (验证码/管理员验证) Layer
  • Sidebar Tab 按钮快速连续点击创建多个重复内容
  • 子评论头像和内容的间距过大
  • 一些表单的回车提交事件绑定
  • Safari 浏览器下奇奇怪怪的显示
  • 暗黑模式表单的背景颜色

演示

https://user-images.githubusercontent.com/22412567/141145064-5b88397e-bb58-4c11-8617-3d56f5b31e3c.mov

截图:内容限高 / 查看更多 / 分页条 / 通知中心 / 页面修改 / 文本编辑

文件体积

gzipped

其他

  • 重构 Api 类
  • 定义 CheckerLauncher 类
  • ts 文件名全部改为小写
  • Element 类型变量名前缀改为 $
  • 移除实例化 Artalk 对象时显示的 console 信息