⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
profile
/
Edit File: routes.tsx
import { uniq } from 'lodash'; import { SafeDynamicImport } from 'app/core/components/DynamicImports/SafeDynamicImport'; import { config } from 'app/core/config'; import { RouteDescriptor } from 'app/core/navigation/types'; const profileRoutes: RouteDescriptor[] = [ { path: '/profile', component: SafeDynamicImport( () => import(/* webpackChunkName: "UserProfileEditPage" */ 'app/features/profile/UserProfileEditPage') ), }, { path: '/profile/password', component: SafeDynamicImport( () => import(/* webPackChunkName: "ChangePasswordPage" */ 'app/features/profile/ChangePasswordPage') ), }, { path: '/profile/select-org', component: SafeDynamicImport( () => import(/* webpackChunkName: "SelectOrgPage" */ 'app/features/org/SelectOrgPage') ), }, { path: '/profile/notifications', component: SafeDynamicImport( () => import(/* webpackChunkName: "NotificationsPage"*/ 'app/features/notifications/NotificationsPage') ), }, ]; export function getProfileRoutes(cfg = config): RouteDescriptor[] { if (cfg.profileEnabled) { return profileRoutes; } const uniquePaths = uniq(profileRoutes.map((route) => route.path)); return uniquePaths.map((path) => ({ path, component: SafeDynamicImport( () => import(/* webpackChunkName: "ProfileFeatureTogglePage"*/ 'app/features/profile/FeatureTogglePage') ), })); }
Simpan