Move some libraries around

This commit is contained in:
2024-09-12 15:11:50 +02:00
parent f3ac6875ed
commit 9e7f3b4e0d
18 changed files with 16 additions and 16 deletions

View File

@@ -13,7 +13,7 @@ import Menu from './Menu.svelte';
import { FSNavigator } from "./FSNavigator"
import { writable } from 'svelte/store';
import TransferLimit from '../file_viewer/TransferLimit.svelte';
import { stats } from "../util/StatsSocket.js"
import { stats } from "../lib/StatsSocket.js"
import { css_from_path } from './edit_window/Branding';
let file_viewer

View File

@@ -98,7 +98,6 @@ export const fs_mkdirall = async (path: string, opts: NodeOptions) => {
)
}
export const fs_get_node = async (path: string) => {
return await fs_check_response(
await fetch(fs_path_url(path) + "?stat")
@@ -144,6 +143,7 @@ export const fs_delete = async (path: string) => {
await fetch(fs_path_url(path), { method: "DELETE" })
) as GenericResponse
}
export const fs_delete_all = async (path: string) => {
return await fs_check_response(
await fetch(fs_path_url(path) + "?recursive", { method: "DELETE" })

View File

@@ -7,7 +7,7 @@ import GalleryView from './GalleryView.svelte'
import Button from '../../layout/Button.svelte';
import FileImporter from './FileImporter.svelte';
import { formatDate } from '../../util/Formatting.svelte';
import { drop_target } from "../../util/DropTarget.ts"
import { drop_target } from "../../lib/DropTarget.ts"
export let nav
export let upload_widget

View File

@@ -12,7 +12,7 @@ import Video from "./Video.svelte";
import Torrent from "./Torrent.svelte";
import Zip from "./Zip.svelte";
import CustomBanner from "./CustomBanner.svelte";
import { stats } from "../../util/StatsSocket.js"
import { stats } from "../../lib/StatsSocket.js"
import SlowDown from "../../layout/SlowDown.svelte";
export let nav

View File

@@ -1,7 +1,7 @@
<script>
import { createEventDispatcher } from "svelte";
import { swipe_nav } from "../../util/SwipeNavigate.ts";
import { fs_path_url } from "./../FilesystemAPI";
import { swipe_nav } from "../../lib/SwipeNavigate.ts";
import { fs_path_url } from "./../FilesystemAPI.ts";
let dispatch = createEventDispatcher();