Update dependencies

This commit is contained in:
Brahim Hadriche committed 2025-09-10 08:43:58 -04:00
1 parent 7b674a610d
commit b42289125e
12 files changed
+762 -1193

No files matched your search

+661 -1097
View File
File diff suppressed because it is too large. Load diff
+7 -6
View File
@@ -9,28 +9,29 @@
"lint": "svelte-check --tsconfig ./tsconfig.json --fail-on-warnings"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^6.1.4",
"@sveltejs/vite-plugin-svelte": "^6.2.0",
"@tailwindcss/postcss": "^4.1.13",
"@tailwindcss/typography": "^0.5.16",
"@tsconfig/svelte": "^5.0.5",
"@vitejs/plugin-legacy": "^7.2.1",
"autoprefixer": "^10.4.21",
"bgutils-js": "^3.2.0",
"daisyui": "^4.12.23",
"daisyui": "^5.1.10",
"dotenv": "^17.2.2",
"ip": "^2.0.1",
"jszip": "^3.10.1",
"postcss": "^8.5.6",
"rollup-plugin-visualizer": "^6.0.3",
"svelte": "^5.38.7",
"svelte": "^5.38.8",
"svelte-check": "^4.3.1",
"svelte-preprocess": "^6.0.3",
"tailwindcss": "^3.4.17",
"tailwindcss": "^4.1.13",
"terser": "^5.44.0",
"tslib": "^2.8.1",
"typescript": "^5.9.2",
"vite": "^7.1.4",
"vite": "^7.1.5",
"vite-plugin-compression": "^0.5.1",
"vite-tsconfig-paths": "^5.1.4",
"youtubei.js": "^15.0.1"
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
'@tailwindcss/postcss': {},
autoprefixer: {},
},
}
+2 -3
View File
@@ -1,3 +1,2 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@import "tailwindcss";
@plugin "daisyui";
+1 -1
View File
@@ -66,7 +66,7 @@
</script>
<!-- https://github.com/saadeghi/daisyui/issues/1732#issuecomment-1747818200 -->
<div class="btm-nav box-content">
<div class="dock">
<button
on:click={() => setScreen("search")}
class={$appStateStore.screen === "search" ? "active" : ""}
+19 -22
View File
@@ -52,36 +52,33 @@
}
</script>
<div class="navbar bg-base-100 sticky top-0 z-40">
<div class="flex-1">
<div class="flex flex-col justify-center items-center">
<button on:click={() => ExternalControlProtocol.launchApp(appId)}>
{#if $appThemeStore === "dark"}
<PlayletLogoDark />
{:else}
<PlayletLogoLight />
{/if}
</button>
<div class="text-xs brightness-75">{version}</div>
</div>
<div class="bg-base-100 sticky top-0 z-40 flex items-center min-w-0 px-2 h-16">
<div class="flex flex-col items-center justify-center min-w-0 mr-2">
<button on:click={() => ExternalControlProtocol.launchApp(appId)}>
{#if $appThemeStore === "dark"}
<PlayletLogoDark />
{:else}
<PlayletLogoLight />
{/if}
</button>
<div class="text-xs brightness-75">{version}</div>
</div>
<div class="flex-none">
<div class="flex-1"></div>
<div class="flex items-center min-w-0">
<ThemeSelect />
{#if currentProfile && currentProfile.username}
<div class="badge badge-outline">
<span>
<!-- TODO:P2 use text-ellipsis -->
{currentProfile.username.length > 10
? `${currentProfile.username.slice(0, 10)}…`
: currentProfile.username}
</span>
<div
class="badge badge-outline min-w-0 max-w-[12rem] overflow-hidden whitespace-nowrap truncate px-0.5"
title={currentProfile.username}
>
<span class="truncate">{currentProfile.username}</span>
</div>
{/if}
<button
on:click={showProfilesDialog}
class="btn btn-ghost btn-circle avatar"
class="btn btn-ghost btn-circle avatar overflow-hidden w-12 h-12"
>
<ProfileAvatar />
<ProfileAvatar profile={currentProfile} navbar={true} />
</button>
</div>
</div>
+48 -27
View File
@@ -1,36 +1,57 @@
<script lang="ts">
import { playletStateStore } from "lib/Stores";
export let profile = null;
export let navbar = false;
export let selected = false;
import UserIcon from "assets/user.svg.svelte";
import { playletStateStore } from "lib/Stores";
let currentProfile;
let currentProfile = profile;
playletStateStore.subscribe((value) => {
let profiles = value?.profiles?.profiles ?? [];
currentProfile = profiles.find(
(p) => p.id === value?.profiles?.currentProfile
);
});
if (!profile) {
playletStateStore.subscribe((value) => {
let profiles = value?.profiles?.profiles ?? [];
currentProfile = profiles.find(
(p) => p.id === value?.profiles?.currentProfile
);
});
}
</script>
<div>
{#if currentProfile && currentProfile.username}
<div class="avatar placeholder m-1.5">
<div
class="rounded-full w-8 ring ring-offset-base-100 ring-offset-2"
style="background-color: {currentProfile.color}"
>
{#if currentProfile.type === "youtube" && currentProfile.thumbnail}
<img src={currentProfile.thumbnail} alt="Avatar" />
{:else}
<span class="text-xl font-medium text-gray-200"
>{currentProfile.username.substring(0, 1).toUpperCase()}</span
>
{/if}
</div>
{#if currentProfile && currentProfile.username}
<div class={`avatar ${navbar ? "w-8 h-8 m-1" : "w-12 h-12"}`}>
<div
class={`rounded-full flex items-center justify-center w-full h-full
${
navbar
? "border-2 border-primary"
: selected
? "ring ring-primary ring-offset-base-100 ring-offset-2"
: "ring ring-offset-base-100 ring-offset-2"
}
`}
style="background-color: {currentProfile.color};"
>
{#if currentProfile.type === "youtube" && currentProfile.thumbnail}
<img
src={currentProfile.thumbnail}
alt="Avatar"
class="object-cover w-full h-full rounded-full"
/>
{:else}
<span
class="text-lg font-medium text-gray-200 flex items-center justify-center w-full h-full"
>
{currentProfile.username.substring(0, 1).toUpperCase()}
</span>
{/if}
</div>
{:else}
<div class="w-8 rounded-full">
</div>
{:else}
<div class={`avatar ${navbar ? "w-8 h-8 m-1" : "w-12 h-12"}`}>
<div
class="rounded-full bg-base-300 w-full h-full flex items-center justify-center"
>
<UserIcon />
</div>
{/if}
</div>
</div>
{/if}
+5 -18
View File
@@ -2,6 +2,7 @@
import { playletStateStore, translate } from "lib/Stores";
import { PlayletApi } from "./Api/PlayletApi";
import { get } from "svelte/store";
import ProfileAvatar from "./ProfileAvatar.svelte";
export function show() {
modal.showModal();
@@ -97,24 +98,10 @@
bind:group={accordionState}
/>
<div class="collapse-title flex">
<div>
<div class="avatar placeholder">
<div
class="rounded-full w-12 {profile.id === currentProfile?.id
? 'ring ring-primary ring-offset-base-100 ring-offset-2'
: ''} "
style="background-color: {profile.color}"
>
{#if profile.type === "youtube" && profile.thumbnail}
<img src={profile.thumbnail} alt="Avatar" />
{:else}
<span class="text-xl font-medium text-gray-200"
>{profile.username.substring(0, 1).toUpperCase()}</span
>
{/if}
</div>
</div>
</div>
<ProfileAvatar
{profile}
selected={profile.id === currentProfile?.id}
/>
<div class="ml-4">
<div class="font-medium">
{profile.username}