Skip to main content
Glama
deleonio
by deleonio
unique-nav-labels.ts661 B
import { Log } from '../schema'; /** * There can be several navigations on one page (e.g. main navigation, subnavigation, breadcrumbs, pagination). * The navigations must be clearly named for accessibility reasons. To ensure this, all Aria labels are * stored in a set and checked for uniqueness. */ const UNIQUE_LABELS: Set<string> = new Set(); export function addNavLabel(ariaLabel: string): void { if (UNIQUE_LABELS.has(ariaLabel)) { Log.warn(`There already is a nav element with the label "${ariaLabel}"`); } else { UNIQUE_LABELS.add(ariaLabel); } } export function removeNavLabel(ariaLabel: string): void { UNIQUE_LABELS.delete(ariaLabel); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/deleonio/public-ui-kolibri'

If you have feedback or need assistance with the MCP directory API, please join our Discord server