Sunil Mohan Adapa 4247a0bd5d
pagekite: Merge all the configuration retrieval actions
- Merge actions is-disabled, get-frontend, get-kite and get-services into
get-config. This improves the initial startup time for FreedomBox service and
also the page load time for pagekite app. This also significantly simplifies the
code.

- Only use the pagekite service enabled status determine if pagekite is enabled.
Don't use the configuration setting.

- For custom services, provide additional data such as display URL from
get-config action. This removes the need for additional processing
prepare_service_for_display() and template tag create_pagekite_service_url.

- Also reduce the number of times configuration is retrieved to 1 when loading
the app view page and during startup of FreedomBox service.

- Ensure that all keys of the configuration always present and use that to
simplify some code.

- Remove ContextMixin from view DeleteServiceView that does not need it. Use
AppView and drop ContextMixin.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-03-15 09:26:30 +02:00
..
2020-02-19 14:38:55 +02:00
2020-03-06 13:06:32 +02:00
2020-03-06 15:26:40 -08:00
2020-02-19 14:38:55 +02:00
2020-02-19 14:39:19 +02:00
2020-02-19 14:39:19 +02:00
2020-03-06 13:07:49 +02:00
2020-02-21 21:57:46 +05:30
2020-02-19 14:39:19 +02:00
2020-02-19 14:39:19 +02:00
2020-02-19 14:39:19 +02:00