这次的 Flarum beta 版发布,给代码和安装过程带来了相当大的变化,以及非常多的新功能和 bug 修复。
基于 Composer
Composer 是 PHP 的依赖管理工具。它允许应用程序很容易地使用第三方的代码库,这意味着我们可以避免重新发明轮子。
在 beta3 发布之前,我们也使用 composer 管理我们的开发工程,包括扩张包的开发。
后端代码和API的重构
所有的后台类,命名空间,和事件进行了系统的整理。扩展的工作方式也发生了一些轻微的变化。因此,beat2 的扩展将不能安装在 beta3 上。
改进国际化
将一些硬编码提取到了单独的语言包之内。语言包的工作方式也和 beta2 有所不同,我们单独开发了 flarum/english 仓库管理这些语言包。
New moderation tools
- Hide/restore discussions. Discussions can be soft-deleted by moderators or by the OP if no one has replied.
- Flags. New bundled extension that allows posts to be flagged for moderator review.
- Approval. New bundled extension that hides/flags new posts to be approved by the moderation team.
- Akismet. New bundled extension that checks new posts for spam with Akismet.
- IP address logging. IP addresses are stored with posts for use by extensions (e.g. Akismet).
- Flood control. Users must wait at least ten seconds between consecutive posts.
Other features
- Social login. New bundled extensions that allow users to log in with Facebook, Twitter, and GitHub.
- More compact post layout. All controls are grouped over to the right.
- Improved permissions. The admin Permissions page has been improved with icons and other tweaks.
- Improved extension management. The admin Extensions page has a new look and is easier to use.
- Easier debugging. The "oops" error message has a Debug button to inspect a failed AJAX request.
- Improved JavaScript minification. Minification is done by ClosureCompiler only when debug mode is off, resulting in easier debugging and smaller production assets.
中文来源:http://discuss.flarum.org.cn/d/214