import { gettext } from "django"; import { CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element"; import { DefaultClient } from "../../api/client"; import { User } from "../../api/user"; import { COMMON_STYLES } from "../../common/styles"; import "../../elements/AdminLoginsChart"; import "../../elements/cards/AggregatePromiseCard"; import "./TopApplicationsTable"; import "./cards/AdminStatusCard"; import "./cards/FlowCacheStatusCard"; import "./cards/PolicyCacheStatusCard"; import "./cards/PolicyUnboundStatusCard"; import "./cards/ProviderStatusCard"; import "./cards/VersionStatusCard"; import "./cards/WorkerStatusCard"; @customElement("ak-admin-overview") export class AdminOverviewPage extends LitElement { @property({attribute: false}) users?: Promise; static get styles(): CSSResult[] { return COMMON_STYLES; } firstUpdated(): void { this.users = User.count(); } render(): TemplateResult { return html`

${gettext("System Overview")}

`; } }