feat: add bundled plugin tab icons

This commit is contained in:
Federico Jaramillo Martinez
2026-06-03 22:38:55 +02:00
parent 08f69d09c0
commit 76302a4e5f
4 changed files with 29 additions and 4 deletions
@@ -6,7 +6,7 @@ import { terminalCommandRunsFromContext } from "./piWebInternal.js";
const plugin: PiWebPlugin = {
apiVersion: 1,
name: "Workspace Tasks",
activate: ({ pluginId, html }) => {
activate: ({ pluginId, html, svg }) => {
defineTasksPanelElement();
return {
@@ -28,6 +28,16 @@ const plugin: PiWebPlugin = {
{
id: "workspace.tasks",
title: "Tasks",
icon: svg`
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M9 6h11"></path>
<path d="M9 12h11"></path>
<path d="M9 18h11"></path>
<path d="m4 6 .8 .8L6.5 5"></path>
<path d="m4 12 .8 .8 1.7-1.8"></path>
<path d="m4 18 .8 .8 1.7-1.8"></path>
</svg>
`,
order: 40,
badge: ({ workspace }) => tasksPanelBadge(workspace),
render: (context) => html`<pi-web-workspace-tasks-panel .workspace=${context.workspace} .terminalCommandRuns=${terminalCommandRunsFromContext(context)} .openTerminal=${context.openTerminal}></pi-web-workspace-tasks-panel>`,