Move from relative imports to static imports
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<script>
|
||||
import Chart from "../util/Chart.svelte";
|
||||
import { formatDataVolume, formatDate, formatNumber, formatThousands } from "../util/Formatting.svelte";
|
||||
import Modal from "../util/Modal.svelte";
|
||||
import Chart from "util/Chart.svelte";
|
||||
import { formatDataVolume, formatDate, formatNumber, formatThousands } from "util/Formatting.svelte";
|
||||
import Modal from "util/Modal.svelte";
|
||||
import { fs_path_url, fs_timeseries } from "./FilesystemAPI.mjs";
|
||||
import { generate_share_path, generate_share_url } from "./Sharebar.svelte";
|
||||
import { color_by_name } from "../util/Util.svelte";
|
||||
import { color_by_name } from "util/Util.svelte";
|
||||
import { tick } from "svelte";
|
||||
import CopyButton from "../layout/CopyButton.svelte";
|
||||
import CopyButton from "layout/CopyButton.svelte";
|
||||
|
||||
export let nav
|
||||
export let visible = false
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
import { onMount } from "svelte";
|
||||
import { formatDataVolume, formatThousands } from "../util/Formatting.svelte"
|
||||
import { formatDataVolume, formatThousands } from "util/Formatting.svelte"
|
||||
import { fs_path_url } from "./FilesystemAPI.mjs";
|
||||
|
||||
export let nav
|
||||
|
@@ -1,20 +1,20 @@
|
||||
<script>
|
||||
import { onMount } from 'svelte';
|
||||
import LoadingIndicator from '../util/LoadingIndicator.svelte';
|
||||
import EditWindow from './edit_window/EditWindow.svelte';
|
||||
import Toolbar from './Toolbar.svelte';
|
||||
import Breadcrumbs from './Breadcrumbs.svelte';
|
||||
import DetailsWindow from './DetailsWindow.svelte';
|
||||
import FilePreview from './viewers/FilePreview.svelte';
|
||||
import FSUploadWidget from './upload_widget/FSUploadWidget.svelte';
|
||||
import { fs_path_url } from './FilesystemAPI.mjs';
|
||||
import Menu from './Menu.svelte';
|
||||
import { onMount } from "svelte";
|
||||
import LoadingIndicator from "util/LoadingIndicator.svelte";
|
||||
import EditWindow from "./edit_window/EditWindow.svelte";
|
||||
import Toolbar from "./Toolbar.svelte";
|
||||
import Breadcrumbs from "./Breadcrumbs.svelte";
|
||||
import DetailsWindow from "./DetailsWindow.svelte";
|
||||
import FilePreview from "./viewers/FilePreview.svelte";
|
||||
import FSUploadWidget from "./upload_widget/FSUploadWidget.svelte";
|
||||
import { fs_path_url } from "./FilesystemAPI.mjs";
|
||||
import Menu from "./Menu.svelte";
|
||||
import { FSNavigator } from "./FSNavigator"
|
||||
import { writable } from 'svelte/store';
|
||||
import TransferLimit from '../file_viewer/TransferLimit.svelte';
|
||||
import { stats } from "../lib/StatsSocket.mjs"
|
||||
import { css_from_path } from './edit_window/Branding';
|
||||
import AffiliatePrompt from '../user_home/AffiliatePrompt.svelte';
|
||||
import { writable } from "svelte/store";
|
||||
import TransferLimit from "file_viewer/TransferLimit.svelte";
|
||||
import { stats } from "lib/StatsSocket.mjs"
|
||||
import { css_from_path } from "filesystem/edit_window/Branding.js";
|
||||
import AffiliatePrompt from "user_home/AffiliatePrompt.svelte";
|
||||
|
||||
let file_viewer
|
||||
let file_preview
|
||||
|
@@ -1,8 +1,8 @@
|
||||
<script>
|
||||
import PixeldrainLogo from "../util/PixeldrainLogo.svelte";
|
||||
import Button from "../layout/Button.svelte";
|
||||
import Euro from "../util/Euro.svelte";
|
||||
import { formatDataVolume } from "../util/Formatting.svelte";
|
||||
import PixeldrainLogo from "util/PixeldrainLogo.svelte";
|
||||
import Button from "layout/Button.svelte";
|
||||
import Euro from "util/Euro.svelte";
|
||||
import { formatDataVolume } from "util/Formatting.svelte";
|
||||
|
||||
let button
|
||||
let dialog
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<script>
|
||||
import { createEventDispatcher } from "svelte";
|
||||
import { generate_share_url } from "./Sharebar.svelte";
|
||||
import { copy_text } from "../util/Util.svelte";
|
||||
import { copy_text } from "util/Util.svelte";
|
||||
import FileStats from "./FileStats.svelte";
|
||||
|
||||
let dispatch = createEventDispatcher()
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import Button from "../../layout/Button.svelte";
|
||||
import type { FSNode, FSPermissions } from "../FilesystemAPI.mjs";
|
||||
import Button from "layout/Button.svelte";
|
||||
import type { FSNode, FSPermissions } from "filesystem/FilesystemAPI.mjs";
|
||||
import PermissionButton from "./PermissionButton.svelte";
|
||||
|
||||
export let file: FSNode
|
||||
|
@@ -1,10 +1,10 @@
|
||||
<script>
|
||||
import { createEventDispatcher } from "svelte";
|
||||
import ThemePresets from "./ThemePresets.svelte";
|
||||
import FilePicker from "../filemanager/FilePicker.svelte";
|
||||
import { fs_update, fs_node_type } from "../FilesystemAPI.mjs";
|
||||
import CustomBanner from "../viewers/CustomBanner.svelte";
|
||||
import HelpButton from "../../layout/HelpButton.svelte";
|
||||
import FilePicker from "file_viewer/FilePicker.svelte";
|
||||
import { fs_update, fs_node_type } from "filesystem/FilesystemAPI.mjs";
|
||||
import CustomBanner from "filesystem/viewers/CustomBanner.svelte";
|
||||
import HelpButton from "layout/HelpButton.svelte";
|
||||
let dispatch = createEventDispatcher()
|
||||
|
||||
export let file = {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
import { fs_rename, fs_update } from "../FilesystemAPI.mjs";
|
||||
import Modal from "../../util/Modal.svelte";
|
||||
import { fs_rename, fs_update } from "filesystem/FilesystemAPI.mjs";
|
||||
import Modal from "util/Modal.svelte";
|
||||
import BrandingOptions from "./BrandingOptions.svelte";
|
||||
import { branding_from_node } from "./Branding";
|
||||
import FileOptions from "./FileOptions.svelte";
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<script>
|
||||
import Button from "../../layout/Button.svelte";
|
||||
import { fs_delete_all } from "../FilesystemAPI.mjs";
|
||||
import PathLink from "../util/PathLink.svelte";
|
||||
import Button from "layout/Button.svelte";
|
||||
import { fs_delete_all } from "filesystem/FilesystemAPI.mjs";
|
||||
import PathLink from "filesystem/util/PathLink.svelte";
|
||||
|
||||
export let nav
|
||||
export let file = {}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import ToggleButton from "../../layout/ToggleButton.svelte";
|
||||
import type { FSPermissions } from "../FilesystemAPI.mjs";
|
||||
import ToggleButton from "layout/ToggleButton.svelte";
|
||||
import type { FSPermissions } from "filesystem/FilesystemAPI.mjs";
|
||||
|
||||
export let permissions = <FSPermissions>{}
|
||||
</script>
|
||||
|
@@ -1,8 +1,8 @@
|
||||
<script>
|
||||
import { createEventDispatcher } from "svelte";
|
||||
import { domain_url } from "../../util/Util.svelte";
|
||||
import CopyButton from "../../layout/CopyButton.svelte";
|
||||
import { formatDate } from "../../util/Formatting.svelte";
|
||||
import { domain_url } from "util/Util.svelte";
|
||||
import CopyButton from "layout/CopyButton.svelte";
|
||||
import { formatDate } from "util/Formatting.svelte";
|
||||
|
||||
let dispatch = createEventDispatcher()
|
||||
export let shared
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
import { createEventDispatcher } from "svelte";
|
||||
import { fs_encode_path, fs_node_icon } from "../FilesystemAPI.mjs"
|
||||
import { fs_encode_path, fs_node_icon } from "filesystem/FilesystemAPI.mjs"
|
||||
|
||||
let dispatch = createEventDispatcher()
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<script>
|
||||
import { onMount } from "svelte";
|
||||
import { fs_mkdir } from "../FilesystemAPI.mjs";
|
||||
import Button from "../../layout/Button.svelte";
|
||||
import { fs_mkdir } from "filesystem/FilesystemAPI.mjs";
|
||||
import Button from "layout/Button.svelte";
|
||||
|
||||
export let nav;
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
import FilePicker from "../../file_viewer/FilePicker.svelte";
|
||||
import { fs_import } from "../FilesystemAPI.mjs";
|
||||
import FilePicker from "file_viewer/FilePicker.svelte";
|
||||
import { fs_import } from "filesystem/FilesystemAPI.mjs";
|
||||
|
||||
export let nav
|
||||
let file_picker
|
||||
|
@@ -1,15 +1,15 @@
|
||||
<script>
|
||||
import { fs_delete_all, fs_rename } from '../FilesystemAPI.mjs'
|
||||
import { onMount } from 'svelte'
|
||||
import CreateDirectory from './CreateDirectory.svelte'
|
||||
import ListView from './ListView.svelte'
|
||||
import GalleryView from './GalleryView.svelte'
|
||||
import CompactView from './CompactView.svelte'
|
||||
import Button from '../../layout/Button.svelte';
|
||||
import FileImporter from './FileImporter.svelte';
|
||||
import { formatDate } from '../../util/Formatting.svelte';
|
||||
import { drop_target } from "../../lib/DropTarget.ts"
|
||||
import SearchBar from './SearchBar.svelte';
|
||||
import { fs_delete_all, fs_rename } from "filesystem/FilesystemAPI.mjs"
|
||||
import { onMount } from "svelte"
|
||||
import CreateDirectory from "./CreateDirectory.svelte"
|
||||
import ListView from "./ListView.svelte"
|
||||
import GalleryView from "./GalleryView.svelte"
|
||||
import CompactView from "./CompactView.svelte"
|
||||
import Button from "layout/Button.svelte";
|
||||
import FileImporter from "./FileImporter.svelte";
|
||||
import { formatDate } from "util/Formatting.svelte";
|
||||
import { drop_target } from "lib/DropTarget.ts"
|
||||
import SearchBar from "./SearchBar.svelte";
|
||||
|
||||
export let nav
|
||||
export let upload_widget
|
||||
|
@@ -1,12 +1,12 @@
|
||||
<script>
|
||||
import { createEventDispatcher, onMount } from 'svelte'
|
||||
import ListView from './ListView.svelte'
|
||||
import GalleryView from './GalleryView.svelte'
|
||||
import CompactView from './CompactView.svelte'
|
||||
import Modal from '../../util/Modal.svelte';
|
||||
import LoadingIndicator from '../../util/LoadingIndicator.svelte';
|
||||
import Breadcrumbs from '../Breadcrumbs.svelte'
|
||||
import { FSNavigator } from '../FSNavigator';
|
||||
import { createEventDispatcher, onMount } from "svelte"
|
||||
import ListView from "./ListView.svelte"
|
||||
import GalleryView from "./GalleryView.svelte"
|
||||
import CompactView from "./CompactView.svelte"
|
||||
import Modal from "util/Modal.svelte";
|
||||
import LoadingIndicator from "util/LoadingIndicator.svelte";
|
||||
import Breadcrumbs from "filesystem/Breadcrumbs.svelte"
|
||||
import { FSNavigator } from "filesystem/FSNavigator.js";
|
||||
|
||||
let nav = new FSNavigator(false)
|
||||
let modal
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
import { createEventDispatcher } from "svelte"
|
||||
import { fs_node_icon, fs_node_type, fs_encode_path } from "../FilesystemAPI.mjs";
|
||||
import { fs_node_icon, fs_node_type, fs_encode_path } from "filesystem/FilesystemAPI.mjs";
|
||||
let dispatch = createEventDispatcher()
|
||||
|
||||
export let nav
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<script>
|
||||
import { createEventDispatcher } from "svelte";
|
||||
import { formatDataVolume } from "./../../util/Formatting.svelte";
|
||||
import { fs_encode_path, fs_node_icon } from "../FilesystemAPI.mjs"
|
||||
import { formatDataVolume } from "util/Formatting.svelte";
|
||||
import { fs_encode_path, fs_node_icon } from "filesystem/FilesystemAPI.mjs"
|
||||
|
||||
let dispatch = createEventDispatcher()
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
import { onMount } from "svelte";
|
||||
import { fs_search, fs_encode_path, fs_thumbnail_url } from "../FilesystemAPI.mjs";
|
||||
import { fs_search, fs_encode_path, fs_thumbnail_url } from "filesystem/FilesystemAPI.mjs";
|
||||
|
||||
export let nav
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
//
|
||||
// on_error is called when the upload has failed. The parameters are the error
|
||||
|
||||
import { fs_path_url, type GenericResponse } from "../FilesystemAPI.mjs"
|
||||
import { fs_path_url, type GenericResponse } from "filesystem/FilesystemAPI.mjs"
|
||||
|
||||
// code and an error message
|
||||
export const upload_file = (
|
||||
|
@@ -2,8 +2,8 @@
|
||||
import { createEventDispatcher } from "svelte";
|
||||
import { fade } from "svelte/transition";
|
||||
import { upload_file } from "./UploadFunc";
|
||||
import ProgressBar from "../../util/ProgressBar.svelte";
|
||||
import Button from "../../layout/Button.svelte"
|
||||
import ProgressBar from "util/ProgressBar.svelte";
|
||||
import Button from "layout/Button.svelte"
|
||||
|
||||
let dispatch = createEventDispatcher()
|
||||
export let job = {
|
||||
|
@@ -1,8 +1,8 @@
|
||||
<script>
|
||||
import { onMount } from 'svelte'
|
||||
import { fs_path_url, fs_encode_path, fs_node_icon } from "../FilesystemAPI.mjs"
|
||||
import FileTitle from "../../layout/FileTitle.svelte";
|
||||
import TextBlock from "../../layout/TextBlock.svelte"
|
||||
import { fs_path_url, fs_encode_path, fs_node_icon } from "filesystem/FilesystemAPI.mjs"
|
||||
import FileTitle from "layout/FileTitle.svelte";
|
||||
import TextBlock from "layout/TextBlock.svelte"
|
||||
|
||||
export let nav
|
||||
let player
|
||||
|
@@ -1,9 +1,9 @@
|
||||
<script>
|
||||
import { createEventDispatcher } from "svelte";
|
||||
import IconBlock from "../../layout/IconBlock.svelte";
|
||||
import { fs_thumbnail_url } from "../FilesystemAPI.mjs";
|
||||
import TextBlock from "../../layout/TextBlock.svelte"
|
||||
import { formatDataVolume, formatDate } from "../../util/Formatting.svelte";
|
||||
import IconBlock from "layout/IconBlock.svelte";
|
||||
import { fs_thumbnail_url } from "filesystem/FilesystemAPI.mjs";
|
||||
import TextBlock from "layout/TextBlock.svelte"
|
||||
import { formatDataVolume, formatDate } from "util/Formatting.svelte";
|
||||
|
||||
let dispatch = createEventDispatcher()
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
<script>
|
||||
import { onMount, tick } from "svelte";
|
||||
import Spinner from "../../util/Spinner.svelte";
|
||||
import { fs_node_type, fs_thumbnail_url } from "../FilesystemAPI.mjs";
|
||||
import FileManager from "../filemanager/FileManager.svelte";
|
||||
import Spinner from "util/Spinner.svelte";
|
||||
import { fs_node_type, fs_thumbnail_url } from "filesystem/FilesystemAPI.mjs";
|
||||
import FileManager from "filesystem/filemanager/FileManager.svelte";
|
||||
import Audio from "./Audio.svelte";
|
||||
import File from "./File.svelte";
|
||||
import Image from "./Image.svelte";
|
||||
@@ -12,8 +12,8 @@ import Video from "./Video.svelte";
|
||||
import Torrent from "./Torrent.svelte";
|
||||
import Zip from "./Zip.svelte";
|
||||
import CustomBanner from "./CustomBanner.svelte";
|
||||
import { stats } from "../../lib/StatsSocket.mjs"
|
||||
import SlowDown from "../../layout/SlowDown.svelte";
|
||||
import { stats } from "lib/StatsSocket.mjs"
|
||||
import SlowDown from "layout/SlowDown.svelte";
|
||||
|
||||
export let nav
|
||||
export let upload_widget
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { createEventDispatcher } from "svelte";
|
||||
import { swipe_nav } from "../../lib/SwipeNavigate.mjs";
|
||||
import { fs_path_url } from "../FilesystemAPI.mjs";
|
||||
import { swipe_nav } from "lib/SwipeNavigate.mjs";
|
||||
import { fs_path_url } from "filesystem/FilesystemAPI.mjs";
|
||||
|
||||
let dispatch = createEventDispatcher();
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<script>
|
||||
import { fs_path_url } from "../FilesystemAPI.mjs";
|
||||
import { fs_path_url } from "filesystem/FilesystemAPI.mjs";
|
||||
|
||||
export let nav
|
||||
</script>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
import { tick } from "svelte";
|
||||
import { fs_path_url } from "../FilesystemAPI.mjs";
|
||||
import { fs_path_url } from "filesystem/FilesystemAPI.mjs";
|
||||
|
||||
export let nav
|
||||
let text_type = "text"
|
||||
|
@@ -1,12 +1,12 @@
|
||||
<script>
|
||||
import { createEventDispatcher } from "svelte";
|
||||
import Magnet from "../../icons/Magnet.svelte";
|
||||
import { formatDate } from "../../util/Formatting.svelte"
|
||||
import Magnet from "icons/Magnet.svelte";
|
||||
import { formatDate } from "util/Formatting.svelte"
|
||||
import TorrentItem from "./TorrentItem.svelte"
|
||||
import IconBlock from "../../layout/IconBlock.svelte";
|
||||
import TextBlock from "../../layout/TextBlock.svelte"
|
||||
import { fs_node_icon, fs_path_url } from "../FilesystemAPI.mjs";
|
||||
import CopyButton from "../../layout/CopyButton.svelte";
|
||||
import IconBlock from "layout/IconBlock.svelte";
|
||||
import TextBlock from "layout/TextBlock.svelte"
|
||||
import { fs_node_icon, fs_path_url } from "filesystem/FilesystemAPI.mjs";
|
||||
import CopyButton from "layout/CopyButton.svelte";
|
||||
|
||||
let dispatch = createEventDispatcher()
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<script>
|
||||
import { formatDataVolume } from "../../util/Formatting.svelte";
|
||||
import { formatDataVolume } from "util/Formatting.svelte";
|
||||
|
||||
export let item = {
|
||||
size: 0,
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<script>
|
||||
import { onMount, createEventDispatcher, tick } from "svelte";
|
||||
import { video_position } from "../../lib/VideoPosition.mjs";
|
||||
import { fs_path_url } from "../FilesystemAPI.mjs";
|
||||
import { video_position } from "lib/VideoPosition.mjs";
|
||||
import { fs_path_url } from "filesystem/FilesystemAPI.mjs";
|
||||
let dispatch = createEventDispatcher()
|
||||
|
||||
export let nav
|
||||
|
@@ -1,10 +1,10 @@
|
||||
<script>
|
||||
import { createEventDispatcher } from "svelte";
|
||||
import { formatDataVolume, formatDate } from "../../util/Formatting.svelte"
|
||||
import ZipItem from "../../file_viewer/viewers/ZipItem.svelte";
|
||||
import IconBlock from "../../layout/IconBlock.svelte";
|
||||
import TextBlock from "../../layout/TextBlock.svelte"
|
||||
import { fs_node_icon, fs_path_url } from "../FilesystemAPI.mjs";
|
||||
import { formatDataVolume, formatDate } from "util/Formatting.svelte"
|
||||
import ZipItem from "file_viewer/viewers/ZipItem.svelte";
|
||||
import IconBlock from "layout/IconBlock.svelte";
|
||||
import TextBlock from "layout/TextBlock.svelte"
|
||||
import { fs_node_icon, fs_path_url } from "filesystem/FilesystemAPI.mjs";
|
||||
|
||||
let dispatch = createEventDispatcher()
|
||||
|
||||
|
Reference in New Issue
Block a user