Update .gitignore, remove package-lock.json, and enhance Cloudflare and Proxmox adapters
- Added lock file exclusions for pnpm in .gitignore. - Removed obsolete package-lock.json from the api and portal directories. - Enhanced Cloudflare adapter with additional interfaces for zones and tunnels. - Improved Proxmox adapter error handling and logging for API requests. - Updated Proxmox VM parameters with validation rules in the API schema. - Enhanced documentation for Proxmox VM specifications and examples.
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
import { useSession } from 'next-auth/react';
|
||||
import { useState } from 'react';
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/Card';
|
||||
import { Shield, CheckCircle, XCircle } from 'lucide-react';
|
||||
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/Card';
|
||||
import { Shield, CheckCircle } from 'lucide-react';
|
||||
import QRCode from 'qrcode';
|
||||
|
||||
export default function TwoFactorAuthPage() {
|
||||
@@ -74,9 +74,9 @@ export default function TwoFactorAuthPage() {
|
||||
<Shield className="h-6 w-6 text-orange-500" />
|
||||
<div>
|
||||
<CardTitle className="text-white">2FA Status</CardTitle>
|
||||
<CardDescription className="text-gray-400">
|
||||
<p className="text-gray-400 text-sm mt-2">
|
||||
{isEnabled ? 'Two-factor authentication is enabled' : 'Two-factor authentication is disabled'}
|
||||
</CardDescription>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</CardHeader>
|
||||
|
||||
@@ -2,20 +2,13 @@
|
||||
|
||||
import { useSession } from 'next-auth/react';
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
import { createCrossplaneClient } from '@/lib/crossplane-client';
|
||||
import { createCrossplaneClient, VM } from '@/lib/crossplane-client';
|
||||
import { Card, CardContent, CardHeader, CardTitle } from './ui/Card';
|
||||
import { Server, Activity, AlertCircle, CheckCircle, Loader2 } from 'lucide-react';
|
||||
import { Badge } from './ui/badge';
|
||||
import { gql } from '@apollo/client';
|
||||
import { useQuery as useApolloQuery } from '@apollo/client';
|
||||
|
||||
interface VM {
|
||||
id: string;
|
||||
status?: {
|
||||
state?: string;
|
||||
};
|
||||
}
|
||||
|
||||
interface ActivityItem {
|
||||
id: string;
|
||||
type: string;
|
||||
@@ -47,7 +40,7 @@ export default function Dashboard() {
|
||||
const { data: session } = useSession();
|
||||
const crossplane = createCrossplaneClient(session?.accessToken as string);
|
||||
|
||||
const { data: vms = [], isLoading: vmsLoading } = useQuery<VM[]>({
|
||||
const { data: vms = [] } = useQuery({
|
||||
queryKey: ['vms'],
|
||||
queryFn: () => crossplane.getVMs(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user