diff --git a/react/src/App.tsx b/react/src/App.tsx index 123b59593..1b2417ac7 100644 --- a/react/src/App.tsx +++ b/react/src/App.tsx @@ -102,17 +102,17 @@ const router = createBrowserRouter([ children: [ { path: '/', - element: , + element: , }, { //for electron dev mode path: '/build/electron-app/app/index.html', - element: , + element: , }, { //for electron prod mode path: '/app/index.html', - element: , + element: , }, { path: '/summary', diff --git a/react/src/components/MainLayout/WebUISider.tsx b/react/src/components/MainLayout/WebUISider.tsx index f8e749f10..5234b3647 100644 --- a/react/src/components/MainLayout/WebUISider.tsx +++ b/react/src/components/MainLayout/WebUISider.tsx @@ -85,64 +85,70 @@ const WebUISider: React.FC = (props) => { const primaryColors = usePrimaryColors(); const generalMenu = filterEmptyItem([ - { - label: {t('webui.menu.Summary')}, - icon: , - key: 'summary', - }, - { - label: {t('webui.menu.Sessions')}, - icon: , - key: 'job', - }, + // { + // label: {t('webui.menu.Summary')}, + // icon: , + // key: 'summary', + // }, + // { + // label: {t('webui.menu.Sessions')}, + // icon: , + // key: 'job', + // }, supportServing && { - label: {t('webui.menu.Serving')}, - icon: , - key: 'serving', - }, - { - label: {t('webui.menu.Import&Run')}, - icon: , - key: 'import', - }, - { - label: {t('webui.menu.Data&Storage')}, - icon: , - key: 'data', - }, - supportUserCommittedImage && { - label: ( - - {t('webui.menu.MyEnvironments')} - - ), - icon: , - key: 'my-environment', - }, - !isHideAgents && { label: ( - - {t('webui.menu.AgentSummary')} + + {t('modelserving.menu.ModelServices')} ), - icon: , - key: 'agent-summary', + icon: , + key: 'serving', }, + // { + // label: {t('webui.menu.Import&Run')}, + // icon: , + // key: 'import', + // }, { label: ( - {t('webui.menu.Statistics')} + {t('modelserving.menu.ModelList')} ), - icon: , - key: 'statistics', - }, - !!fasttrackEndpoint && { - label: t('webui.menu.FastTrack'), - icon: , - key: 'pipeline', - onClick: () => { - window.open(fasttrackEndpoint, '_blank', 'noopener noreferrer'); - }, + icon: , + key: 'data', }, + // supportUserCommittedImage && { + // label: ( + // + // {t('webui.menu.MyEnvironments')} + // + // ), + // icon: , + // key: 'my-environment', + // }, + // !isHideAgents && { + // label: ( + // + // {t('webui.menu.AgentSummary')} + // + // ), + // icon: , + // key: 'agent-summary', + // }, + // { + // label: ( + // {t('webui.menu.Statistics')} + // ), + // icon: , + // key: 'statistics', + // }, + // !!fasttrackEndpoint && { + // label: t('webui.menu.FastTrack'), + // icon: , + // key: 'pipeline', + // onClick: () => { + // window.open(fasttrackEndpoint, '_blank', 'noopener noreferrer'); + // }, + // }, ]); const adminMenu: MenuProps['items'] = [ @@ -255,7 +261,7 @@ const WebUISider: React.FC = (props) => { height: themeConfig?.logo?.size?.height || 24, cursor: 'pointer', }} - onClick={() => webuiNavigate(themeConfig?.logo?.href || '/summary')} + onClick={() => webuiNavigate(themeConfig?.logo?.href || '/serving')} /> } theme={currentSiderTheme} @@ -275,7 +281,7 @@ const WebUISider: React.FC = (props) => { height: themeConfig?.logo.sizeCollapsed?.height ?? 24, cursor: 'pointer', }} - onClick={() => webuiNavigate(themeConfig?.logo?.href || '/summary')} + onClick={() => webuiNavigate(themeConfig?.logo?.href || '/serving')} /> } logoTitle={themeConfig?.logo?.logoTitle || siteDescription || 'WebUI'} diff --git a/react/src/pages/Page401.tsx b/react/src/pages/Page401.tsx index ca83319b9..920d3e9bc 100644 --- a/react/src/pages/Page401.tsx +++ b/react/src/pages/Page401.tsx @@ -38,7 +38,7 @@ const Page401 = () => { diff --git a/react/src/pages/Page404.tsx b/react/src/pages/Page404.tsx index 63c5a2b1a..c8726be06 100644 --- a/react/src/pages/Page404.tsx +++ b/react/src/pages/Page404.tsx @@ -38,7 +38,7 @@ const Page404 = () => { diff --git a/resources/i18n/de.json b/resources/i18n/de.json index c28ae92d6..363948ef2 100644 --- a/resources/i18n/de.json +++ b/resources/i18n/de.json @@ -1769,5 +1769,11 @@ "hour": "Stunde", "day": "day", "week": "Woche" + }, + "modelserving": { + "menu": { + "ModelServices": "Modelldienstleistungen", + "ModelList": "Modellliste" + } } } diff --git a/resources/i18n/el.json b/resources/i18n/el.json index 346ef753e..512cb3343 100644 --- a/resources/i18n/el.json +++ b/resources/i18n/el.json @@ -1769,5 +1769,11 @@ "hour": "ώρα", "day": "day", "week": "εβδομάδα" + }, + "modelserving": { + "menu": { + "ModelServices": "Υπηρεσίες μοντέλου", + "ModelList": "Λίστα μοντέλων" + } } } diff --git a/resources/i18n/en.json b/resources/i18n/en.json index 4f79b871f..2da71d5b3 100644 --- a/resources/i18n/en.json +++ b/resources/i18n/en.json @@ -566,7 +566,8 @@ "Expand": "Expand", "Clear": "Clear", "Apply": "Apply", - "CopySomething": "Copy {{name}}" + "CopySomething": "Copy {{name}}", + "GoBackToModelServicesPage": "Go back to model services page" }, "agent": { "Endpoint": "Endpoint", @@ -1774,5 +1775,11 @@ "hour": "hour", "day": "day", "week": "week" + }, + "modelserving": { + "menu": { + "ModelServices": "Model Services", + "ModelList": "Model List" + } } } diff --git a/resources/i18n/es.json b/resources/i18n/es.json index 0537b62cf..e371d4f40 100644 --- a/resources/i18n/es.json +++ b/resources/i18n/es.json @@ -1771,5 +1771,11 @@ "hour": "hora", "day": "day", "week": "semana" + }, + "modelserving": { + "menu": { + "ModelServices": "Servicios modelo", + "ModelList": "Lista de modelos" + } } } diff --git a/resources/i18n/fi.json b/resources/i18n/fi.json index 346e516e8..21f531d33 100644 --- a/resources/i18n/fi.json +++ b/resources/i18n/fi.json @@ -1767,5 +1767,11 @@ "hour": "tunnin", "day": "day", "week": "viikko" + }, + "modelserving": { + "menu": { + "ModelServices": "Mallipalvelut", + "ModelList": "Malliluettelo" + } } } diff --git a/resources/i18n/fr.json b/resources/i18n/fr.json index b34aa0def..fcf6adf0a 100644 --- a/resources/i18n/fr.json +++ b/resources/i18n/fr.json @@ -1769,5 +1769,11 @@ "hour": "heure", "day": "day", "week": "semaine" + }, + "modelserving": { + "menu": { + "ModelServices": "Services de modèles", + "ModelList": "Liste des modèles" + } } } diff --git a/resources/i18n/id.json b/resources/i18n/id.json index ebb3e4079..711ade87f 100644 --- a/resources/i18n/id.json +++ b/resources/i18n/id.json @@ -1769,5 +1769,11 @@ "hour": "jam", "day": "day", "week": "pekan" + }, + "modelserving": { + "menu": { + "ModelServices": "Layanan Model", + "ModelList": "Daftar Model" + } } } diff --git a/resources/i18n/it.json b/resources/i18n/it.json index 02bc06c14..186797c42 100644 --- a/resources/i18n/it.json +++ b/resources/i18n/it.json @@ -1769,5 +1769,11 @@ "hour": "ora", "day": "day", "week": "settimana" + }, + "modelserving": { + "menu": { + "ModelServices": "Servizi modello", + "ModelList": "Elenco dei modelli" + } } } diff --git a/resources/i18n/ja.json b/resources/i18n/ja.json index 9185d6bb7..4a78415e7 100644 --- a/resources/i18n/ja.json +++ b/resources/i18n/ja.json @@ -1769,5 +1769,11 @@ "hour": "時間", "day": "日", "week": "週" + }, + "modelserving": { + "menu": { + "ModelServices": "モデルサービス", + "ModelList": "機種一覧" + } } } diff --git a/resources/i18n/ko.json b/resources/i18n/ko.json index f4cdec5b1..84598b4d7 100644 --- a/resources/i18n/ko.json +++ b/resources/i18n/ko.json @@ -1771,5 +1771,11 @@ "hour": "시간", "day": "일", "week": "주" + }, + "modelserving": { + "menu": { + "ModelServices": "모델 서비스", + "ModelList": "모델 리스트" + } } } diff --git a/resources/i18n/mn.json b/resources/i18n/mn.json index 862b9e819..83b34bbc6 100644 --- a/resources/i18n/mn.json +++ b/resources/i18n/mn.json @@ -1769,5 +1769,11 @@ "hour": "цаг", "day": "day", "week": "долоо хоног" + }, + "modelserving": { + "menu": { + "ModelServices": "Загвар үйлчилгээ", + "ModelList": "Загварын жагсаалт" + } } } diff --git a/resources/i18n/ms.json b/resources/i18n/ms.json index 2db093205..e5850d85d 100644 --- a/resources/i18n/ms.json +++ b/resources/i18n/ms.json @@ -1769,5 +1769,11 @@ "hour": "jam", "day": "day", "week": "minggu" + }, + "modelserving": { + "menu": { + "ModelServices": "Perkhidmatan Model", + "ModelList": "Senarai Model" + } } } diff --git a/resources/i18n/pl.json b/resources/i18n/pl.json index f4e4ddb5a..0ee84cb1c 100644 --- a/resources/i18n/pl.json +++ b/resources/i18n/pl.json @@ -1769,5 +1769,11 @@ "hour": "godzina", "day": "day", "week": "tydzień" + }, + "modelserving": { + "menu": { + "ModelServices": "Usługi modelarskie", + "ModelList": "Lista modeli" + } } } diff --git a/resources/i18n/pt-BR.json b/resources/i18n/pt-BR.json index b465107f6..14b1ef1d9 100644 --- a/resources/i18n/pt-BR.json +++ b/resources/i18n/pt-BR.json @@ -1769,5 +1769,11 @@ "hour": "hora", "day": "day", "week": "semana" + }, + "modelserving": { + "menu": { + "ModelServices": "Serviços de modelo", + "ModelList": "Lista de modelos" + } } } diff --git a/resources/i18n/pt.json b/resources/i18n/pt.json index 355f79211..c81444f56 100644 --- a/resources/i18n/pt.json +++ b/resources/i18n/pt.json @@ -1769,5 +1769,11 @@ "hour": "hora", "day": "day", "week": "semana" + }, + "modelserving": { + "menu": { + "ModelServices": "Serviços de modelo", + "ModelList": "Lista de modelos" + } } } diff --git a/resources/i18n/ru.json b/resources/i18n/ru.json index f2b2772c6..d184e78af 100644 --- a/resources/i18n/ru.json +++ b/resources/i18n/ru.json @@ -1769,5 +1769,11 @@ "hour": "час", "day": "day", "week": "неделя" + }, + "modelserving": { + "menu": { + "ModelServices": "Модельные услуги", + "ModelList": "Список моделей" + } } } diff --git a/resources/i18n/th.json b/resources/i18n/th.json index 554ff1146..1973e24f0 100644 --- a/resources/i18n/th.json +++ b/resources/i18n/th.json @@ -1749,5 +1749,11 @@ "hour": "ชั่วโมง", "day": "day", "week": "สัปดาห์" + }, + "modelserving": { + "menu": { + "ModelServices": "บริการโมเดล", + "ModelList": "รายการรุ่น" + } } } diff --git a/resources/i18n/vi.json b/resources/i18n/vi.json index bf22e8ce8..22b8dfc35 100644 --- a/resources/i18n/vi.json +++ b/resources/i18n/vi.json @@ -1769,5 +1769,10 @@ "hour": "giờ", "day": "day", "week": "tuần" + }, + "modelserving": { + "menu": { + "ModelList": "Danh sách mẫu" + } } } diff --git a/resources/i18n/zh-CN.json b/resources/i18n/zh-CN.json index 41bcd03bf..b88f80477 100644 --- a/resources/i18n/zh-CN.json +++ b/resources/i18n/zh-CN.json @@ -1770,5 +1770,10 @@ "hour": "小时", "day": "day", "week": "星期" + }, + "modelserving": { + "menu": { + "ModelList": "型号列表" + } } } diff --git a/resources/i18n/zh-TW.json b/resources/i18n/zh-TW.json index 7fd0cbfdd..cb12c1c64 100644 --- a/resources/i18n/zh-TW.json +++ b/resources/i18n/zh-TW.json @@ -1770,5 +1770,10 @@ "hour": "小時", "day": "day", "week": "星期" + }, + "modelserving": { + "menu": { + "ModelList": "型號列表" + } } } diff --git a/src/backend-ai-app.ts b/src/backend-ai-app.ts index 61152b634..be1db7565 100644 --- a/src/backend-ai-app.ts +++ b/src/backend-ai-app.ts @@ -50,7 +50,7 @@ export const navigate = } let page; if (['/', 'build', '/build', 'app', '/app'].includes(path)) { - page = 'summary'; + page = 'serving'; } else if (path[0] === '/') { page = path.slice(1); } else { diff --git a/src/components/backend-ai-error-view.ts b/src/components/backend-ai-error-view.ts index 447b03acb..a102996c2 100644 --- a/src/components/backend-ai-error-view.ts +++ b/src/components/backend-ai-error-view.ts @@ -70,8 +70,8 @@ export default class BackendAIErrorView extends BackendAIPage { * @param {string} url - page to redirect from the current page. */ _moveTo(url = '') { - const page = url !== '' ? url : 'summary'; - globalThis.history.pushState({}, '', '/summary'); + const page = url !== '' ? url : 'serving'; + globalThis.history.pushState({}, '', '/serving'); store.dispatch(navigate(decodeURIComponent('/' + page), {})); document.dispatchEvent( new CustomEvent('react-navigate', { @@ -97,8 +97,8 @@ export default class BackendAIErrorView extends BackendAIPage { unelevated fullwidth id="go-to-summary" - label="${_t('button.GoBackToSummaryPage')}" - @click="${() => this._moveTo('summary')}" + label="${_t('button.GoBackToModelServicesPage')}" + @click="${() => this._moveTo('serving')}" > diff --git a/src/components/backend-ai-permission-denied-view.ts b/src/components/backend-ai-permission-denied-view.ts index 503a11adb..ba6991d9b 100644 --- a/src/components/backend-ai-permission-denied-view.ts +++ b/src/components/backend-ai-permission-denied-view.ts @@ -113,8 +113,8 @@ export default class BackendAIPermissionDeniedView extends BackendAIPage { * @param {string} url - page to redirect from the current page. */ _moveTo(url = '') { - const page = url !== '' ? url : 'summary'; - globalThis.history.pushState({}, '', '/summary'); + const page = url !== '' ? url : 'serving'; + globalThis.history.pushState({}, '', '/serving'); store.dispatch(navigate(decodeURIComponent('/' + page), {})); }