mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-23 09:42:53 +00:00
chore: sync website translation parent
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
/** Inline SVG icon. `currentColor` follows the surface's icon color. */
|
||||
export const counterIcon = `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<rect x="3" y="3" width="18" height="18" rx="4" />
|
||||
<path d="M7.5 8v8M10.5 8v8M13.5 8v8M16.5 8v8M6 15l12-6" />
|
||||
</svg>`;
|
||||
@@ -1,11 +1,12 @@
|
||||
import type { PluginClientContext } from "@getpaseo/plugin/client";
|
||||
import { counterIcon } from "./client/icons";
|
||||
import { contributeClient, ExamplePanel } from "./client/main";
|
||||
|
||||
export default function contribute(client: PluginClientContext) {
|
||||
client.addWorkspacePanel({
|
||||
id: "counter",
|
||||
title: "Plugin counter",
|
||||
icon: "Blocks",
|
||||
icon: { svg: counterIcon },
|
||||
context: "workspace",
|
||||
locations: ["workspace", "explorer"],
|
||||
Component: ExamplePanel,
|
||||
|
||||
Reference in New Issue
Block a user