Skip to content

Commit b8eb87d

Browse files
committed
logging
1 parent f15b620 commit b8eb87d

File tree

8 files changed

+18
-19
lines changed

8 files changed

+18
-19
lines changed

src/actions/inView.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* example:
44
* <p
55
* use:inView
6-
* on:enter={() => console.log("enter")}
7-
* on:exit={() => console.log("exit")}
6+
* on:enter={handleEnter}
7+
* on:exit={handleExit}
88
* >
99
*
1010
* optional params { root, top, bottom, progress }
@@ -50,4 +50,4 @@ export default function inView(node, params = {}) {
5050
if (observer) observer.disconnect();
5151
}
5252
};
53-
}
53+
}

src/actions/resize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import debounce from "lodash.debounce";
55
* example:
66
* <p
77
* use:resize
8-
* on:resize={() => console.log("enter")}
8+
* on:resize={handleResize}
99
* >
1010
*
1111
* optional params { debounce, exclude }

src/components/Footer.Story.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
export let resource;
1212
export let footer;
1313
14-
$: console.log(href)
14+
// $: console.log(href);
1515
1616
// custom to starter
1717
const base = "https://pudding.cool";
@@ -175,4 +175,4 @@
175175
font-size: clamp(var(--24px, 24px), 2.75vw, var(--32px, 32px));
176176
}
177177
}
178-
</style>
178+
</style>

src/components/Tooltip.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
$: isMobile = w <= 500;
1515
1616
function tooltipCloseClick() {
17-
console.log("TOOLTIP close clicked");
17+
// console.log("TOOLTIP close clicked");
1818
lockedSelection.set(false);
1919
tooltipVisible.set(false);
2020
tooltipType.set(null);
@@ -61,14 +61,14 @@
6161
};
6262
6363
if (typeof document !== 'undefined') {
64-
console.log("TOOLTIP: add global click listener");
64+
// console.log("TOOLTIP: add global click listener");
6565
document.addEventListener("click", handleClick, true);
6666
}
6767
});
6868
6969
onDestroy(() => {
7070
if (typeof document !== 'undefined' && handleClick) {
71-
console.log("TOOLTIP: remove global click listener");
71+
// console.log("TOOLTIP: remove global click listener");
7272
document.removeEventListener("click", handleClick, true);
7373
}
7474
});

src/data/copy.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/utils/checkScrollDir.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import checkScrollDir from "$utils/checkScrollDir.js";
44
let scrollY;
55
$: scrollDir = checkScrollDir(scrollY);
6-
$: console.log(scrollDir)
76
</script>
87
98
<svelte:window bind:scrollY={scrollY} />
@@ -21,4 +20,4 @@ export default function checkScrollDir(scrollY) {
2120
scrollDir = undefined;
2221
return scrollDir;
2322
}
24-
}
23+
}

src/utils/localStorage.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const remove = (key) => {
2121
try {
2222
localStorage.removeItem(key);
2323
} catch (err) {
24-
console.log(err);
24+
// console.log(err);
2525
}
2626
};
2727

@@ -30,7 +30,7 @@ const set = (key, value) => {
3030
try {
3131
localStorage.setItem(key, JSON.stringify(value));
3232
} catch (err) {
33-
console.log(err);
33+
// console.log(err);
3434
}
3535
};
3636

@@ -39,7 +39,7 @@ const get = (key) => {
3939
try {
4040
return JSON.parse(localStorage.getItem(key));
4141
} catch (err) {
42-
console.log(err);
42+
// console.log(err);
4343
return undefined;
4444
}
4545
};

src/utils/version.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default function version() {
2-
console.log("--- --- --- --- --- ---");
3-
console.log(`svelte-starter: ${__VERSION__}`);
4-
console.log(`build: ${__TIMESTAMP__}`);
5-
console.log("--- --- --- --- --- ---");
2+
// console.log("--- --- --- --- --- ---");
3+
// console.log(`svelte-starter: ${__VERSION__}`);
4+
// console.log(`build: ${__TIMESTAMP__}`);
5+
// console.log("--- --- --- --- --- ---");
66
}

0 commit comments

Comments
 (0)