Update a bunch of libraries to typescript

This commit is contained in:
2024-08-30 15:16:01 +02:00
parent c152f36f49
commit c75cbb2e3f
18 changed files with 370 additions and 222 deletions

View File

@@ -1,5 +1,5 @@
<script>
import { fs_delete_all, fs_rename } from './../FilesystemAPI.js'
import { fs_delete_all, fs_rename } from './../FilesystemAPI.ts'
import { createEventDispatcher, onMount } from 'svelte'
import CreateDirectory from './CreateDirectory.svelte'
import ListView from './ListView.svelte'
@@ -103,7 +103,9 @@ const delete_selected = async () => {
// Save all promises with deletion requests in an array
let promises = []
nav.children.forEach(child => {
if (!child.fm_selected) { return }
if (!child.fm_selected) {
return
}
promises.push(fs_delete_all(child.path))
})

View File

@@ -96,7 +96,7 @@ export let hide_branding = false
border-bottom: 1px solid var(--separator);
}
.node:hover:not(.node_selected) {
background: var(--input_background);
background: var(--input_hover_background);
color: var(--input_text);
text-decoration: none;
}