mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-25 09:35:27 +03:00
27 lines
824 B
Plaintext
27 lines
824 B
Plaintext
interface homepage {
|
|
/// The request format to add or remove an app from the homepage. You must have messaging
|
|
/// access to `homepage:homepage:sys` in order to perform this. Serialize using serde_json.
|
|
variant request {
|
|
/// the package and process name will come from request source.
|
|
/// the path will automatically have the process_id prepended.
|
|
/// the icon is a base64 encoded image.
|
|
add(add-request),
|
|
remove,
|
|
/// ONLY settings:settings:sys may call this request
|
|
/// (this is checked in-code)
|
|
set-stylesheet(string),
|
|
}
|
|
|
|
record add-request {
|
|
label: string,
|
|
icon: option<string>,
|
|
path: option<string>,
|
|
widget: option<string>,
|
|
}
|
|
}
|
|
|
|
world homepage-sys-v0 {
|
|
import homepage;
|
|
include process-v0;
|
|
}
|