fix: timeout on spa manifest requests
The previous behaviour had a loop of requests between the front app and the api when querying the pwa manifest. This reduce the coupling around the pwa manifest file between the api and the front app, by uplicating the files so each "service" has a copy of it, while keeping them in sync and having the front pwa manifest as single source of truth. Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2291>
This commit is contained in:
parent
6abecfc904
commit
b359bb6498
9 changed files with 152 additions and 81 deletions
48
api/funkwhale_api/instance/pwa-manifest.json
Normal file
48
api/funkwhale_api/instance/pwa-manifest.json
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
"name": "Funkwhale",
|
||||
"categories": ["music", "entertainment"],
|
||||
"short_name": "Funkwhale",
|
||||
"description": "Your free and federated audio platform",
|
||||
"icons": [
|
||||
{
|
||||
"src": "android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "android-chrome-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"prefer_related_applications": true,
|
||||
"related_applications": [
|
||||
{
|
||||
"platform": "play",
|
||||
"url": "https://play.google.com/store/apps/details?id=audio.funkwhale.ffa",
|
||||
"id": "audio.funkwhale.ffa"
|
||||
},
|
||||
{
|
||||
"platform": "f-droid",
|
||||
"url": "https://f-droid.org/en/packages/audio.funkwhale.ffa/",
|
||||
"id": "audio.funkwhale.ffa"
|
||||
}
|
||||
],
|
||||
"shortcuts": [
|
||||
{
|
||||
"name": "Search",
|
||||
"url": "/search",
|
||||
"icons": []
|
||||
},
|
||||
{
|
||||
"name": "Library",
|
||||
"url": "/library",
|
||||
"icons": []
|
||||
},
|
||||
{
|
||||
"name": "Channels",
|
||||
"url": "/subscriptions",
|
||||
"icons": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue