Swipable menu, draggable bookmarks
This commit is contained in:
@@ -6,7 +6,6 @@ import Breadcrumbs from "./Breadcrumbs.svelte";
|
||||
import DetailsWindow from "./DetailsWindow.svelte";
|
||||
import FilePreview from "./viewers/FilePreview.svelte";
|
||||
import FSUploadWidget from "./upload_widget/FSUploadWidget.svelte";
|
||||
import { type FSPath } from "lib/FilesystemAPI.svelte";
|
||||
import { global_navigator } from "./FSNavigator"
|
||||
import { css_from_path } from "filesystem/edit_window/Branding";
|
||||
import AffiliatePrompt from "user_home/AffiliatePrompt.svelte";
|
||||
@@ -23,15 +22,7 @@ let details_window: DetailsWindow = $state()
|
||||
const nav = global_navigator
|
||||
|
||||
onMount(() => {
|
||||
if ((window as any).intial_node !== undefined) {
|
||||
console.debug("Loading initial node")
|
||||
nav.open_node((window as any).initial_node as FSPath, false)
|
||||
} else {
|
||||
console.debug("No initial node, fetching path", window.location.pathname)
|
||||
nav.navigate(decodeURIComponent(window.location.pathname).replace(/^\/d/, ""), false)
|
||||
}
|
||||
|
||||
// There is a global natigation handler which captures link clicks and loads
|
||||
// There is a global navigation handler which captures link clicks and loads
|
||||
// the right svelte components. When a filesystem link is clicked this store
|
||||
// is updated. Catch it and use the filesystem navigator to navigate to the
|
||||
// right file
|
||||
|
||||
Reference in New Issue
Block a user