import { gettext } from "django"; import { CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element"; import { AdminOverview } from "../../api/admin_overview"; import { DefaultClient } from "../../api/client"; import { User } from "../../api/user"; import { COMMON_STYLES } from "../../common/styles"; import { SpinnerSize } from "../../elements/Spinner"; import "../../elements/AdminLoginsChart"; import "./TopApplicationsTable"; import "./OverviewCards"; @customElement("ak-admin-overview") export class AdminOverviewPage extends LitElement { @property({attribute: false}) data?: AdminOverview; @property({attribute: false}) users?: Promise; static get styles(): CSSResult[] { return COMMON_STYLES; } firstUpdated(): void { AdminOverview.get().then(value => this.data = value); this.users = User.count(); } render(): TemplateResult { return html`

${gettext("System Overview")}

`; } }