Website Update
This commit is contained in:
12
package.json
12
package.json
@@ -11,16 +11,16 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/adapter-node": "^5.4.0",
|
"@sveltejs/adapter-node": "^5.4.0",
|
||||||
"@sveltejs/kit": "^2.49.1",
|
"@sveltejs/kit": "^2.49.2",
|
||||||
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
||||||
"@tailwindcss/forms": "^0.5.10",
|
"@tailwindcss/forms": "^0.5.11",
|
||||||
"@tailwindcss/typography": "^0.5.19",
|
"@tailwindcss/typography": "^0.5.19",
|
||||||
"@tailwindcss/vite": "^4.1.17",
|
"@tailwindcss/vite": "^4.1.18",
|
||||||
"svelte": "^5.45.6",
|
"svelte": "^5.46.0",
|
||||||
"svelte-check": "^4.3.4",
|
"svelte-check": "^4.3.4",
|
||||||
"tailwindcss": "^4.1.17",
|
"tailwindcss": "^4.1.18",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^5.9.3",
|
||||||
"vite": "^7.2.6"
|
"vite": "^7.3.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@iconify/svelte": "^5.1.0",
|
"@iconify/svelte": "^5.1.0",
|
||||||
|
|||||||
@@ -256,14 +256,14 @@ export const lines: TerminalLine[] = [
|
|||||||
},
|
},
|
||||||
|
|
||||||
{ type: 'blank', content: '' },
|
{ type: 'blank', content: '' },
|
||||||
{
|
// {
|
||||||
type: 'card',
|
// type: 'card',
|
||||||
id: 'music-player',
|
// id: 'music-player',
|
||||||
content: '',
|
// content: '',
|
||||||
mobile: false,
|
// mobile: false,
|
||||||
children: [
|
// children: [
|
||||||
{ type: 'info', content: 'Loading playlist...' }
|
// { type: 'info', content: 'Loading playlist...' }
|
||||||
]
|
// ]
|
||||||
},
|
// },
|
||||||
{ type: 'blank', content: '' }
|
// { type: 'blank', content: '' }
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -11,23 +11,23 @@ function shuffleArray(array: any[]) {
|
|||||||
/** @type {import('./$types').PageServerLoad} */
|
/** @type {import('./$types').PageServerLoad} */
|
||||||
export async function load({ params }) {
|
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) => {
|
// let songs = (await playlist.all_videos()).map((video: YouTubeVideo) => {
|
||||||
return {
|
// return {
|
||||||
title: video.title,
|
// title: video.title,
|
||||||
url: video.url,
|
// url: video.url,
|
||||||
author: video.channel?.name,
|
// author: video.channel?.name,
|
||||||
authorUrl: video.channel?.url,
|
// authorUrl: video.channel?.url,
|
||||||
thumbnail: video.thumbnails[0].url,
|
// thumbnail: video.thumbnails[0].url,
|
||||||
duration: video.durationRaw,
|
// duration: video.durationRaw,
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
|
|
||||||
return {
|
return {
|
||||||
songs: shuffleArray(songs)
|
songs: []
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -204,7 +204,6 @@
|
|||||||
{speed}
|
{speed}
|
||||||
{autoscroll}
|
{autoscroll}
|
||||||
bind:terminal
|
bind:terminal
|
||||||
onComplete={handleTerminalComplete}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user