Update dependencies
This commit is contained in:
1 parent
7b674a610d
commit
b42289125e
12 files changed
+762
-1193
No files matched your search
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Bug in dash storyboard
|
||||
- Adjust live video detection to reduce error rate happening on iOS client
|
||||
- Bug when parsing headers in telemetry
|
||||
- Web app fixes and dependency updates
|
||||
|
||||
## [0.41.8] - 2025-09-07
|
||||
|
||||
|
||||
Generated
+8
-8
@@ -29,7 +29,7 @@
|
||||
"protocol-buffers-schema": "^3.6.0",
|
||||
"puppeteer": "^24.19.0",
|
||||
"roku-deploy": "^3.13.0",
|
||||
"roku-test-automation": "^2.0.13",
|
||||
"roku-test-automation": "^2.2.1",
|
||||
"rooibos-roku": "5.15.7",
|
||||
"rounded-rect-9patch": "^1.1.2",
|
||||
"semver": "^7.7.2",
|
||||
@@ -43,7 +43,7 @@
|
||||
"node": "22"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@rollup/rollup-linux-x64-gnu": "^4.50.0"
|
||||
"@rollup/rollup-linux-x64-gnu": "^4.50.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/code-frame": {
|
||||
@@ -573,9 +573,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@rollup/rollup-linux-x64-gnu": {
|
||||
"version": "4.50.0",
|
||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.50.0.tgz",
|
||||
"integrity": "sha512-8PrJJA7/VU8ToHVEPu14FzuSAqVKyo5gg/J8xUerMbyNkWkO9j2ExBho/68RnJsMGNJq4zH114iAttgm7BZVkA==",
|
||||
"version": "4.50.1",
|
||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.50.1.tgz",
|
||||
"integrity": "sha512-MCgtFB2+SVNuQmmjHf+wfI4CMxy3Tk8XjA5Z//A0AKD7QXUYFMQcns91K6dEHBvZPCnhJSyDWLApk40Iq/H3tA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
@@ -6418,9 +6418,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/roku-test-automation": {
|
||||
"version": "2.0.13",
|
||||
"resolved": "https://registry.npmjs.org/roku-test-automation/-/roku-test-automation-2.0.13.tgz",
|
||||
"integrity": "sha512-oz6O7XT343/dD0gt1la6k0g2MJMX8qbZYPe1NDB7bzU1JebMieBDgtqQJJmyK2TvzSvoSKmYEGCspEJl9rSChg==",
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/roku-test-automation/-/roku-test-automation-2.2.1.tgz",
|
||||
"integrity": "sha512-tGxfiXI/Ccejw7gAxY46z+kRdtO2BL6Eoypuvjz4b7qxSzbbH3W9SRZufvFhkcgGeG8eH/zen8CJlWHQBexusA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
||||
+3
-3
@@ -23,7 +23,7 @@
|
||||
"protocol-buffers-schema": "^3.6.0",
|
||||
"puppeteer": "^24.19.0",
|
||||
"roku-deploy": "^3.13.0",
|
||||
"roku-test-automation": "^2.0.13",
|
||||
"roku-test-automation": "^2.2.1",
|
||||
"rooibos-roku": "5.15.7",
|
||||
"rounded-rect-9patch": "^1.1.2",
|
||||
"semver": "^7.7.2",
|
||||
@@ -65,7 +65,7 @@
|
||||
"convert-images": "node tools/convert-images.js",
|
||||
"update-rale-component": "cd tools/RALE && rm TrackerTask.xml && curl -o TrackerTask.zip https://devtools.web.roku.com/roku-advanced-layout-editor/app/TrackerTask.zip && unzip TrackerTask.zip && rm TrackerTask.zip",
|
||||
"postinstall": "cd playlet-lib && npm install && cd ../playlet-app && npm install && cd ../playlet-web && npm install",
|
||||
"update-deps": "npx npm-check-updates --deep --upgrade --install always --reject tailwindcss,brighterscript,daisyui",
|
||||
"update-deps": "npx npm-check-updates --deep --upgrade --install always --reject brighterscript",
|
||||
"registry:write": "node tools/registry.js --input registry.json",
|
||||
"registry:read": "node tools/registry.js --output registry.json",
|
||||
"registry:clear": "node tools/registry.js --clear",
|
||||
@@ -74,6 +74,6 @@
|
||||
"shutdown": "node tools/shutdown.js"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@rollup/rollup-linux-x64-gnu": "^4.50.0"
|
||||
"@rollup/rollup-linux-x64-gnu": "^4.50.1"
|
||||
}
|
||||
}
|
||||
@@ -4,14 +4,12 @@ namespace Http
|
||||
|
||||
class CorsMiddleware extends HttpRouter
|
||||
private origin
|
||||
private headers
|
||||
private methods
|
||||
|
||||
function new(origin = "*" as string, headers = "*" as string, methods = "POST, PUT, GET, DELETE, OPTIONS" as string)
|
||||
function new(origin = "*" as string, methods = "POST, PUT, GET, DELETE, OPTIONS" as string)
|
||||
super()
|
||||
|
||||
m.origin = origin
|
||||
m.headers = headers
|
||||
m.methods = methods
|
||||
end function
|
||||
|
||||
@@ -24,14 +22,15 @@ namespace Http
|
||||
response.headers["Access-Control-Allow-Origin"] = m.origin
|
||||
end if
|
||||
|
||||
if not StringUtils.IsNullOrEmpty(m.headers)
|
||||
response.headers["Access-Control-Allow-Headers"] = m.headers
|
||||
end if
|
||||
|
||||
if not StringUtils.IsNullOrEmpty(m.methods)
|
||||
response.headers["Access-Control-Allow-Methods"] = m.methods
|
||||
end if
|
||||
|
||||
allowHeaders = request.headers["Access-Control-Request-Headers"]
|
||||
if not StringUtils.IsNullOrEmpty(allowHeaders)
|
||||
response.headers["Access-Control-Allow-Headers"] = allowHeaders
|
||||
end if
|
||||
|
||||
if request.method = "OPTIONS"
|
||||
response.header_only = true
|
||||
response.http_code = 200
|
||||
|
||||
Generated
+661
-1097
File diff suppressed because it is too large.
Load diff
@@ -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,6 +1,6 @@
|
||||
module.exports = {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
'@tailwindcss/postcss': {},
|
||||
autoprefixer: {},
|
||||
},
|
||||
}
|
||||
@@ -1,3 +1,2 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
@import "tailwindcss";
|
||||
@plugin "daisyui";
|
||||
@@ -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" : ""}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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}
|
||||
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user