feat: refactor service organization and update imports
- Introduced a new structure for services in `src/services/` to improve organization by domain, including core, analytics, data management, integrations, and task management. - Moved relevant files to their new locations and updated all internal and external imports accordingly. - Updated `TODO.md` to reflect the new service organization and outlined phases for further refactoring.
This commit is contained in:
@@ -6,7 +6,7 @@ import { useState, useEffect, useTransition } from 'react';
|
||||
import { backupClient } from '@/clients/backup-client';
|
||||
import { jiraClient } from '@/clients/jira-client';
|
||||
import { getSystemInfo } from '@/actions/system-info';
|
||||
import { SystemInfo } from '@/services/system-info';
|
||||
import { SystemInfo } from '@/services/core/system-info';
|
||||
import { QuickStats } from './index/QuickStats';
|
||||
import { SettingsNavigation } from './index/SettingsNavigation';
|
||||
import { QuickActions } from './index/QuickActions';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import { Card, CardContent } from '@/components/ui/Card';
|
||||
import { UserPreferences } from '@/lib/types';
|
||||
import { SystemInfo } from '@/services/system-info';
|
||||
import { SystemInfo } from '@/services/core/system-info';
|
||||
|
||||
interface QuickStatsProps {
|
||||
preferences: UserPreferences;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { Card, CardHeader, CardContent } from '@/components/ui/Card';
|
||||
import { SystemInfo as SystemInfoType } from '@/services/system-info';
|
||||
import { SystemInfo as SystemInfoType } from '@/services/core/system-info';
|
||||
|
||||
interface SystemInfoProps {
|
||||
systemInfo: SystemInfoType | null;
|
||||
|
||||
Reference in New Issue
Block a user