pinakes-plugin-api: add widgets field to manifest UI section
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6fae2dc3c09702aa5a54d1e17a8175516a6a6964
This commit is contained in:
parent
7ad068b930
commit
aa2a81e354
1 changed files with 5 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ use crate::{
|
||||||
FilesystemCapability,
|
FilesystemCapability,
|
||||||
NetworkCapability,
|
NetworkCapability,
|
||||||
UiPage,
|
UiPage,
|
||||||
|
UiWidget,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Plugin manifest file format (TOML)
|
/// Plugin manifest file format (TOML)
|
||||||
|
|
@ -35,6 +36,10 @@ pub struct UiSection {
|
||||||
/// UI pages defined by this plugin
|
/// UI pages defined by this plugin
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub pages: Vec<UiPageEntry>,
|
pub pages: Vec<UiPageEntry>,
|
||||||
|
|
||||||
|
/// Widgets to inject into existing host pages
|
||||||
|
#[serde(default)]
|
||||||
|
pub widgets: Vec<UiWidget>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Entry for a UI page in the manifest - can be inline or file reference
|
/// Entry for a UI page in the manifest - can be inline or file reference
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue