Commit 97937f5d authored by Dimitrios Gogos's avatar Dimitrios Gogos
Browse files

fix: remove dead code, debug logs and unused dependencies and normalise file names

parent 78c7c2f8
Loading
Loading
Loading
Loading
Loading
+12 −1476

File changed.

Preview size limit exceeded, changes collapsed.

+1 −4
Changes for portal-gui/package.json: 1 added line, 4 removed lines.
Original line number Diff line number Diff line
{
  "name": "shadcn-test",
  "name": "oop-portal",
  "private": true,
  "version": "0.0.1",
  "type": "module",
@@ -23,7 +23,6 @@
    "class-variance-authority": "^0.7.1",
    "clsx": "^2.1.1",
    "lucide-react": "^1.8.0",
    "next-themes": "^0.4.6",
    "radix-ui": "^1.4.3",
    "react": "^19.2.4",
    "react-dom": "^19.2.4",
@@ -44,8 +43,6 @@
    "@types/react-dom": "^19.2.3",
    "@vitejs/plugin-react": "^5.2.0",
    "eslint": "^9.39.4",
    "eslint-config-prettier": "^10.1.8",
    "eslint-plugin-react": "^7.37.5",
    "eslint-plugin-react-hooks": "^7.1.1",
    "eslint-plugin-react-refresh": "^0.5.2",
    "globals": "^16.5.0",
+1 −4
Changes for portal-gui/src/app/config/navigation.ts: 1 added line, 4 removed lines.
Original line number Diff line number Diff line
@@ -90,10 +90,7 @@ export function getActiveNavItem(pathname: string): NavItem | undefined {
  return navPath?.at(-1);
}

export function findNavPath(
  items: NavItem[],
  pathname: string,
): NavItem[] | null {
function findNavPath(items: NavItem[], pathname: string): NavItem[] | null {
  for (const item of items) {
    if (item.to === pathname) {
      return [item];
+1 −3
Changes for portal-gui/src/components/common/nav-documents.tsx: 1 added line, 3 removed lines.
Original line number Diff line number Diff line
'use client';

import { Link, useLocation } from 'react-router-dom';

import { isActivePath } from '@/app/config/navigation';
@@ -25,7 +23,7 @@ import {
  Trash2Icon,
} from 'lucide-react';
import type { NavItem } from '@/types/common';
import { useSidebar } from '@/hooks/use-sidebar';
import { useSidebar } from '@/hooks/useSidebar';

export function NavDocuments({ items }: { items: NavItem[] }) {
  const { isMobile } = useSidebar();
Loading