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