Web app to Svelte5 (#540)

This commit is contained in:
Brahim Hadriche authored and GitHub committed 2025-01-09 21:22:34 -05:00
1 parent 9eeb9fcffe
commit c534c27ae3
35 files changed
+1724 -2331

No files matched your search

+5 -3
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import { onDestroy, onMount } from "svelte";
import { playletStateStore, tr } from "lib/Stores";
import { playletStateStore, translate } from "lib/Stores";
import { InvidiousApi } from "lib/Api/InvidiousApi";
import { PlayletApi } from "./Api/PlayletApi";
import VideoCastDialog from "./VideoFeed/VideoCastDialog.svelte";
@@ -248,9 +248,11 @@
: 'hidden'} fixed w-full h-full bg-base-100/80 z-50 flex justify-center items-center"
>
{#if isDragging}
<div class="text-2xl font-bold">{$tr("Drop a YouTube link here")}</div>
<div class="text-2xl font-bold">
{$translate("Drop a YouTube link here")}
</div>
{:else if isLoading}
<span class="loading loading-spinner loading-md" />
<span class="loading loading-spinner loading-md"></span>
{/if}
</div>