Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

624 B
Raw Blame
import {
  LayoutGrid,
  Code,
  Globe,
  Image,
  Music,
  Gauge,
  Folder,
  Cloud,
  Box,
  type LucideIcon,
} from "lucide-react";

// Stored apps keep an icon as a string key (portable across the persisted row);
// the shell resolves it to a Lucide component here. Keep in sync with the
// Create App glyph picker.
const MAP: Record<string, LucideIcon> = {
  grid: LayoutGrid,
  code: Code,
  globe: Globe,
  image: Image,
  music: Music,
  gauge: Gauge,
  folder: Folder,
  cloud: Cloud,
};

export const GLYPH_KEYS = Object.keys(MAP);

export function glyphIcon(key: string): LucideIcon {
  return MAP[key] ?? Box;
}