Refactors loading function

* Initialize service component and handler in hooks
* Dynamically watch the config instead of a reload on each page
* Uses derived store for public server config
* Moves service data in its own page data property
* Reverts to a array to store group/services
This commit is contained in:
2023-08-13 13:59:31 +02:00
parent f23f268b60
commit edbbd2f0f6
13 changed files with 280 additions and 248 deletions

View File

@@ -1,5 +1,7 @@
import type { ServiceHandler } from '../service';
import type { ServiceComponentPath, ServiceHandler } from '../service';
export const handle: ServiceHandler = () => {
return { data: {}, componentPath: 'prowlarr/ProwlarrContent.svelte' };
return { prowlardata: 'coucou' };
};
export const path: ServiceComponentPath = 'prowlarr/ProwlarrContent.svelte';