> {
return new EventsApi(DEFAULT_CONFIG).eventsEventsList({
ordering: this.order,
page: page,
pageSize: (await uiConfig()).pagination.perPage,
search: this.search || "",
});
}
columns(): TableColumn[] {
return [
new TableColumn(t`Action`, "action"),
new TableColumn(t`User`, "user"),
new TableColumn(t`Creation Date`, "created"),
new TableColumn(t`Client IP`, "client_ip"),
new TableColumn(t`Tenant`, "tenant_name"),
new TableColumn(t`Actions`),
];
}
row(item: EventWithContext): TemplateResult[] {
return [
html`${ActionToLabel(item.action)}
${item.app}`,
item.user?.username
? html` ${item.user?.username}
${item.user.on_behalf_of
? html`
${t`On behalf of ${item.user.on_behalf_of.username}`}
`
: html``}`
: html`-`,
html`${item.created?.toLocaleString()}`,
html`${item.clientIp || t`-`}`,
html`${item.tenant?.name || t`-`}`,
html`
`,
];
}
renderExpanded(item: Event): TemplateResult {
return html`
|
|
|
| `;
}
}