chore: perferences route

This commit is contained in:
jialin
2026-06-02 15:18:00 +08:00
committed by jialin
parent c8771dd3b9
commit abd0d52fad
9 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -380,8 +380,8 @@ const baseRoutes = [
},
{
name: 'profile',
path: '/profile',
key: 'profile',
path: '/preferences',
key: 'preferences',
hideInMenu: true,
component: './profile',
icon: 'User'
+2 -2
View File
@@ -210,14 +210,14 @@ export const ExtraContent = (props: { isDarkTheme?: boolean }) => {
key: 'settings',
label: (
<span className="flex flex-center">
<IconFont type="icon-settings-02" />
<IconFont type="icon-preferences" />
<span className="m-l-8" style={{ marginLeft: 8 }}>
{intl?.formatMessage?.({ id: 'common.preferences' })}
</span>
</span>
),
onClick: () => {
history.push('/profile');
history.push('/preferences');
}
}
]
+1 -1
View File
@@ -357,7 +357,7 @@ export default (props: any) => {
config={{
apiBaseUrl: GPUSTACK_API_BASE_URL,
theme: userSettings.theme,
iconUrl: '',
iconUrl: '//at.alicdn.com/t/c/font_4613488_yo03vxgh67k.js',
isDarkTheme: userSettings.isDarkTheme,
defaultColorPrimary: COLOR_PRIMARY
}}
+1 -1
View File
@@ -256,7 +256,7 @@ export const getRightRenderContent = (opts: {
</span>
),
onClick: () => {
history.push('/profile');
history.push('/preferences');
}
},
{
+1 -1
View File
@@ -31,7 +31,7 @@ export default {
'menu.accessControl': 'Access Control',
'menu.accessControl.apikeys': 'API Keys',
'menu.accessControl.users': 'Users',
'menu.profile': 'Profile',
'menu.profile': 'Preferences',
'menu.login': 'Login',
'menu.usage': 'Usage',
'menu.404': '404',
+1 -1
View File
@@ -23,7 +23,7 @@ export default {
'menu.resources': 'リソース',
'menu.apikeys': 'APIキー',
'menu.users': 'ユーザー',
'menu.profile': 'プロフィール',
'menu.profile': 'Preferences',
'menu.login': 'ログイン',
'menu.usage': '使用状況',
'menu.404': '404',
+1 -1
View File
@@ -23,7 +23,7 @@ export default {
'menu.resources': 'Ресурсы',
'menu.apikeys': 'API-ключи',
'menu.users': 'Пользователи',
'menu.profile': 'Профиль',
'menu.profile': 'Preferences',
'menu.login': 'Авторизация',
'menu.usage': 'Использование',
'menu.404': 'Ошибка 404',
+1 -1
View File
@@ -29,7 +29,7 @@ export default {
'menu.accessControl': 'Erişim Kontrolü',
'menu.accessControl.apikeys': 'API Anahtarları',
'menu.accessControl.users': 'Kullanıcılar',
'menu.profile': 'Profil',
'menu.profile': 'Preferences',
'menu.login': 'Giriş',
'menu.usage': 'Kullanım',
'menu.404': '404',
+1 -1
View File
@@ -25,7 +25,7 @@ export default {
'menu.resources': '资源',
'menu.apikeys': 'API 密钥',
'menu.users': '用户',
'menu.profile': '个人信息',
'menu.profile': '偏好',
'menu.login': '登录',
'menu.usage': '使用量',
'menu.404': '404',