You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2025/05/20 01:39:35 UTC

(answer) 01/01: fix: customize renamed to apperance and move branding below apprance

This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch feat/1.5.1/table
in repository https://gitbox.apache.org/repos/asf/answer.git

commit 484fe20401be8288df22b2d0f5380980799c6de4
Author: shuai <li...@sifou.com>
AuthorDate: Mon May 19 18:05:56 2025 +0800

    fix: customize renamed to apperance and move branding below apprance
---
 i18n/en_US.yaml            | 1 +
 i18n/zh_CN.yaml            | 1 +
 ui/src/common/constants.ts | 7 +++----
 ui/src/router/routes.ts    | 2 +-
 4 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml
index 6bae82b9..dd9a2d58 100644
--- a/i18n/en_US.yaml
+++ b/i18n/en_US.yaml
@@ -1792,6 +1792,7 @@ ui:
     privileges: Privileges
     plugins: Plugins
     installed_plugins: Installed Plugins
+    apperance: Appearance
   website_welcome: Welcome to {{site_name}}
   user_center:
     login: Login
diff --git a/i18n/zh_CN.yaml b/i18n/zh_CN.yaml
index 64dfcf98..923f0520 100644
--- a/i18n/zh_CN.yaml
+++ b/i18n/zh_CN.yaml
@@ -1753,6 +1753,7 @@ ui:
     privileges: 特权
     plugins: 插件
     installed_plugins: 已安装插件
+    apperance: 外观
   website_welcome: 欢迎来到 {{site_name}}
   user_center:
     login: 登录
diff --git a/ui/src/common/constants.ts b/ui/src/common/constants.ts
index 855d1a24..163d4989 100644
--- a/ui/src/common/constants.ts
+++ b/ui/src/common/constants.ts
@@ -103,16 +103,16 @@ export const ADMIN_NAV_MENUS = [
     icon: 'award-fill',
   },
   {
-    name: 'customize',
+    name: 'apperance',
     icon: 'palette-fill',
     children: [
       {
         name: 'themes',
       },
       {
-        name: 'css_html',
-        path: 'css-html',
+        name: 'customize',
       },
+      { name: 'branding' },
     ],
   },
   {
@@ -121,7 +121,6 @@ export const ADMIN_NAV_MENUS = [
     children: [
       { name: 'general' },
       { name: 'interface' },
-      { name: 'branding' },
       { name: 'smtp' },
       { name: 'legal' },
       { name: 'write' },
diff --git a/ui/src/router/routes.ts b/ui/src/router/routes.ts
index 60ca7e91..d9d20a44 100644
--- a/ui/src/router/routes.ts
+++ b/ui/src/router/routes.ts
@@ -351,7 +351,7 @@ const routes: RouteNode[] = [
             page: 'pages/Admin/Themes',
           },
           {
-            path: 'css-html',
+            path: 'customize',
             page: 'pages/Admin/CssAndHtml',
           },
           {