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
+8 -1
View File
@@ -3,7 +3,7 @@ import type { PiWebPlugin } from "../../src/client/src/plugins/types";
const plugin: PiWebPlugin = {
apiVersion: 1,
name: "Info Plugin",
activate: ({ html }) => ({
activate: ({ html, svg }) => ({
contributions: {
actions: [
{
@@ -28,6 +28,13 @@ const plugin: PiWebPlugin = {
{
id: "workspace.info",
title: "Info",
icon: svg`
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="9"></circle>
<path d="M12 11v5"></path>
<path d="M12 8h.01"></path>
</svg>
`,
order: 1000,
render: (context) => html`
<section class="toolbar"><strong>Info</strong></section>