svelte-log-view 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/LogView.svelte +3 -6
package/package.json
CHANGED
package/src/LogView.svelte
CHANGED
|
@@ -12,10 +12,7 @@
|
|
|
12
12
|
let content;
|
|
13
13
|
|
|
14
14
|
onDestroy(() => source.abort());
|
|
15
|
-
|
|
16
|
-
onMount(async () => {
|
|
17
|
-
fetchFollow();
|
|
18
|
-
});
|
|
15
|
+
onMount(() => fetchFollow());
|
|
19
16
|
|
|
20
17
|
async function fetchFollow() {
|
|
21
18
|
let current;
|
|
@@ -98,7 +95,7 @@
|
|
|
98
95
|
follow = flag;
|
|
99
96
|
}
|
|
100
97
|
|
|
101
|
-
function
|
|
98
|
+
function onkeydown(event) {
|
|
102
99
|
switch (event.key) {
|
|
103
100
|
case "ArrowUp":
|
|
104
101
|
setFollow(false);
|
|
@@ -132,7 +129,7 @@
|
|
|
132
129
|
}
|
|
133
130
|
</script>
|
|
134
131
|
|
|
135
|
-
<svelte:window onkeydown
|
|
132
|
+
<svelte:window {onkeydown} />
|
|
136
133
|
<log-content bind:this={content}>
|
|
137
134
|
{#each visible as entry, i (i)}
|
|
138
135
|
<log-row>
|