@mytec: iter10 ready for testing

This commit is contained in:
2026-01-30 16:01:23 +02:00
parent 31db02de8e
commit 2a62d00a35
20 changed files with 150 additions and 294 deletions

View File

@@ -2,6 +2,7 @@ import { useRef } from 'react';
import { useSitesStore } from '@/store/sites.ts';
import { useToastStore } from '@/components/ui/Toast.tsx';
import Button from '@/components/ui/Button.tsx';
import { logger } from '@/utils/logger.ts';
/**
* Import/Export site configurations as JSON.
@@ -95,7 +96,7 @@ export default function SiteImportExport() {
const count = await importSites(sitesData);
addToast(`Imported ${count} site(s)`, 'success');
} catch (error) {
console.error('Import failed:', error);
logger.error('Import failed:', error);
addToast('Invalid JSON file', 'error');
}