Update a bunch of libraries to typescript
This commit is contained in:
@@ -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))
|
||||
})
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user