diff --git a/svelte/src/file_viewer/EmbedWindow.svelte b/svelte/src/file_viewer/EmbedWindow.svelte index f62431a..43b3661 100644 --- a/svelte/src/file_viewer/EmbedWindow.svelte +++ b/svelte/src/file_viewer/EmbedWindow.svelte @@ -1,6 +1,7 @@ @@ -92,22 +80,7 @@ const copy_magnet = () => { Open magnet link - + Copy magnet link {:else if status === "too_large"}

Torrent file is too large to parse. Please download the file and diff --git a/svelte/src/filesystem/DetailsWindow.svelte b/svelte/src/filesystem/DetailsWindow.svelte index 7ea0bf9..e4564e3 100644 --- a/svelte/src/filesystem/DetailsWindow.svelte +++ b/svelte/src/filesystem/DetailsWindow.svelte @@ -5,9 +5,9 @@ import Modal from "../util/Modal.svelte"; import { fs_timeseries } from "./FilesystemAPI"; import { fs_path_url } from "./FilesystemUtil"; import { generate_share_path, generate_share_url } from "./Sharebar.svelte"; -import { color_by_name, copy_text } from "../util/Util.svelte"; +import { color_by_name } from "../util/Util.svelte"; import { tick } from "svelte"; -import Button from "../layout/Button.svelte"; +import CopyButton from "../layout/CopyButton.svelte"; export let state export let visible = false @@ -176,7 +176,7 @@ let update_chart = async (base, timespan, interval) => { Direct link - + Copy magnet link {:else if status === "too_large"}

Torrent file is too large to parse. Please download the file and diff --git a/svelte/src/home_page/UploadWidget.svelte b/svelte/src/home_page/UploadWidget.svelte index ed9f3e2..faa6cbc 100644 --- a/svelte/src/home_page/UploadWidget.svelte +++ b/svelte/src/home_page/UploadWidget.svelte @@ -1,6 +1,6 @@ + + + + diff --git a/svelte/src/speedtest/Index.svelte b/svelte/src/speedtest/Index.svelte index 912af04..6495b0f 100644 --- a/svelte/src/speedtest/Index.svelte +++ b/svelte/src/speedtest/Index.svelte @@ -20,9 +20,9 @@ import Speedtest from "./Speedtest.svelte";

The speed measured is the maximum speed reached for two continuous - seconds during the test. The normal test has a time limit of 15 + seconds during the test. The normal test has a time limit of 12 seconds and the long test 30 seconds. When the maximum speed has not - changed for a third of the test duration (5 or 10 seconds) the test + changed for a third of the test duration (4 or 10 seconds) the test will end and the result will be final. The long test will use much more bandwidth, so if you're on a cap it's recommended to use the normal test. diff --git a/svelte/src/speedtest/Speedtest.svelte b/svelte/src/speedtest/Speedtest.svelte index 913adb4..a3ef0b1 100644 --- a/svelte/src/speedtest/Speedtest.svelte +++ b/svelte/src/speedtest/Speedtest.svelte @@ -3,7 +3,7 @@ import { onMount } from "svelte"; import Button from "../layout/Button.svelte"; import { formatDataVolume, formatDataVolumeBits } from "../util/Formatting.svelte"; import ProgressBar from "../util/ProgressBar.svelte"; -import { copy_text } from "../util/Util.svelte"; +import CopyButton from "../layout/CopyButton.svelte"; let running = false let data_received = 0 @@ -161,15 +161,9 @@ onMount(() => {

-