Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

570 B
Raw Blame
import { Navigate, useLocation } from '@solidjs/router';
import { Show } from 'solid-js';
import { DockerPageSurface } from '@/features/docker/DockerPageSurface';
import { buildDockerPath, DOCKER_PATH } from '@/routing/resourceLinks';

export function Docker() {
  const location = useLocation();
  const pathname = () => location.pathname.replace(/\/+$/, '');

  return (
    <Show
      when={pathname() !== `${DOCKER_PATH}/workloads`}
      fallback={<Navigate href={buildDockerPath()} />}
    >
      <DockerPageSurface />
    </Show>
  );
}

export default Docker;