mirror of
https://github.com/shadoll/sLogos.git
synced 2025-12-20 11:32:01 +00:00
Refactor Grid and List components by removing debug logging for color and theme
This commit is contained in:
@@ -28,7 +28,6 @@
|
||||
export let theme;
|
||||
$: getLogoThemeColor = logo => getDefaultLogoColor(logo.colors, theme);
|
||||
|
||||
// Improved debug logging for color and theme for each logo
|
||||
$: {
|
||||
if (logos && logos.length) {
|
||||
logos.forEach(logo => {
|
||||
@@ -40,17 +39,6 @@ $: getLogoThemeColor = logo => getDefaultLogoColor(logo.colors, theme);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Inline SVG logic for color switching
|
||||
let svgCache = {};
|
||||
|
||||
async function fetchInlineSvg(path) {
|
||||
if (svgCache[path]) return svgCache[path];
|
||||
const res = await fetch(path);
|
||||
const text = await res.text();
|
||||
svgCache[path] = text;
|
||||
return text;
|
||||
}
|
||||
</script>
|
||||
|
||||
<Preview show={showModal} logo={selectedLogo} theme={theme} on:close={closeModal} />
|
||||
|
||||
@@ -50,7 +50,6 @@
|
||||
|
||||
$: getLogoThemeColor = logo => getDefaultLogoColor(logo.colors, theme);
|
||||
|
||||
// Debug logging for color and theme
|
||||
$: {
|
||||
if (logos && logos.length) {
|
||||
logos.forEach(logo => {
|
||||
|
||||
Reference in New Issue
Block a user