Skip to content

Commit 11cebde

Browse files
committed
refactor: replace alias imports with relative paths
1 parent 40e7e15 commit 11cebde

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+210
-210
lines changed

src/components/ErrorBoundary.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React, { Component, ErrorInfo, ReactNode } from 'react';
22
import { AlertTriangle, RefreshCw } from 'lucide-react';
3-
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
4-
import { PulseButton } from '@/components/ui/pulse-button';
5-
import { useErrorReporter } from '@/hooks/use-error-reporter';
6-
import { isDevelopment } from '@/config';
3+
import { Card, CardContent, CardHeader, CardTitle } from './ui/card';
4+
import { PulseButton } from './ui/pulse-button';
5+
import { useErrorReporter } from '../hooks/use-error-reporter';
6+
import { isDevelopment } from '../config';
77

88
interface Props {
99
children: ReactNode;

src/components/auth/ProtectedRoute.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { Navigate } from 'react-router-dom';
3-
import { useAuth } from '@/contexts/AuthContext';
3+
import { useAuth } from '../../contexts/AuthContext';
44

55
interface ProtectedRouteProps {
66
children: React.ReactNode;

src/components/auth/auth-card.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import React, { useState } from 'react';
2-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
3-
import { PulseButton } from '@/components/ui/pulse-button';
4-
import { Input } from '@/components/ui/input';
5-
import { Label } from '@/components/ui/label';
2+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../ui/card';
3+
import { PulseButton } from '../ui/pulse-button';
4+
import { Input } from '../ui/input';
5+
import { Label } from '../ui/label';
66
import { Heart, Shield, Users, Copy, Apple, Chrome } from 'lucide-react';
7-
import { cn } from '@/lib/utils';
8-
import { useAuth } from '@/contexts/AuthContext';
7+
import { cn } from '../../lib/utils';
8+
import { useAuth } from '../../contexts/AuthContext';
99
import { useNavigate } from 'react-router-dom';
10-
import { useToast } from '@/hooks/use-toast';
11-
import { useTranslation } from '@/i18n';
12-
import { supabase } from '@/integrations/supabase/client';
13-
import { SITE_URL } from '@/config';
10+
import { useToast } from '../../hooks/use-toast';
11+
import { useTranslation } from '../../i18n';
12+
import { supabase } from '../../integrations/supabase/client';
13+
import { SITE_URL } from '../../config';
1414

1515

1616
const EU_COUNTRIES = [

src/components/calendar/shared-calendar.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState, useEffect, useCallback, useRef, useMemo } from "react";
2-
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
3-
import { PulseButton } from "@/components/ui/pulse-button";
4-
import { Badge } from "@/components/ui/badge";
2+
import { Card, CardContent, CardHeader, CardTitle } from '../ui/card';
3+
import { PulseButton } from '../ui/pulse-button';
4+
import { Badge } from '../ui/badge';
55
import {
66
Calendar,
77
Clock,
@@ -11,13 +11,13 @@ import {
1111
Trash2,
1212
Pencil,
1313
} from "lucide-react";
14-
import { cn } from "@/lib/utils";
15-
import { supabase } from "@/integrations/supabase/client";
16-
import { useAuth } from "@/contexts/AuthContext";
17-
import { scheduleReminder } from "@/lib/reminders";
18-
import { useTranslation } from "@/i18n";
19-
import { ProgressRing } from "@/components/ui/progress-ring";
20-
import { getConfetti } from "@/lib/confetti";
14+
import { cn } from '../../lib/utils';
15+
import { supabase } from '../../integrations/supabase/client';
16+
import { useAuth } from '../../contexts/AuthContext';
17+
import { scheduleReminder } from '../../lib/reminders';
18+
import { useTranslation } from '../../i18n';
19+
import { ProgressRing } from '../ui/progress-ring';
20+
import { getConfetti } from '../../lib/confetti';
2121
import type { Options as ConfettiOptions } from "canvas-confetti";
2222
import {
2323
Dialog,
@@ -26,12 +26,12 @@ import {
2626
DialogTitle,
2727
DialogFooter,
2828
DialogClose,
29-
} from "@/components/ui/dialog";
30-
import { Input } from "@/components/ui/input";
31-
import { Label } from "@/components/ui/label";
32-
import { fetchGoogleCalendarEvents } from "@/integrations/google-calendar";
33-
import { fetchMicrosoftCalendarEvents } from "@/integrations/microsoft-calendar";
34-
import { fetchEnergyCycleMetrics, type EnergyCycleMetrics } from "@/integrations/wearable";
29+
} from '../ui/dialog';
30+
import { Input } from '../ui/input';
31+
import { Label } from '../ui/label';
32+
import { fetchGoogleCalendarEvents } from '../../integrations/google-calendar';
33+
import { fetchMicrosoftCalendarEvents } from '../../integrations/microsoft-calendar';
34+
import { fetchEnergyCycleMetrics, type EnergyCycleMetrics } from '../../integrations/wearable';
3535

3636
export interface TimeSlot {
3737
id: string;

src/components/communication/emoji-picker.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React, { useMemo, useState } from 'react';
2-
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
3-
import { PulseButton } from '@/components/ui/pulse-button';
4-
import { Badge } from '@/components/ui/badge';
2+
import { Card, CardContent, CardHeader, CardTitle } from '../ui/card';
3+
import { PulseButton } from '../ui/pulse-button';
4+
import { Badge } from '../ui/badge';
55
import { Heart, Send, Sparkles } from 'lucide-react';
6-
import { cn } from '@/lib/utils';
7-
import { useTranslation } from '@/i18n';
6+
import { cn } from '../../lib/utils';
7+
import { useTranslation } from '../../i18n';
88

99
interface EmojiPickerProps {
1010
onSend: (emoji: string, category: string) => void;

src/components/coupling/pairing.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { useEffect, useState } from 'react';
22
import { useParams } from 'react-router-dom';
3-
import { supabase } from '@/integrations/supabase/client';
4-
import type { Database } from '@/integrations/supabase/types';
5-
import { useAuth } from '@/contexts/AuthContext';
6-
import { Avatar, AvatarImage, AvatarFallback } from '@/components/ui/avatar';
7-
import { Button } from '@/components/ui/button';
3+
import { supabase } from '../../integrations/supabase/client';
4+
import type { Database } from '../../integrations/supabase/types';
5+
import { useAuth } from '../../contexts/AuthContext';
6+
import { Avatar, AvatarImage, AvatarFallback } from '../ui/avatar';
7+
import { Button } from '../ui/button';
88
import QRCode from 'qrcode.react';
9-
import { getConfetti } from '@/lib/confetti';
9+
import { getConfetti } from '../../lib/confetti';
1010

1111
type ProfileSummary = Pick<
1212
Database['public']['Tables']['profiles']['Row'],

src/components/dashboard/central-pulse-button.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React, { useState } from 'react';
22
import { Check } from 'lucide-react';
3-
import { useAuth } from '@/contexts/AuthContext';
4-
import { supabase } from '@/integrations/supabase/client';
5-
import { useToast } from '@/hooks/use-toast';
6-
import { useTranslation } from '@/i18n';
7-
import { cn } from '@/lib/utils';
3+
import { useAuth } from '../../contexts/AuthContext';
4+
import { supabase } from '../../integrations/supabase/client';
5+
import { useToast } from '../../hooks/use-toast';
6+
import { useTranslation } from '../../i18n';
7+
import { cn } from '../../lib/utils';
88

99
interface CentralPulseButtonProps {
1010
className?: string;

src/components/dashboard/pulse-status.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import React, { useState } from 'react';
2-
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
2+
import { Card, CardContent, CardHeader, CardTitle } from '../ui/card';
33
import { CentralPulseButton } from './central-pulse-button';
4-
import { StatusIndicator } from '@/components/ui/status-indicator';
4+
import { StatusIndicator } from '../ui/status-indicator';
55
import { Heart, Moon, Coffee, Sparkles } from 'lucide-react';
6-
import { cn } from '@/lib/utils';
6+
import { cn } from '../../lib/utils';
77
import { SnoozeToggle } from './snooze-toggle';
8-
import { useTranslation } from '@/i18n';
8+
import { useTranslation } from '../../i18n';
99

1010
type PulseStatus = 'active' | 'away' | 'offline';
1111

src/components/dashboard/snooze-toggle.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
2-
import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group';
3-
import { Button } from '@/components/ui/button';
4-
import { supabase } from '@/integrations/supabase/client';
5-
import { useAuth } from '@/contexts/AuthContext';
6-
import { useToast } from '@/hooks/use-toast';
2+
import { ToggleGroup, ToggleGroupItem } from '../ui/toggle-group';
3+
import { Button } from '../ui/button';
4+
import { supabase } from '../../integrations/supabase/client';
5+
import { useAuth } from '../../contexts/AuthContext';
6+
import { useToast } from '../../hooks/use-toast';
77
import { format } from 'date-fns';
88

99
export const SnoozeToggle: React.FC = () => {

src/components/messaging/message-center.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import React, { useState, useRef, useEffect, useMemo, useCallback } from 'react';
22
import type { InfiniteData } from '@tanstack/react-query';
3-
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
4-
import { PulseButton } from '@/components/ui/pulse-button';
5-
import { Badge } from '@/components/ui/badge';
6-
import { Textarea } from '@/components/ui/textarea';
3+
import { Card, CardContent, CardHeader, CardTitle } from '../ui/card';
4+
import { PulseButton } from '../ui/pulse-button';
5+
import { Badge } from '../ui/badge';
6+
import { Textarea } from '../ui/textarea';
77
import { MessageCircle, Send, Heart, Image, Smile } from 'lucide-react';
8-
import { cn } from '@/lib/utils';
9-
import { useAuth } from '@/contexts/AuthContext';
10-
import { supabase } from '@/integrations/supabase/client';
11-
import { useToast } from '@/hooks/use-toast';
12-
import { useTranslation } from '@/i18n';
8+
import { cn } from '../../lib/utils';
9+
import { useAuth } from '../../contexts/AuthContext';
10+
import { supabase } from '../../integrations/supabase/client';
11+
import { useToast } from '../../hooks/use-toast';
12+
import { useTranslation } from '../../i18n';
1313
import { FixedSizeList as List } from 'react-window';
14-
import { useMessages } from '@/hooks/use-messages';
14+
import { useMessages } from '../../hooks/use-messages';
1515

1616
interface Message {
1717
id: string;

0 commit comments

Comments
 (0)