From 87775602f5e2480cc4c0907f77d65064bbe151f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Tue, 8 Oct 2024 14:05:58 +0200 Subject: [PATCH] [feat] add settingWidgets --- types/models.d.ts | 3 +++ types/plugin.d.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/types/models.d.ts b/types/models.d.ts index c8972c8..3ac8bfa 100644 --- a/types/models.d.ts +++ b/types/models.d.ts @@ -1,5 +1,8 @@ /** Models exported from backend */ declare namespace FG { + interface UserSettings { + display_name: string; + } interface Notification { id: number; plugin: string; diff --git a/types/plugin.d.ts b/types/plugin.d.ts index e66a8f1..5d33c11 100644 --- a/types/plugin.d.ts +++ b/types/plugin.d.ts @@ -20,6 +20,8 @@ export namespace FG_Plugin { version: string; /** Widgets provided by this plugin */ widgets: Widget[]; + /** Widget for settings provided by this plugin **/ + settingsWidgets?: Widget[]; /** Backend modules needed for this plugin to work correctly */ requiredModules: [string, PEP440Version?][]; /** Menu entries for authenticated users */ @@ -141,3 +143,4 @@ export namespace FG_Plugin { widget: Component; } } +