Website Update

This commit is contained in:
2025-12-18 22:40:20 +00:00
parent 3848bc8ee3
commit 0bfc7a9e7a
4 changed files with 29 additions and 30 deletions

View File

@@ -11,16 +11,16 @@
},
"devDependencies": {
"@sveltejs/adapter-node": "^5.4.0",
"@sveltejs/kit": "^2.49.1",
"@sveltejs/kit": "^2.49.2",
"@sveltejs/vite-plugin-svelte": "^6.2.1",
"@tailwindcss/forms": "^0.5.10",
"@tailwindcss/forms": "^0.5.11",
"@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.1.17",
"svelte": "^5.45.6",
"@tailwindcss/vite": "^4.1.18",
"svelte": "^5.46.0",
"svelte-check": "^4.3.4",
"tailwindcss": "^4.1.17",
"tailwindcss": "^4.1.18",
"typescript": "^5.9.3",
"vite": "^7.2.6"
"vite": "^7.3.0"
},
"dependencies": {
"@iconify/svelte": "^5.1.0",

View File

@@ -256,14 +256,14 @@ export const lines: TerminalLine[] = [
},
{ type: 'blank', content: '' },
{
type: 'card',
id: 'music-player',
content: '',
mobile: false,
children: [
{ type: 'info', content: 'Loading playlist...' }
]
},
{ type: 'blank', content: '' }
// {
// type: 'card',
// id: 'music-player',
// content: '',
// mobile: false,
// children: [
// { type: 'info', content: 'Loading playlist...' }
// ]
// },
// { type: 'blank', content: '' }
];

View File

@@ -11,23 +11,23 @@ function shuffleArray(array: any[]) {
/** @type {import('./$types').PageServerLoad} */
export async function load({ params }) {
const playlistUrl = 'https://music.youtube.com/playlist?list=PLHqPHHvmOjJ6JwiYc3Fg-O5JGbVppI1VR&si=pJnM95siw3kQRlnr';
// const playlistUrl = 'https://music.youtube.com/playlist?list=PLHqPHHvmOjJ6JwiYc3Fg-O5JGbVppI1VR&si=evK225CpqXKeSq2Q';
const playlist = await playdl.playlist_info(playlistUrl);
// const playlist = await playdl.playlist_info(playlistUrl);
let songs = (await playlist.all_videos()).map((video: YouTubeVideo) => {
return {
title: video.title,
url: video.url,
author: video.channel?.name,
authorUrl: video.channel?.url,
thumbnail: video.thumbnails[0].url,
duration: video.durationRaw,
}
})
// let songs = (await playlist.all_videos()).map((video: YouTubeVideo) => {
// return {
// title: video.title,
// url: video.url,
// author: video.channel?.name,
// authorUrl: video.channel?.url,
// thumbnail: video.thumbnails[0].url,
// duration: video.durationRaw,
// }
// })
return {
songs: shuffleArray(songs)
songs: []
};
}

View File

@@ -204,7 +204,6 @@
{speed}
{autoscroll}
bind:terminal
onComplete={handleTerminalComplete}
/>
</div>