Archived
feat: add Pi Web status panel
This commit is contained in:
+6
-2
@@ -140,8 +140,8 @@ After editing, check the manifest endpoint and browser-console failure cases.</c
|
||||
<section id="example">
|
||||
<h2>Canonical example</h2>
|
||||
<p>
|
||||
Pi Web ships a real bundled <strong>Info</strong> plugin. It is the reference example because it uses all
|
||||
current contribution types: one action, one workspace label, and one workspace panel.
|
||||
Pi Web ships a real bundled <strong>Info</strong> plugin. It is intentionally small while still using all
|
||||
core contribution types: one action, one workspace label, and one workspace panel.
|
||||
</p>
|
||||
<ul>
|
||||
<li><code>pi-web-plugins/info/package.json</code> shows the required metadata shape.</li>
|
||||
@@ -152,6 +152,10 @@ After editing, check the manifest endpoint and browser-console failure cases.</c
|
||||
<a href="https://github.com/jmfederico/pi-web/tree/main/pi-web-plugins/info">pi-web-plugins/info</a>.
|
||||
If you copy it, choose a new plugin id so it does not conflict with the bundled <code>info</code> plugin.
|
||||
</p>
|
||||
<p>
|
||||
The bundled <code>pi-web</code> status plugin demonstrates dynamic <code>visible</code> and <code>badge</code>
|
||||
callbacks for tabs that only appear when the host has status messages or needs extra install visibility.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<section id="production">
|
||||
|
||||
+3
-1
@@ -63,7 +63,7 @@ After editing, check the manifest endpoint and browser-console failure cases.
|
||||
|
||||
## Canonical example: bundled Info plugin
|
||||
|
||||
Pi Web ships a real bundled `info` plugin. Use it as the reference example because it exercises all current contribution types: an action, a workspace label, and a workspace panel.
|
||||
Pi Web ships a real bundled `info` plugin. Use it as the reference example because it is intentionally small while still exercising all core contribution types: an action, a workspace label, and a workspace panel.
|
||||
|
||||
Files:
|
||||
|
||||
@@ -104,6 +104,8 @@ export default {
|
||||
|
||||
When copying the Info plugin, choose a new plugin id so it does not conflict with the bundled `info` plugin.
|
||||
|
||||
Pi Web also ships a `pi-web` status plugin that demonstrates dynamic `visible` and `badge` callbacks for tabs that only appear when the host has status messages or needs extra install visibility.
|
||||
|
||||
## Local plugin usage
|
||||
|
||||
This works with the production npm/systemd install. Pi Web discovers plugins from `~/.pi-web/plugins/<plugin-package>/` on the web/API side; no Pi Web rebuild or session-daemon restart is required. If `PI_WEB_DATA_DIR` is set, use `$PI_WEB_DATA_DIR/plugins` instead.
|
||||
|
||||
Reference in New Issue
Block a user