Add Kopia widget (#1018)

* Add Kopia widget

* Add Kopia widget

* Modify Kopia widget blocks

* Kopia next run / last run

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Mbarmem 2023-02-19 00:58:01 +03:00 committed by GitHub
parent 806b7f3cab
commit addf0911a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 92 additions and 0 deletions

14
src/widgets/kopia/widget.js Executable file
View file

@ -0,0 +1,14 @@
import genericProxyHandler from "utils/proxy/handlers/generic";
const widget = {
api: "{url}/{endpoint}",
proxyHandler: genericProxyHandler,
mappings: {
status: {
endpoint: "api/v1/sources",
},
},
};
export default widget;