فهرست منبع

🔗feat(ui): Enhance About page with interactive project links and improve external link handling

Apple\Apple 9 ماه پیش
والد
کامیت
387721e907
2فایلهای تغییر یافته به همراه12 افزوده شده و 4 حذف شده
  1. 2 1
      web/src/i18n/locales/en.json
  2. 10 3
      web/src/pages/About/index.js

+ 2 - 1
web/src/i18n/locales/en.json

@@ -1406,7 +1406,8 @@
   "New API项目仓库地址:": "New API project repository address: ",
   "New API项目仓库地址:": "New API project repository address: ",
   "© {{currentYear}}": "© {{currentYear}}",
   "© {{currentYear}}": "© {{currentYear}}",
   "| 基于": " | Based on ",
   "| 基于": " | Based on ",
-  "© 2023 JustSong。": "© 2023 JustSong.",
+  "MIT许可证": "MIT License",
+  "Apache-2.0协议": "Apache-2.0 License",
   "本项目根据": "This project is licensed under the ",
   "本项目根据": "This project is licensed under the ",
   "授权,需在遵守": " and must be used in compliance with the ",
   "授权,需在遵守": " and must be used in compliance with the ",
   "的前提下使用。": ".",
   "的前提下使用。": ".",

+ 10 - 3
web/src/pages/About/index.js

@@ -71,7 +71,14 @@ const About = () => {
           className="!text-semi-color-primary hover:!text-semi-color-primary-hover transition-colors"
           className="!text-semi-color-primary hover:!text-semi-color-primary-hover transition-colors"
         >
         >
           One API v0.5.4
           One API v0.5.4
-        </a> {t('© 2023 JustSong。')}
+        </a> © 2023 <a
+          href="https://github.com/songquanpeng"
+          target="_blank"
+          rel="noopener noreferrer"
+          className="!text-semi-color-primary hover:!text-semi-color-primary-hover transition-colors"
+        >
+          JustSong
+        </a>
       </p>
       </p>
       <p>
       <p>
         {t('本项目根据')}
         {t('本项目根据')}
@@ -81,7 +88,7 @@ const About = () => {
           rel="noopener noreferrer"
           rel="noopener noreferrer"
           className="!text-semi-color-primary hover:!text-semi-color-primary-hover transition-colors"
           className="!text-semi-color-primary hover:!text-semi-color-primary-hover transition-colors"
         >
         >
-          MIT许可证
+          {t('MIT许可证')}
         </a>
         </a>
         {t('授权,需在遵守')}
         {t('授权,需在遵守')}
         <a
         <a
@@ -90,7 +97,7 @@ const About = () => {
           rel="noopener noreferrer"
           rel="noopener noreferrer"
           className="!text-semi-color-primary hover:!text-semi-color-primary-hover transition-colors"
           className="!text-semi-color-primary hover:!text-semi-color-primary-hover transition-colors"
         >
         >
-          Apache-2.0协议
+          {t('Apache-2.0协议')}
         </a>
         </a>
         {t('的前提下使用。')}
         {t('的前提下使用。')}
       </p>
       </p>