mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-06 16:34:36 +00:00
Keep sidebar layout and gestures inside the plugin while routing entity handles to their owning hosts. Examples cover empty projects, pinned workspaces, task sections, nested agents and device-local label folders.
17 lines
794 B
TypeScript
17 lines
794 B
TypeScript
import type { PluginClientContext } from "@getpaseo/plugin/client";
|
|
import { Workspaces } from "./client/workspaces";
|
|
import { Agents } from "./client/agents";
|
|
import { Nested } from "./client/nested";
|
|
import { Labels } from "./client/labels";
|
|
export default function contribute(client: PluginClientContext) {
|
|
const cleanups = [
|
|
client.addSidebarView({ id: "workspaces", title: "Example workspaces", Component: Workspaces }),
|
|
client.addSidebarView({ id: "agents", title: "Example agents", Component: Agents }),
|
|
client.addSidebarView({ id: "nested", title: "Example nested agents", Component: Nested }),
|
|
client.addSidebarView({ id: "labels", title: "Example label folders", Component: Labels }),
|
|
];
|
|
return () => {
|
|
for (const cleanup of cleanups) void cleanup();
|
|
};
|
|
}
|