Releases: bs-community/blessing-skin-server
Releases · bs-community/blessing-skin-server
4.0.0 - Tamias
历时 10 个月,Blessing Skin 4.0.0 终于能与大家见面了。
欢迎通过赞助来支持 Blessing Skin 的开发!您可以通过 爱发电 来进行赞助。如果您觉得使用爱发电有点烦琐,也可以直接扫描下方的二维码。
这个列表仅仅列出了我们在 4.0.0 中改动的内容。如果想要了解如何升级,请阅读 升级指南。
显著的更改
- 升级 Laravel 至 5.8 版本(需要 PHP 版本 >= 7.1.8),更好地支持 PHP 7.2 及以上版本
- 应用入口已由
index.php
改为public/index.php
,您需要修改 Web Server 的网站根目录为原目录下的public
目录 - 角色不再有「模型」的概念,并且
players
表结构发生变化,您需要执行php artisan bs:migrate-v4:players-table
进行更新 - 重写了衣柜的代码,您需要执行
php artisan bs:migrate-v4:closet
进行更新 - 重构了认证系统
- 浏览器兼容性:不再支持 IE
- PHP 的
fileinfo
扩展现在是必须安装并启用的 - 开源许可证已从 GPL v3 更改为 MIT
新增
- 安装时要求填写超级管理员的昵称
- 安装时可填写数据库信息,免去手动修改 .env 文件
- 「衣柜」页面在选择角色时显示角色对应材质的头像
- 上传材质前显示所上传的材质消耗的可能的积分
- 皮肤库中增加「可将材质应用到角色」的按钮
- 皮肤库中添加「下载材质」的按钮
- 可用的 API:访问
/avatar/player/{size}/{name}.png
可获取角色对应的皮肤头像,使用时把{size}
换成您需要的尺寸大小、{name}
换成相应的角色名。(您可以考虑在启动器中使用此 API!) - 添加自定义前端资源文件 CDN 地址的选项
- 添加为 SEO 而自定义
meta
标签的选项 - 现在可以直接从皮肤库中打开皮肤页面然后设为头像,不再需要添加到衣柜中
- 允许重置头像
- 内置对 Redis 的支持
- 可设置用户分享材质时额外获得的积分
- 更多关于缓存的配置
- 支持纯命令行方式的安装
- 内置对 reCAPTCHA 的支持(感谢 @tnqzh123 )
- 增加举报材质的功能
- 增加「内容策略」选项,此选项的内容将在材质上传时显示
- 增加新的密码加密算法 Bcrypt。新安装的 Blessing Skin 将使用此算法作默认算法;已安装的用户不受影响(如果您正在使用的是
PHP_PASSWORD_HASH
算法,那么也可以改为使用此算法,这不会影响现有用户的登录)
调整
- 页面左上角的 Logo 使用 Minecraft 字体(之前是 Ubuntu 字体)
- 简化上传材质时对材质类型的选择
- 皮肤库的筛选和搜索功能从顶部移到主体的 box 内
- Font Awesome 升级到 v5
- 将设置管理员或封禁合并在一个操作内
- 移除 Toastr 库和 SweetAlert2 库,改为使用 ElementUI
- 美化用户中心的仪表盘
- 美化管理面板的仪表盘
- 在安装好 Blessing Skin 后,避免不必要的环境检查
- 使用新的 DataTables 库
- 在皮肤库中更改材质名时若发现重复材质提示返回材质名而不是 TID
- 优化访问管理面板中仪表盘时的数据库查询性能
- 改善「在衣柜中创建角色」的体验
- 改善「在皮肤库中应用材质到角色」的体验
- 延迟更新检查
- 当没有启用评论功能时隐藏评论框
- 默认下首页顶部导航栏为不透明,可通过设置进行修改
修复
- 在删除账号时后端不检查用户是否为管理员的问题
- 「衣柜」页面在重置所选材质后,衣柜列表中被选过的项目的
item-selected
类未被移除的问题 - Firefox 下左侧菜单栏显示更新提示的错位问题
- 移动端显示管理面板选项的错位问题
- 管理面板中「角色名长度」选项文本过多导致输入框太小的问题
- 获取头像时没有按指定大小来生成头像的问题
移除
- 皮肤库按关键字搜索后左上角不再显示「xxx 的搜索结果」
- 移除了
App\Services\Utils
类 - 移除了前端的 iCheck 库
插件
Authme 数据对接
- 增加对 SQLite 数据库的支持
- 修复 SALTEDSHA512 的加密问题
论坛数据对接
- 增加对 Flarum 的支持
Yggdrasil API
- 更进一步贴近 Yggdrasil API 规范
CrazyLogin 数据对接
- 已停止支持,因此本插件已被移除
We just list what we have changed in 4.0.0 here. For migration guide, please refer to Migration Guide.
Notable Changes
- Laravel was updated to 5.8, which will give us better support of PHP 7.2 and above. This requires PHP 7.1.8 or above.
- Application entry was changed from
index.php
topublic/index.php
. So you need to modify the root directory of your web server to thepublic
directory under the original directory. - The concept "preference" of player was no longer existed. And, this causes the structure of Table
player
has been changed. You're required to executephp artisan bs:migrate-v4:players-table
to update. - We've rewrited functionality of closet. You're required to execute
php artisan bs:migrate-v4:closet
. - Authentication system has been refactored.
- Browsers compatibility: Dropped support of Internet Explorer.
- The PHP extension
fileinfo
now is required. - Open-source license has been changed to MIT.
Added
- Nickname of super administrator is required in installation wizard.
- You can fill in the database information in installation wizard instead of modifying
.env
file. - Avatars of players will be shown when applying textures to players.
- Possible score consumption will be noticed before uploading texture.
- Button "Apply texture to player" has been added in skin library.
- Button "Download texture" has been added in skin library.
- New available HTTP API: Fetch
/avatar/player/{size}/{name}.png
and you will retrieve avatar corresponding to the player. You need to replace{size}
with actual size you want and replace{name}
with actual player name you want. (You can use this feature in your self-made game launcher.) - Added option about CDN of front end assets.
- Options about HTML
meta
tag were added for SEO. - Open a skin detail page in skin library and set it as avatar is allowed, no need to add it to closet.
- Resetting avatar is allowed.
- Redis support was shipped natively.
- You can allow users to gain more scores if they share textures.
- Added more configuration items about cache.
- You can install Blessing Skin in CLI without any interaction now. (Web installation is still available.)
- reCAPTCHA support was shipped natively. (Thanks @tnqzh123 )
- You can report textures now.
- "Content Policy" option was added. This option let you show a piece of text to user in skin upload page.
- New password encryption algorithm Bcrypt was added. This is the default algorithm of newly installed Blessing Skin. For installed before Blessing Skin, there won't be anything to do. However, if you're using
PHP_PASSWORD_HASH
, you can change to use this new algorithm and it don't cause any side effects to old users.
Tweaked
- Font of logo at the left top corner was changed to "Minecraft Font", while previously it was "Ubuntu Font".
- Simplified choices of texture type when uploading texture.
- Move UI component of filtering and searching of skin library to the main box.
- Font Awesome was upgraded to v5.
- Merge two operations "Set as Administrator" and "Ban" to one.
- Removed Toastr and SweetAlert2. Now we're using ElementUI.
- Beautified dashboard of user center.
- Beautified dashboard of administration panel.
- Avoid unnecessary checks after installed Blessing Skin successfully.
- New DataTables library was shipped.
- Texture name instead of Texture ID will be noticed if it's duplicated when modifying texture name in skin library.
- Optimized database performance of visiting dashboard of administration panel.
- Improved UX of creating player in closet.
- Improved UX of applying texture to player in skin library.
- Defer update checks.
- Hide comment box if comment is disabled.
- By default the top navigation bar of home page won'be transparent, but this can be tweaked in settings.
Fixed
- Fixed that permission wasn't checked at back end when deleting account.
- Fixed that CSS class
item-selected
of choosen item wasn't been removed if selected textures were reset at closet page. - Fixed dislocation of update notice for Firefox.
- Fixed dislocation of options in administration panel for mobile users.
- Fixed length of input box of "Player Name" in administration panel when text is too long.
- Fixed that specified size was ignored when generating avatars.
Removed
- Text "Search result of ..." in skin library was removed.
- Removed PHP class
App\Services\Utils
. - Removed front end library: iCheck.
Plugins
Authme Integration
- SQLite support was shipped.
- Fixed problem of using "SALTEDSHA512" algorithm.
Forum Integration
- Flarum support was shipped.
Yggdrasil API
- More specification compliance.
CrazyLogin Integraion
- We've dropped support of CrazyLogin, so the plugin was removed.
4.0.0-rc.1
如果顺利,约两个星期后会发布正式版。
4.0.0-beta.2
主要修复了一些在 4.0.0-beta.1 中存在的 bugs。
如无意外,下个版本将是 4.0.0-rc.1。
4.0.0-beta.1
Highlights
- 整合多个 BS 官方插件进入核心
- 支持 reCAPTCHA (感谢 @tnqzh123 )
- UI 风格调整
如果您从上一预览版进行升级,请务必运行 php artisan migrate
命令。
v4.0.0-alpha.6
经过好几次的 CI 调整,最终以切换到 Travis CI 告终。