Refactors services with defaultConfig and polled data.
Much more simpler code base. Each service requires a poll functioon to poll its status. If type is defined, and the registered '+service.ts' exports a poll ServicePoller, it will be used. Otherwise, a generic poll mechanism is used.
This commit is contained in:
@@ -18,20 +18,17 @@ services:
|
||||
- title: '/Media'
|
||||
icon: 'fas fa-photo-film'
|
||||
items:
|
||||
- title: 'Jellyfin'
|
||||
- type: jellyfin
|
||||
url: 'https://eagle.tuleu.me'
|
||||
type: jellyfin
|
||||
keywords: 'cloud storage files'
|
||||
|
||||
- title: 'Sonarr'
|
||||
- type: sonarr
|
||||
url: 'http://sonarr.lan'
|
||||
type: sonarr
|
||||
api_key: 43f13770f9a0419bbdc3224dae76e886
|
||||
keywords: 'shows tracker torrent usenet'
|
||||
|
||||
- title: 'Radarr'
|
||||
- type: radarr
|
||||
url: 'http://radarr.lan'
|
||||
type: radarr
|
||||
keywords: 'movies tracker torrent usenet'
|
||||
|
||||
- title: '/Cloud'
|
||||
@@ -46,8 +43,7 @@ services:
|
||||
- title: '/Infra'
|
||||
icon: 'fas fa-network-wired'
|
||||
items:
|
||||
- title: 'PiHole'
|
||||
- type: pihole
|
||||
url: 'http://pihole.lan/admin'
|
||||
type: 'pihole'
|
||||
keywords: 'dns ads blocker internet'
|
||||
api_token: a3996b80e3d9cdb86b338396a164a8814e8d6f44d2986261fe573bfea53a75fb
|
||||
|
||||
Reference in New Issue
Block a user