diff --git a/frontend/src/lib/router.tsx b/frontend/src/lib/router.tsx index bd94c61cb45..d38b7f2fdec 100644 --- a/frontend/src/lib/router.tsx +++ b/frontend/src/lib/router.tsx @@ -1,17 +1,78 @@ import { lazy } from 'react'; import { generatePath } from 'react-router'; import NotFoundComponent from '../components/404'; +// import AuthToken from '../components/account/Auth'; +// import NotificationList from '../components/App/Notifications/List'; +// import PluginSettings from '../components/App/PluginSettings'; +// import PluginSettingsDetails from '../components/App/PluginSettings/PluginSettingsDetails'; +// import Settings from '../components/App/Settings'; +// import SettingsCluster from '../components/App/Settings/SettingsCluster'; +// import SettingsClusters from '../components/App/Settings/SettingsClusters'; +// import AuthChooser from '../components/authchooser'; +import KubeConfigLoader from '../components/cluster/KubeConfigLoader'; +import Overview from '../components/cluster/Overview'; import { PageGrid } from '../components/common/Resource/Resource'; +// import ConfigDetails from '../components/configmap/Details'; +// import ConfigMapList from '../components/configmap/List'; +// import CustomResourceDetails from '../components/crd/CustomResourceDetails'; +// import CustomResourceList from '../components/crd/CustomResourceList'; +// import CustomResourceDefinitionDetails from '../components/crd/Details'; +// import CustomResourceDefinitionList from '../components/crd/List'; +// import CronJobDetails from '../components/cronjob/Details'; +// import CronJobList from '../components/cronjob/List'; +// import DaemonSetDetails from '../components/daemonset/Details'; +// import DaemonSetList from '../components/daemonset/List'; +// import DeploymentsList from '../components/deployments/List'; +// import EndpointDetails from '../components/endpoints/Details'; +// import EndpointList from '../components/endpoints/List'; +// import HpaDetails from '../components/horizontalPodAutoscaler/Details'; +// import HpaList from '../components/horizontalPodAutoscaler/List'; +// import IngressClassDetails from '../components/ingress/ClassDetails'; +// import IngressClassList from '../components/ingress/ClassList'; +// import IngressDetails from '../components/ingress/Details'; +// import IngressList from '../components/ingress/List'; +// import JobsList from '../components/job/List'; import { LeaseDetails } from '../components/lease/Details'; import { LeaseList } from '../components/lease/List'; import { LimitRangeDetails } from '../components/limitRange/Details'; import { LimitRangeList } from '../components/limitRange/List'; import { NetworkPolicyDetails } from '../components/networkpolicy/Details'; import { NetworkPolicyList } from '../components/networkpolicy/List'; +// import OIDCAuth from '../components/oidcauth'; +// import PodDetails from '../components/pod/Details'; +// import PodList from '../components/pod/List'; +// import PDBDetails from '../components/podDisruptionBudget/Details'; +// import PDBList from '../components/podDisruptionBudget/List'; +import PortForwardingList from '../components/portforward'; +// import PriorityClassDetails from '../components/priorityClass/Details'; +// import PriorityClassList from '../components/priorityClass/List'; +// import ReplicaSetList from '../components/replicaset/List'; +// import ResourceQuotaDetails from '../components/resourceQuota/Details'; +// import ResourceQuotaList from '../components/resourceQuota/List'; +// import RoleBindingDetails from '../components/role/BindingDetails'; +// import RoleBindingList from '../components/role/BindingList'; +// import RoleDetails from '../components/role/Details'; +// import RoleList from '../components/role/List'; import { RuntimeClassDetails } from '../components/runtimeClass/Details'; import { RuntimeClassList } from '../components/runtimeClass/List'; +// import SecretDetails from '../components/secret/Details'; +// import SecretList from '../components/secret/List'; +// import ServiceDetails from '../components/service/Details'; +// import ServiceList from '../components/service/List'; +// import ServiceAccountDetails from '../components/serviceaccount/Details'; +// import ServiceAccountList from '../components/serviceaccount/List'; import { DefaultSidebars } from '../components/Sidebar'; +// import StatefulSetDetails from '../components/statefulset/Details'; +// import StatefulSetList from '../components/statefulset/List'; +// import VpaDetails from '../components/verticalPodAutoscaler/Details'; +// import VpaList from '../components/verticalPodAutoscaler/List'; +// import MutatingWebhookConfigurationDetails from '../components/webhookconfiguration/MutatingWebhookConfigDetails'; +// import MutatingWebhookConfigList from '../components/webhookconfiguration/MutatingWebhookConfigList'; +// import ValidatingWebhookConfigurationDetails from '../components/webhookconfiguration/ValidatingWebhookConfigDetails'; +// import ValidatingWebhookConfigurationList from '../components/webhookconfiguration/ValidatingWebhookConfigList'; +// import WorkloadDetails from '../components/workload/Details'; import helpers from '../helpers'; +// import LocaleSelect from '../i18n/LocaleSelect/LocaleSelect'; import store from '../redux/stores/store'; import Deployment from './k8s/deployment'; import Job from './k8s/job'; @@ -103,9 +164,9 @@ const PluginSettings = lazy(() => import('../components/App/PluginSettings')); const PluginSettingsDetails = lazy( () => import('../components/App/PluginSettings/PluginSettingsDetails') ); -const PortForwardingList = lazy(() => import('../components/portforward')); -const KubeConfigLoader = lazy(() => import('../components/cluster/KubeConfigLoader')); -const Overview = lazy(() => import('../components/cluster/Overview')); +// const PortForwardingList = lazy(() => import('../components/portforward')); +// const KubeConfigLoader = lazy(() => import('../components/cluster/KubeConfigLoader')); +// const Overview = lazy(() => import('../components/cluster/Overview')); export interface Route { /** Any valid URL path or array of paths that path-to-regexp@^1.7.0 understands. */