1cfe1aff13
* root: initial rename * web: rename custom element prefix * root: rename external functions with pb_ prefix * root: fix formatting * root: replace domain with goauthentik.io * proxy: update path * root: rename remaining prefixes * flows: rename file extension * root: pbadmin -> akadmin * docs: fix image filenames * lifecycle: ignore migration files * ci: copy default config from current source before loading last tagged * *: new sentry dsn * tests: fix missing python3.9-dev package * root: add additional migrations for service accounts created by outposts * core: mark system-created service accounts with attribute * policies/expression: fix pb_ replacement not working * web: fix last linting errors, add lit-analyse * policies/expressions: fix lint errors * web: fix sidebar display on screens where not all items fit * proxy: attempt to fix proxy pipeline * proxy: use go env GOPATH to get gopath * lib: fix user_default naming inconsistency * docs: add upgrade docs * docs: update screenshots to use authentik * admin: fix create button on empty-state of outpost * web: fix modal submit not refreshing SiteShell and Table * web: fix height of app-card and height of generic icon * web: fix rendering of subtext * admin: fix version check error not being caught * web: fix worker count not being shown * docs: update screenshots * root: new icon * web: fix lint error * admin: fix linting error * root: migrate coverage config to pyproject
128 lines
3.7 KiB
TypeScript
128 lines
3.7 KiB
TypeScript
import { customElement } from "lit-element";
|
|
import { User } from "../api/user";
|
|
import { SidebarItem } from "../elements/sidebar/Sidebar";
|
|
import { Interface } from "./Interface";
|
|
|
|
export const SIDEBAR_ITEMS: SidebarItem[] = [
|
|
{
|
|
name: "Library",
|
|
path: ["/library/"],
|
|
},
|
|
{
|
|
name: "Monitor",
|
|
path: ["/audit/audit/"],
|
|
condition: (): Promise<boolean> => {
|
|
return User.me().then(u => u.is_superuser);
|
|
},
|
|
},
|
|
{
|
|
name: "Administration",
|
|
children: [
|
|
{
|
|
name: "Overview",
|
|
path: ["/administration/overview-ng/"],
|
|
},
|
|
{
|
|
name: "System Tasks",
|
|
path: ["/administration/tasks/"],
|
|
},
|
|
{
|
|
name: "Applications",
|
|
path: ["/administration/applications/"],
|
|
},
|
|
{
|
|
name: "Sources",
|
|
path: ["/administration/sources/"],
|
|
},
|
|
{
|
|
name: "Providers",
|
|
path: ["/administration/providers/"],
|
|
},
|
|
{
|
|
name: "User Management",
|
|
children: [
|
|
{
|
|
name: "User",
|
|
path: ["/administration/users/"],
|
|
},
|
|
{
|
|
name: "Groups",
|
|
path: ["/administration/groups/"],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: "Outposts",
|
|
children: [
|
|
{
|
|
name: "Outposts",
|
|
path: ["/administration/outposts/"],
|
|
},
|
|
{
|
|
name: "Service Connections",
|
|
path: ["/administration/outposts/service_connections/"],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: "Policies",
|
|
children: [
|
|
{
|
|
name: "Policies",
|
|
path: ["/administration/policies/"],
|
|
},
|
|
{
|
|
name: "Bindings",
|
|
path: ["/administration/policies/bindings/"],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: "Property Mappings",
|
|
path: ["/administration/property-mappings/"],
|
|
},
|
|
{
|
|
name: "Flows",
|
|
children: [
|
|
{
|
|
name: "Flows",
|
|
path: ["/administration/flows/"],
|
|
},
|
|
{
|
|
name: "Stages",
|
|
path: ["/administration/stages/"],
|
|
},
|
|
{
|
|
name: "Prompts",
|
|
path: ["/administration/stages/prompts/"],
|
|
},
|
|
{
|
|
name: "Invitations",
|
|
path: ["/administration/stages/invitations/"],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: "Certificates",
|
|
path: ["/administration/crypto/certificates/"],
|
|
},
|
|
{
|
|
name: "Tokens",
|
|
path: ["/administration/tokens/"],
|
|
},
|
|
],
|
|
condition: (): Promise<boolean> => {
|
|
return User.me().then(u => u.is_superuser);
|
|
},
|
|
},
|
|
];
|
|
|
|
@customElement("ak-interface-admin")
|
|
export class AdminInterface extends Interface {
|
|
|
|
get sidebar(): SidebarItem[] {
|
|
return SIDEBAR_ITEMS;
|
|
}
|
|
|
|
}
|