import { gettext } from "django"; import { customElement, html, TemplateResult } from "lit-element"; import { Application } from "../../api/Applications"; import { PBResponse } from "../../api/Client"; import { TablePage } from "../../elements/table/TablePage"; import "../../elements/buttons/ModalButton"; import "../../elements/buttons/SpinnerButton"; @customElement("ak-application-list") export class ApplicationList extends TablePage { pageTitle(): string { return gettext("Applications"); } pageDescription(): string { return gettext("External Applications which use authentik as Identity-Provider, utilizing protocols like OAuth2 and SAML."); } pageIcon(): string { return gettext("pf-icon pf-icon-applications"); } apiEndpoint(page: number): Promise> { return Application.list({ ordering: "order", page: page, }); } columns(): string[] { return ["Name", "Slug", "Provider", "Provider Type", ""]; } row(item: Application): TemplateResult[] { return [ html`${item.name}`, html`${item.slug}`, html`${item.provider}`, html`${item.provider}`, html` Edit
Delete
`, ]; } }