mirror of
https://github.com/aljazceru/enclava.git
synced 2026-01-31 13:34:54 +01:00
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:
@@ -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;
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user