import { gettext } from "django"; import { CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element"; import { AuditEvent, TopNEvent } from "../../api/events"; import { COMMON_STYLES } from "../../common/styles"; import "../../elements/Spinner"; @customElement("pb-top-applications-table") export class TopApplicationsTable extends LitElement { @property({attribute: false}) topN?: TopNEvent[]; static get styles(): CSSResult[] { return COMMON_STYLES; } firstUpdated(): void { AuditEvent.topForUser("authorize_application").then(events => this.topN = events); } renderRow(event: TopNEvent): TemplateResult { return html`
${gettext("Application")} | ${gettext("Logins")} |
---|