Replace @/lib imports in app pages with relative paths

- Updated main page components to use relative imports instead of @ aliases
- Replaced @/lib/api-client with ../lib/api-client
- Replaced @/lib/file-download with ../lib/file-download
- This fixes Docker build module resolution issues
This commit is contained in:
2025-09-16 07:22:15 +02:00
parent 407e14faa6
commit c4c6643fd1
12 changed files with 13 additions and 13 deletions

View File

@@ -18,7 +18,7 @@ import {
CheckCircle,
XCircle
} from "lucide-react";
import { apiClient } from "@/lib/api-client";
import { apiClient } from "../lib/api-client";
interface SystemStats {
total_users: number;

View File

@@ -20,7 +20,7 @@ import {
RefreshCw
} from 'lucide-react';
import { ProtectedRoute } from '@/components/auth/ProtectedRoute'
import { apiClient } from '@/lib/api-client'
import { apiClient } from '../lib/api-client'
interface AnalyticsData {
overview: {

View File

@@ -36,7 +36,7 @@ import {
Bot
} from "lucide-react";
import { useToast } from "@/hooks/use-toast";
import { apiClient } from "@/lib/api-client";
import { apiClient } from "../lib/api-client";
interface ApiKey {
id: string;

View File

@@ -1,7 +1,7 @@
"use client";
import { useState, useEffect } from "react";
import { downloadFile } from "@/lib/file-download";
import { downloadFile } from "../lib/file-download";
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
@@ -27,7 +27,7 @@ import {
ChevronRight
} from "lucide-react";
import { useToast } from "@/hooks/use-toast";
import { apiClient } from "@/lib/api-client";
import { apiClient } from "../lib/api-client";
import { config } from "@/lib/config";
interface AuditLog {

View File

@@ -34,7 +34,7 @@ import {
Clock
} from "lucide-react";
import { useToast } from "@/hooks/use-toast";
import { apiClient } from "@/lib/api-client";
import { apiClient } from "../lib/api-client";
interface Budget {
id: string;

View File

@@ -5,7 +5,7 @@ import { useState, useEffect } from "react"
import { ProtectedRoute } from "@/components/auth/ProtectedRoute"
import { useToast } from "@/hooks/use-toast"
import { config } from "@/lib/config"
import { apiClient } from "@/lib/api-client"
import { apiClient } from "../lib/api-client"
// Force dynamic rendering for authentication
export const dynamic = 'force-dynamic'

View File

@@ -25,7 +25,7 @@ import {
AlertTriangle
} from 'lucide-react'
import { useToast } from '@/hooks/use-toast'
import { apiClient } from '@/lib/api-client'
import { apiClient } from '../lib/api-client'
import { ProtectedRoute } from '@/components/auth/ProtectedRoute'
import { useRouter } from 'next/navigation'

View File

@@ -29,7 +29,7 @@ import {
} from '@/components/ui/alert-dialog'
import { Edit3, RotateCcw, Loader2, Save, AlertTriangle, Plus, Sparkles } from 'lucide-react'
import toast from 'react-hot-toast'
import { apiClient } from '@/lib/api-client'
import { apiClient } from '../lib/api-client'
import { config } from '@/lib/config'
import { useAuth } from '@/contexts/AuthContext'

View File

@@ -13,7 +13,7 @@ import { DocumentUpload } from "@/components/rag/document-upload"
import { DocumentBrowser } from "@/components/rag/document-browser"
import { useAuth } from "@/contexts/AuthContext"
import { ProtectedRoute } from '@/components/auth/ProtectedRoute'
import { apiClient } from '@/lib/api-client'
import { apiClient } from '../lib/api-client'
interface Collection {
id: string

View File

@@ -10,7 +10,7 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/com
import { Alert, AlertDescription } from "@/components/ui/alert";
import { Checkbox } from "@/components/ui/checkbox";
import { useToast } from "@/hooks/use-toast";
import { apiClient } from "@/lib/api-client";
import { apiClient } from "../lib/api-client";
interface RegisterFormData {
username: string;

View File

@@ -31,7 +31,7 @@ import {
Play
} from "lucide-react";
import { useToast } from "@/hooks/use-toast";
import { apiClient } from "@/lib/api-client";
import { apiClient } from "../lib/api-client";
import { useModules, triggerModuleRefresh } from '@/contexts/ModulesContext';
import { Badge } from '@/components/ui/badge';

View File

@@ -4,7 +4,7 @@ import { useAuth } from "@/contexts/AuthContext"
import { Button } from "@/components/ui/button"
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
import { useState } from "react"
import { apiClient } from "@/lib/api-client"
import { apiClient } from "../lib/api-client"
import { tokenManager } from "@/lib/token-manager"
export default function TestAuthPage() {