Release v0.37.0 (#605)

* Release v0.37.0

* web app adjustments
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2025-05-16 18:19:52 -04:00
1 parent beeb21283d
commit cbb34d45fc
15 files changed
+43 -28

No files matched your search

+5 -1
View File
@@ -67,7 +67,11 @@
<ThemeSelect />
{#if currentProfile && currentProfile.username}
<div class="badge badge-outline">
<span>{currentProfile.username}</span>
<span>
{currentProfile.username.length > 5
? `${currentProfile.username.slice(0, 5)}…`
: currentProfile.username}
</span>
</div>
{/if}
<button
+19 -8
View File
@@ -67,13 +67,17 @@
refreshProfiles();
}
function login() {
function loginToInvidious() {
if (!authUrl) {
alert("Error with login, please refresh the page.");
return;
}
window.location = authUrl;
}
function loginToYoutube() {
alert("Please use your Roku device to login to YouTube.");
}
</script>
<dialog bind:this={modal} class="modal" on:close={onClose}>
@@ -141,13 +145,20 @@
</div>
{/each}
<div class="flex items-center">
<button class="btn btn-primary" on:click={login}>
<div class="">
<div class="text-m">{$translate("Login to Invidious")}</div>
<div class="text-xs font-light">{currentInstanceName}</div>
</div>
</button>
<button class="btn m-6">{$translate("Close")}</button>
<div class="flex flex-col">
<button class="btn btn-primary m-2" on:click={loginToYoutube}>
<div class="">
<div class="text-m">{$translate("Login to YouTube")}</div>
</div>
</button>
<button class="btn btn-primary m-2" on:click={loginToInvidious}>
<div class="">
<div class="text-m">{$translate("Login to Invidious")}</div>
<div class="text-xs font-light">{currentInstanceName}</div>
</div>
</button>
</div>
<button class="btn m-2">{$translate("Close")}</button>
</div>
</div>
</form>