Fork pd_web, remove everything we don't need
This commit is contained in:
@@ -11,8 +11,6 @@ import { fs_download, type FSPath } from "./FilesystemAPI";
|
||||
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"
|
||||
import { css_from_path } from "filesystem/edit_window/Branding";
|
||||
import AffiliatePrompt from "user_home/AffiliatePrompt.svelte";
|
||||
|
||||
@@ -160,21 +158,6 @@ const keydown = (e: KeyboardEvent) => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{#if $nav.context.premium_transfer === false}
|
||||
<div class="download_limit">
|
||||
{#if $stats.limits.transfer_limit_used > $stats.limits.transfer_limit}
|
||||
<div class="highlight_yellow">
|
||||
Your free download limit has been used up and your download
|
||||
speed has been limited to 1 MiB/s. <a href="/#pro"
|
||||
target="_blank">Upgrade to premium</a> to continue fast
|
||||
downloading
|
||||
</div>
|
||||
{:else}
|
||||
<TransferLimit/>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<DetailsWindow nav={nav} bind:visible={details_visible} />
|
||||
|
||||
<EditWindow nav={nav} bind:this={edit_window} bind:visible={edit_visible} />
|
||||
@@ -239,16 +222,6 @@ const keydown = (e: KeyboardEvent) => {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Download limit gauge (row 3) */
|
||||
.download_limit {
|
||||
flex: 0 0 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
background-color: var(--shaded_background);
|
||||
backdrop-filter: blur(4px);
|
||||
}
|
||||
|
||||
/* This max-width needs to be synced with the .toolbar max-width in
|
||||
Toolbar.svelte and the .label max-width in FileStats.svelte */
|
||||
@media (max-width: 1000px) {
|
||||
|
||||
Reference in New Issue
Block a user