import "../elements/messages/MessageContainer";
import { customElement, html, TemplateResult } from "lit-element";
import { me } from "../api/Users";
import { ID_REGEX, SLUG_REGEX, UUID_REGEX } from "../elements/router/Route";
import { Interface } from "./Interface";
import "./locale";
import "../elements/sidebar/SidebarItem";
import { t } from "@lingui/macro";
@customElement("ak-interface-admin")
export class AdminInterface extends Interface {
renderSidebarItems(): TemplateResult {
const superUserCondition = () => {
return me().then(u => u.user.isSuperuser || false);
};
return html`
${t`Library`}
${t`Monitor`}
${t`Overview`}
${t`System Tasks`}
${t`Resources`}
${SLUG_REGEX})$`]}>
${t`Applications`}
${SLUG_REGEX})$`]}>
${t`Sources`}
${ID_REGEX})$`]}>
${t`Providers`}
${t`Tenants`}
${t`Outposts`}
${t`Outposts`}
${t`Service Connections`}
${t`Events`}
${UUID_REGEX})$`]}>
${t`Logs`}
${t`Notification Rules`}
${t`Notification Transports`}
${t`Customisation`}
${t`Policies`}
${t`Property Mappings`}
${t`Flows`}
${SLUG_REGEX})$`]}>
${t`Flows`}
${t`Stages`}
${t`Prompts`}
${t`Invitations`}
${t`Identity & Cryptography`}
${ID_REGEX})$`]}>
${t`Users`}
${t`Groups`}
${t`Certificates`}
${t`Tokens`}
`;
}
}