github.com/argoproj/argo-cd/v3@v3.2.1/ui/src/app/applications/components/pod-logs-viewer/fullscreen-button.tsx (about)

     1  import {Link} from 'react-router-dom';
     2  import * as React from 'react';
     3  import {PodLogsProps, PodLogsQueryProps} from './pod-logs-viewer';
     4  import {Button} from '../../../shared/components/button';
     5  
     6  export const FullscreenButton = ({
     7      applicationName,
     8      applicationNamespace,
     9      containerName,
    10      fullscreen,
    11      group,
    12      kind,
    13      name,
    14      namespace,
    15      podName,
    16      viewPodNames,
    17      viewTimestamps,
    18      follow,
    19      showPreviousLogs,
    20      filterText,
    21      matchCase,
    22      tail,
    23      sinceSeconds
    24  }: PodLogsProps & PodLogsQueryProps & {fullscreen?: boolean}) => {
    25      const fullscreenURL =
    26          `/applications/${applicationNamespace}/${applicationName}/${namespace}/${containerName}/logs?` +
    27          `podName=${podName}&group=${group}&kind=${kind}&name=${name}&viewPodNames=${viewPodNames}&viewTimestamps=${viewTimestamps}&follow=${follow}&showPreviousLogs=${showPreviousLogs}&filterText=${filterText}&matchCase=${matchCase}&tail=${tail}&sinceSeconds=${sinceSeconds}`;
    28      return (
    29          !fullscreen && (
    30              <Link to={fullscreenURL} target='_blank' rel='noopener noreferrer'>
    31                  <Button title='Show logs in fullscreen in a new window' icon='external-link-alt' />
    32              </Link>
    33          )
    34      );
    35  };