feat: add PWA shortcuts for music playback actions and update loading skeletons

This commit is contained in:
2025-07-03 00:06:47 +00:00
committed by GitHub
parent a00bf3e365
commit a29c19c6aa
3 changed files with 157 additions and 3 deletions

View File

@@ -70,5 +70,46 @@ export default function manifest(): MetadataRoute.Manifest {
form_factor: 'wide'
}
],
shortcuts: [
{
name: 'Resume Song',
short_name: 'Resume',
description: 'Resume the last played song',
url: '/?action=resume',
icons: [
{
src: '/icon-192.png',
sizes: '192x192',
type: 'image/png'
}
]
},
{
name: 'Play Recent Albums',
short_name: 'Recent',
description: 'Play from recently added albums',
url: '/?action=recent',
icons: [
{
src: '/icon-192.png',
sizes: '192x192',
type: 'image/png'
}
]
},
{
name: 'Shuffle Favorites',
short_name: 'Shuffle',
description: 'Shuffle songs from favorite artists',
url: '/?action=shuffle-favorites',
icons: [
{
src: '/icon-192.png',
sizes: '192x192',
type: 'image/png'
}
]
}
]
}
}