From e17c58490ed21c4f31a77d211e04f5000dd019d1 Mon Sep 17 00:00:00 2001 From: zihluwang Date: Tue, 24 Feb 2026 12:38:13 +0800 Subject: [PATCH] feat: add changelog page and update navigation links --- src/init/i18n/locales/BritishEnglish.json | 13 ++ src/init/i18n/locales/SimplifiedChinese.json | 13 ++ src/layout/hero-layout/index.tsx | 6 + src/layout/tools-layout/index.tsx | 23 ++- src/page/changelog/index.tsx | 142 +++++++++++++++++++ src/router/index.tsx | 4 + 6 files changed, 189 insertions(+), 12 deletions(-) create mode 100644 src/page/changelog/index.tsx diff --git a/src/init/i18n/locales/BritishEnglish.json b/src/init/i18n/locales/BritishEnglish.json index 7625722..f7a458d 100644 --- a/src/init/i18n/locales/BritishEnglish.json +++ b/src/init/i18n/locales/BritishEnglish.json @@ -8,6 +8,7 @@ "home": "Home", "about": "About", "contact": "Contact", + "changelog": "Changelog", "tools": "Tools", "jsonProcessing": "JSON Processing", "dailyTools": "Daily Tools", @@ -43,6 +44,10 @@ "contact": { "title": "Contact DevLab", "description": "Get in touch via GitHub Issues for support, bug reports, or feature requests." + }, + "changelog": { + "title": "Changelog", + "description": "A complete history of updates and improvements to DevLab." } }, "home": { @@ -170,5 +175,13 @@ "scale": { "title": "BMI Categories" } + }, + "changelog": { + "title": "Changelog", + "description": "All notable changes to DevLab are documented here.", + "featureType": "Feature", + "fixType": "Fix", + "refactorType": "Refactor", + "choreType": "Chore" } } diff --git a/src/init/i18n/locales/SimplifiedChinese.json b/src/init/i18n/locales/SimplifiedChinese.json index 0712c82..d4fc6b7 100644 --- a/src/init/i18n/locales/SimplifiedChinese.json +++ b/src/init/i18n/locales/SimplifiedChinese.json @@ -8,6 +8,7 @@ "home": "首页", "about": "关于", "contact": "联系", + "changelog": "更新日志", "tools": "工具", "jsonProcessing": "JSON 处理", "dailyTools": "日常小工具", @@ -43,6 +44,10 @@ "contact": { "title": "联系 DevLab", "description": "通过 GitHub Issues 反馈问题或提交功能需求。" + }, + "changelog": { + "title": "更新日志", + "description": "DevLab 完整的更新和改进历史记录。" } }, "home": { @@ -170,5 +175,13 @@ "scale": { "title": "BMI 分类" } + }, + "changelog": { + "title": "更新日志", + "description": "DevLab 所有值得关注的变更都记录在此。", + "featureType": "功能", + "fixType": "修复", + "refactorType": "重构", + "choreType": "维护" } } diff --git a/src/layout/hero-layout/index.tsx b/src/layout/hero-layout/index.tsx index 9002178..aa44f94 100644 --- a/src/layout/hero-layout/index.tsx +++ b/src/layout/hero-layout/index.tsx @@ -43,6 +43,12 @@ export default function HeroLayout() { > {t("navigation.contact")} + + {t("navigation.changelog")} + diff --git a/src/layout/tools-layout/index.tsx b/src/layout/tools-layout/index.tsx index b3f13f0..43982c9 100644 --- a/src/layout/tools-layout/index.tsx +++ b/src/layout/tools-layout/index.tsx @@ -38,22 +38,24 @@ export default function ToolsLayout() { @@ -66,8 +68,7 @@ export default function ToolsLayout() {