This commit is contained in:
@@ -32,6 +32,7 @@ import { createAdminSshKey } from './pages/operations/operations-api';
|
||||
import { LicensesPage as LicensesApiPage } from './pages/operations/LicensesPage';
|
||||
import { NoticesPage as NoticesApiPage } from './pages/operations/NoticesPage';
|
||||
import { OrganizationsPage as OrganizationsApiPage } from './pages/operations/OrganizationsPage';
|
||||
import { TermsPage as TermsApiPage } from './pages/operations/TermsPage';
|
||||
import { UserSessionsPage as UserSessionsApiPage } from './pages/operations/UserSessionsPage';
|
||||
import { RuntimeConfigPage as RuntimeConfigApiPage } from './pages/runtime/RuntimeConfigPage';
|
||||
import { RuntimeDeviceControlPage } from './pages/runtime/RuntimeDeviceControlPage';
|
||||
@@ -81,6 +82,7 @@ type ViewKey =
|
||||
| 'launcherLogs'
|
||||
| 'launcherApps'
|
||||
| 'notices'
|
||||
| 'terms'
|
||||
| 'appManagement'
|
||||
| 'appRepositories'
|
||||
| 'appSources'
|
||||
@@ -118,6 +120,7 @@ const viewByLabel: Record<string, ViewKey> = {
|
||||
구성요소: 'launcherComponents',
|
||||
'앱 연결': 'launcherApps',
|
||||
공지사항: 'notices',
|
||||
약관: 'terms',
|
||||
'앱 관리': 'appManagement',
|
||||
'저장소 관리': 'appRepositories',
|
||||
'소스 관리': 'appSources',
|
||||
@@ -163,6 +166,7 @@ const pathByView: Record<ViewKey, string> = {
|
||||
launcherLogs: '/launcher/logs',
|
||||
launcherApps: '/launcher/apps',
|
||||
notices: '/operations/notices',
|
||||
terms: '/operations/terms',
|
||||
appManagement: '/applications/apps',
|
||||
appRepositories: '/applications/repositories',
|
||||
appSources: '/applications/sources',
|
||||
@@ -2296,6 +2300,8 @@ function App() {
|
||||
return <LauncherAppsApiPage />;
|
||||
case 'notices':
|
||||
return <NoticesApiPage />;
|
||||
case 'terms':
|
||||
return <TermsApiPage />;
|
||||
case 'adminManagement':
|
||||
if (!isOwner) return null;
|
||||
return <AdminManagementApiPage />;
|
||||
|
||||
Reference in New Issue
Block a user