Skip to main content
Glama
nrwl

Nx MCP Server

Official
by nrwl
banner.ts1.31 kB
import { LitElement, html } from 'lit'; import { customElement, property, state } from 'lit/decorators.js'; import { EditorContext } from '../contexts/editor-context'; @customElement('banner-element') export class Banner extends EditorContext(LitElement) { @property() message = ''; @property() type: 'warning' | 'error' = 'warning'; // default type @state() private dismissed = false; private dismiss() { this.dismissed = true; } override render() { const bannerClass = this.type === 'error' ? 'bg-bannerError' : 'bg-bannerWarning'; if (this.dismissed) { return html``; } return html` <div class="${bannerClass} text-bannerText mt-2 flex w-full flex-row rounded p-2 text-left opacity-80" > <p class="grow">${this.message}</p> <div @click="${this.dismiss}" class="px-2 py-1"> ${this.editor === 'intellij' ? html`<icon-element icon="close" color="${getComputedStyle(this).getPropertyValue( '--banner-text-color', )}" ></icon-element>` : html`<icon-element icon="close"></icon-element>`} </div> </div> `; } protected override createRenderRoot(): Element | ShadowRoot { return this; } }

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/nrwl/nx-console'

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