FileSystem pulls the file and pulls from localStorage cache to checksum both versions

This commit is contained in:
2026-05-24 19:33:02 +02:00
parent 65c776d1a2
commit 68458be71f
4 changed files with 180 additions and 19 deletions
+4 -5
View File
@@ -1,10 +1,10 @@
<script lang="ts">
import '../app.css';
import favicon from '$lib/assets/favicon.svg';
import { onMount, type Snippet } from 'svelte';
import { theme } from '$lib/stores/theme';
import Loading from '../modules/Loading.svelte';
import Shimeji from '../modules/Shimeji.svelte';
import { onMount, type Snippet } from 'svelte';
import '../app.css';
//import Loading from '../modules/Loading.svelte';
//import Shimeji from '../modules/Shimeji.svelte';
let { children }: { children: Snippet } = $props();
@@ -44,7 +44,6 @@
class:dark={$theme === 'dark'}
class:light={$theme === 'light'}
>
<Shimeji />
{@render children()}
</main>
+13
View File
@@ -0,0 +1,13 @@
<script lang="ts">
import { FileSystem } from '$lib/termos/filesystem/filesystem';
import { MD5 } from '$lib/termos/util/hash';
import { onMount } from 'svelte';
console.log(MD5.hash(''));
console.log(MD5.hash('a'));
console.log(MD5.hash('abc'));
onMount(() => {
FileSystem.Init();
});
</script>