github.com/argoproj/argo-cd/v2@v2.10.9/ui/src/app/applications/components/applications-container.tsx (about)

     1  import * as React from 'react';
     2  import {Route, RouteComponentProps, Switch} from 'react-router';
     3  import {ApplicationDetails} from './application-details/application-details';
     4  import {ApplicationFullscreenLogs} from './application-fullscreen-logs/application-fullscreen-logs';
     5  import {ApplicationsList} from './applications-list/applications-list';
     6  
     7  export const ApplicationsContainer = (props: RouteComponentProps<any>) => (
     8      <Switch>
     9          <Route exact={true} path={`${props.match.path}`} component={ApplicationsList} />
    10          <Route exact={true} path={`${props.match.path}/:name`} component={ApplicationDetails} />
    11          <Route exact={true} path={`${props.match.path}/:appnamespace/:name`} component={ApplicationDetails} />
    12          <Route exact={true} path={`${props.match.path}/:name/:namespace/:container/logs`} component={ApplicationFullscreenLogs} />
    13          <Route exact={true} path={`${props.match.path}/:appnamespace/:name/:namespace/:container/logs`} component={ApplicationFullscreenLogs} />
    14      </Switch>
    15  );