Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #158 Styling navbar #160

Merged
merged 25 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/graph/GraphView.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import CytoscapeComponent from "react-cytoscapejs";
import { toast } from "@/components/ui/use-toast";
import cytoscape, { EdgeCollection, ElementDefinition, EventObject, NodeDataDefinition } from "cytoscape";
import cytoscape, { ElementDefinition, EventObject, NodeDataDefinition } from "cytoscape";
import { useRef, useState, useImperativeHandle, forwardRef } from "react";
import { signOut } from "next-auth/react";
import fcose from 'cytoscape-fcose';
Expand Down
30 changes: 2 additions & 28 deletions app/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,12 @@

import Navbar from "@/components/custom/navbar";
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "@/components/ui/resizable";
import { Activity, Info, LogOut, Waypoints } from "lucide-react";
import { SessionProvider, signOut } from "next-auth/react";
import { SessionProvider } from "next-auth/react";
import { ThemeProvider } from 'next-themes'
import { useEffect, useRef, useState } from "react";
import { ImperativePanelHandle } from "react-resizable-panels";
import useScreenSize from "./useScreenSize";

const LINKS = [
{
name: "Connection Details",
href: "/details",
icon: (<Info className="h-6 w-6" />),
},
{
name: "Graph",
href: "/graph",
icon: (<Waypoints className="h-6 w-6" />),
},
{
name: "Monitor",
// href: "/api/monitor",
href: "/monitor",
icon: (<Activity className="h-6 w-6" />),
},
{
name: "Disconnect",
href: "",
icon: (<LogOut className="h-6 w-6" />),
onClick: () => { signOut({ callbackUrl: '/login' }) }
},
]

export default function NextAuthProvider({ children }: { children: React.ReactNode }) {

const { screenSize } = useScreenSize();
Expand Down Expand Up @@ -61,7 +35,7 @@ export default function NextAuthProvider({ children }: { children: React.ReactNo
}
}
}
const panelSize = isSmallScreen ? 40 : 10
const panelSize = isSmallScreen ? 40 : 9
const collapsedSize = isSmallScreen ? 20 : 3

return (
Expand Down
124 changes: 0 additions & 124 deletions components/custom/navbar.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions e2e/createGraph.spec.ts

This file was deleted.

29 changes: 0 additions & 29 deletions e2e/graph.spec.ts

This file was deleted.

18 changes: 0 additions & 18 deletions e2e/homePage.spec.ts

This file was deleted.

Loading