diff --git a/blog/answer-1.5.0-release/index.md b/blog/answer-1.5.0-release/index.md new file mode 100644 index 000000000..d7cdeafef --- /dev/null +++ b/blog/answer-1.5.0-release/index.md @@ -0,0 +1,53 @@ +--- +date: 2025-04-30 +title: "Answer 1.5.0: New Sidebar Layout & Tag Merge Feature" +authors: [shuai] +category: Release +featured: true +image: 2025-04-30-cover@4x.png +description: "Answer 1.5.0 introduces full-width layout with sticky left menu, tag merging, and optimized mobile navigation UI." +--- + +## 🎉 New Features + +### Full-Width Layout with Sticky Left Menu + +This update introduces a brand-new full-width layout. The left menu now supports sticky positioning, and the admin panel menu maintains consistency with the main site while adding icons to distinguish between different navigation levels, providing users with a smoother browsing experience. + +![site](./layout-1.jpg) + +![admin](./layout-2.jpg) + +### Tag Merge Feature + +Added a tag merge feature for administrators and moderators. After merging, questions and followers associated with the source tag will be transferred to the new tag. + + +![merge-tag01](./merge-tag1.png) + +![merge-tag02](./merge-tag2.png) + +## 🔧 Improvements + +- **Unified Admin Panel Left Menu Style**: The left menu in the admin panel now matches the site's style, improving visual consistency. +- **Optimized Mobile Search & Question Layout**: Enhanced the search and question page layouts on mobile devices for easier navigation. +- **Prevent Suspended Users from Logging In**: The system now blocks suspended users from logging in, improving security. +- **Auto-Set Server Time Zone as Default**: Automatically detects the server's location during installation and sets the default time zone, reducing manual configuration. +- **Search Plugin for Similar Questions on Ask Page**: Allows using a search plugin to quickly find similar questions when posting, avoiding duplicates. +- **Optimized Reaction Button Style in Dark Theme**: Improved the visual design of reaction buttons in dark mode. + +## 🐞 Bug Fixes +- **Username Minimum Length Set to 2**: Fixed a bug where the username minimum length was set to 2 but still prompted for a minimum of 4 characters. +- **Suspended Users Receiving Email Notifications**: Resolved an issue where suspended users could still receive email notifications. +- **Duplicate Questions in Tag Search**: Fixed a bug where searching by tag could return duplicate questions. +- **answer build --output Relative Path Not Working**: Corrected an issue where using relative paths for build output was ineffective. +- **Nil Pointer Error When Fetching Tags**: Fixed a nil pointer error that could occur when retrieving tags under certain conditions. +- **Duplicate Security Requirements in Swagger Docs**: Removed redundant security requirement declarations in Swagger documentation. + + +## ❤️ Thanks You Contributions + +A big thanks to all contributors who helped develop this release (sorted by GitHub ID): +[@hgaol](https://github.com/hgaol), [@LinkinStars](https://github.com/LinkinStars), [@seiyab](https://github.com/seiyab), [@shuashuai](https://github.com/shuashuai), [@sy-records](https://github.com/sy-records), [@xuthus5](https://github.com/xuthus5) + +Your contributions made this release even better! 🚀 \ No newline at end of file diff --git a/blog/answer-1.5.0-release/layout-1.jpg b/blog/answer-1.5.0-release/layout-1.jpg new file mode 100644 index 000000000..696a23034 Binary files /dev/null and b/blog/answer-1.5.0-release/layout-1.jpg differ diff --git a/blog/answer-1.5.0-release/layout-2.jpg b/blog/answer-1.5.0-release/layout-2.jpg new file mode 100644 index 000000000..d0b54178e Binary files /dev/null and b/blog/answer-1.5.0-release/layout-2.jpg differ diff --git a/blog/answer-1.5.0-release/merge-tag1.png b/blog/answer-1.5.0-release/merge-tag1.png new file mode 100644 index 000000000..ea6b8e7b4 Binary files /dev/null and b/blog/answer-1.5.0-release/merge-tag1.png differ diff --git a/blog/answer-1.5.0-release/merge-tag2.png b/blog/answer-1.5.0-release/merge-tag2.png new file mode 100644 index 000000000..9685dd46f Binary files /dev/null and b/blog/answer-1.5.0-release/merge-tag2.png differ diff --git a/i18n/zh-CN/docusaurus-plugin-content-blog/answer-1.5.0-release/index.md b/i18n/zh-CN/docusaurus-plugin-content-blog/answer-1.5.0-release/index.md new file mode 100644 index 000000000..662336059 --- /dev/null +++ b/i18n/zh-CN/docusaurus-plugin-content-blog/answer-1.5.0-release/index.md @@ -0,0 +1,52 @@ +--- +date: 2025-04-30 +title: "Answer 1.5.0: 全新侧边栏布局与标签合并功能" +authors: [shuai] +category: Release +featured: true +image: 2025-04-30-zh-cover@4x.png +description: "Answer 1.5.0 支持全宽布局与粘性左侧菜单、标签合并功能,优化了移动端导航的 UI, 提升用户体验" +--- + +## 🎉 新功能 + +### 全宽布局与粘性左侧菜单 + +本次更新引入了全新的全宽布局,左侧菜单现在支持粘性定位,管理后台菜单保持跟主站一致同时添加了图标用于区分不同级别的导航,为用户提供更流畅的浏览体验。 + +![site](./layout-01.png) + +![管理后台](./layout-02.png) + +### 标签合并功能 + +为管理员和版主添加了标签合并功能。标签合并后,源标签的问题和关注者也将在新标签下传输。 + +![merge-tag01](./merge-tag1.png) + +![merge-tag02](./merge-tag2.png) + +## 🔧 改进 + +- **管理员面板左侧菜单样式统一**:管理员面板的左侧菜单现在与站点风格保持一致,提升整体视觉一致性。 +- **移动端搜索与提问布局优化**:改进了移动设备上的搜索和提问页面布局,使操作更加便捷。 +- **禁止已封禁用户登录**:系统现在会阻止已被封禁的用户登录,增强安全性。 +- **自动设置服务器所在时区为默认时区**:安装时自动检测服务器位置并设置默认时区,减少手动配置需求。 +- **提问页面支持搜索插件查找相似问题**:在提问页面可使用搜索插件快速查找相似问题,避免重复提问。 +- **暗黑主题下反应按钮样式优化**:优化了暗黑主题下的反应按钮样式,提升视觉效果。 + +## 🐞 Bug 修复 +- **用户名最小长度为 2**: 修正了用户名最小长度为 2 但是校验仍然提示最小长度为 4 的 bug。 +- **已封禁用户接收邮件通知**: 修复了已封禁用户仍能接收邮件通知的问题。 +- **按标签搜索时问题重复**: 解决了按标签搜索时可能返回重复问题的 bug。 +- **answer build --output 相对路径无效**: 修正了使用相对路径输出构建结果时无效的问题。 +- **获取标签时页面空指针错误**: 修复了在某些情况下获取标签时可能出现的空指针错误。 +- **Swagger 文档中重复的安全需求**: 移除了 Swagger 文档中重复的安全需求声明。 + + +## ❤️ 感谢贡献 + +感谢所有参与本次版本开发的贡献者(按 GitHub ID 排序): +[@hgaol](https://github.com/hgaol), [@LinkinStars](https://github.com/LinkinStars), [@seiyab](https://github.com/seiyab), [@shuashuai](https://github.com/shuashuai), [@sy-records](https://github.com/sy-records), [@xuthus5](https://github.com/xuthus5) + +你们的贡献让这个版本更加完善!🚀 \ No newline at end of file diff --git a/i18n/zh-CN/docusaurus-plugin-content-blog/answer-1.5.0-release/layout-01.png b/i18n/zh-CN/docusaurus-plugin-content-blog/answer-1.5.0-release/layout-01.png new file mode 100644 index 000000000..fc06331dc Binary files /dev/null and b/i18n/zh-CN/docusaurus-plugin-content-blog/answer-1.5.0-release/layout-01.png differ diff --git a/i18n/zh-CN/docusaurus-plugin-content-blog/answer-1.5.0-release/layout-02.png b/i18n/zh-CN/docusaurus-plugin-content-blog/answer-1.5.0-release/layout-02.png new file mode 100644 index 000000000..e01569050 Binary files /dev/null and b/i18n/zh-CN/docusaurus-plugin-content-blog/answer-1.5.0-release/layout-02.png differ diff --git a/i18n/zh-CN/docusaurus-plugin-content-blog/answer-1.5.0-release/merge-tag1.png b/i18n/zh-CN/docusaurus-plugin-content-blog/answer-1.5.0-release/merge-tag1.png new file mode 100644 index 000000000..1cf01967b Binary files /dev/null and b/i18n/zh-CN/docusaurus-plugin-content-blog/answer-1.5.0-release/merge-tag1.png differ diff --git a/i18n/zh-CN/docusaurus-plugin-content-blog/answer-1.5.0-release/merge-tag2.png b/i18n/zh-CN/docusaurus-plugin-content-blog/answer-1.5.0-release/merge-tag2.png new file mode 100644 index 000000000..6f6a062d7 Binary files /dev/null and b/i18n/zh-CN/docusaurus-plugin-content-blog/answer-1.5.0-release/merge-tag2.png differ diff --git a/static/data/latest.json b/static/data/latest.json index 021cc2843..aca620f4a 100644 --- a/static/data/latest.json +++ b/static/data/latest.json @@ -1,6 +1,6 @@ { "release": { - "version": "1.4.5", - "url": "https://github.com/apache/answer/releases/tag/v1.4.5" + "version": "1.5.0", + "url": "https://github.com/apache/answer/releases/tag/v1.5.0" } } \ No newline at end of file diff --git a/static/img/blog/2025-04-30-cover@2x.png b/static/img/blog/2025-04-30-cover@2x.png new file mode 100644 index 000000000..bb70f0e06 Binary files /dev/null and b/static/img/blog/2025-04-30-cover@2x.png differ diff --git a/static/img/blog/2025-04-30-cover@4x.png b/static/img/blog/2025-04-30-cover@4x.png new file mode 100644 index 000000000..bb70f0e06 Binary files /dev/null and b/static/img/blog/2025-04-30-cover@4x.png differ diff --git a/static/img/blog/2025-04-30-zh-cover@2x.png b/static/img/blog/2025-04-30-zh-cover@2x.png new file mode 100644 index 000000000..d082dfb47 Binary files /dev/null and b/static/img/blog/2025-04-30-zh-cover@2x.png differ diff --git a/static/img/blog/2025-04-30-zh-cover@4x.png b/static/img/blog/2025-04-30-zh-cover@4x.png new file mode 100644 index 000000000..d082dfb47 Binary files /dev/null and b/static/img/blog/2025-04-30-zh-cover@4x.png differ