mirror of
https://github.com/shadoll/sLogos.git
synced 2026-02-04 11:03:24 +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;
|
export let theme;
|
||||||
$: getLogoThemeColor = logo => getDefaultLogoColor(logo.colors, theme);
|
$: getLogoThemeColor = logo => getDefaultLogoColor(logo.colors, theme);
|
||||||
|
|
||||||
// Improved debug logging for color and theme for each logo
|
|
||||||
$: {
|
$: {
|
||||||
if (logos && logos.length) {
|
if (logos && logos.length) {
|
||||||
logos.forEach(logo => {
|
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>
|
</script>
|
||||||
|
|
||||||
<Preview show={showModal} logo={selectedLogo} theme={theme} on:close={closeModal} />
|
<Preview show={showModal} logo={selectedLogo} theme={theme} on:close={closeModal} />
|
||||||
|
|||||||
@@ -50,7 +50,6 @@
|
|||||||
|
|
||||||
$: getLogoThemeColor = logo => getDefaultLogoColor(logo.colors, theme);
|
$: getLogoThemeColor = logo => getDefaultLogoColor(logo.colors, theme);
|
||||||
|
|
||||||
// Debug logging for color and theme
|
|
||||||
$: {
|
$: {
|
||||||
if (logos && logos.length) {
|
if (logos && logos.length) {
|
||||||
logos.forEach(logo => {
|
logos.forEach(logo => {
|
||||||
|
|||||||
Reference in New Issue
Block a user