Refactor logo management components: remove LogoModal, add Actions and Grid components, enhance List and Preview components with improved theme handling and SVG support.

This commit is contained in:
sHa
2025-05-01 11:57:23 +03:00
parent 0313d091fc
commit c62d453946
6 changed files with 40 additions and 38 deletions

View File

@@ -1,7 +1,7 @@
<script>
import { onMount } from 'svelte';
import LogoGrid from './components/LogoGrid.svelte';
import LogoList from './components/LogoList.svelte';
import Grid from './components/Grid.svelte';
import List from './components/List.svelte';
let viewMode = 'grid'; // 'grid' or 'list'
let searchQuery = '';
@@ -261,14 +261,14 @@
<div class="logos-container">
{#if viewMode === 'grid'}
<LogoGrid
<Grid
logos={filteredLogos}
onCopy={copyUrl}
onDownload={downloadLogo}
theme={effectiveTheme}
/>
{:else}
<LogoList
<List
logos={filteredLogos}
onCopy={copyUrl}
onDownload={downloadLogo}