import { gettext } from "django"; import { customElement, property } from "lit-element"; import { html, TemplateResult } from "lit-html"; import { AKResponse } from "../../api/Client"; import { Outpost } from "../../api/Outposts"; import { TableColumn } from "../../elements/table/Table"; import { TablePage } from "../../elements/table/TablePage"; import "./OutpostHealth"; import "../../elements/buttons/SpinnerButton"; import "../../elements/buttons/ModalButton"; import "../../elements/buttons/TokenCopyButton"; @customElement("ak-outpost-list") export class OutpostListPage extends TablePage { pageTitle(): string { return "Outposts"; } pageDescription(): string | undefined { return "Outposts are deployments of authentik components to support different environments and protocols, like reverse proxies."; } pageIcon(): string { return "pf-icon pf-icon-zone"; } searchEnabled(): boolean { return true; } apiEndpoint(page: number): Promise> { return Outpost.list({ ordering: this.order, page: page, search: this.search || "", }); } columns(): TableColumn[] { return [ new TableColumn("Name", "name"), new TableColumn("Providers"), new TableColumn("Health and Version"), new TableColumn(""), ]; } @property() order = "name"; row(item: Outpost): TemplateResult[] { return [ html`${item.name}`, html``, html``, html` ${gettext("Edit")}
  ${gettext("Delete")}

${gettext("Outpost Deployment Info")}

`, ]; } renderToolbar(): TemplateResult { return html` ${gettext("Create")}
${super.renderToolbar()} `; } }