Rename directory: ext -> extension

This commit is contained in:
hensm
2023-02-26 18:21:59 +00:00
parent 33bcbc0dca
commit a9406fde11
119 changed files with 40 additions and 42 deletions

View File

@@ -0,0 +1,31 @@
<script lang="ts">
import { onMount } from "svelte";
function getNextEllipsis(ellipsis: string): string {
if (ellipsis === "") return ".";
if (ellipsis === ".") return "..";
if (ellipsis === "..") return "...";
if (ellipsis === "...") return "";
return "";
}
export let interval = 500;
let ellipsis = "";
let intervalId: number;
onMount(() => {
intervalId = window.setInterval(() => {
ellipsis = getNextEllipsis(ellipsis);
}, interval);
return () => {
window.clearInterval(intervalId);
};
});
</script>
<span class="indicator">
<slot />{ellipsis}
</span>