~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0
121 lines · 4.0 KB Raw History
// Icons: Lucide's (lucide-static, ISC), drawn at 16 with a stroke of 2 in
// the text's colour by the Icon atom. One icon per thing, the same
// wherever it shows: a canvas is `canvas`, sharing is `share`, an agent
// `agent`, on the tab bar, the strip map, a column and the palette alike.
// A plus means one thing, a new tile (`add`); a new canvas is its own
// (`newCanvas`), by the tabs.

import add from 'lucide-static/icons/plus.svg?raw';
import addAccount from 'lucide-static/icons/user-plus.svg?raw';
import agent from 'lucide-static/icons/sparkles.svg?raw';
import app from 'lucide-static/icons/app-window.svg?raw';
import back from 'lucide-static/icons/arrow-left.svg?raw';
import bell from 'lucide-static/icons/bell.svg?raw';
import canvas from 'lucide-static/icons/layout-dashboard.svg?raw';
import chat from 'lucide-static/icons/message-circle.svg?raw';
import check from 'lucide-static/icons/circle-check.svg?raw';
import close from 'lucide-static/icons/x.svg?raw';
import commit from 'lucide-static/icons/git-commit-horizontal.svg?raw';
import connect from 'lucide-static/icons/plug.svg?raw';
import copy from 'lucide-static/icons/copy.svg?raw';
import dark from 'lucide-static/icons/moon.svg?raw';
import deleteData from 'lucide-static/icons/trash-2.svg?raw';
import diff from 'lucide-static/icons/file-diff.svg?raw';
import document from 'lucide-static/icons/file-text.svg?raw';
import expand from 'lucide-static/icons/chevron-down.svg?raw';
import feed from 'lucide-static/icons/rss.svg?raw';
import gallery from 'lucide-static/icons/images.svg?raw';
import info from 'lucide-static/icons/info.svg?raw';
import issue from 'lucide-static/icons/circle-dot.svg?raw';
import light from 'lucide-static/icons/sun.svg?raw';
import more from 'lucide-static/icons/ellipsis.svg?raw';
import music from 'lucide-static/icons/music.svg?raw';
import newCanvas from 'lucide-static/icons/square-plus.svg?raw';
import newer from 'lucide-static/icons/arrow-up.svg?raw';
import next from 'lucide-static/icons/skip-forward.svg?raw';
import overview from 'lucide-static/icons/layout-grid.svg?raw';
import pause from 'lucide-static/icons/pause.svg?raw';
import play from 'lucide-static/icons/play.svg?raw';
import profile from 'lucide-static/icons/user.svg?raw';
import record from 'lucide-static/icons/file-json.svg?raw';
import refresh from 'lucide-static/icons/rotate-cw.svg?raw';
import release from 'lucide-static/icons/tag.svg?raw';
import repo from 'lucide-static/icons/git-branch.svg?raw';
import search from 'lucide-static/icons/search.svg?raw';
import share from 'lucide-static/icons/users.svg?raw';
import signOut from 'lucide-static/icons/log-out.svg?raw';
import stack from 'lucide-static/icons/rows-3.svg?raw';
import stop from 'lucide-static/icons/square.svg?raw';
import star from 'lucide-static/icons/star.svg?raw';
import switchAccount from 'lucide-static/icons/arrow-left-right.svg?raw';
import thread from 'lucide-static/icons/messages-square.svg?raw';
import system from 'lucide-static/icons/monitor.svg?raw';
import theme from 'lucide-static/icons/palette.svg?raw';
import view from 'lucide-static/icons/eye.svg?raw';
import width from 'lucide-static/icons/columns-3.svg?raw';
import zoom from 'lucide-static/icons/maximize-2.svg?raw';

const svgs = {
	add,
	addAccount,
	agent,
	app,
	back,
	bell,
	canvas,
	chat,
	check,
	close,
	commit,
	connect,
	copy,
	dark,
	deleteData,
	diff,
	document,
	expand,
	feed,
	gallery,
	info,
	issue,
	light,
	more,
	music,
	newCanvas,
	newer,
	next,
	overview,
	pause,
	play,
	profile,
	record,
	refresh,
	release,
	repo,
	search,
	share,
	signOut,
	stack,
	stop,
	star,
	switchAccount,
	system,
	theme,
	thread,
	view,
	width,
	zoom
};

export type IconName = keyof typeof svgs;

/** What is drawn inside each icon's `<svg>`: its licence comment and its own element dropped. */
export const icons = Object.fromEntries(
	Object.entries(svgs).map(([name, svg]) => [
		name,
		svg
			.replace(/<!--[\s\S]*?-->/g, '')
			.replace(/^\s*<svg[^>]*>|<\/svg>\s*$/g, '')
			.trim()
	])
) as Record<IconName, string>;