[feat] add settingWidgets

This commit is contained in:
Tim Gröger 2024-10-08 14:05:58 +02:00
parent 74a4c7c8d8
commit 87775602f5
2 changed files with 6 additions and 0 deletions

3
types/models.d.ts vendored
View File

@ -1,5 +1,8 @@
/** Models exported from backend */
declare namespace FG {
interface UserSettings {
display_name: string;
}
interface Notification {
id: number;
plugin: string;

3
types/plugin.d.ts vendored
View File

@ -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;
}
}